修改测试时钟偏差的仿真测试思路
This commit is contained in:
@@ -540,7 +540,6 @@ end
|
||||
//DEV_NUM
|
||||
//ALL_DEV_NUM
|
||||
wire isQspi = (idx >= 0 && idx <= (`ALL_DEV_NUM - 1)) || idx >= (`ALL_DEV_NUM * 2);
|
||||
wire isAQspi = (idx >= (`ALL_DEV_NUM * 3));
|
||||
wire [11:0] nextByteCnt = byteCnt + 1;
|
||||
|
||||
//输出
|
||||
@@ -608,7 +607,7 @@ end
|
||||
|
||||
//mst slv0~slv3的 内部qspi调用即设置
|
||||
//sidx为0~4;外部spi为5~9,外部qspi为10~15
|
||||
task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength,input [16:0] sidx );
|
||||
task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength, input [16:0] sidx );
|
||||
begin
|
||||
txBuf[0] <= saddress[15:8];
|
||||
txBuf[1] <= saddress[7:0];
|
||||
@@ -660,7 +659,6 @@ task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength,in
|
||||
)
|
||||
) begin
|
||||
|
||||
|
||||
for (integer _k = 0; _k < 4; _k++) begin
|
||||
if (scmd == 0) begin
|
||||
$fwrite(spidata_file, "%02h ", txBuf[_k + _pos]);
|
||||
|
||||
Reference in New Issue
Block a user