diff --git a/example_designs/test/test_analyzer.py b/example_designs/test/test_analyzer.py new file mode 100644 index 0000000..7acd603 --- /dev/null +++ b/example_designs/test/test_analyzer.py @@ -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() \ No newline at end of file diff --git a/example_designs/test/test_logic_analyzer.py b/example_designs/test/test_logic_analyzer.py deleted file mode 100644 index d58b20d..0000000 --- a/example_designs/test/test_logic_analyzer.py +++ /dev/null @@ -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()