Technical data

force
CR-88 ModelSim Commands ModelSim EE/SE Command Reference
-repeat <period>
Repeats the force command, where <period> is the amount of time of the repeat
period. A repeating force command will force a value before other non-repeating
force commands that occur in the same time step. Optional.
<item_name>
Specifies the name of the HDL item to be forced. Required. A wildcard is
permitted only if it matches one item. See "HDL item pathnames"
(CR-245) for the
full syntax of an item name. The item name must specify a scalar type or a one-
dimensional array of character enumeration. You may also specify a record sub-
element, an indexed array, or a sliced array, as long as the type is one of the above.
Required.
<value>
Specifies the value that the item is forced to. The specified value must be
appropriate for the type. Required.
A VHDL one-dimensional array of character enumeration can be forced as a
sequence of character literals or as a based number with a radix of 2, 8, 10 or 16.
For example, the following values are equivalent for a signal of type bit_vector (0
to 3):
Note: For based numbers in VHDL, ModelSim converts each 1 or 0 in the value to one of the values in the
enumerated type.This translation is specified by the force mapping preferences in the imodelsim.tcl file , see
"Preference variables located in INI and MPF files"
(B-394). If ModelSim cannot find a translation for 0 or 1,
it uses the left bound of the signal type (typeleft) for that value.
<time>
Specifies the time that the value is applied. The time is relative to the current time
unless an absolute time is specified by preceding the value with the character @.
Value Description
1111 character literal sequence
2#1111 binary radix
10#15 decimal radix
16#F hexadecimal radix