litescope_cli: Add --host argument (To allow remote operation).
This commit is contained in:
parent
7ec00e173c
commit
1d7e91d019
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue