From e881bd31203a04a0c6e84b57dafd1461533a0b4f Mon Sep 17 00:00:00 2001 From: Jacob Pease Date: Fri, 1 Nov 2024 17:04:07 -0500 Subject: [PATCH] Changed the condition for TransmitStart fsm to avoid edge condition. --- src/uncore/spi_apb.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uncore/spi_apb.sv b/src/uncore/spi_apb.sv index 5d3352154..a15068f10 100644 --- a/src/uncore/spi_apb.sv +++ b/src/uncore/spi_apb.sv @@ -273,7 +273,7 @@ module spi_apb import cvw::*; #(parameter cvw_t P) ( READY: if (~TransmitFIFOReadEmpty & ~Transmitting) NextState = START; else NextState = READY; START: NextState = WAIT; - WAIT: if (TransmitFIFOReadEmpty & ~Transmitting & ~TransmitRegLoaded) NextState = READY; + WAIT: if (/*TransmitFIFOReadEmpty &*/ ~Transmitting & ~TransmitRegLoaded) NextState = READY; else NextState = WAIT; default: NextState = READY; endcase