From e92f0b7ea290e979d1a98f904c7c5e868eae52db Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 28 May 2018 23:12:47 +0200 Subject: [PATCH] example_designs/test: cleanup and simplify --- example_designs/test/test_analyzer.py | 5 ++++- example_designs/test/test_identifier.py | 2 ++ example_designs/test/test_io.py | 19 +++++++++++-------- 3 files changed, 17 insertions(+), 9 deletions(-) mode change 100644 => 100755 example_designs/test/test_analyzer.py mode change 100644 => 100755 example_designs/test/test_identifier.py mode change 100644 => 100755 example_designs/test/test_io.py diff --git a/example_designs/test/test_analyzer.py b/example_designs/test/test_analyzer.py old mode 100644 new mode 100755 index c54929c..cefef22 --- a/example_designs/test/test_analyzer.py +++ b/example_designs/test/test_analyzer.py @@ -1,5 +1,8 @@ +#!/usr/bin/env python3 + from litex.soc.tools.remote import RemoteClient -from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver + +from litescope import LiteScopeAnalyzerDriver wb = RemoteClient() wb.open() diff --git a/example_designs/test/test_identifier.py b/example_designs/test/test_identifier.py old mode 100644 new mode 100755 index 1c790df..560778b --- a/example_designs/test/test_identifier.py +++ b/example_designs/test/test_identifier.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + from litex.soc.tools.remote import RemoteClient wb = RemoteClient() diff --git a/example_designs/test/test_io.py b/example_designs/test/test_io.py old mode 100644 new mode 100755 index 371165c..bb1d20c --- a/example_designs/test/test_io.py +++ b/example_designs/test/test_io.py @@ -1,7 +1,15 @@ -import time -from litex.soc.tools.remote import RemoteClient -from litescope.software.driver.io import LiteScopeIODriver +#!/usr/bin/env python3 +import time + +from litex.soc.tools.remote import RemoteClient + +from litescope import LiteScopeIODriver + +wb = RemoteClient() +wb.open() + +# # # def led_anim0(inout): for i in range(10): @@ -25,11 +33,6 @@ def led_anim1(inout): time.sleep(i*i*0.0020) led_data = (led_data >> 1) -wb = RemoteClient() -wb.open() - -# # # - io = LiteScopeIODriver(wb.regs, "io") led_anim0(io)