From: Timothy Hayes Date: Fri, 18 Oct 2019 15:43:00 +0000 (+0100) Subject: mem-ruby: MESI_Three_Level fix L1 in_port ranks X-Git-Tag: v20.0.0.0~289 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8430889fa765477e0d477dc849aec829638e147e;p=gem5.git mem-ruby: MESI_Three_Level fix L1 in_port ranks The L1 cache contains three in_port networks with ranks 0-2-3. This is a benign typo, however, this patch corrects the ranks to 0-1-2 for clarity. Change-Id: Id9bb63dae310af0f962345a114b0ccb8bddcf696 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24257 Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com> Tested-by: kokoro Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini --- diff --git a/src/mem/ruby/protocol/MESI_Three_Level-L1cache.sm b/src/mem/ruby/protocol/MESI_Three_Level-L1cache.sm index 0edeed8fd..a2f2d807b 100644 --- a/src/mem/ruby/protocol/MESI_Three_Level-L1cache.sm +++ b/src/mem/ruby/protocol/MESI_Three_Level-L1cache.sm @@ -277,7 +277,7 @@ machine(MachineType:L1Cache, "MESI Directory L1 Cache CMP") out_port(bufferToL0_out, CoherenceMsg, bufferToL0); // Response From the L2 Cache to this L1 cache - in_port(responseNetwork_in, ResponseMsg, responseFromL2, rank = 3) { + in_port(responseNetwork_in, ResponseMsg, responseFromL2, rank = 2) { if (responseNetwork_in.isReady(clockEdge())) { peek(responseNetwork_in, ResponseMsg) { assert(in_msg.Destination.isElement(machineID)); @@ -315,7 +315,7 @@ machine(MachineType:L1Cache, "MESI Directory L1 Cache CMP") } // Request to this L1 cache from the shared L2 - in_port(requestNetwork_in, RequestMsg, requestFromL2, rank = 2) { + in_port(requestNetwork_in, RequestMsg, requestFromL2, rank = 1) { if(requestNetwork_in.isReady(clockEdge())) { peek(requestNetwork_in, RequestMsg) { assert(in_msg.Destination.isElement(machineID));