From 655266a216c5efe3ca305a6d6c415e6734099c39 Mon Sep 17 00:00:00 2001 From: slmnemo Date: Wed, 8 Jun 2022 15:59:15 -0700 Subject: [PATCH] Fixed error where MEMREAD would go into INSTRREAD even when no INSTRREAD was pending --- pipelined/src/ebu/ahblite.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelined/src/ebu/ahblite.sv b/pipelined/src/ebu/ahblite.sv index f98779e00..4cfad7bb8 100644 --- a/pipelined/src/ebu/ahblite.sv +++ b/pipelined/src/ebu/ahblite.sv @@ -115,7 +115,7 @@ module ahblite ( else if (LSUBusWrite) NextBusState = MEMWRITE; else if (IFUBusRead) NextBusState = INSTRREAD; else NextBusState = IDLE; - MEMREAD: if (LSUTransComplete & ~IFUBusRead) NextBusState = INSTRREAD; + MEMREAD: if (LSUTransComplete & IFUBusRead) NextBusState = INSTRREAD; else if (LSUTransComplete) NextBusState = IDLE; else NextBusState = MEMREAD; MEMWRITE: if (LSUTransComplete & IFUBusRead) NextBusState = INSTRREAD;