Commentary

This commit is contained in:
Wilson Snyder 2020-02-25 19:01:14 -05:00
parent 5b83484f20
commit 4c438bbc67

View File

@ -1906,13 +1906,13 @@ Now we run Verilator on our little example.
We then can compile it We then can compile it
cd obj_dir make -j -C obj_dir -f Vour.mk Vour__ALL.a
make -j -f Vour.mk Vour__ALL.a make -j -C obj_dir -f Vour.mk ../sc_main.o verilated.o
make -j -f Vour.mk ../sc_main.o verilated.o
And link with SystemC. Note your path to the libraries may vary, And link with SystemC. Note your path to the libraries may vary,
depending on the operating system. depending on the operating system.
cd obj_dir
export SYSTEMC_LIBDIR=/path/to/where/libsystemc.a/exists export SYSTEMC_LIBDIR=/path/to/where/libsystemc.a/exists
export LD_LIBRARY_PATH=$SYSTEMC_LIBDIR:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$SYSTEMC_LIBDIR:$LD_LIBRARY_PATH
# Might be needed if SystemC 2.3.0 # Might be needed if SystemC 2.3.0