Hi Anthony, Since gem5 version 20.1, the mem_ctrl API has changed, you can see the changelog here <https://www.gem5.org/project/2020/10/01/gem5-20-1.html>. The tutorial is a bit out of date about this. The Ayush's solution is a correct one.
Best regards, Duc Anh Vào CN, 6 thg 12, 2020 vào lúc 22:46 Ayush Kumar Varshney via gem5-users < [email protected]> đã viết: > I think use it with a controller, > system.mem_ctrl = MemCtrl() > system.mem_ctrl.dram = DDR3_1600_8x8() > system.mem_ctrl.dram.range = system.mem_ranges[0] > system.mem_ctrl.port = system.membus.master > > It works for me! > > Regards > Ayush > > On Sun, 6 Dec 2020 at 21:34, anthonyabeo--- via gem5-users < > [email protected]> wrote: > >> So after cloning and building X86/gem5.opt, I started following the >> "Creating a simple configuration script" tutorial. I get the error when I >> run "build/X86/gem5.opt configs/tutorial/simple.py" >> >> gem5 Simulator System. http://gem5.org >> gem5 is copyrighted software; use the --copyright option for details. >> >> gem5 version 20.1.0.2 >> gem5 compiled Dec 4 2020 14:31:20 >> gem5 started Dec 4 2020 14:32:24 >> gem5 executing on ubuntu-bionic, pid 9028 >> command line: ./gem5/build/X86/gem5.opt simple.py >> >> Here's the output log. >> >> 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.master is deprecated. `master` is now called `mem_side_ports` >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> warn: interrupts.int_master is deprecated. `int_master` is now called >> `int_requestor` >> warn: membus.master is deprecated. `master` is now called `mem_side_ports` >> warn: interrupts.int_slave is deprecated. `int_slave` is now called >> `int_responder` >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> warn: membus.master is deprecated. `master` is now called `mem_side_ports` >> Traceback (most recent call last): >> File "<string>", line 1, in <module> >> File "build/X86/python/m5/main.py", line 457, in main >> File "simple.py", line 36, in <module> >> system.mem_ctrl = DDR3_1600_8x8() >> File "build/X86/python/m5/SimObject.py", line 1363, in __setattr__ >> AttributeError: Class DDR3_1600_8x8 has no parameter port >> _______________________________________________ >> gem5-users mailing list -- [email protected] >> To unsubscribe send an email to [email protected] >> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s >> > _______________________________________________ > gem5-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
