From 08549446ef576c5bee9143a1ef18a2bb7a01e49b Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Mon, 27 Nov 2023 13:13:36 -0600 Subject: [PATCH] Reduced cache fsm complexity. --- src/cache/cachefsm.sv | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cache/cachefsm.sv b/src/cache/cachefsm.sv index 8a11dd735..0e07793d6 100644 --- a/src/cache/cachefsm.sv +++ b/src/cache/cachefsm.sv @@ -130,8 +130,7 @@ module cachefsm import cvw::*; #(parameter cvw_t P, STATE_READ_HOLD: if(Stall) NextState = STATE_READ_HOLD; else NextState = STATE_READY; // exclusion-tag-start: icache case - STATE_WRITEBACK: if (CacheBusAck & (CMOp[1] | CMOp[2])) NextState = STATE_READ_HOLD; - else if(CacheBusAck & ~CMOp[3]) NextState = STATE_FETCH; + STATE_WRITEBACK: if(CacheBusAck & ~CMOp[3]) NextState = STATE_FETCH; else if(CacheBusAck) NextState = STATE_READ_HOLD; else NextState = STATE_WRITEBACK; // eviction needs a delay as the bus fsm does not correctly handle sending the write command at the same time as getting back the bus ack.