Hello,

(1) What are the steps for integrating DRAMSim3 as the memory simulator to
Gem5?

We added dramsim3 repository in ext/dramsim3 and built (scons -j4
build/VEGA_X86/gem5.opt)

(2) After the integration, how do we invoke DRAMSim3 instead of the Gem5
memory model?

It executes fine when I use gem5's memory model:

build/VEGA_X86/gem5.opt configs/deprecated/example/se.py
--cmd=tests/test-progs/hello/bin/x86/linux/hello

But fails when I add the dramsim3 options:

build/VEGA_X86/gem5.opt configs/deprecated/example/se.py
--cmd=tests/test-progs/hello/bin/x86/linux/hello --mem-type=DRAMsim3
--dramsim3-ini=ext/dramsim3/DRAMsim3/configs/DDR4_8Gb_x8_3200.ini

gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version DEVELOP-FOR-25.1
gem5 compiled Jul  7 2025 19:20:40
gem5 started Jul  7 2025 19:43:24
gem5 executing on milan2.ftpn.ornl.gov, pid 1965880
command line: build/VEGA_X86/gem5.opt configs/deprecated/example/se.py
--cmd=tests/test-progs/hello/bin/x86/linux/hello --mem-type=DRAMsim3

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

At:
  src/python/m5/SimObject.py(868): __getattr__
  /home/kpa/kpa/pim-resources/gem5/configs/common/MemConfig.py(243):
config_mem
  configs/deprecated/example/se.py(289): <module>
  src/python/m5/main.py(682): main

Has anything changed, or am I missing any steps?

Thanks,

*Kazi*
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to