增加qspi->lvds测试用例

This commit is contained in:
2025-05-22 23:47:20 +08:00
parent 1587ec183e
commit f1d32655fd
2 changed files with 77 additions and 2 deletions

View File

@@ -218,6 +218,20 @@ if __name__ == '__main__':
genPkt.addSubPkt(0x04, 0, 0x3800, 0x1, 64, data)
genPkt.gen("./generated/shin/seq_1_pkt.vh", 1)
#-------------------------------------------------------------------------
#>>>>>>读
genPkt.clean()
genPkt.setPktType(0)
#subPkt参数索引、索引类型、地址、命令、长度、数据
genPkt.addSubPkt(3, 0, 0x3000, 0x0, 129, b"\0"*129)
genPkt.addSubPkt(4, 0, 0x4000, 0x0, 140, b"\0"*140)
genPkt.addSubPkt(1, 0, 0x1000, 0x0, 128, b"\0"*128)
genPkt.addSubPkt(2, 0, 0x2000, 0x0, 152, b"\0"*152)
genPkt.gen("./generated/shin/seq_2_pkt.vh", 1)
#-------------------------------------------------------------------------
#>>>>>>同步数据包
@@ -289,5 +303,8 @@ if __name__ == '__main__':
genPkt.addSubPkt(random.randint(0, 2048), 0, 0xc0, 0xd, 4, b"\0"*4)
genPkt.gen("./generated/shin/bc_r_pkt.vh", 1)