From 1d7e91d019ed2b9fff56485995a7d0d16b45c21b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 22 Jul 2022 12:36:23 +0200 Subject: [PATCH] litescope_cli: Add --host argument (To allow remote operation). --- litescope/software/litescope_cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litescope/software/litescope_cli.py b/litescope/software/litescope_cli.py index b868c32..5df8f8a 100755 --- a/litescope/software/litescope_cli.py +++ b/litescope/software/litescope_cli.py @@ -79,7 +79,7 @@ def add_triggers(args, analyzer, signals): # Run Batch/GUI ----------------------------------------------------------------------------------- def run_batch(args): - bus = RemoteClient(csr_csv=args.csr_csv) + bus = RemoteClient(host=args.host, csr_csv=args.csr_csv) bus.open() basename = os.path.splitext(os.path.basename(args.csv))[0] @@ -105,7 +105,7 @@ def run_batch(args): def run_gui(args): import dearpygui.dearpygui as dpg - bus = RemoteClient(csr_csv=args.csr_csv) + bus = RemoteClient(host=args.host, csr_csv=args.csr_csv) bus.open() triggers = get_signals(args.csv, args.group) @@ -166,6 +166,7 @@ def parse_args(): parser.add_argument("-v", "--value-trigger", action="append", nargs=2, help="Add conditional trigger with given value.", metavar=("TRIGGER", "VALUE")) parser.add_argument("-l", "--list", action="store_true", help="List signal choices.") + parser.add_argument("--host", default="localhost", help="Host ip address") parser.add_argument("--csv", default="analyzer.csv", help="Analyzer CSV file.") parser.add_argument("--csr-csv", default="csr.csv", help="SoC CSV file.") parser.add_argument("--group", default=0, type=int, help="Capture Group.")