From 3b26d5f86c9a427e6ab9b9fa688b76ab2034a0d2 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Tue, 7 May 2019 16:45:42 +0800 Subject: set cache latency Change-Id: I4ab87792f2caa93a4553c094b35b1454191a1c44 --- 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