mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
sayma_amc: cleanup, fix RTM UART forwarding
This commit is contained in:
parent
1f2b373d09
commit
0459a70cf6
@ -35,22 +35,23 @@ class SaymaAMCStandalone(MiniSoC, AMPSoC):
|
|||||||
**kwargs)
|
**kwargs)
|
||||||
AMPSoC.__init__(self)
|
AMPSoC.__init__(self)
|
||||||
platform = self.platform
|
platform = self.platform
|
||||||
platform.toolchain.bitstream_commands.extend([
|
platform.toolchain.bitstream_commands.append(
|
||||||
"set_property BITSTREAM.GENERAL.COMPRESS True [current_design]",
|
"set_property BITSTREAM.GENERAL.COMPRESS True [current_design]")
|
||||||
])
|
|
||||||
|
|
||||||
self.submodules.leds = gpio.GPIOOut(Cat(
|
self.submodules.leds = gpio.GPIOOut(Cat(
|
||||||
platform.request("user_led", 0),
|
platform.request("user_led", 0),
|
||||||
platform.request("user_led", 1)))
|
platform.request("user_led", 1)))
|
||||||
self.csr_devices.append("leds")
|
self.csr_devices.append("leds")
|
||||||
|
|
||||||
|
# forward RTM UART to second FTDI UART channel
|
||||||
serial_1 = platform.request("serial", 1)
|
serial_1 = platform.request("serial", 1)
|
||||||
serial_rtm = platform.request("serial_rtm")
|
serial_rtm = platform.request("serial_rtm")
|
||||||
self.comb += [
|
self.comb += [
|
||||||
serial_1.tx.eq(serial_rtm.rx),
|
serial_1.tx.eq(serial_rtm.rx),
|
||||||
serial_rtm.rx.eq(serial_1.tx)
|
serial_rtm.tx.eq(serial_1.rx)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# RTIO
|
||||||
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))
|
||||||
@ -91,6 +92,7 @@ class SaymaAMCStandalone(MiniSoC, AMPSoC):
|
|||||||
self.get_native_sdram_if())
|
self.get_native_sdram_if())
|
||||||
self.csr_devices.append("rtio_analyzer")
|
self.csr_devices.append("rtio_analyzer")
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="ARTIQ device binary builder / Sayma AMC stand-alone")
|
description="ARTIQ device binary builder / Sayma AMC stand-alone")
|
||||||
|
Loading…
Reference in New Issue
Block a user