Merge pull request #150 from daveshah1/trellis_bus_fixes

lattice/common: Fix tristate buses with Trellis
This commit is contained in:
enjoy-digital 2019-03-04 12:00:44 +01:00 committed by GitHub
commit 2ebfab5e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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):