Fixed failed regression state by only enabling counting when doing cached operations

This commit is contained in:
slmnemo 2022-06-10 20:00:09 -07:00
parent 63ed390c90
commit b7357efc6b

View File

@ -99,7 +99,7 @@ module busfsm #(parameter integer WordCountThreshold,
assign PreCntEn = (BusCurrState == STATE_BUS_FETCH) | (BusCurrState == STATE_BUS_WRITE);
assign WordCountFlag = (WordCountDelayed == WordCountThreshold[LOGWPL-1:0]);
assign CntEn = (PreCntEn & LSUBusAck | (LSUBusInit)) & ~WordCountFlag;
assign CntEn = (PreCntEn & LSUBusAck | (LSUBusInit)) & ~WordCountFlag & ~UnCachedRW;
assign UnCachedAccess = ~CACHE_ENABLED | ~CacheableM;