Fixed error where MEMREAD would go into INSTRREAD even when no INSTRREAD was pending

This commit is contained in:
slmnemo 2022-06-08 15:59:15 -07:00
parent a64e65e54c
commit 655266a216

View File

@ -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;