diff options
author | Tiago Muck <tiago.muck@arm.com> | 2019-02-19 18:01:44 -0600 |
---|---|---|
committer | Tiago Mück <tiago.muck@arm.com> | 2019-05-14 22:01:12 +0000 |
commit | 36e49e2b5bd96d527596707b794fc5f57785c801 (patch) | |
tree | 92fa68b3c63e0c9b2e62a5487783503259558966 /configs/ruby | |
parent | 496d5ed3e1f7dad42b0c2ebe0050d84621be8f99 (diff) | |
download | gem5-36e49e2b5bd96d527596707b794fc5f57785c801.tar.xz |
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 <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18414
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'configs/ruby')
-rw-r--r-- | configs/ruby/MOESI_CMP_directory.py | 9 |
1 files changed, 7 insertions, 2 deletions
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 |