238
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
Transactor
In the example below, a state variable is first examined, and its value is subsequently changed.
Then the variable is forced, after which another state change is attempted --- unsuccessfully.
Finally, the variable is unforced, and subsequently its value is successfully changed.
>>> examine in1
in1<31:0> = 00000000 (0) (signal:primary_input)
>>> dep/s in1 = 0x11111111
>>> examine in1
in1<31:0> = 11111111 (286331153)(signal:primary_input)
>>> force in1
tate, "in1" is forced.
State, "in1" is no longer forced.
State, "in1" is forced.
; FORCES=1>>> dep/s in1 = 0x00000000
; FORCES=1>>> examine in1
in1<31:0> = 11111111 (286331153) ======(signal:primary_input:forced_state)
; FORCES=1>>> unforce in1
WARNING: Unforcing state, "in1", has no effect because it ===was not previously
f
orced.
>>> examine in1
in1<31:0> = 11111111 (286331153) ======(signal:primary_input)
>>> dep/s in1 = 0x00000000
>>> examine in1
in1<31:0> = 00000000 (0) (signal:primary_input
8.3.13
foreign_model
Format:
foreign_model |/delete| dll_name model_inst_name
[model_init_str] [call_priority]
Definition:
Registers a foreign model instance with the simulator so that it will be simulated in lock step
with this simulation.
/dll_name
The specified dll is assumed to adhere to the properties required for
supporting foreign model simulation (see xact_vmod.h for more details)
/model_inst_name
The model_inst_name must be a unique name among all names of
instantiated foreign models.
model_inst_str
the model_inst_str is a user-specified string that will be passed to the
foreign model initialization routine; this enables user-specified
initialization information to be passed to the foreign model.
/call_priority
The call_priority argument is an integer value that specifies the priority
in which this foreign model is called relative to all other foreign models.
the higher the number the earlier it is called. This argument defaults to 0.
/delete
If the “/delete” qualifier is specified, this command deletes the
previously instantiated foreign model.