liteeth/example_designs/test/test_logic_analyzer.py

22 lines
375 B
Python
Raw Normal View History

import time
from litex.soc.tools.remote import RemoteClient
wb = RemoteClient()
wb.open()
2017-06-23 03:14:19 -04:00
analyzer = LiteScopeLogicAnalyzerDriver(wb.regs, "logic_analyzer", debug=True)
# # #
conditions = {}
2017-06-23 03:14:19 -04:00
analyzer.configure_trigger(cond={})
# run logic analyzer
2017-06-23 03:14:19 -04:00
analyzer.run(offset=2048, length=4000)
analyzer.wait_done()
analyzer.upload()
analyzer.save("dump.vcd")
# # #
wb.close()