tools/litex_crossover_uart: add base_address argument (required when wishbone translation).

This commit is contained in:
Florent Kermarrec 2020-06-30 14:10:36 +02:00
parent 54598ed2f8
commit 68297fce9e
1 changed files with 6 additions and 1 deletions

View File

@ -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()
# # #