From 37c22a55794fd442d783ef4ea161bf87e74227f5 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Tue, 7 May 2019 16:45:42 +0800 Subject: set cache latency According to the configuration of the paper, L1 latency is 1 and L2 is 8 Change-Id: I1529e7336c033f56dcf1c132309da29b9687c7e3 --- configs/ruby/MESI_Two_Level.py | 9 +++++++-- 1 file 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 -- cgit v1.2.3