Hi Mahshid,
You can use the "add_option" to add any desired options in the command line. To do this, you just add the line below (or something like it) at the beginning of your fs.py. parser.add_option("-rob", "--robsize", type="int", default=128, help="specify the rob size"); Then, after all options (including the default options and personalized options) have been parsed (in other words, the variable 'options' is initialized), you can simply leverage the option below. options.robsize After this, you can use the option in the command line, like gem5.opt configs/example/se.py --robsize=64 .. Note that if your option includes dash "-", it will be converted into underscore "_". For example, "--rob-size" produces representative "options.rob_size". Also, it is pretty helpful if you look at the Options.py to see how the default options are added into the system. The file is in configs/common/. -Tao From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On Behalf Of Mahshid Sedghi Sent: Tuesday, July 16, 2013 4:35 PM To: gem5 users mailing list Subject: [gem5-users] (no subject) Hello, I want to introduce a new option to the simulation script to define the ROB size, since I am doing experiments with different ROB sizes and would like to skip the procedure of rebuilding the gem5 again and again for different ROB sizes. Basically, I need to do a similar thing as the thread below: http://www.mail-archive.com/gem5-users@gem5.org/msg00480.html I am not still sure how to relate the option with the cpu parameters. I'd appreciate it if someone can give me some hints. Thanks, Mahshid
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users