summaryrefslogtreecommitdiff
path: root/tests/simple-timing.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple-timing.py')
-rw-r--r--tests/simple-timing.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/simple-timing.py b/tests/simple-timing.py
new file mode 100644
index 000000000..b3d11e069
--- /dev/null
+++ b/tests/simple-timing.py
@@ -0,0 +1,23 @@
+import m5
+from m5.objects import *
+m5.AddToPath('../configs/common')
+from SEConfig import *
+
+class MyCache(BaseCache):
+ assoc = 2
+ block_size = 64
+ latency = 1
+ mshrs = 10
+ tgts_per_mshr = 5
+
+cpu = TimingSimpleCPU()
+cpu.addTwoLevelCacheHierarchy(MyCache(size = '128kB'), MyCache(size = '256kB'),
+ MyCache(size = '2MB'))
+
+system = System(cpu = cpu,
+ physmem = PhysicalMemory(),
+ membus = Bus())
+system.physmem.port = system.membus.port
+cpu.connectMemPorts(system.membus)
+
+root = Root(system = system)