etherbone: probing OK on hardware
[litex.git] / test / test_la.py
1 from config import *
2 import time
3
4 from litescope.host.driver import LiteScopeLADriver
5 la = LiteScopeLADriver(wb.regs, "la", debug=True)
6
7 wb.open()
8 regs = wb.regs
9 ###
10
11 conditions = {}
12 conditions = {
13 "udpsocdevel_mac_rx_cdc_source_stb" : 1
14 }
15 conditions = {
16 "core_udp_tx_fsm_state" : 1
17 }
18 conditions = {
19 "etherbonesocdevel_master_bus_stb" : 1
20 }
21 la.configure_term(port=0, cond=conditions)
22 la.configure_sum("term")
23 # Run Logic Analyzer
24 la.run(offset=2048, length=4000)
25
26 while not la.done():
27 pass
28
29 la.upload()
30 la.save("dump.vcd")
31
32 ###
33 wb.close()