2017-11-06 13:01:51 -05:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2019-06-24 05:43:10 -04:00
|
|
|
# This file is Copyright (c) 2015-2018 Florent Kermarrec <florent@enjoy-digital.fr>
|
|
|
|
# License: BSD
|
|
|
|
|
2018-09-23 04:28:50 -04:00
|
|
|
from litex import RemoteClient
|
2017-11-06 13:01:51 -05:00
|
|
|
|
|
|
|
wb = RemoteClient()
|
|
|
|
wb.open()
|
|
|
|
|
|
|
|
# # #
|
|
|
|
|
|
|
|
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver
|
|
|
|
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
|
|
|
|
analyzer.configure_trigger(cond={})
|
|
|
|
analyzer.configure_subsampler(1)
|
|
|
|
analyzer.run(offset=128, length=256)
|
|
|
|
analyzer.wait_done()
|
|
|
|
analyzer.upload()
|
|
|
|
analyzer.save("dump.vcd")
|
|
|
|
|
|
|
|
# # #
|
|
|
|
|
|
|
|
wb.close()
|