2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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

View File

@ -44,6 +44,13 @@ class SaymaAMCStandalone(MiniSoC, AMPSoC):
platform.request("user_led", 1)))
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 = []
for i in (2, 3):
phy = ttl_simple.Output(platform.request("user_led", i))