Merge pull request #2089 from VOGL-electronic/efinix_tristate_fix

build: efinix: Tristate fix
This commit is contained in:
enjoy-digital 2024-10-07 11:06:26 +02:00 committed by GitHub
commit 9ad5d21231
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -142,9 +142,9 @@ class EfinixTristateImpl(LiteXModule):
io_pad = platform.get_pins_location(io) io_pad = platform.get_pins_location(io)
io_prop = platform.get_pin_properties(io[0]) io_prop = platform.get_pin_properties(io[0])
io_prop_dict = dict(io_prop) io_prop_dict = dict(io_prop)
io_data_i = platform.add_iface_io(io_name + "_OUT") io_data_i = platform.add_iface_io(io_name + "_OUT", len(io))
io_data_o = platform.add_iface_io(io_name + "_IN") io_data_o = platform.add_iface_io(io_name + "_IN", len(io))
io_data_e = platform.add_iface_io(io_name + "_OE") io_data_e = platform.add_iface_io(io_name + "_OE", len(io))
self.comb += io_data_i.eq(o) self.comb += io_data_i.eq(o)
self.comb += io_data_e.eq(oe) self.comb += io_data_e.eq(oe)
if i is not None: if i is not None: