Merge branch 'dev/cleanup' of github.com:whutddk/RISCV-MAC-SWICH into dev/cleanup

This commit is contained in:
RuigeLee
2026-02-09 16:32:12 +08:00

View File

@@ -701,10 +701,14 @@ task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength, i
`else `else
txBuf[2] <= (scmd | slength[12:8]); txBuf[2] <= (scmd | slength[12:8]);
txBuf[3] <= slength[7:0]; txBuf[3] <= slength[7:0];
if (sidx >=(`ALL_DEV_NUM * 3)) begin if (sidx < (`ALL_DEV_NUM * 3)) begin
length <= slength + 4 + 1;
end else begin
length <= slength + 4; length <= slength + 4;
end else if (sidx < (`ALL_DEV_NUM * 4)) begin
length <= slength + 4 + 1;
end else if (sidx < (`ALL_DEV_NUM * 5)) begin
length <= slength + 4;
end else begin
length <= slength + 4 + 1;
end end
`endif `endif