litex/misoclib/liteeth/example_designs/test/test_la.py

25 lines
393 B
Python
Raw Normal View History

2015-02-09 08:31:13 -05:00
import time
2015-02-18 10:51:35 -05:00
from litescope.host.driver.la import LiteScopeLADriver
2015-02-09 08:31:13 -05:00
def main(wb):
la = LiteScopeLADriver(wb.regs, "la", debug=True)
wb.open()
regs = wb.regs
###
2015-02-09 08:31:13 -05:00
conditions = {}
la.configure_term(port=0, cond=conditions)
la.configure_sum("term")
# Run Logic Analyzer
la.run(offset=2048, length=4000)
2015-02-09 08:31:13 -05:00
while not la.done():
pass
2015-02-09 08:31:13 -05:00
la.upload()
la.save("dump.vcd")
2015-02-09 08:31:13 -05:00
###
wb.close()