summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-05-07 16:45:42 +0800
committerIru Cai <mytbk920423@gmail.com>2019-05-31 16:05:50 +0800
commit37c22a55794fd442d783ef4ea161bf87e74227f5 (patch)
tree9a116491a90e6366adc3d494c2683c65915ff7aa
parentfe63e05867125d3899788bc4c72e677d195ae264 (diff)
downloadgem5-37c22a55794fd442d783ef4ea161bf87e74227f5.tar.xz
set cache latency
According to the configuration of the paper, L1 latency is 1 and L2 is 8 Change-Id: I1529e7336c033f56dcf1c132309da29b9687c7e3
-rw-r--r--configs/ruby/MESI_Two_Level.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/configs/ruby/MESI_Two_Level.py b/configs/ruby/MESI_Two_Level.py
index 65d711e5e..44118be2d 100644
--- a/configs/ruby/MESI_Two_Level.py
+++ b/configs/ruby/MESI_Two_Level.py
@@ -37,8 +37,13 @@ from Ruby import send_evicts
#
# Declare caches used by the protocol
#
-class L1Cache(RubyCache): pass
-class L2Cache(RubyCache): pass
+class L1Cache(RubyCache):
+ tagAccessLatency = 1
+ dataAccessLatency = 1
+
+class L2Cache(RubyCache):
+ tagAccessLatency = 8
+ dataAccessLatency = 8
def define_options(parser):
return