Open ajflskdl opened 4 years ago
Hi,
Can you try with SystemC version 2.3.2 and verilator version 4.016? I use gcc/g++ version 6.3.0, but 5.5.0 should work.
$ tar -xzf systemc-2.3.2.tar.gz
$ cd systemc-2.3.2
$ mkdir build
$ cd build
# Replace /path/to as desired
$ CXXFLAGS=-std=c++11 ../configure --prefix=/path/to/sc-2.3.2-cpp11/
$ make
$ make install
$ git clone http://git.veripool.org/git/verilator -b v4.016
$ cd verilator
$ autoconf
# Replace /path/to as desired
$ ./configure --prefix=/path/to/verilator-4.016/
$ make
$ make install
$ git clone https://github.com/Xilinx/libsystemctlm-soc.git
$ cd libsystemctlm-soc
# Replace /path/to below to where above systemc and verilator was installed
$ cat > .config.mk <<EOF
SYSTEMC = /path/to/sc-2.3.2-cpp11
VERILATOR=/path/to/verilator-4.016/bin/verilator
CXXFLAGS += -std=c++11
EOF
$ cd tests/rtl-bridges/ace
$ make
$ ./ace-mst-test
$ ./ace-slv-test
$ gtkwave ace-slv-test.vcd
$ gtkwave ace-mst-test.vcd
Best regards, Francisco Iglesias
Hi,
I have a little problem. when I install and run this program.
There are what I installed below.
Ubuntu > 14.04 GCC > 5.5.0 G++ > 5.5.0 verilator > 3.856 SystemC > 2.3.0
I think that installation was success without any error. However i can not complete to compile test-example. e.g.)pwd: libsystemctlm-soc/tests/rtl-bridge/ace/
when i install systemc, i don't type any complie option such as -std=c++11. so, i don't add any complie option when compile test-example, either.
there is the log, when i type "make"
No compile option
Additionally, i try to add compile option only test-example, not systemc there are what i try below.
-std=c++11
-std=c++14
-std=gnu++17
So, What should i do for successful run the example?