增加了新的测试事件寄存器组的代码

This commit is contained in:
2025-08-05 15:18:42 +08:00
parent dc96f16e45
commit 452c5149bf
4 changed files with 112 additions and 9 deletions

View File

@@ -68,6 +68,8 @@ module ShinTopSpiTb(
reg _reset_deadline_ind;
reg _deadline_ind;
reg[31:0] _deadline_ind_ctr;
reg latch0;
reg latch1;
ShinTop s_ShinTop_Mst(
.clock(clock),
@@ -100,7 +102,9 @@ ShinTop s_ShinTop_Mst(
.io_rsp_valid(isResp),
.io_rsp_bits_isError(),
.io_isSoftReset(isSoftReset[0]),
.io_interrupt(io_int_sig[0])
.io_interrupt(io_int_sig[0]),
.io_latchPin_0(),
.io_latchPin_1()
);
ShinTop s_ShinTop_slv0(
@@ -133,7 +137,9 @@ ShinTop s_ShinTop_slv0(
.io_rsp_valid(),
.io_rsp_bits_isError(),
.io_isSoftReset(isSoftReset[1]),
.io_interrupt(io_int_sig[1])
.io_interrupt(io_int_sig[1]),
.io_latchPin_0(latch0),
.io_latchPin_1(latch1)
);
ShinTop s_ShinTop_slv1(
@@ -166,7 +172,9 @@ ShinTop s_ShinTop_slv1(
.io_rsp_valid(),
.io_rsp_bits_isError(),
.io_isSoftReset(isSoftReset[2]),
.io_interrupt(io_int_sig[2])
.io_interrupt(io_int_sig[2]),
.io_latchPin_0(latch0),
.io_latchPin_1(latch1)
);
ShinTop s_ShinTop_slv2(
@@ -199,7 +207,9 @@ ShinTop s_ShinTop_slv2(
.io_rsp_valid(),
.io_rsp_bits_isError(),
.io_isSoftReset(isSoftReset[3]),
.io_interrupt(io_int_sig[3])
.io_interrupt(io_int_sig[3]),
.io_latchPin_0(latch0),
.io_latchPin_1(latch1)
);
ShinTop s_ShinTop_slv3(
@@ -232,7 +242,9 @@ ShinTop s_ShinTop_slv3(
.io_rsp_valid(),
.io_rsp_bits_isError(),
.io_isSoftReset(isSoftReset[4]),
.io_interrupt(io_int_sig[4])
.io_interrupt(io_int_sig[4]),
.io_latchPin_0(latch0),
.io_latchPin_1(latch1)
);
@@ -252,6 +264,9 @@ initial begin
_deadline_ind = 0;
_deadline_ind_ctr = 0;
latch0 = 0;
latch1 = 0;
_reset_deactive = 1'b0;
$timeformat(-9, 2, " ns", 8);