From 36e49e2b5bd96d527596707b794fc5f57785c801 Mon Sep 17 00:00:00 2001 From: Tiago Muck Date: Tue, 19 Feb 2019 18:01:44 -0600 Subject: mem-ruby: Cache latencies for MOESI_CMP_dir Modified both L1 and L2 controllers to take into account the cache latency parameters. Default values in the configuration script updated as well. Change-Id: I72bb8dd29ee0b02da06e1addf13b266fe4d1e979 Signed-off-by: Tiago Muck Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18414 Tested-by: kokoro Reviewed-by: Nikos Nikoleris Maintainer: Jason Lowe-Power --- configs/ruby/MOESI_CMP_directory.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'configs') diff --git a/configs/ruby/MOESI_CMP_directory.py b/configs/ruby/MOESI_CMP_directory.py index e3385fa77..18e9ef6c8 100644 --- a/configs/ruby/MOESI_CMP_directory.py +++ b/configs/ruby/MOESI_CMP_directory.py @@ -49,8 +49,13 @@ from Ruby import send_evicts # # Declare caches used by the protocol # -class L1Cache(RubyCache): pass -class L2Cache(RubyCache): pass +class L1Cache(RubyCache): + dataAccessLatency = 1 + tagAccessLatency = 1 + +class L2Cache(RubyCache): + dataAccessLatency = 20 + tagAccessLatency = 20 def define_options(parser): return -- cgit v1.2.3