Is it possible to define a generic
value at COMPILE time using Modelsim?
I need to compile a file that contains generate
statements, which are turned off & on based on the value of my generic
boolean.
I have unsuccessfully tried the following compile statement, where is_primary
is the boolean variable name:
vcom -work work -is_primary=true file_name.vhd
I have found similar syntax for simulation (vsim
), but I do not see a way to define a generic
for vcom
. Any suggestions?