From: Florent Kermarrec Date: Mon, 9 Feb 2015 13:31:13 +0000 (+0100) Subject: add test_la.py X-Git-Tag: 24jan2021_ls180~2604^2~60 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78d39c6dae1ba132ec08b207210e3b368c274477;p=litex.git add test_la.py --- diff --git a/test/test_la.py b/test/test_la.py new file mode 100644 index 00000000..b56343a6 --- /dev/null +++ b/test/test_la.py @@ -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()