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
|
|
|
|
2017-06-23 03:14:19 -04:00
|
|
|
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 = {}
|
2017-06-23 03:14:19 -04:00
|
|
|
analyzer.configure_trigger(cond={})
|
2015-11-16 18:16:39 -05:00
|
|
|
# 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")
|
2015-11-16 18:16:39 -05:00
|
|
|
|
|
|
|
# # #
|
|
|
|
|
|
|
|
wb.close()
|