mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 13:04:28 +00:00
Fix SPI state skipping sck-cs delay when at end of transmission
This commit is contained in:
parent
d899a84a01
commit
927398a017
@ -263,8 +263,9 @@ module spi_controller (
|
||||
TRANSMIT: begin // TRANSMIT case --------------------------------
|
||||
case(CSMode)
|
||||
AUTOMODE: begin
|
||||
if (EndTransmission) NextState = INACTIVE;
|
||||
else if (EndOfFrame) NextState = SCKCS;
|
||||
if (EndTransmission & ~HasSCKCS) NextState = INACTIVE;
|
||||
else if (EndOfFrame & HasSCKCS) NextState = SCKCS;
|
||||
else if (EndOfFrame & ~HasSCKCS) NextState = INTERCS;
|
||||
else NextState = TRANSMIT;
|
||||
end
|
||||
HOLDMODE: begin
|
||||
|
Loading…
Reference in New Issue
Block a user