From f1aeee1d1b8b23cc59234d359d0c44c0a99fa86e Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 8 Jun 2020 23:13:28 +0200 Subject: [PATCH] blackice_ii: fix UART RTS/CTS direction. Pin numbers match the P0/P1 signals in the schematic, but the direction is reversed. Fix by setting role="dce". Ref. https://github.com/mystorm-org/BlackIce-II/blob/master/hardware/BlackIce.pdf --- nmigen_boards/blackice_ii.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nmigen_boards/blackice_ii.py b/nmigen_boards/blackice_ii.py index a679bda..2187d60 100644 --- a/nmigen_boards/blackice_ii.py +++ b/nmigen_boards/blackice_ii.py @@ -30,7 +30,8 @@ class BlackIceIIPlatform(LatticeICE40Platform): UARTResource(0, rx="88", tx="85", rts="91", cts="94", - attrs=Attrs(IO_STANDARD="SB_LVCMOS", PULLUP=1) + attrs=Attrs(IO_STANDARD="SB_LVCMOS", PULLUP=1), + role="dce" ), SRAMResource(0, -- 2.30.2