Merge pull request #150 from daveshah1/trellis_bus_fixes
lattice/common: Fix tristate buses with Trellis
This commit is contained in:
commit
2ebfab5e1f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue