From ea2ac2b10658b8349cc307b28a316a0c8917b452 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 8 Jun 2020 23:21:33 +0200 Subject: [PATCH] de0: fix UART RTS/CTS direction. RTS and CTS match the schematic, but the direction is incorrect: CTS is output, RTS is input. Fix by setting role=dce. Ref. https://www.intel.com/content/dam/altera-www/global/en_US/portal/dsn/42/doc-us-dsnbk-42-5804152209-de0-user-manual.pdf --- nmigen_boards/de0.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nmigen_boards/de0.py b/nmigen_boards/de0.py index 8574230..5ba3e9a 100644 --- a/nmigen_boards/de0.py +++ b/nmigen_boards/de0.py @@ -44,7 +44,8 @@ class DE0Platform(IntelPlatform): UARTResource(0, rx="U22", tx="U21", rts="V22", cts="V21", - attrs=Attrs(io_standard="3.3-V LVTTL")), + attrs=Attrs(io_standard="3.3-V LVTTL"), + role="dce"), Resource("display_hd44780", 0, Subsignal("e", Pins("E21", dir="o")), -- 2.30.2