CMU-SAFARI / ramulator2

Ramulator 2.0 is a modern, modular, extensible, and fast cycle-accurate DRAM simulator. It provides support for agile implementation and evaluation of new memory system designs (e.g., new DRAM standards, emerging RowHammer mitigation techniques). Described in our paper https://people.inf.ethz.ch/omutlu/pub/Ramulator2_arxiv23.pdf
https://arxiv.org/abs/2308.11030
MIT License
251 stars 62 forks source link

GEM5 integration call Error #56

Open idealgao opened 3 months ago

idealgao commented 3 months ago

Hi All,

After clone the lastest repository, and strictly following step 1~6 to setup Ramulator2 into GEM5. Compile passed, Ramulator2 standalone test is Okay and GEM5 self-test case is Okay. build/X86_BK/gem5.opt configs/deprecated/example/se.py --cmd=tests/test-progs/hello/bin/x86/linux/hello --cpu-type=TimingSimpleCPU --l1d_size=64kB --l1i_size=16kB --caches

But when GEM5 call Ramulator2 as ext-memory, the comes out errors below, is there any files I missed? Is there a sample for Step-6? command line: build/X86_BK/gem5.opt configs/deprecated/example/se.py --cmd=tests/test-progs/hello/bin/x86/linux/hello --cpu-type=TimingSimpleCPU --l1d_size=64kB --l1i_size=16kB --caches --mem-type=Ramulator2

warn: The se.py script is deprecated. It will be removed in future releases of gem5. AttributeError: object 'Ramulator2' has no attribute 'controller' (C++ object is not yet constructed, so wrapped C++ methods are unavailable.)

At: src/python/m5/SimObject.py(855): getattr /home/idealgao/workshop/gem5/gem5/configs/common/MemConfig.py(243): config_mem configs/deprecated/example/se.py(296): src/python/m5/main.py(669): main