def analyzer(): analyzer = LiteScopeAnalyzerDriver(wb_amc.regs, "analyzer", config_csv="../sayma_amc/analyzer.csv", debug=True) analyzer.configure_group(groups["wishbone"]) analyzer.configure_trigger(cond={"wishbone_access" : 1}) analyzer.run(offset=32, length=128) write_pattern(32) errors = check_pattern(32, debug=True) print("errors: {:d}".format(errors)) analyzer.wait_done() analyzer.upload() analyzer.save("dump.vcd")
def analyzer(): groups = { "dfi_phase0": 0, "dfi_phase1": 1, "dfi_phase2": 2, "dfi_phase3": 3 } analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True) analyzer.configure_group(groups["dfi_phase0"]) analyzer.configure_trigger(cond={}) write_test(0x00000000, 1024*MB, False) read_test(0x00000000, 1024*MB, False) analyzer.run(offset=32, length=64) analyzer.wait_done() analyzer.upload() analyzer.save("dump.vcd")
from litex.soc.tools.remote import RemoteClient from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver wb = RemoteClient() wb.open() # # # analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True) analyzer.configure_trigger(cond={"s7pciephy_sink_valid": 1}) #analyzer.configure_trigger(cond={}) analyzer.configure_subsampler(1) analyzer.run(offset=16, length=64) analyzer.wait_done() analyzer.upload() analyzer.save("dump.vcd") # # # wb.close()