Re: [gem5-users] Parsing options in hmctest.py

2017-02-10 Thread Jason Lowe-Power
Hi Muzamil, I think you should try familiarizing yourself with Python option parsers. For instance https://docs.python.org/2/library/optparse.html. With this, you can specify and act on command line parameters. Then, it is up to you to use those command line options in your Python code to change

Re: [gem5-users] Parsing options in hmctest.py

2017-02-09 Thread Muzamil Rafique
Hi Jason, Thanks for your reply. I followed your instruction and to amaze me, most of the options available didn't work. I checked .config file and assigning different options in CL won't change corresponding options in .config file. Also I was not able to find the python file where these "__init_

Re: [gem5-users] Parsing options in hmctest.py

2017-02-09 Thread Jason Lowe-Power
Hi Muzamil, You have to also change the Python code which sets this parameter on the DRAM controller. You can also use python print statements to make sure things look as they should. Finally, you can check the config.ini file to make sure these changes propagated. Jason On Wed, Feb 8, 2017 at 7

[gem5-users] Parsing options in hmctest.py

2017-02-08 Thread Muzamil Rafique
Hi All, I was trying to add "page policy" as an option in hmctest.py file for simulation purpose. I added following code: parser.add_option("--page_policy", type = "int", default = 2, help = "0:open; 1:open_adaptive; 2: close; 3:close_adaptive") How would I verify if it worked o