efinix: fix EfinixTristateImpl

This commit is contained in:
Franck Jullien 2022-02-01 21:14:35 +01:00
parent 6f6a10db5c
commit be8e825a0b
1 changed files with 2 additions and 2 deletions

View File

@ -73,9 +73,9 @@ class EfinixTristateImpl(Module):
io_o = platform.add_iface_io(io_name + "_OUT")
io_oe = platform.add_iface_io(io_name + "_OE")
io_i = platform.add_iface_io(io_name + "_IN")
self.comb += io_o.eq(o[bit])
self.comb += io_o.eq(o >> bit)
self.comb += io_oe.eq(oe)
if i[bit] is not None:
if i is not None:
self.comb += i[bit].eq(io_i)
block = {
"type" : "GPIO",