From 4fcae9f3c72d4c88fc17a29fe461f3ef03c4b4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Mon, 7 Oct 2024 10:15:38 +0200 Subject: [PATCH] build: efinix: Tristate fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix efinix Tristate by adding size to add_iface_io(). Signed-off-by: Fin Maaß --- litex/build/efinix/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/build/efinix/common.py b/litex/build/efinix/common.py index 50d78a8d98..0a3ef4bf91 100644 --- a/litex/build/efinix/common.py +++ b/litex/build/efinix/common.py @@ -142,9 +142,9 @@ def __init__(self, io, o, oe, i=None): io_pad = platform.get_pins_location(io) io_prop = platform.get_pin_properties(io[0]) io_prop_dict = dict(io_prop) - io_data_i = platform.add_iface_io(io_name + "_OUT") - io_data_o = platform.add_iface_io(io_name + "_IN") - io_data_e = platform.add_iface_io(io_name + "_OE") + io_data_i = platform.add_iface_io(io_name + "_OUT", len(io)) + io_data_o = platform.add_iface_io(io_name + "_IN", len(io)) + io_data_e = platform.add_iface_io(io_name + "_OE", len(io)) self.comb += io_data_i.eq(o) self.comb += io_data_e.eq(oe) if i is not None: