2016-03-31 05:37:00 -04:00
|
|
|
from litex.soc.tools.remote import RemoteClient
|
|
|
|
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver
|
|
|
|
|
|
|
|
wb = RemoteClient()
|
|
|
|
wb.open()
|
|
|
|
|
|
|
|
# # #
|
|
|
|
|
|
|
|
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
|
|
|
|
analyzer.configure_trigger(cond={"counter1": 0})
|
|
|
|
analyzer.configure_subsampler(1)
|
|
|
|
analyzer.run(offset=128, length=512)
|
|
|
|
while not analyzer.done():
|
|
|
|
pass
|
|
|
|
analyzer.upload()
|
|
|
|
analyzer.save("dump.vcd")
|
2017-06-22 12:37:54 -04:00
|
|
|
analyzer.save("dump.sr")
|
2016-03-31 05:37:00 -04:00
|
|
|
|
|
|
|
# # #
|
|
|
|
|
|
|
|
wb.close()
|