Technical data
vsim
ModelSim EE/SE Command Reference ModelSim Commands CR-215
Note: Make sure the Value you specify is appropriate for the declared data type. Type mismatches will
cause the specification to be ignored (including no error messages).
No spaces are allowed anywhere in the specification, except within quotes when
specifying a string value. Multiple -G options are allowed, one for each generic
parameter.
Name may be prefixed with a relative or absolute hierarchical path to select
generics in an instance-specific manner. For example,
Specifying
-G/top/u1/tpd=20ns on the command line would only affect the
tpd generic on the /top/u1 instance, overriding it with a value of 20ns.
Specifying
-Gu1/tpd=20ns affects the tpd generic on all instances named u1.
Specifying
-Gtpd=20ns affects all generics named tpd.
If more than one -G option selects a given generic the most explicit specification
takes precedence. For example,
vsim -G/top/ram/u1/tpd_hl=10ns -Gtpd_hl=15ns top
This command sets tpd_hl to 10ns for the /top/ram/u1 instance. However, all other
tpd_hl generics on other instances will be set to 15ns.
Limitation: Composite typed generics (arrays and records) may not be set from the
command line. Generics of string type may be set, however. For example,
-Gstrgen=’"This is a string"’
-nocollapse
Disables the optimization of internal port map connections. Optional.
-noglitch
Disables VITAL glitch generation. Optional.
See Chapter 4 - VHDL Simulation for additional discussion of VITAL.
+no_glitch_msg
Suppresses VITAL glitch messages. Optional.
-std_input <filename>
Specifies the file to use for the VHDL TextIO STD_INPUT file. Optional
-std_output <filename>
Specifies the file to use for the VHDL TextIO STD_OUTPUT file. Optional