sayma_amc: connect RTM serial and second serial

This commit is contained in:
Sebastien Bourdeauducq 2017-08-20 19:01:55 -04:00
parent e94d0803e1
commit d6b624dfbe
1 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,13 @@ class SaymaAMCStandalone(MiniSoC, AMPSoC):
platform.request("user_led", 1))) platform.request("user_led", 1)))
self.csr_devices.append("leds") self.csr_devices.append("leds")
serial_1 = platform.request("serial", 1)
serial_rtm = platform.request("serial_rtm")
self.comb += [
serial_1.tx.eq(serial_rtm.rx),
serial_rtm.rx.eq(serial_1.tx)
]
rtio_channels = [] rtio_channels = []
for i in (2, 3): for i in (2, 3):
phy = ttl_simple.Output(platform.request("user_led", i)) phy = ttl_simple.Output(platform.request("user_led", i))