From 1579f4163a7586b14689f48c5a95cc2eed9037fd Mon Sep 17 00:00:00 2001 From: bacon Date: Tue, 17 Jun 2025 22:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=A3=E7=A0=81=E9=87=87?= =?UTF-8?q?=E7=94=A8=E9=A1=BA=E5=BA=8F=E5=9C=B0=E5=9D=80=E8=AF=BB=E5=8F=96?= =?UTF-8?q?ebmmu=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tb/shinTest/ShinTopSpiTb.v | 5 ++++- tb/shinTest/gen_pkt.py | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/tb/shinTest/ShinTopSpiTb.v b/tb/shinTest/ShinTopSpiTb.v index d56b06b..039fb26 100644 --- a/tb/shinTest/ShinTopSpiTb.v +++ b/tb/shinTest/ShinTopSpiTb.v @@ -1295,7 +1295,8 @@ initial begin end `endif - begin:RESET_SYSTEM_TEST + + begin:EBMMU_TEST _t_start = $realtime; #1000 @@ -1303,6 +1304,8 @@ initial begin `include "ebmmu_settings.vh" + `include "ebmmu_seq_read.vh" + `include "ebmmu_read.vh" _t_end = $realtime; diff --git a/tb/shinTest/gen_pkt.py b/tb/shinTest/gen_pkt.py index 1cc00b1..158bd30 100755 --- a/tb/shinTest/gen_pkt.py +++ b/tb/shinTest/gen_pkt.py @@ -931,6 +931,29 @@ if __name__ == '__main__': genPkt.gen("./generated/shin/%s.vh"%(gen_file_def, ), 1) + #------------------------------------------------------------------------- + #>>>>>>读取EB-MMU的设置 + genPkt.clean() + genPkt.setPktType(0) + + #subPkt参数:索引、索引类型、地址、命令、长度、数据 + data = [0,] * 40 + + genPkt.addSubPkt(0x01, 0, 0x0200, 0x0, 10, data) + genPkt.addSubPkt(0x02, 0, 0x0200, 0x0, 10, data) + genPkt.addSubPkt(0x03, 0, 0x0200, 0x0, 10, data) + genPkt.addSubPkt(0x04, 0, 0x0200, 0x0, 10, data) + + gen_file_def = "ebmmu_seq_read" + sm_idx = 0 + + 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)) + + genPkt.gen("./generated/shin/%s.vh"%(gen_file_def, ), 1) + #------------------------------------------------------------------------- #>>>>>>设置EB-MMU