litex/test/test_la.py

34 lines
543 B
Python
Raw Normal View History

2015-02-09 08:31:13 -05:00
from config import *
import time
from litescope.host.driver import LiteScopeLADriver
la = LiteScopeLADriver(wb.regs, "la", debug=True)
wb.open()
regs = wb.regs
###
conditions = {}
conditions = {
"udpsocdevel_mac_rx_cdc_source_stb" : 1
}
2015-02-09 11:57:45 -05:00
conditions = {
"core_udp_tx_fsm_state" : 1
}
2015-02-12 06:16:57 -05:00
conditions = {
"etherbonesocdevel_master_bus_stb" : 1
}
2015-02-09 08:31:13 -05:00
la.configure_term(port=0, cond=conditions)
la.configure_sum("term")
# Run Logic Analyzer
2015-02-09 11:57:45 -05:00
la.run(offset=2048, length=4000)
2015-02-09 08:31:13 -05:00
while not la.done():
pass
la.upload()
la.save("dump.vcd")
###
wb.close()