README (11554:adafd259839e) | README (11791:ac5237fa4230) |
---|---|
1This directory contains a demo of a coupling between gem5 and SystemC-TLM. 2It is based on the gem5-systemc implementation in utils/systemc. 3First a simple example with gem5's traffic generator is shown, later an full 4system example. 5 6Files: 7 8 main.cc -- demonstration top level --- 21 unchanged lines hidden (view full) --- 30Second build gem5 as a library with cxx-config support and (optionally) 31without python. 32 33> cd ../.. 34> scons build/ARM/gem5.opt 35> scons --with-cxx-config --without-python build/ARM/libgem5_opt.so 36> cd util/tlm 37 | 1This directory contains a demo of a coupling between gem5 and SystemC-TLM. 2It is based on the gem5-systemc implementation in utils/systemc. 3First a simple example with gem5's traffic generator is shown, later an full 4system example. 5 6Files: 7 8 main.cc -- demonstration top level --- 21 unchanged lines hidden (view full) --- 30Second build gem5 as a library with cxx-config support and (optionally) 31without python. 32 33> cd ../.. 34> scons build/ARM/gem5.opt 35> scons --with-cxx-config --without-python build/ARM/libgem5_opt.so 36> cd util/tlm 37 |
38Note: For MAC / OSX this command should be used: 39> scons --with-cxx-config --without-python build/ARM/libgem5_opt.dylib 40 |
|
38Set a proper LD_LIBRARY_PATH e.g. for bash: 39> export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/" 40 | 41Set a proper LD_LIBRARY_PATH e.g. for bash: 42> export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/" 43 |
41Then edit the Makefile to set the paths for SystemC and run make | 44or for MAC / OSX: 45> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/path/to/gem5/build/ARM/" |
42 | 46 |
47Then edit the Makefile to set the paths for SystemC: 48 49 Linux: 50 SYSTEMC_INC = /opt/systemc/include 51 SYSTEMC_LIB = /opt/systemc/lib-linux64 52 53 MAC / OSX: 54 SYSTEMC_INC = /opt/systemc/include 55 SYSTEMC_LIB = /opt/systemc/lib-macosx64 56 57Then run make: 58 |
|
43> make 44 45Make a config file for the C++-configured gem5 using normal gem5 46 47> ../../build/ARM/gem5.opt ./tlm.py 48 49The message "fatal: Can't find port handler type 'tlm'" is okay. 50The configuration will be stored in the m5out/ directory --- 69 unchanged lines hidden --- | 59> make 60 61Make a config file for the C++-configured gem5 using normal gem5 62 63> ../../build/ARM/gem5.opt ./tlm.py 64 65The message "fatal: Can't find port handler type 'tlm'" is okay. 66The configuration will be stored in the m5out/ directory --- 69 unchanged lines hidden --- |