CPE 315 SIM Documentation
Getting Started
Simulation involved working with models. Models are developed which describe
the structure and behavior of real entities in some domain. For SIM,
the model is a textual description of a digital network using the C++
language. The resulting executable computer program will provide an
interactive simulation that can be examined for specific properties.
A good way to start learning sim is to work with a simple model.
It is important that you actually run this model to understand it.
The model is a
Half Adder Circuit
Steps - How to do a simulation
- Design the necessary excitation elements: Switches, Pulsers, Clocks, ...
- Add the necessary instrumentation (Probes) to display results.
- Organize the network elements in the desired layout.
i.e. What are the schmatic relationships?
- Use your text editor to write the .c file
Start with an extant file and modify that file; don't start from scratch.
- Modify the standard makefile as necessary (will be done by instructor)
Usually, this is the $(FILES) line and the -o switch
- Execute the resulting program.
- Interact with the simulation using the keyboard and mouse.