SystemC Setup
These instructions assume that you are operating under a Linux environment.
Alternatively you can install cygwin on an existing Windows environment.
For versions or platform specific information, please refer to the INSTALL file inside the SystemC tar file.
- Download the SystemC core
- Go to www.systemc.org and create an account
- Go to download page and download the version 2.0.1 version of SystemC core,
systemc-2.0.1.tgz
Note if you are using a cygwin based environment you
may want to download SystemC version 2.1 instead.
- Uncompress the SystemC core
- gunzip –d systemc-2.0.1.tgz
- tar –xvf systemc-2.0.1.tar
Note: By default the files will be extracted to directory systemc-2.0.1.
- Install SystemC core
- Change to the directory systemc-2.0.1.
cd systemc-2.0.1
- Create a temporary directory and change into it
mkdir objdir
cd objdir
- Set the environment
setenv CXX g++
- Configure the package for your system
../configure
- Compile the package
gmake (or make)
- Install the package
gmake install or make install
- Remove the temporary directory
cd ..
rm –rf objdir
Waveform Viewer Setup
A waveform viewer will allow you to graphically display a VCD trace file from SystemC simulation.
Two free-ware VCD viewers are recommended. Other tools are available.
- Download Dinotrace or GtkWave
- Install the waveform viewer according to its instructions
Workshop Files Setup
- Download Esperan’s SystemC workshop file
- Uncompress the archive
gunzip –d sc_tutorial.tgz
tar –xvf sc_tutorial.tar
Note: By default the files will be extracted to directory sc_tutorial
- Move to the Makefile directory
cd sc_tutorial
- Configure the Makefile for your environment
- Edit the file: Makefile.defs
vi Makefile.defs
- Modify the SystemC installation path
SYSTEMC = put_your_installation_path_here
e.g. SYSTEMC = /usr/local/SystemC/systemc-2.0.1
Running the SystemC Counter Example
- Move to the workshop directory
cd simpleCounterSC
- Compile the counter example
make –f Makefile.osci
- Execute the simulation
./run.exe
- Examine the results of the simulation
gtkwave trace.vcd & or alternatively dinotrace trace.vcd &
Back to top