Closed scorbetta closed 9 months ago
-D
defines a macro. Macros are not parameters. When using -P
, you need to give it the full hierarchical path, e.g. -PTOP.WIDTH=8
.
Unfortunately the compiler doesn't report an error if you don't provide a valid module path.
@martinwhitaker Terrific! Thanks. Solved
I would like to override parameters' defaults in my top-level Verilog:
using the following command line (I'm using Icarus Verilog 12.0 stable):
However, I keep falling into an error that makes me think those parameters are not updated. As a matter of fact, everything goes as expected if I replace the above defaults with desired values and run
iverilog
w/o any-D
option.I've also tried
-P
, but nothing changes.Any idea? Thanks
S