增加bug56的分支, 主站发送4个字节的00,从站异常的反应
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
`timescale 1 ns / 1 ps
|
||||
|
||||
`define ENABLE_REG_RW_TEST
|
||||
`define ENABLE_DET_TEST
|
||||
`define ENABLE_SET_ADDR_TEST
|
||||
`define ENABLE_INT_INIT_TEST
|
||||
//`define ENABLE_DET_TEST
|
||||
//`define ENABLE_SET_ADDR_TEST
|
||||
//`define ENABLE_INT_INIT_TEST
|
||||
`define ENABLE_DET_ERR_TEST
|
||||
//`define ENABLE_SM1_SEND_TEST
|
||||
//`define ENABLE_SMx_SEND_TEST
|
||||
|
||||
@@ -16,7 +17,7 @@
|
||||
//`define ENABLE_BC_W_TEST
|
||||
//`define ENABLE_BC_RW_TEST
|
||||
|
||||
`define ENABLE_SYNC_TEST
|
||||
//`define ENABLE_SYNC_TEST
|
||||
//`define ENABLE_SYNC_SIG0_TEST
|
||||
//`define ENABLE_SYNC_SIG1_TEST
|
||||
//`define ENABLE_RESET_TEST
|
||||
@@ -29,7 +30,7 @@
|
||||
//`define ENABLE_EBMMU_TC6_TEST
|
||||
//`define ENABLE_EBMMU_TC7_TEST
|
||||
|
||||
`define ENABLE_WD_TC1_TEST
|
||||
//`define ENABLE_WD_TC1_TEST
|
||||
|
||||
module ShinTopSpiTb(
|
||||
|
||||
@@ -914,6 +915,19 @@ initial begin
|
||||
end
|
||||
`endif
|
||||
|
||||
`ifdef ENABLE_DET_ERR_TEST
|
||||
begin:DET_ERR_TEST
|
||||
//嗅探
|
||||
_t_start = $realtime;
|
||||
#1000
|
||||
$fdisplay(spidata_file, "\n\n测试用例:发送嗅探包,需要在波形文件里检查");
|
||||
|
||||
`include "detect_err_pkt.vh"
|
||||
|
||||
_t_end = $realtime;
|
||||
$fdisplay(spidata_file, "该测试用例运行时间:%t\n", _t_end - _t_start);
|
||||
end
|
||||
`endif
|
||||
|
||||
`ifdef ENABLE_SM1_SEND_TEST
|
||||
begin:SM1_SEND_TESTCASE
|
||||
|
||||
Reference in New Issue
Block a user