Examples
Examples are provided in the examples directory.
To use it you need a simulator (e.g. Icarus Verilog with GTKWave).
You can load the project environment by sourcing env.sh
in the project's examples directory.
Simulation of the given examples depends on stimc being precompiled as a library, so
run ./configure
and make
in the project's root directory before or in case of manual
cmake invocation make sure to use build
in the project's root directory where the examples
expect to find the library.
The examples provide 3 stimc design units: dummy
(the shown dummy, also in a plain C version
for reference), ff
(a stimc flip-flop model)
and ff\_real
(flip-flop with experimental real-value port interface).
The Verilog shell can be found in source/behavioral/verilog
of the given unit, the module stimc code in
source/behavioral/stimc
. To run example simulations enter the unit's simulation/generic/tc_<...>
testcase directory and run make
. The code will be compiled, and (in case of Icarus Verilog) run and
GTKWave will be started for browsing the simulated waveforms.