From 4435a03f51db7af8379b36410f3d40e0e945d8e3 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Mon, 4 Jul 2022 17:07:12 +0200 Subject: [PATCH] software/litescope_cli: pass full path of csv file to driver. --- litescope/software/litescope_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litescope/software/litescope_cli.py b/litescope/software/litescope_cli.py index 27f3aba..b868c32 100755 --- a/litescope/software/litescope_cli.py +++ b/litescope/software/litescope_cli.py @@ -86,7 +86,7 @@ def run_batch(args): signals = get_signals(args.csv, args.group) # Configure and run LiteScope analyzer. - analyzer = LiteScopeAnalyzerDriver(bus.regs, basename, debug=True) + analyzer = LiteScopeAnalyzerDriver(bus.regs, basename, config_csv=args.csv, debug=True) analyzer.configure_group(args.group) analyzer.configure_subsampler(args.subsampling) if not add_triggers(args, analyzer, signals): @@ -112,7 +112,7 @@ def run_gui(args): def capture_callback(): basename = os.path.splitext(os.path.basename(args.csv))[0] - analyzer = LiteScopeAnalyzerDriver(bus.regs, basename, debug=True) + analyzer = LiteScopeAnalyzerDriver(bus.regs, basename, config_csv=args.csv, debug=True) analyzer.configure_group(int(dpg.get_value(item="capture_group"), 0)) analyzer.configure_subsampler(int(dpg.get_value(item="capture_subsampling"), 0)) trigger_cond = {}