增加代码采用顺序地址读取ebmmu的配置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user