修改spi接口的打印消息,和测试用例启用注释
This commit is contained in:
@@ -636,7 +636,8 @@ task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength, i
|
||||
@( negedge isBusy) #1000
|
||||
begin
|
||||
//$fwrite(spidata_file, "------------%5t------------\n", $realtime);
|
||||
$fwrite(spidata_file, "T:%t \tdev:%4d(%4d), addr:0x%02h%02h, %s, len:%4d (0x%02h%02h)\n",
|
||||
if (sidx >=(`ALL_DEV_NUM * 3)) begin
|
||||
$fwrite(spidata_file, "T:%t \tdev:%4d(%4d), addr:0x%02h%02h, %s, len:%4d (0x%02h%02h)\n",
|
||||
$realtime,
|
||||
sidx % (`ALL_DEV_NUM), sidx,
|
||||
txBuf[0],
|
||||
@@ -644,6 +645,15 @@ task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength, i
|
||||
(((txBuf[2] & 8'h80) == 0)? "Write":" Read"),
|
||||
slength,
|
||||
txBuf[2], txBuf[3]);
|
||||
end else begin
|
||||
$fwrite(spidata_file, "T:%t \tdev:%4d(%4d), addr:0x%02h%02h, %s, len:%4d\n",
|
||||
$realtime,
|
||||
sidx % (`ALL_DEV_NUM), sidx,
|
||||
txBuf[0],
|
||||
txBuf[1],
|
||||
(((txBuf[2] & 8'h80) == 0)? "Write":" Read"),
|
||||
slength);
|
||||
end
|
||||
|
||||
if (sidx >=(`ALL_DEV_NUM * 3)) begin _pos = 4; end
|
||||
else begin _pos = 3; end
|
||||
|
||||
@@ -25,7 +25,7 @@ if __name__ == '__main__':
|
||||
environment.gen_slv_dev_num(4)
|
||||
environment.bringup()
|
||||
|
||||
#'''
|
||||
'''
|
||||
add_tc_2_runlist(errorPkt.tc1())
|
||||
add_tc_2_runlist(errorPkt.tc2())
|
||||
add_tc_2_runlist(errorPkt.tc3())
|
||||
@@ -66,13 +66,13 @@ if __name__ == '__main__':
|
||||
add_tc_2_runlist(errorPkt.tc38())
|
||||
#'''
|
||||
|
||||
#'''
|
||||
'''
|
||||
add_tc_2_runlist(rwregs.tc1())
|
||||
add_tc_2_runlist(rwregs.tc2())
|
||||
add_tc_2_runlist(rwregs.tc3())
|
||||
#'''
|
||||
|
||||
#'''
|
||||
'''
|
||||
add_tc_2_runlist(base.tc1())
|
||||
add_tc_2_runlist(base.tc2())
|
||||
add_tc_2_runlist(base.tc3())
|
||||
@@ -80,11 +80,7 @@ if __name__ == '__main__':
|
||||
add_tc_2_runlist(base.tc5())
|
||||
add_tc_2_runlist(base.tc6())
|
||||
add_tc_2_runlist(base.tc7())
|
||||
#'''
|
||||
|
||||
add_tc_2_runlist(base.tc8())
|
||||
|
||||
#'''
|
||||
add_tc_2_runlist(base.tc9())
|
||||
add_tc_2_runlist(base.tc10())
|
||||
add_tc_2_runlist(base.tc11())
|
||||
@@ -110,13 +106,13 @@ if __name__ == '__main__':
|
||||
add_tc_2_runlist(base.tc31())
|
||||
#'''
|
||||
|
||||
#'''
|
||||
'''
|
||||
add_tc_2_runlist(broadcast.tc1())
|
||||
add_tc_2_runlist(broadcast.tc2())
|
||||
add_tc_2_runlist(broadcast.tc3())
|
||||
#'''
|
||||
|
||||
#'''
|
||||
'''
|
||||
add_tc_2_runlist(sync.tc1())
|
||||
add_tc_2_runlist(sync.tc2())
|
||||
add_tc_2_runlist(sync.tc3())
|
||||
@@ -124,10 +120,10 @@ if __name__ == '__main__':
|
||||
add_tc_2_runlist(sync.tc5())
|
||||
add_tc_2_runlist(sync.tc6())
|
||||
add_tc_2_runlist(sync.tc7())
|
||||
add_tc_2_runlist(sync.tc8())
|
||||
#'''
|
||||
#add_tc_2_runlist(sync.tc8())
|
||||
|
||||
#'''
|
||||
'''
|
||||
add_tc_2_runlist(ebmmu.tc1())
|
||||
add_tc_2_runlist(ebmmu.tc2())
|
||||
add_tc_2_runlist(ebmmu.tc3())
|
||||
@@ -149,7 +145,7 @@ if __name__ == '__main__':
|
||||
add_tc_2_runlist(ebmmu.tc19())
|
||||
#'''
|
||||
|
||||
#add_tc_2_runlist(watchdog.tc1())
|
||||
add_tc_2_runlist(watchdog.tc1())
|
||||
#add_tc_2_runlist(watchdog.tc2())
|
||||
|
||||
#add_tc_2_runlist(mac.tc1())
|
||||
|
||||
Reference in New Issue
Block a user