初步实现python生成测试用例,并挂接.v文件,无需手工写.v文件

This commit is contained in:
2025-07-30 22:59:06 +08:00
parent 2968b6d546
commit 9cf5346b3d
11 changed files with 359 additions and 24 deletions

View File

@@ -14,6 +14,7 @@ def tc1():
+genTrgTransPktCode(gen_file_def, sm_idx)
+genReadAckPktCode(gen_file_def, sm_idx))
genPkt.gen("./generated/shin/%s.vh"%(gen_file_def, ), 1)
return gen_file_def
def tc2():
genPkt = GenPkt()
@@ -30,3 +31,6 @@ def tc2():
+genReadAckPktCode(gen_file_def, sm_idx))
genPkt.gen("./generated/shin/%s.vh"%(gen_file_def, ), 1)
return gen_file_def