Thank you for your help. Now the DRAMsim3 is getting picked up. Now we are facing an address range intersection error. Th error is displayed below:
build/ARM/gem5.opt configs/example/se.py --mem-type=DRAMsim3 --cmd=tests/test-progs/hello/bin/arm/linux/hello command line: build/ARM/gem5.opt configs/example/se.py --mem-type=DRAMsim3 --cmd=tests/test-progs/hello/bin/arm/linux/hello warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` Global frequency set at 1000000000000 ticks per second fatal: fatal condition addrMap.insert(m->getAddrRange(), m) == addrMap.end() occurred: Memory address range for system.mem_ctrls.dram is overlapping Memory Usage: 104380 KBytes The above error highlighted is spotted in gem5/src/mem/physical.cc<http://physical.cc>. 1.We tried changing the address range by using --mem-size= 8192MB,2GB . 2.Changes are made in configs/common/MemConfig.py. if opt_mem_type== "DRAMsim3": mem_ctrl= m5.objects.DRAMsim3() 3.Changes are made in src/mem/MemCtrl.py.(ini_path points to the ini file describing the model you want to simulate, you can find them in ext/dramsim3/DRAMsim3/configs) class DS3MemCtrl(DRAMsim3): def __init__(self, ini_path): super(DS3MemCtrl, self).__init__() self.configFile = ini_path But the issue is not being resolved. So can you please point us to any resources or provide directions on how to avoid the memory address range overlap. Thanks and Regards, Monica Bhargavi Kodali Ipshita Aggarwal Aravind Neelakantan On Mar 24, 2021, at 9:31 PM, Mahyar Samani <msam...@ucdavis.edu<mailto:msam...@ucdavis.edu>> wrote: [External Email] Hello Monica, Aravind, and Ipshita Currently the script in configs/common/MemConfig.py does not work with DRAMSim3 models. You can create a DRAMSim3 controller using the following piece of code (ini_path should point the ini file for the DRAMSim3 model you would like to use): class DS3MemCtrl(DRAMsim3): def __init__(self, ini_path): super(DS3MemCtrl, self).__init__() self.configFile = ini_path You can find all these ini files in the ext/dramsim3/DRAMsim3/configs/ Also, I will add support for DRAMSim3 models in MemConfig.py soon. Please let me know if you have any questions and if I could be of further assistance. Best Regards, On Fri, Mar 19, 2021 at 1:57 PM Kodali, Monica Bhargavi via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: Dear gem5 support community, Our team is trying to integrate DRAMsim3 with the latest version of Gem5 (https://github.com/gem5/gem5<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_gem5_gem5&d=DwMFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=t_EfxZZf5_p7aa-3fmQ3iw&m=w31pbsf0NjSusmMymlxhhQdQQBIKO_S6WI9SjJkacfs&s=4UBINNCsoRmcaCegPeCwce2iMfdxMXekEmem3pM1QIA&e=>). We were able to successfully build Gem5 with DRAMsim3 by following the steps in the README file under ext/dramsim3, but on executing any test script (such as se.py or low_power_sweep.py) with the option --mem-type=DRAMsim3, we get the following 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/se.py", line 275, in <module> MemConfig.config_mem(options, system) File "/home/UFAD/ipshita.aggarwal/packages/gem5/configs/common/MemConfig.py", line 257, in config_mem mem_ctrl.dram = dram_intf File "build/ARM/python/m5/SimObject.py", line 1337, in __setattr__ hr_value = value File "build/ARM/python/m5/params.py", line 215, in convert if isNullPointer(value) and isSimObjectClass(self.ptype): TypeError: __init__() takes 1 positional argument but 2 were given Error setting param MemCtrl.dram to <orphan DRAMsim3> Could you point us to any resources or provide directions on how the DRAMsim3 memory option can be used with the latest version of Gem5 such that any ini file configured in src/mem/DRAMsim3.py is picked when the option --mem-type=DRAMsim3 is used. Thanks and Regards, Monica Bhargavi Kodali. Aravind Neelakantan. Ipshita Aggarwal. _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s -- Mahyar Samani (he/him/his) Electrical and Computer Engineering Department Research Assistant at DArchR<https://urldefense.proofpoint.com/v2/url?u=https-3A__arch.cs.ucdavis.edu_&d=DwMFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=t_EfxZZf5_p7aa-3fmQ3iw&m=w31pbsf0NjSusmMymlxhhQdQQBIKO_S6WI9SjJkacfs&s=dcYvIoHuyyE_Uq5NW8Ge8W34Z1sUTehXLbe2jq0_8ls&e=> (2235 Kemper Hall) Secretary ECE-GSA Vice President Iranian Student Association at UC Davis University of California, Davis
_______________________________________________ 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