From 383fce552227c1201df7fc111bcc237833f8e416 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Tue, 12 Nov 2024 14:38:44 -0600 Subject: [PATCH] Fixed the issue with cbo.clean. --- src/cache/cachefsm.sv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cache/cachefsm.sv b/src/cache/cachefsm.sv index e1916b6cb..5f42c7690 100644 --- a/src/cache/cachefsm.sv +++ b/src/cache/cachefsm.sv @@ -155,7 +155,8 @@ module cachefsm import cvw::*; #(parameter cvw_t P, assign SetValid = CurrState == STATE_WRITE_LINE | (CurrState == STATE_ACCESS & CMOZeroNoEviction) | (CurrState == STATE_WRITEBACK & CacheBusAck & CMOpM[3]); - assign ClearValid = (CurrState == STATE_ACCESS & (CMOpM[0] | CMOpM[2])) | + assign ClearValid = (CurrState == STATE_ACCESS & (CMOpM[0] | (CMOpM[2] & ~HitLineDirty))) | + //assign ClearValid = (CurrState == STATE_ACCESS & (CMOpM[0])) | (CurrState == STATE_WRITEBACK & CMOpM[2] & CacheBusAck); assign LRUWriteEn = (((CurrState == STATE_ACCESS & (AnyHit | CMOZeroNoEviction)) | (CurrState == STATE_WRITE_LINE)) & ~FlushStage) |