From 140e4586abce328780c617fdc1a528317a515ef5 Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Thu, 21 Oct 2021 12:11:52 -0400 Subject: [PATCH] Use PIN_INPUT mode in LatticeiCE40SDROutputImpl because i_INPUT_CLK is not connected. --- litex/build/lattice/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litex/build/lattice/common.py b/litex/build/lattice/common.py index d19152c0b..f178f8418 100644 --- a/litex/build/lattice/common.py +++ b/litex/build/lattice/common.py @@ -446,7 +446,10 @@ class LatticeiCE40DDRInput: class LatticeiCE40SDROutputImpl(Module): def __init__(self, i, o, clk): self.specials += Instance("SB_IO", - p_PIN_TYPE = C(0b010100, 6), # PIN_OUTPUT_REGISTERED + # i_INPUT_CLK must match between two SB_IOs in the same tile. + # In PIN_INPUT mode, this restriction is relaxed; an unconnected + # i_INPUT_CLK also works. + p_PIN_TYPE = C(0b010101, 6), # PIN_OUTPUT_REGISTERED + PIN_INPUT p_IO_STANDARD = "SB_LVCMOS", io_PACKAGE_PIN = o, i_CLOCK_ENABLE = 1,