steveicarus/iverilog

Downgrade non-existing parameter to a warning (again)

Opened this issue · 1 comments

0ab1ed9 made it an error to apply non-existing parameters. While there are reasons for that, I would argue for reverting this change to make it a warning instead again. There are two semi valid reasons that I can cite.

  1. Having multiple tops in a simulation, it can get a bit fiddly to filter out which parameters go to which top. The easiest way tends to be to just apply all params to all tops
  2. Running alternatively gatelevel and RTL simulations with the same setup where the gatelevel model has consumed all parameters.

Both reasons can be solved by adding all the parameters to the top level/gate level modules and the error makes it obvious which parameters are missing.

I would not want to make this a warning in general, but we could possibly add an option to downgrade the error to a warning.