tools/litex_crossover_uart: add base_address argument (required when wishbone transla...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 30 Jun 2020 12:10:36 +0000 (14:10 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 30 Jun 2020 12:11:27 +0000 (14:11 +0200)
litex/tools/litex_crossover_uart.py

index de44c4984fbe6a1dfb3b2f81ffdf151f2d62acb2..c0d20b614027cfc8e74bf9356e0864d6256833d7 100755 (executable)
@@ -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()
 
 # # #