Skip to content

Commit

Permalink
build: efinix: Tristate fix
Browse files Browse the repository at this point in the history
fix efinix Tristate by adding size to add_iface_io().

Signed-off-by: Fin Maaß <[email protected]>
  • Loading branch information
maass-hamburg committed Oct 7, 2024
1 parent 644ef7e commit 4fcae9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions litex/build/efinix/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4fcae9f

Please sign in to comment.