修改代码的细节,经过测试,接口0x0不通过,0x1通过;0x2通过;0x3不通过

This commit is contained in:
2025-09-19 00:47:29 +08:00
parent 8112262d09
commit d1badd2363
2 changed files with 6 additions and 3 deletions

View File

@@ -641,11 +641,12 @@ task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength,in
if (isAQspi) begin
txBuf[2] <= (scmd | slength[12:8]);
txBuf[3] <= slength[7:0];
length <= slength + 4;
end else begin
txBuf[2] <= scmd;
length <= slength + 3;
end
length <= slength + 3;
idx <= sidx;
#5
@@ -848,7 +849,7 @@ end
`define INTERFACE_IDX 0 //internal spi
`define INTERFACE_IDX 0 //(`ALL_DEV_NUM * 2)//internal spi
`define ARRAY_IDX_OFF 3
`define IF_IDX(idx) ((`INTERFACE_IDX)+(idx))
`define IF_IQSPI(idx) ((idx))
@@ -951,9 +952,11 @@ task wait_comm_finished(input [16:0] dev_idx);
txBuf[2] <= (`SPI_READ | 8'h0);
txBuf[3] <= 8'h04;
length = 8'h08;
//$display("using AQspi");
end else begin
txBuf[2] <= `SPI_READ;
length = 8'h07;
//$display("using iqspi");
end

View File

@@ -117,7 +117,7 @@ if __name__ == '__main__':
add_tc_2_runlist(sync.tc6())
add_tc_2_runlist(sync.tc7())
#'''
add_tc_2_runlist(sync.tc8())
#add_tc_2_runlist(sync.tc8())
'''
add_tc_2_runlist(ebmmu.tc1())