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.Dismiss alert
It would be useful to be able to set certain compile time flags in the dbt module decalarations. For example, setting a preprocessor variable (e.g. for conditional compilation of simulation-only code), for setting module parameters (e.g. simulate an arbitrator module with a configurable number o fmasters/slaves). The semantics for those functionalities depend on the simulator/synthesis tool:
It would be useful to be able to set certain compile time flags in the dbt module decalarations. For example, setting a preprocessor variable (e.g. for conditional compilation of simulation-only code), for setting module parameters (e.g. simulate an arbitrator module with a configurable number o fmasters/slaves). The semantics for those functionalities depend on the simulator/synthesis tool:
Preprocessor macros:
vlog +define+<macrro_name>[=<macro_val>]
xvlog --define <macro_name>[=<macro_val>]
synth_design -verilog_define <name>=<value>
Module parameters
vsim -G<param_name>=<param_value>
(Note: runtime argument, not compile-time).synth_design -generic <param_name>=<param_value>
In addition it would be nice to set custom simulator/synthesis tool specific flags.
I propose to add the following fields to hdl.Simulation:
And the following to hdl.Bitstream:
What's your opinions?
The text was updated successfully, but these errors were encountered: