Hi Yang,
Much like the other objects in gem5, if you change the defaults in the src tree
you have to rebuild (there are some tricks around this, but please see the wiki
if you want more details).
That said, if you create an instance in a config file, say
configs/examples/my_fs.py and explicitly modify the parameter, you don’t have
to recompile. In the config script you can also do other “tricks” such as
subclassing an existing instance of the memory and change some parameters
before you instantiate it.
In short, I’d suggest to leave the SimpleDRAM.py file unchanged, and either
modify the parameter when the controller is instantiated, or declare your own
subclass and then instantiate that.
Andreas
From: Yang Zhang <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list
<[email protected]<mailto:[email protected]>>
Date: Wednesday, 5 February 2014 22:08
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: [gem5-users] Change DRAM parameters
I want to change the DRAM parameters, such as tRAS in simpleDRAM.py.
But when i change it, should i re-build gem5?
It looks i cannot set such parameters in config file.
Thanks,
-Yang
-- IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient,
please notify the sender immediately and do not disclose the contents to any
other person, use it for any purpose, or store or copy the information in any
medium. Thank you.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users