mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
integration/soc/add_uart: add Model/Sim.
This commit is contained in:
parent
3f43c6a223
commit
09a3ce0ee5
1 changed files with 7 additions and 0 deletions
|
@ -931,6 +931,13 @@ class LiteXSoC(SoC):
|
|||
elif name in ["crossover"]:
|
||||
self.submodules.uart = uart.UARTCrossover()
|
||||
|
||||
# Model/Sim
|
||||
elif name in ["model", "sim"]:
|
||||
self.submodules.uart_phy = uart.RS232PHYModel(self.platform.request("serial"))
|
||||
self.submodules.uart = ResetInserter()(uart.UART(self.uart_phy,
|
||||
tx_fifo_depth = fifo_depth,
|
||||
rx_fifo_depth = fifo_depth))
|
||||
|
||||
# JTAG Atlantic
|
||||
elif name in ["jtag_atlantic"]:
|
||||
from litex.soc.cores.jtag import JTAGAtlantic
|
||||
|
|
Loading…
Reference in a new issue