example_designs/test: keep up to date with litescope
This commit is contained in:
parent
eaf4acc3f5
commit
a20ff49c90
|
@ -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()
|
|
@ -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()
|
Loading…
Reference in New Issue