General Blocks Models
A library of general-purpose building blocks is included under
the model_libs directory, called: general_blocks.
The full path is:
$CSIM_ROOT/model_libs/general_blocks.
It contains the following categories of models.
- New Models
- Deprecated Models
- Arithmetic
- Comparison
- Conversions
- Counters
- Data Type Operations
- Data Structure Access
- Delays
- Execution Control
- File Access
- Graphical Interface
- Logical
- Loops
- Memory
- Miscellaneous
- Number Generators
- Plot Generation
- Probes
- Quantity Shared Resource
- Queues And Servers
- Queues
- Server_Resource
- Statistics
- Switches
- Timers
- Traffic Generators
- Vectors
To use these models, simply include:
$CSIM_ROOT/model_libs/general_blocks/Library.sim
by reference. It will automatically include all of the models, and it
stacks them by category so the types are easily selected by library-tree.
See General-Blocks Models Tutorial for an introduction to the General-Blocks model library with instructions and examples on usage. (Newer version General-Blocks Models Tutorial.)
You should also add one Miscellaneous/Central_Utilities box to your simulation. It has no connections, but it adjusts some settings, such as animation modes, and debugging levels, to values which are appropriate for block-level modeling. You can place this box anywhere, but it is conventionally placed in a corner of the top-diagram.
Examples
Useful examples which use the above blocks are included under directory:
$CSIM_ROOT/model_libs/general_blocks/Examples.
These are complete working and tested examples. See: Examples Readme.txt
for more information about running the examples.
Hints / FAQ on Using General Blocks
See: FAQ - hints on using General-Blocks library