Development Tools User’s Guide
235
Intel
®
IXP2400/IXP2800 Network Processors
Transactor
connect top_level_net_name top_level_instantiated_pin name
[top_level_instantiated_pin_name ...]
Definition:
Permits a dynamic connection between instances by the creation of nets and assigning names
to these nets.
Example:
The following snippet of simulator code creates two instantiations (InstA and InstB), and sets
up several port connections and an instantiation-to-instantiation connection:
int MSB = 191;
int MID_MSB = 96;
int MID_LSB = 95;
int LSB = 0;
inst connect_test_insta InstA
inst connect_test_instb InstB
connect NEW_Output1<MSB:MID_LSB> InstA.AOutput1// note 1
connect NEW_AtoB<MID_MSB:LSB> InstA.AOutput2 InstB.Binput//note 2
connect NEW_Output1<MID_MSB:LSB> InstB.Boutput//note 3
////////////////////////////////////////////////////////
Note 1: Net NEW_Output1<MSB:MID_LSB> connects to port InstA.Aoutput1
Note 2: Net NEW_AtoB<Mid_MSB:LSB> connects InstA.Aoutput2 to InstB.Binput
Note 3: Net NEW_Output1<MID_MSB:LSB> connects to port InstB.Boutput
8.3.8
deposit
Format:
dep|osit| |deposit_qualifiers|
state_spec| [index_range] ||<bit_range>| = deposit_expr
Definition:
Evaluates the C numeric expression,
deposit_expr
, and deposits the resulting number into the
specified state. The wildcard character, “*” can be used to avoid specifying the entire state
name, however, unless the “/multiple” qualifier is specified, the wildcard specification must
unambiguously address only one state value.
index_range
The index_range specification is only relevant for arrays and can be a
single C numeric expression or 2 numeric expressions separated by a “:”
to indicate the inclusive range formed between the two numbers.
bit_range
The bit_range spec has the same form as the index_range; if it is not
specified the whole field is assumed.
qualifiers
/silent
Inhibits reporting the deposit action.
/multiple
Allows a wildcarded name to deposit to multiple states.