Merge pull request #45 from zeldin/csv_path

software/litescope_cli: pass full path of csv file to driver.
This commit is contained in:
enjoy-digital 2022-07-11 13:58:16 +02:00 committed by GitHub
commit 7ec00e173c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ def run_batch(args):
signals = get_signals(args.csv, args.group) signals = get_signals(args.csv, args.group)
# Configure and run LiteScope analyzer. # 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_group(args.group)
analyzer.configure_subsampler(args.subsampling) analyzer.configure_subsampler(args.subsampling)
if not add_triggers(args, analyzer, signals): if not add_triggers(args, analyzer, signals):
@ -112,7 +112,7 @@ def run_gui(args):
def capture_callback(): def capture_callback():
basename = os.path.splitext(os.path.basename(args.csv))[0] 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_group(int(dpg.get_value(item="capture_group"), 0))
analyzer.configure_subsampler(int(dpg.get_value(item="capture_subsampling"), 0)) analyzer.configure_subsampler(int(dpg.get_value(item="capture_subsampling"), 0))
trigger_cond = {} trigger_cond = {}