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

24 lines
463 B
Python
Raw Normal View History

2015-02-09 08:31:13 -05:00
import time
from misoclib.tools.litescope.software.driver.la import LiteScopeLADriver
2015-02-09 08:31:13 -05:00
2015-04-13 04:20:02 -04:00
def main(wb):
la = LiteScopeLADriver(wb.regs, "la", debug=True)
wb.open()
regs = wb.regs
2015-04-13 05:23:27 -04: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-04-13 05:23:27 -04:00
# # #
wb.close()