add test_la.py
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 9 Feb 2015 13:31:13 +0000 (14:31 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 9 Feb 2015 13:31:13 +0000 (14:31 +0100)
test/test_la.py [new file with mode: 0644]

diff --git a/test/test_la.py b/test/test_la.py
new file mode 100644 (file)
index 0000000..b56343a
--- /dev/null
@@ -0,0 +1,27 @@
+from config import *
+import time
+
+from litescope.host.driver import LiteScopeLADriver
+la = LiteScopeLADriver(wb.regs, "la", debug=True)
+
+wb.open()
+regs = wb.regs
+###
+
+conditions = {}
+conditions = {
+       "udpsocdevel_mac_rx_cdc_source_stb"     : 1
+}
+la.configure_term(port=0, cond=conditions)
+la.configure_sum("term")
+# Run Logic Analyzer
+la.run(offset=64, length=1024)
+
+while not la.done():
+       pass
+
+la.upload()
+la.save("dump.vcd")
+
+###
+wb.close()