From dc2e0d4c1b6f7bc159437181f9755047f6ec5a41 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Sat, 13 Apr 2024 15:31:21 -0300 Subject: [PATCH] ls2: avoid using DRIVE attribute on Xilinx devices for now The DRIVE attribute is currently broken. See: https://github.com/openXC7/nextpnr-xilinx/issues/7 --- src/ls2.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ls2.py b/src/ls2.py index 2a17fae..f151cb4 100644 --- a/src/ls2.py +++ b/src/ls2.py @@ -968,7 +968,11 @@ def build_platform(fpga, firmware): Subsignal("dq3", Pins("M14", dir="io")), Subsignal("cs_n", Pins("L13", dir="o")), Subsignal("clk", Pins("L16", dir="o")), - Attrs(PULLMODE="NONE", DRIVE="4", IOSTANDARD="LVCMOS33")) + # drive support is currently broken on + # nextpnx-xilinx/openxc7. Add back DRIVE="4" below + # when upstream fixes it. + # See: https://github.com/openXC7/nextpnr-xilinx/issues/7 + Attrs(PULLMODE="NONE", IOSTANDARD="LVCMOS33")) ] platform.add_resources(spi_0_ios) spi_0_pins = platform.request("spi_0", 0) -- 2.30.2