Miscellaneous Block Models
Central_Utilites
File: general_blocks/Central_Utilities.sim
Description
Central_Utilities - This box is a useful "catch-all" box to
include in General_Block simulations. It automatically sets
the simulator's animation mode and debugging levels to
nominal values for General_Blocks. In the future, it may
perform other needed centralized functions to General_Blocks.
Include exactly *one* Central_Utilities box in a given
General_Block simulation. Central_Utilities has no input or
output ports. It stands alone by itself.
Ports
Input Ports
Output Ports
Parameters
- Debug Controls general debug output Data Type: INTEGER
- GB_Debug Controls specialized debug output Data Type: INTEGER
- ShowInQueue Enables/disables viewing of InQueue
behavior for Process Time Line (enabled=1) Data Type: INTEGER
- ShowHW Enables/disables viewing non-service (hw)
delays on Process Time Line (enabled=1) Data Type: INTEGER
Description of parameters for the Global Random Number Server
RN_Seed >= 0 Use +1 as the seed
RN_Seed < 0 Use the number provided as the seed
SystemCall
File: general_blocks/Miscellaneous/SystemCall.sim
Description
The model executes a given command on the system shell.
The value returned by the command is placed on the port out.
Ports
Input Ports
- trigger
Data Type: TRIGGER
Output Ports
Parameters
Dijkstra
File: general_blocks/Miscellaneous/Dijkstra.sim
Description
The model computes the least-cost routing table for the specified
src,
according to the least-cost algorithm commonly know as the Dijkstra
algorithm.
Ports
Input Ports
- Mcost Data Type:
REAL
- src Data
Type: INTEGER
Output Ports
- routes Data
Type: INTEGER
Parameters
TimeBetweenTriggers
File: general_blocks/Miscellaneous/TimeBetween.sim
Description
Each time the input to the model is enabled, the model calculates
the elapsed time since the last
time the input was enabled and sends the value out to the
output port elapsed.
Ports
Input Ports
- trigger Data Type: TRIGGER
Output Ports
Parameters
PrintEnvelope
File: general_blocks/Miscellaneous/Print_token.sim
Description
Developers Debugging Aid, the model prints contents and type of
any data structure on the input in.
Ports
Input Ports
- in Data Type: ANY DATA STRUCTURE
Output Ports
Parameters
Print_real
File: general_blocks/Miscellaneous/Print_real.sim
Description
The model prints out the real input on the port in.
Ports
Input Ports
Output Ports
Parameters
Print_int
File: general_blocks/Miscellaneous/Print_int.sim
Description
The model prints out the integer input on the port in.
Ports
Input Ports
Output Ports
Parameters
Print_message
File: general_blocks/Miscellaneous/Print_message.sim
Description
The model prints the input on the port in to the screen
and passes the input to the port out.
Ports
Input Ports
- in Data Type: DATA STRUCTURE
Output Ports
- out Data Type: DATA
STRUCTURE
Parameters