Hello,

DRAMSim isn't a drop in replacement for the memory object anymore. Since
the change in the memory interface (
http://www.gem5.org/project/2020/10/01/gem5-20-1.html#new-dram-interface-contributed-by-wendy-elsasser)
you can't just drop in a different type of DRAM model.

You'll probably have to modify fs.py, Options.py, or something like that to
be able to use DRAMSim3. There are already some special cases for
"SimpleMemory" and you should be able to copy that for DRAMSim3.

Cheers,
Jason

On Mon, Oct 19, 2020 at 9:00 PM Liyichao via gem5-users <gem5-users@gem5.org>
wrote:

> Hi All:
>
>          I use gem5 20.1 ,and bootup with fs.py and dramsim3 model,but
> some error printed.
>
>
>
>          As I know, gem5 20.1 new feature has departed the medium
> interface from memctrl, however, these modifications are only for the DRAM
> model inside gem5, I think external memory Dramsim3 and NVmain do not adapt
> to these changes.
>
>
>
>
>
> my script:
> ./build/ARM/gem5.opt --debug-flags=DRAM -d ./m5out configs/example/fs.py
> --cpu-type=O3_ARM_v7a_3 --kernel=vmlinux -n 2
> --machine-type=VExpress_GEM5_V1
> --disk-image=aarch64-ubuntu-trusty-headless.img --bootloader
> ./system/arm/bootloader/arm64/boot.arm64 --caches --l2cache
> --checkpoint-dir=./m5out --mem-type=DRAMsim3 --mem-size=2GB
>
> Error:
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "build/ARM/python/m5/main.py", line 457, in main
> exec(filecode, scope)
> File "configs/example/fs.py", line 339, in <module>
> test_sys = build_test_system(np)
> File "configs/example/fs.py", line 234, in build_test_system
> MemConfig.config_mem(options, test_sys)
> File "/home/l30005758/upstream/configs/common/MemConfig.py", line 237, in
> config_mem
> mem_ctrl.dram = dram_intf
> File "build/ARM/python/m5/SimObject.py", line 1337, in _setattr_
> value = param.convert(value)
> File "build/ARM/python/m5/params.py", line 215, in convert
> return self.ptype(value)
> TypeError: _init_() takes 1 positional argument but 2 were given
> Error setting param MemCtrl.dram to <orphan DRAMsim3>
> ------------------------------
>
> 李翼超(Charlie)
>
>
>
> 华为技术有限公司 Huawei Technologies Co., Ltd.
>
> [image: Company_logo]
>
> 部门:计算系统与组件开发部 [云与计算BG]
>
> 手 机:15858232899
> 电子邮件:liyic...@huawei.com
>
> 地址:中国(China)-杭州(Hangzhou)-滨江区江淑路360号华为杭州研发中心Z4# [3-A06]
> ------------------------------
>
>  本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
> is intended only for the person or entity whose address is listed above.
> Any use of the
> information contained herein in any way (including, but not limited to,
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please
> notify the sender by
> phone or email immediately and delete it!
>
>
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to