changeset 9ca6602c5345 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=9ca6602c5345
description:
        ruby: added token broadcast config params to cmd options

diffstat:

 configs/ruby/MOESI_CMP_token.py |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 5691b9dd51f4 -r 9ca6602c5345 configs/ruby/MOESI_CMP_token.py
--- a/configs/ruby/MOESI_CMP_token.py   Fri Aug 20 11:44:09 2010 -0700
+++ b/configs/ruby/MOESI_CMP_token.py   Fri Aug 20 11:46:11 2010 -0700
@@ -45,7 +45,12 @@
     latency = 15
 
 def define_options(parser):
-    return
+    parser.add_option("--l1-retries", type="int", default=1,
+                      help="Token_CMP: # of l1 retries before going 
persistent")
+    parser.add_option("--timeout-latency", type="int", default=300,
+                      help="Token_CMP: cycles until issuing again");
+    parser.add_option("--disable-dyn-timeouts", action="store_true",
+          help="Token_CMP: disable dyanimc timeouts, use fixed latency 
instead")
 
 def create_system(options, phys_mem, piobus, dma_devices):
     
@@ -99,7 +104,13 @@
                                       L1DcacheMemory = l1d_cache,
                                       l2_select_num_bits = \
                                         math.log(options.num_l2caches, 2),
-                                      N_tokens = n_tokens)
+                                      N_tokens = n_tokens,
+                                      retry_threshold = options.l1_retries,
+                                      fixed_timeout_latency = \
+                                        options.timeout_latency,
+                                      dynamic_timeout_enabled = \
+                                        not options.disable_dyn_timeouts)
+
         #
         # Add controllers and sequencers to the appropriate lists
         #
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to