changeset 0bf5c598c9c5 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=0bf5c598c9c5
description:
ruby: configuration updates
diffstat:
3 files changed, 8 insertions(+), 23 deletions(-)
src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb | 4 ++--
src/mem/ruby/config/cfg.rb | 10 ++--------
src/mem/ruby/config/defaults.rb | 17 ++++-------------
diffs (118 lines):
diff -r 829892ec644c -r 0bf5c598c9c5
src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb
--- a/src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb Mon Sep 14 17:09:26
2009 -0500
+++ b/src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb Mon Sep 14 17:11:02
2009 -0500
@@ -27,7 +27,7 @@
num_dma = 1
#default protocol
-protocol = "MESI_CMP_directory"
+protocol = ""#"MESI_CMP_directory"
# check for overrides
@@ -57,7 +57,7 @@
net_ports = Array.new
iface_ports = Array.new
-assert((protocol == "MESI_CMP_directory" or protocol ==
"MOESI_CMP_directory"), __FILE__+" cannot be used with protocol "+protocol);
+assert((protocol == "MESI_CMP_directory" or protocol ==
"MOESI_CMP_directory"), __FILE__+" cannot be used with protocol #{protocol}");
require protocol+".rb"
diff -r 829892ec644c -r 0bf5c598c9c5 src/mem/ruby/config/cfg.rb
--- a/src/mem/ruby/config/cfg.rb Mon Sep 14 17:09:26 2009 -0500
+++ b/src/mem/ruby/config/cfg.rb Mon Sep 14 17:11:02 2009 -0500
@@ -1,7 +1,7 @@
#!/usr/bin/ruby
-class AssertionFailure < RuntimeError
-end
+root = File.dirname(File.expand_path(__FILE__))
+require root+'/assert.rb'
class Boolean
def self.is_a?(obj)
@@ -9,12 +9,6 @@
end
end
-def assert(condition,message)
- unless condition
- raise AssertionFailure.new(message), "\n\nAssertion failed: \n\n
#{message}\n\n"
- end
-end
-
class LibRubyObject
@@all_objs = Array.new
attr_reader :obj_name
diff -r 829892ec644c -r 0bf5c598c9c5 src/mem/ruby/config/defaults.rb
--- a/src/mem/ruby/config/defaults.rb Mon Sep 14 17:09:26 2009 -0500
+++ b/src/mem/ruby/config/defaults.rb Mon Sep 14 17:11:02 2009 -0500
@@ -1,7 +1,5 @@
#!/usr/bin/ruby
-
-
class NetPort < LibRubyObject
# number of transitions a SLICC state machine can transition per
# cycle
@@ -11,7 +9,6 @@
# SLICC Controllers. When 0, infinite buffering is used.
default_param :buffer_size, Integer, 32
- # added by SS for TBE
default_param :number_of_TBEs, Integer, 256
default_param :recycle_latency, Integer, 10
@@ -39,10 +36,10 @@
default_param :protocol_trace, Boolean, false
# a string for filtering debugging output (for all g_debug vars see Debug.h)
- default_param :filter_string, String, ""
+ default_param :filter_string, String, "none"
- # filters debugging messages based on priority (low, med, high)
- default_param :verbosity_string, String, ""
+ # filters debugging messages based on priority (none, low, med, high)
+ default_param :verbosity_string, String, "none"
# filters debugging messages based on a ruby time
default_param :start_time, Integer, 1
@@ -65,7 +62,7 @@
# indicates whether the topology config will be displayed in the
# stats file
- default_param :print_config, Boolean, true
+ default_param :print_config, Boolean, false
end
class Network < LibRubyObject
@@ -94,20 +91,15 @@
default_param :using_network_testing, Boolean, false
end
-
-
-#added by SS
class Tracer < LibRubyObject
default_param :warmup_length, Integer, 1000000
end
-#added by SS
class Profiler < LibRubyObject
default_param :hot_lines, Boolean, false
default_param :all_instructions, Boolean, false
end
-#added by SS
class MemoryControl < LibRubyObject
default_param :mem_bus_cycle_multiplier, Integer, 10
@@ -230,7 +222,6 @@
default_param :profiler, Profiler, Profiler.new("profiler0")
end
-#added by SS
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev