example_designs/test: cleanup and simplify
This commit is contained in:
parent
2233bc290e
commit
e92f0b7ea2
|
@ -1,5 +1,8 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from litex.soc.tools.remote import RemoteClient
|
from litex.soc.tools.remote import RemoteClient
|
||||||
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver
|
|
||||||
|
from litescope import LiteScopeAnalyzerDriver
|
||||||
|
|
||||||
wb = RemoteClient()
|
wb = RemoteClient()
|
||||||
wb.open()
|
wb.open()
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from litex.soc.tools.remote import RemoteClient
|
from litex.soc.tools.remote import RemoteClient
|
||||||
|
|
||||||
wb = RemoteClient()
|
wb = RemoteClient()
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
import time
|
#!/usr/bin/env python3
|
||||||
from litex.soc.tools.remote import RemoteClient
|
|
||||||
from litescope.software.driver.io import LiteScopeIODriver
|
|
||||||
|
|
||||||
|
import time
|
||||||
|
|
||||||
|
from litex.soc.tools.remote import RemoteClient
|
||||||
|
|
||||||
|
from litescope import LiteScopeIODriver
|
||||||
|
|
||||||
|
wb = RemoteClient()
|
||||||
|
wb.open()
|
||||||
|
|
||||||
|
# # #
|
||||||
|
|
||||||
def led_anim0(inout):
|
def led_anim0(inout):
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
|
@ -25,11 +33,6 @@ def led_anim1(inout):
|
||||||
time.sleep(i*i*0.0020)
|
time.sleep(i*i*0.0020)
|
||||||
led_data = (led_data >> 1)
|
led_data = (led_data >> 1)
|
||||||
|
|
||||||
wb = RemoteClient()
|
|
||||||
wb.open()
|
|
||||||
|
|
||||||
# # #
|
|
||||||
|
|
||||||
io = LiteScopeIODriver(wb.regs, "io")
|
io = LiteScopeIODriver(wb.regs, "io")
|
||||||
|
|
||||||
led_anim0(io)
|
led_anim0(io)
|
||||||
|
|
Loading…
Reference in New Issue