整理sync的测试用例
This commit is contained in:
@@ -41,7 +41,7 @@ def tc2():
|
||||
|
||||
gen_file_def = "sync_tc02"
|
||||
sm_idx = 0
|
||||
tc_des = "配置Sync信号为电平触发,设置SYNC的同步周期,SYNC1、SYNC3的偏移\\n" \
|
||||
tc_des = "配置Sync信号为电平触发,设置SYNC的同步周期,SYNC1、SYNC3的偏移。\\n" \
|
||||
+ "SYNC触发后,需要手动清除SYNC信号。"
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -107,8 +107,8 @@ def tc3():
|
||||
|
||||
gen_file_def = "sync_tc03"
|
||||
sm_idx = 0
|
||||
tc_des = "发送错误的数据包,导致设备出问题,出问题的设备在没有恢复的情况下,采取直通状态。\\n" \
|
||||
+ "清除中断后,错误消失,出问题的设备恢复正常。"
|
||||
tc_des = "SYNC信号采用脉冲触发,4个设备,3个周期;先用广播包发送公共周期;然后3,4设备单独指定周期。\\n" \
|
||||
+ "需要在波形文件里查看。"
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#>>>>>>设置同步信号的数据包2
|
||||
@@ -141,7 +141,7 @@ def tc3():
|
||||
data[28] = 0x0 #sync1偏移
|
||||
data[29] = 0x0
|
||||
|
||||
data[36] = 0x0#sync3偏移
|
||||
data[36] = 0x0 #sync3偏移
|
||||
data[37] = 0x0
|
||||
|
||||
genPkt.addSubPkt(0, 0, 0x120, 0xe, 0x28, data)
|
||||
@@ -196,6 +196,7 @@ def tc3():
|
||||
+genWriteTransPktCode(gen_file_def, sm_idx)
|
||||
+genTrgTransPktCode(gen_file_def, sm_idx)
|
||||
+genReadAckPktCode(gen_file_def, sm_idx)
|
||||
+"#500000"
|
||||
+genTcEndFrameCode(gen_file_def))
|
||||
|
||||
genPkt.gen("./generated/shin/%s.vh"%(gen_file_def,), 1)
|
||||
@@ -208,8 +209,8 @@ def tc4():
|
||||
|
||||
gen_file_def = "sync_tc04"
|
||||
sm_idx = 0
|
||||
tc_des = "发送错误的数据包,导致设备出问题,出问题的设备在没有恢复的情况下,采取直通状态。\\n" \
|
||||
+ "清除中断后,错误消失,出问题的设备恢复正常。"
|
||||
tc_des = "SYNC信号采用脉冲触发,4个设备,4个周期;先用广播包发送公共周期;然后3,4,2设备单独指定周期。\\n" \
|
||||
+ "需要在波形文件里查看具体的效果。"
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#>>>>>>设置同步信号的数据包3
|
||||
|
||||
Reference in New Issue
Block a user