liteeth/example_designs/test/test_logic_analyzer.py
Florent Kermarrec 5bc6e879ae update litescope
2017-06-23 09:14:19 +02:00

21 lines
375 B
Python

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