From 68297fce9ea6f7644003572548d3944f461d27d4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 30 Jun 2020 14:10:36 +0200 Subject: [PATCH] tools/litex_crossover_uart: add base_address argument (required when wishbone translation). --- litex/tools/litex_crossover_uart.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/litex/tools/litex_crossover_uart.py b/litex/tools/litex_crossover_uart.py index de44c4984..c0d20b614 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() # # #