ruby: add parameter to config to set # of l2 banks
authorDerek Hower <drh5@cs.wisc.edu>
Fri, 16 Oct 2009 21:31:16 +0000 (16:31 -0500)
committerDerek Hower <drh5@cs.wisc.edu>
Fri, 16 Oct 2009 21:31:16 +0000 (16:31 -0500)
src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb

index c3c92bd9de96c46a364fa9433f7ab989df8680a2..863c17e81e7fe4419b361f2603bdb62f71d66a9c 100644 (file)
@@ -12,13 +12,13 @@ RubySystem.reset
 # default values
 
 num_cores = 2
-l1_icache_size_kb = 32
+l1_icache_size_kb = 64
 l1_icache_assoc = 8
 l1_icache_latency = 1
 l1_dcache_size_kb = 32
 l1_dcache_assoc = 8
 l1_dcache_latency = 1
-l2_cache_size_kb = 2048 # total size (sum of all banks)
+l2_cache_size_kb = 8192 # total size (sum of all banks)
 l2_cache_assoc = 16
 l2_cache_latency = 12
 num_l2_banks = num_cores
@@ -35,6 +35,9 @@ for i in 0..$*.size-1 do
   if $*[i] == "-c" or $*[i] == "--protocol"
     i += 1
     protocol = $*[i]
+  elsif $*[i] == "-B"
+    num_l2_banks = $*[i+1].to_i
+    i = i+1
   elsif $*[i] == "-m"
     num_memories = $*[i+1].to_i
     i = i+1