summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2007-05-22 06:22:27 -0700
committerSteve Reinhardt <stever@eecs.umich.edu>2007-05-22 06:22:27 -0700
commit9f1c104ccd835ce390d9e9fd24e59a6ea626ed17 (patch)
treec86c68792a25d2a3c47fbece52cd1bc7b3905335
parent41241799ae1f918b6eb9c0d0b8abdf2ceb5b972a (diff)
downloadgem5-9f1c104ccd835ce390d9e9fd24e59a6ea626ed17.tar.xz
memtest.py:
Make clocks more reasonable. Fix bug in sense of options.timing flag. configs/example/memtest.py: Fix bug in sense of options.timing flag. configs/example/memtest.py: Make clocks more reasonable. --HG-- extra : convert_revision : 3715697988c56e92a4da129b42026d0623f5e85e
-rw-r--r--configs/example/memtest.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/configs/example/memtest.py b/configs/example/memtest.py
index 5300c6fd9..9fd943aaa 100644
--- a/configs/example/memtest.py
+++ b/configs/example/memtest.py
@@ -75,7 +75,7 @@ if options.numtesters > 8:
print "Error: NUmber of testers limited to 8 because of false sharing"
sys,exit(1)
-cpus = [ MemTest(atomic=options.timing, max_loads=options.maxloads,
+cpus = [ MemTest(atomic=not options.timing, max_loads=options.maxloads,
percent_functional=50, percent_uncacheable=10,
progress_interval=1000)
for i in xrange(options.numtesters) ]
@@ -83,11 +83,11 @@ cpus = [ MemTest(atomic=options.timing, max_loads=options.maxloads,
# system simulated
system = System(cpu = cpus, funcmem = PhysicalMemory(),
physmem = PhysicalMemory(latency = "50ps"),
- membus = Bus(clock="500GHz", width=16))
+ membus = Bus(clock="500MHz", width=16))
# l2cache & bus
if options.caches:
- system.toL2Bus = Bus(clock="500GHz", width=16)
+ system.toL2Bus = Bus(clock="500MHz", width=16)
system.l2c = L2(size='64kB', assoc=8)
system.l2c.cpu_side = system.toL2Bus.port
@@ -118,6 +118,9 @@ if options.timing:
else:
root.system.mem_mode = 'atomic'
+# Not much point in this being higher than the L1 latency
+m5.ticks.setGlobalFrequency('1ns')
+
# instantiate configuration
m5.instantiate(root)