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()
|
|
|
|
|
|
|
|
# # #
|
|
|
|
|
2017-06-22 13:12:33 -04:00
|
|
|
dumps = {
|
|
|
|
0 : "dump.vcd",
|
|
|
|
1 : "dump.sr"
|
|
|
|
}
|
|
|
|
|
|
|
|
for group, filename in dumps.items():
|
|
|
|
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
|
2018-05-28 13:42:46 -04:00
|
|
|
analyzer.add_rising_edge_trigger("zero")
|
2017-06-22 13:12:33 -04:00
|
|
|
analyzer.configure_subsampler(1)
|
|
|
|
analyzer.configure_group(group)
|
2018-05-28 12:05:31 -04:00
|
|
|
analyzer.run(offset=32, length=128)
|
2017-06-22 13:12:33 -04:00
|
|
|
analyzer.wait_done()
|
|
|
|
analyzer.upload()
|
|
|
|
analyzer.save(filename)
|
2016-03-31 05:37:00 -04:00
|
|
|
|
|
|
|
# # #
|
|
|
|
|
|
|
|
wb.close()
|