2015-09-27 13:14:46 -04:00
|
|
|
import time
|
2015-11-16 18:16:39 -05:00
|
|
|
from litex.soc.tools.remote import RemoteClient
|
2015-09-27 13:14:46 -04:00
|
|
|
|
|
|
|
|
2015-11-16 18:16:39 -05:00
|
|
|
wb = RemoteClient()
|
|
|
|
wb.open()
|
2015-09-27 13:14:46 -04:00
|
|
|
|
2015-11-16 18:16:39 -05:00
|
|
|
logic_analyzer = LiteScopeLogicAnalyzerDriver(wb.regs, "logic_analyzer", debug=True)
|
2015-09-27 13:14:46 -04:00
|
|
|
|
2015-11-16 18:16:39 -05:00
|
|
|
# # #
|
|
|
|
conditions = {}
|
|
|
|
logic_analyzer.configure_term(port=0, cond=conditions)
|
|
|
|
logic_analyzer.configure_sum("term")
|
|
|
|
# run logic analyzer
|
|
|
|
logic_analyzer.run(offset=2048, length=4000)
|
2015-09-27 13:14:46 -04:00
|
|
|
|
2015-11-16 18:16:39 -05:00
|
|
|
while not logic_analyzer.done():
|
|
|
|
pass
|
|
|
|
|
|
|
|
logic_analyzer.upload()
|
|
|
|
logic_analyzer.save("dump.vcd")
|
|
|
|
|
|
|
|
# # #
|
|
|
|
|
|
|
|
wb.close()
|