2015-02-09 08:31:13 -05:00
|
|
|
import time
|
2015-02-28 04:27:16 -05:00
|
|
|
from misoclib.tools.litescope.host.driver.la import LiteScopeLADriver
|
2015-02-09 08:31:13 -05:00
|
|
|
|
2015-04-13 04:20:02 -04:00
|
|
|
|
2015-02-22 17:39:51 -05:00
|
|
|
def main(wb):
|
2015-04-13 03:53:43 -04:00
|
|
|
la = LiteScopeLADriver(wb.regs, "la", debug=True)
|
2015-02-22 17:39:51 -05:00
|
|
|
|
2015-04-13 03:53:43 -04:00
|
|
|
wb.open()
|
|
|
|
regs = wb.regs
|
2015-04-13 05:23:27 -04:00
|
|
|
# # #
|
2015-04-13 03:53:43 -04:00
|
|
|
conditions = {}
|
|
|
|
la.configure_term(port=0, cond=conditions)
|
|
|
|
la.configure_sum("term")
|
|
|
|
# Run Logic Analyzer
|
|
|
|
la.run(offset=2048, length=4000)
|
2015-02-09 08:31:13 -05:00
|
|
|
|
2015-04-13 03:53:43 -04:00
|
|
|
while not la.done():
|
|
|
|
pass
|
2015-02-09 08:31:13 -05:00
|
|
|
|
2015-04-13 03:53:43 -04:00
|
|
|
la.upload()
|
|
|
|
la.save("dump.vcd")
|
2015-04-13 05:23:27 -04:00
|
|
|
# # #
|
2015-04-13 03:53:43 -04:00
|
|
|
wb.close()
|