Exemple #1
0
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")
Exemple #2
0
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")
Exemple #3
0
from litex.tools.litex_client import RemoteClient
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver

wb = RemoteClient()
wb.open()

analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)

analyzer.configure_subsampler(
    1)  ## increase this to "skip" cycles, e.g. subsample
analyzer.configure_group(0)

# trigger conditions will depend upon each other in sequence
#analyzer.add_rising_edge_trigger("adc_i_fclk1")

analyzer.add_rising_edge_trigger("adc_i_we0")

analyzer.run(offset=16, length=512)  ### CHANGE THIS TO MATCH DEPTH
analyzer.wait_done()
analyzer.upload()
analyzer.save("dump.vcd")

wb.close()
Exemple #4
0
from litex.soc.tools.remote import RemoteClient
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver

wb = RemoteClient()
wb.open()

# # #

dumps = {0: "dump.vcd", 1: "dump.sr"}

for group, filename in dumps.items():
    analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
    analyzer.configure_trigger()
    analyzer.configure_subsampler(1)
    analyzer.configure_group(group)
    analyzer.run(offset=128, length=512)
    analyzer.wait_done()
    analyzer.upload()
    analyzer.save(filename)

# # #

wb.close()