I am having trouble in getting the binding working when I tried to bind two parameterized modules, one is RTL the other is a coverage module binding to it.
Here is the code:
module my_rtl #(paarameter my_type_t CFG = '0) (signal list);
module my_cov #(paarameter my_type_t CFG = '0) (signal list)
In my top tb, I am trying to bind them as below:
bind my_rtl my_cov #(.CFG(TB_CONFIG)) u_my_cov_inst(.*);
Note that TB_CONFIG is a parameter defined in a package and imported in the top tb.
The compile seems to be okay. However, during the analyze step, I get the following error:
The expression for a parameter actual associated with the parameter name ('CFG') for the module instance ('u_my_cov_inst') must be constant.
Not sure what the issue is as the TB_CONFIG is a constant.
Any help to fix this properly would be highly appreciated.