mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Removed unnecessary separate if statement.
This commit is contained in:
parent
2ee4525ba9
commit
dda3cd6bea
@ -174,16 +174,12 @@ module spi_apb import cvw::*; #(parameter cvw_t P) (
|
|||||||
SPI_CSMODE: ChipSelectMode <= Din[1:0];
|
SPI_CSMODE: ChipSelectMode <= Din[1:0];
|
||||||
SPI_DELAY0: Delay0 <= {Din[23:16], Din[7:0]};
|
SPI_DELAY0: Delay0 <= {Din[23:16], Din[7:0]};
|
||||||
SPI_DELAY1: Delay1 <= {Din[23:16], Din[7:0]};
|
SPI_DELAY1: Delay1 <= {Din[23:16], Din[7:0]};
|
||||||
SPI_FMT: Format <= {Din[19:16], Din[2]};
|
SPI_FMT: Format <= {Din[19:16], Din[2]};
|
||||||
|
SPI_TXDATA: if (~TransmitFIFOFull) TransmitData[7:0] <= Din[7:0];
|
||||||
SPI_TXMARK: TransmitWatermark <= Din[2:0];
|
SPI_TXMARK: TransmitWatermark <= Din[2:0];
|
||||||
SPI_RXMARK: ReceiveWatermark <= Din[2:0];
|
SPI_RXMARK: ReceiveWatermark <= Din[2:0];
|
||||||
SPI_IE: InterruptEnable <= Din[1:0];
|
SPI_IE: InterruptEnable <= Din[1:0];
|
||||||
endcase
|
endcase
|
||||||
|
|
||||||
if (Memwrite)
|
|
||||||
case(Entry)
|
|
||||||
SPI_TXDATA: if (~TransmitFIFOFull) TransmitData[7:0] <= Din[7:0];
|
|
||||||
endcase
|
|
||||||
/* verilator lint_off CASEINCOMPLETE */
|
/* verilator lint_off CASEINCOMPLETE */
|
||||||
|
|
||||||
// According to FU540 spec: Once interrupt is pending, it will remain set until number
|
// According to FU540 spec: Once interrupt is pending, it will remain set until number
|
||||||
|
Loading…
Reference in New Issue
Block a user