mirror of
https://github.com/enjoy-digital/liteeth.git
synced 2025-01-03 03:43:37 -05:00
update litescope
This commit is contained in:
parent
ad9ecdbd5e
commit
5bc6e879ae
1 changed files with 6 additions and 10 deletions
|
@ -5,20 +5,16 @@ from litex.soc.tools.remote import RemoteClient
|
||||||
wb = RemoteClient()
|
wb = RemoteClient()
|
||||||
wb.open()
|
wb.open()
|
||||||
|
|
||||||
logic_analyzer = LiteScopeLogicAnalyzerDriver(wb.regs, "logic_analyzer", debug=True)
|
analyzer = LiteScopeLogicAnalyzerDriver(wb.regs, "logic_analyzer", debug=True)
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
conditions = {}
|
conditions = {}
|
||||||
logic_analyzer.configure_term(port=0, cond=conditions)
|
analyzer.configure_trigger(cond={})
|
||||||
logic_analyzer.configure_sum("term")
|
|
||||||
# run logic analyzer
|
# run logic analyzer
|
||||||
logic_analyzer.run(offset=2048, length=4000)
|
analyzer.run(offset=2048, length=4000)
|
||||||
|
analyzer.wait_done()
|
||||||
while not logic_analyzer.done():
|
analyzer.upload()
|
||||||
pass
|
analyzer.save("dump.vcd")
|
||||||
|
|
||||||
logic_analyzer.upload()
|
|
||||||
logic_analyzer.save("dump.vcd")
|
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue