targets: Switch from bridge to crossover.

This commit is contained in:
Florent Kermarrec 2022-01-19 17:02:41 +01:00
parent abb54cebb3
commit 5f2ccb2d32
4 changed files with 6 additions and 12 deletions

View File

@ -138,7 +138,7 @@ class BaseSoC(SoCCore):
**kwargs)
# CRG --------------------------------------------------------------------------------------
with_rst = kwargs["uart_name"] not in ["serial", "bridge"] # serial_rx shared with user_btn_n.
with_rst = kwargs["uart_name"] not in ["serial", "crossover"] # serial_rx shared with user_btn_n.
with_usb_pll = kwargs.get("uart_name", None) == "usb_acm"
self.submodules.crg = _CRG(platform, sys_clk_freq, use_internal_osc=use_internal_osc, with_usb_pll=with_usb_pll,with_rst=with_rst, sdram_rate=sdram_rate)

View File

@ -11,7 +11,7 @@
#
# Use:
# litex_server --jtag --jtag-config=openocd_xc7_ft232.cfg
# litex_term bridge
# litex_term crossover
import os
import argparse

View File

@ -10,7 +10,7 @@
# Build/Use:
# ./gsd_butterstick.py --uart-name=crossover --with-etherbone --csr-csv=csr.csv --build --load
# litex_server --udp
# litex_term bridge
# litex_term crossover
import os
import sys

View File

@ -100,16 +100,10 @@ class BaseSoC(SoCCore):
pads = platform.request_all("user_led_n"),
sys_clk_freq = sys_clk_freq)
# Add a UART-Wishbone bridge -----------------------------------------
debug_uart=False
# Add a UARTBone bridge --------------------------------------------------------------------
debug_uart = False
if debug_uart:
# This will add a bridge on the second serial port defined in platform
from litex.soc.cores.uart import UARTWishboneBridge
self.submodules.uart_bridge = UARTWishboneBridge(
platform.request("serial"),
sys_clk_freq,
baudrate=115200)
self.add_wb_master(self.uart_bridge.wishbone)
self.add_uartbone(name="serial")
# Flash --------------------------------------------------------------------------------------------