forked from M-Labs/artiq
1
0
Fork 0

sayma_amc: cleanup, fix RTM UART forwarding

This commit is contained in:
Sebastien Bourdeauducq 2017-08-21 16:49:42 -04:00
parent 1f2b373d09
commit 0459a70cf6
1 changed files with 6 additions and 4 deletions

View File

@ -35,22 +35,23 @@ class SaymaAMCStandalone(MiniSoC, AMPSoC):
**kwargs)
AMPSoC.__init__(self)
platform = self.platform
platform.toolchain.bitstream_commands.extend([
"set_property BITSTREAM.GENERAL.COMPRESS True [current_design]",
])
platform.toolchain.bitstream_commands.append(
"set_property BITSTREAM.GENERAL.COMPRESS True [current_design]")
self.submodules.leds = gpio.GPIOOut(Cat(
platform.request("user_led", 0),
platform.request("user_led", 1)))
self.csr_devices.append("leds")
# forward RTM UART to second FTDI UART channel
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)
serial_rtm.tx.eq(serial_1.rx)
]
# RTIO
rtio_channels = []
for i in (2, 3):
phy = ttl_simple.Output(platform.request("user_led", i))
@ -91,6 +92,7 @@ class SaymaAMCStandalone(MiniSoC, AMPSoC):
self.get_native_sdram_if())
self.csr_devices.append("rtio_analyzer")
def main():
parser = argparse.ArgumentParser(
description="ARTIQ device binary builder / Sayma AMC stand-alone")