example_designs/test: keep up to date with litescope

This commit is contained in:
Florent Kermarrec 2017-11-06 19:01:51 +01:00
parent eaf4acc3f5
commit a20ff49c90
2 changed files with 21 additions and 21 deletions

View File

@ -0,0 +1,21 @@
#!/usr/bin/env python3
from litex.soc.tools.remote import RemoteClient
wb = RemoteClient()
wb.open()
# # #
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
analyzer.configure_trigger(cond={})
analyzer.configure_subsampler(1)
analyzer.run(offset=128, length=256)
analyzer.wait_done()
analyzer.upload()
analyzer.save("dump.vcd")
# # #
wb.close()

View File

@ -1,21 +0,0 @@
import time
from litex.soc.tools.remote import RemoteClient
wb = RemoteClient()
wb.open()
analyzer = LiteScopeLogicAnalyzerDriver(wb.regs, "logic_analyzer", debug=True)
# # #
conditions = {}
analyzer.configure_trigger(cond={})
# run logic analyzer
analyzer.run(offset=2048, length=4000)
analyzer.wait_done()
analyzer.upload()
analyzer.save("dump.vcd")
# # #
wb.close()