litescope/examples/test/test_fast_scope_arty.py

31 lines
614 B
Python
Raw Normal View History

#!/usr/bin/env python3
# This file is Copyright (c) 2019 kees.jongenburger <kees.jongenburger@gmail.com>
# License: BSD
from litex import RemoteClient
from litescope import LiteScopeAnalyzerDriver
wb = RemoteClient()
wb.open()
# # #
subsample = 1
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
analyzer.configure_subsampler(subsample)
analyzer.configure_group(0)
analyzer.run(offset=32, length=512)
analyzer.wait_done()
analyzer.upload()
#
# Convert parallel input back to a flaten view (e.g. the 8 bits values are flattened)
#
analyzer.save("dump.vcd",flatten=True)
# # #
wb.close()