mirror of
https://github.com/enjoy-digital/litescope.git
synced 2025-01-04 09:52:27 -05:00
b1b9e61ecf
use new LiteX features and only keep one trigger, subsampler, cdc, converter and storage modules. software still needs to be cleaned up.
20 lines
444 B
Python
20 lines
444 B
Python
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")
|
|
|
|
# # #
|
|
|
|
wb.close()
|