From a20ff49c903786f5c038f0334d025c95ead48c28 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 6 Nov 2017 19:01:51 +0100 Subject: [PATCH] example_designs/test: keep up to date with litescope --- example_designs/test/test_analyzer.py | 21 +++++++++++++++++++++ example_designs/test/test_logic_analyzer.py | 21 --------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 example_designs/test/test_analyzer.py delete mode 100644 example_designs/test/test_logic_analyzer.py 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()