add test_la.py

This commit is contained in:
Florent Kermarrec 2015-02-09 14:31:13 +01:00
parent e18e403f10
commit 78d39c6dae
1 changed files with 27 additions and 0 deletions

27
test/test_la.py Normal file
View File

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