From: Florent Kermarrec Date: Tue, 30 Jun 2020 12:10:36 +0000 (+0200) Subject: tools/litex_crossover_uart: add base_address argument (required when wishbone transla... X-Git-Tag: 24jan2021_ls180~127 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68297fce9ea6f7644003572548d3944f461d27d4;p=litex.git tools/litex_crossover_uart: add base_address argument (required when wishbone translation). --- diff --git a/litex/tools/litex_crossover_uart.py b/litex/tools/litex_crossover_uart.py index de44c498..c0d20b61 100755 --- a/litex/tools/litex_crossover_uart.py +++ b/litex/tools/litex_crossover_uart.py @@ -8,10 +8,15 @@ import os import pty import threading +import argparse from litex import RemoteClient -wb = RemoteClient() +parser = argparse.ArgumentParser(description="LiteX Crossover UART bridge tool") +parser.add_argument("--base-address", default=0, help="Wishbone Bridge base address") +args = parser.parse_args() + +wb = RemoteClient(base_address=int(args.base_address, 0)) wb.open() # # #