diff --git a/tb/shinTest/ShinTopSpiTb.v b/tb/shinTest/ShinTopSpiTb.v index 5210667..5c55184 100644 --- a/tb/shinTest/ShinTopSpiTb.v +++ b/tb/shinTest/ShinTopSpiTb.v @@ -871,6 +871,7 @@ task wait_comm_finished(input [16:0] dev_idx); st = $realtime; is_run = 1; +`ifdef enable_wait_clear_int txBuf[0] = 8'h00; txBuf[1] = 8'h78; txBuf[2] = `SPI_WRITE; @@ -892,7 +893,7 @@ task wait_comm_finished(input [16:0] dev_idx); begin end - +`endif while (is_run == 1) begin txBuf[0] = 8'h00; diff --git a/tb/shinTest/testcase/base.py b/tb/shinTest/testcase/base.py index 2ec7526..8d2447a 100644 --- a/tb/shinTest/testcase/base.py +++ b/tb/shinTest/testcase/base.py @@ -1884,12 +1884,17 @@ def tc27(): sm_idx = 0 - genPkt.addBeforeExc(genTcStartFrameCode(gen_file_def, tc_des)) + genPkt.addBeforeExc(genTcStartFrameCode(gen_file_def, tc_des) + +genMessageCode("--清除中断") + +genIFRwDataCode(0, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff]) + ) genPkt.addAfterExc(genWriteTransLenCode(gen_file_def, sm_idx) +genWriteTransPktCode(gen_file_def, sm_idx) +genTrgTransPktCode(gen_file_def, sm_idx) +genReadAckPktCode(gen_file_def, sm_idx) + +genMessageCode("--清除中断") + +genIFRwDataCode(0, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff]) ) diff --git a/tb/shinTest/testcase/sync.py b/tb/shinTest/testcase/sync.py index 1e96d91..0d5ac25 100644 --- a/tb/shinTest/testcase/sync.py +++ b/tb/shinTest/testcase/sync.py @@ -1375,6 +1375,8 @@ def tc7(): + '''txBuf[8] = 8'h00;\n''' + '''txBuf[9] = 8'h0a;\n''' + '''txBuf[10] = 8'h00;\n''' + + '''txBuf[11] = 8'h01;\n''' + + '''txBuf[12] = 8'h00;\n''' + '''txBuf[19] = (_temp_time & 8'hff);\n''' + '''txBuf[20] = ( (_temp_time >> 8) & 8'hff);\n''' + '''txBuf[21] = ((_temp_time >> 16) & 8'hff);\n''' @@ -1396,6 +1398,10 @@ def tc7(): + '''txBuf[37] = 8'h00;\n''' + '''txBuf[38] = 8'h00;\n''' + '''txBuf[39] = 8'h00;\n''' + + '''txBuf[40] = 8'h00;\n''' + + '''txBuf[41] = 8'h00;\n''' + + '''txBuf[42] = 8'h00;\n''' + + '''txBuf[43] = 8'h00;\n''' + '''spi_trans( (16'h0120), (`SPI_WRITE), (40), (`IF_IDX(0)));\n''' ) diff --git a/tb/shinTest/testcase_result/base_tc08_result.log b/tb/shinTest/testcase_result/base_tc08_result.log index 4efc7bf..7e78e62 100644 --- a/tb/shinTest/testcase_result/base_tc08_result.log +++ b/tb/shinTest/testcase_result/base_tc08_result.log @@ -1,8 +1,8 @@ 16'h0078 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h00 16'h0040 8'h00 16'h0004 8'h01 8'h00 8'h66 8'h79 16'h0040 8'h00 16'h0004 8'h01 8'h00 8'h66 8'h79 -16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80 -16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80 +16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80 +16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80 16'h0070 8'h01 16'h0004 8'h00 8'h00 8'h00 8'he0 16'h0070 8'h01 16'h0004 8'h00 8'h00 8'h00 8'he0 16'h0000 8'h00 16'h0001 8'h01 diff --git a/tb/shinTest/testcase_result/sys_bringup_result.log b/tb/shinTest/testcase_result/sys_bringup_result.log index a532b24..8b59d6f 100644 --- a/tb/shinTest/testcase_result/sys_bringup_result.log +++ b/tb/shinTest/testcase_result/sys_bringup_result.log @@ -1,8 +1,8 @@ -16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80 -16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80 -16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80 -16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80 -16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80 +16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80 +16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80 +16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80 +16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80 +16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80 16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff 16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff 16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff