You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
When I use verilog-auto-inst-param-value:t, it can successfully replace bus indexes with parameter values only if the parameter is explicitly assigned a value during the module instantiation. In many cases, parameter values could be left as default without any explicit setting, especially if the default value is inferred from another assigned parameter.
There is no need to set IDX_W parameter during instantiation since it's same as the default assigned value. However, verilog-auto-inst-param-value will not expand the param value if the parameter value is not explicitly set during instantiation.
I actually realized my request was already there in Issue #522, at the bottom:
_My next request would be to make it work:
if IDX_W isn't passed
if IDX_W is a localparam in submod
These two conditions are very common and would be great if Verilog-mode could support parameter value expansion for these two cases.
The text was updated successfully, but these errors were encountered:
Yes it would be useful. I would really like to see this implemented too. There are some parameters that should remain parameters, not localparam, but have defaults.
Author Name: Mert Ustun
Original Redmine Issue: 1447 from https://www.veripool.org
When I use verilog-auto-inst-param-value:t, it can successfully replace bus indexes with parameter values only if the parameter is explicitly assigned a value during the module instantiation. In many cases, parameter values could be left as default without any explicit setting, especially if the default value is inferred from another assigned parameter.
For instance, taking the example in Issue #522,
There is no need to set IDX_W parameter during instantiation since it's same as the default assigned value. However, verilog-auto-inst-param-value will not expand the param value if the parameter value is not explicitly set during instantiation.
I actually realized my request was already there in Issue #522, at the bottom:
_My next request would be to make it work:
These two conditions are very common and would be great if Verilog-mode could support parameter value expansion for these two cases.
The text was updated successfully, but these errors were encountered: