Technical data

vsim
96
-
ModelSim Command Reference ModelSim EE/PLUS Reference Manual
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, assigning it 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"'
-G<Name=Value> ...
Note there is no space between
-G
and
<Name=Value>
. Same as
-g
except that it will also
override generics that received explicit values in generic maps. Optional.
Name
is the name of the generic parameter, exactly as it appears in the VHDL
source (case is ignored).
Value
is an appropriate value for the declared data type
of the generic parameter.
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.