修正spi协议开关的bug

This commit is contained in:
2026-02-09 15:51:11 +08:00
parent 40f559024f
commit d3e2f2969c

View File

@@ -709,7 +709,7 @@ task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength, i
`endif `endif
idx <= sidx; idx <= sidx;
spi_1to4 = (idx < (`ALL_DEV_NUM * 4)); spi_1to4 = (sidx < (`ALL_DEV_NUM * 4));
#5 #5
@(negedge sck) @(negedge sck)