mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #402 from antmicro/litex-gen-fix-uart-pins
tools: litex_gen: fix missing UART pins
This commit is contained in:
commit
a2d6986910
1 changed files with 9 additions and 0 deletions
|
@ -49,6 +49,15 @@ class LiteXCore(SoCMini):
|
|||
|
||||
platform = Platform(_io)
|
||||
|
||||
# UART
|
||||
if kwargs["with_uart"]:
|
||||
platform.add_extension([
|
||||
("serial", 0,
|
||||
Subsignal("tx", Pins(1)),
|
||||
Subsignal("rx", Pins(1)),
|
||||
)
|
||||
])
|
||||
|
||||
# CRG --------------------------------------------------------------------------------------
|
||||
self.submodules.crg = CRG(platform.request("sys_clk"), rst=platform.request("sys_rst"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue