changeset 9d94b886c61b in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=9d94b886c61b description: Ruby: Add option for random seed to Ruby.py This patch adds an option to the script Ruby.py for setting the parameter m_random_seed used for randomizing delays in the memory system. The option can be specified as "--random_seed <seed value>".
diffstat: configs/ruby/Ruby.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diffs (22 lines): diff -r 2844d69d03e2 -r 9d94b886c61b configs/ruby/Ruby.py --- a/configs/ruby/Ruby.py Thu Dec 30 12:51:04 2010 -0500 +++ b/configs/ruby/Ruby.py Mon Jan 03 12:40:31 2011 -0600 @@ -56,7 +56,10 @@ parser.add_option("--recycle-latency", type="int", default=10, help="Recycle latency for ruby controller input buffers") - + + parser.add_option("--random_seed", type="int", default=1234, + help="Used for seeding the random number generator") + protocol = buildEnv['PROTOCOL'] exec "import %s" % protocol eval("%s.define_options(parser)" % protocol) @@ -135,5 +138,6 @@ mem_size = total_mem_size) ruby.cpu_ruby_ports = cpu_sequencers + ruby.random_seed = options.random_seed return ruby _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev