I get following message when I debug and print a variable of type sc_dt::sc_int<N>
&"print integer\n" ~"$4 = {<sc_dt::sc_int_base> = {<No data fields>}, <No data fields>}"
I tried to add debug informations with no success. I did following.
Install of the shared Library in Linux
- sudo su
- Untar the package using - change permissions "chmod -R +x systemc-2.3.0"
- Change to the top level directory systemc-2.3.0 : cd systemc-2.3.0
- Make a directory systemc230 for installation in your /usr/local/ path.
"mkdir /usr/local/systemc230" - Make a directory “objdir” in the directory systemc-2.3.0 : "mkdir objdir"
- Change to objdir : cd objdir
- now type: export CXX=g++
export OPT_CXXFLAGS=-O0 - Run configure from objdir: ../configure --prefix=/usr/local/systemc230
- Do: make
- Install by typing command: make install
First make this
export SYSTEMC_HOME=/usr/local/systemc230/
My Sample Program
#define SC_INCLUDE_FX #include <systemc.h> int sc_main( int, char*[]){ sc_int<30> integer; integer = 12; integer = -15; return 0; }
Then this to create your program
g++ -I. -I$SYSTEMC_HOME/include -L. -L$SYSTEMC_HOME/lib-linux -Wl,-rpath=$SYSTEMC_HOME/lib-linux -o main main.cpp -g -O0 -lsystemc -lm
System I Use
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Ubuntu "12.04.2 LTS, Precise Pangolin"
What am I doing wrong?
What am I supposed to do?