example_designs/test: cleanup and simplify

This commit is contained in:
Florent Kermarrec 2018-05-28 23:12:47 +02:00
parent 2233bc290e
commit e92f0b7ea2
3 changed files with 17 additions and 9 deletions

5
example_designs/test/test_analyzer.py Normal file → Executable file
View File

@ -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()

2
example_designs/test/test_identifier.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python3
from litex.soc.tools.remote import RemoteClient
wb = RemoteClient()

19
example_designs/test/test_io.py Normal file → Executable file
View File

@ -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)