lattice/common: Fix tristate buses with Trellis

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2019-03-04 10:50:56 +00:00
parent 935f3a5337
commit ebe8f600e1
1 changed files with 8 additions and 7 deletions

View File

@ -57,13 +57,14 @@ class LatticeECPXTrellisTristateImpl(Module):
)
else:
for bit in range(nbits):
Instance("TRELLIS_IO",
p_DIR="BIDIR",
i_B=io[bit],
i_I=o[bit],
o_O=i[bit],
i_T=~oe,
)
self.specials += \
Instance("TRELLIS_IO",
p_DIR="BIDIR",
i_B=io[bit],
i_I=o[bit],
o_O=i[bit],
i_T=~oe,
)
class LatticeECPXTrellisTristate(Module):