tools/litex_crossover_uart: add host argument to connect to a remote server.
example: litex_server over PCIe running on a remote machine and create virtual uart on our local machine.
This commit is contained in:
parent
6fe4994f66
commit
c0dba18d59
|
@ -13,10 +13,11 @@ import argparse
|
||||||
from litex import RemoteClient
|
from litex import RemoteClient
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description="LiteX Crossover UART bridge tool")
|
parser = argparse.ArgumentParser(description="LiteX Crossover UART bridge tool")
|
||||||
parser.add_argument("--base-address", default=0, help="Wishbone Bridge base address")
|
parser.add_argument("--host", default="localhost", help="Host IP address")
|
||||||
|
parser.add_argument("--base-address", default="0x00000000", help="Wishbone base address")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
wb = RemoteClient(base_address=int(args.base_address, 0))
|
wb = RemoteClient(host=args.host, base_address=int(args.base_address, 0))
|
||||||
wb.open()
|
wb.open()
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
|
|
Loading…
Reference in New Issue