From 6098248120033bb4a6ff2734545c1489fbc143d7 Mon Sep 17 00:00:00 2001 From: bacon Date: Tue, 5 Aug 2025 16:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B,=E6=B5=8B=E8=AF=95=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tb/shinTest/ShinTopSpiTb.v | 4 ++-- tb/shinTest/testcase/base.py | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/tb/shinTest/ShinTopSpiTb.v b/tb/shinTest/ShinTopSpiTb.v index 1a824eb..4a8f2bc 100644 --- a/tb/shinTest/ShinTopSpiTb.v +++ b/tb/shinTest/ShinTopSpiTb.v @@ -103,8 +103,8 @@ ShinTop s_ShinTop_Mst( .io_rsp_bits_isError(), .io_isSoftReset(isSoftReset[0]), .io_interrupt(io_int_sig[0]), - .io_latchPin_0(), - .io_latchPin_1() + .io_latchPin_0(latch0), + .io_latchPin_1(latch1) ); ShinTop s_ShinTop_slv0( diff --git a/tb/shinTest/testcase/base.py b/tb/shinTest/testcase/base.py index 2914d11..3043ca3 100644 --- a/tb/shinTest/testcase/base.py +++ b/tb/shinTest/testcase/base.py @@ -957,10 +957,10 @@ def tc13(): +genIFRwDataCode(4, 0x500, False, 0x48) +genMessageCode("--设置事件") - +genIFRwDataCode(1, 0x500, True, 2, [0x0F, 0x00] ) - +genIFRwDataCode(2, 0x500, True, 2, [0x0F, 0x00] ) - +genIFRwDataCode(3, 0x500, True, 2, [0x0F, 0x00] ) - +genIFRwDataCode(4, 0x500, True, 2, [0x0F, 0x00] ) + +genIFRwDataCode(1, 0x500, True, 4, [0x0F, 0x00, 0x03, 0x00] ) + +genIFRwDataCode(2, 0x500, True, 4, [0x03, 0x00, 0x0F, 0x00] ) + +genIFRwDataCode(3, 0x500, True, 4, [0x0F, 0x00, 0x03, 0x00] ) + +genIFRwDataCode(4, 0x500, True, 4, [0x03, 0x00, 0x0F, 0x00] ) +genMessageCode("--读取事件寄存器组") +genIFRwDataCode(0, 0x500, False, 0x48) @@ -970,13 +970,21 @@ def tc13(): +genIFRwDataCode(4, 0x500, False, 0x48) ) - genPkt.addAfterExc("latch0 <= 1;\n" + genPkt.addAfterExc( "latch0 <= 1;\n" + +"latch1 <= 1;\n" + +"#5000\n" +"latch0 <= 0;\n" + +"latch1 <= 0;\n" + +"#5000\n" +"latch0 <= 1;\n" + +"latch1 <= 1;\n" + +"#5000\n" +"latch0 <= 0;\n" + +"latch1 <= 0;\n" + +genMessageCode("--读取中断") +genIFRwDataCode(0, 0x74, False, 4) +genIFRwDataCode(1, 0x74, False, 4)