From 438451ee02d27d3ffac58fcd5f3635a9f0136631 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Fri, 15 Dec 2023 11:55:54 -0600 Subject: [PATCH] Fixed the AMO hazard. --- src/ieu/controller.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ieu/controller.sv b/src/ieu/controller.sv index d7c89ca47..4fc3ac9e7 100644 --- a/src/ieu/controller.sv +++ b/src/ieu/controller.sv @@ -431,6 +431,6 @@ module controller import cvw::*; #(parameter cvw_t P) ( // *** RT: Check that atomic after atomic works correctly. //assign StoreStallD = ((|CMOpE)) & ((|CMOpD)); logic AMOHazard; - assign AMOHazard = &MemRWM & MemRWE[1]; + assign AMOHazard = &MemRWE & MemRWD[1]; assign StoreStallD = ((|CMOpE) & (|CMOpD)) | AMOHazard; endmodule