- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is pretty fine when i use QII to compile my design. However, when i use modelsim-starter edition, a lots of error popping out.
Error: Identifier must be declared with a port mode: d. My submodule: module fir_comb_RAM1(clk, reset, ena, valid, d, count, q, RAM_coeff, mult_result); input clk; input reset; input ena; input valid; input [count_w-1:0] count; input signed [signal_mag_w-1:fp_w] d; input signed [signal_mag_w-1:fp_w] q ; input signed [coeff_w-1:fp_w] RAM_coeff; I have no idea why modelsim ask me to declare d as a port since i already declare it as input Besides, how to use parameter in modelsim? In Qii, i use it as below: e.g1: input [count_w-1:0] count; parameter count_w = 4; It gives me an error undefined variable of count_w; e.g2: if (count_64 < (max_coeff+1))... It gives me an error undefined variable of max_coeff; Any idea? thanksLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The 2 errors caused by 1 problem only. The placement of parameter should be put on top after the entity. what a silly mistake..
thanks
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page