Monday, December 19, 2011

SystemC



You can get the tutorial from the link below.
Source:
http://www.asic-world.com/systemc/index.html

You can get the Library Installer from  http://www.accellera.org/downloads/standards/systemc

This is how to install systemC library in Ubuntu

:~$ wget http://www.pfb.no/files/systemc-2.2.0-ubuntu10.10.patch
:~$ tar -xvzf systemc-2.2.0.tgz
:~$ cd systemc-2.2.0
:~$ patch -p1 < ../systemc-2.2.0-ubuntu10.10.patch
:~$ sudo mkdir /usr/local/systemc-2.2
:~$ mkdir objdir
:~$ cd objdir
:~$ sudo ../configure --prefix=/usr/local/systemc-2.2
:~$ make
:~$ sudo make install

Don't forget to add this line to your startup file

:~$export SYSTEMC_HOME=/usr/local/systemc-2.2/

and to compile:

:~$g++ -I. -I$SYSTEMC_HOME/include -L. -L$SYSTEMC_HOME/lib-linux -o OUTFILE INPUT.cpp -lsystemc -lm
 

Source:
http://archive.pfb.no/2010/10/13/systemc-ubuntu-1010/
http://ubuntuforums.org/showthread.php?t=1257173

If you get Error like this
reference 'm_obj' cannot be declared 'mutable' [-fpermissive]

you can simply remove the "mutable" keyword in
the SystemC sources (and installed headers) at the reported places.

Source:
http://www.accellera.org/Discussion_Forums/systemc-forum/archive/msg?list_name=systemc-forum&monthdir=201105&msg=msg00017.html

No comments:

Post a Comment