Technical data

force
320
-
Simulator Command Reference ModelSim EE/PLUS Reference Manual
name. The item name must specify a scalar type or a one-dimensional array of character
enumeration. You may also specify a record subelement, 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, Model
Sim
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" (p229) in the
modelsim.tcl
file. If Model
Sim
cannot find a translation for 0 or 1, it uses the left bound of the signal type (type’left) 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 @. If the time units
are not specified, then the default is the resolution units selected at simulation start-up.
Optional.
A zero-delay force command causes the change to occur in the current (rather than
the next) simulation delta cycle.
Value Description
1111 character literal sequence
2#1111 binary radix
10#15 decimal radix
16#F hexadecimal radix