lattice/common: Fix tristate buses with Trellis
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
935f3a5337
commit
ebe8f600e1
|
@ -57,13 +57,14 @@ class LatticeECPXTrellisTristateImpl(Module):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
for bit in range(nbits):
|
for bit in range(nbits):
|
||||||
Instance("TRELLIS_IO",
|
self.specials += \
|
||||||
p_DIR="BIDIR",
|
Instance("TRELLIS_IO",
|
||||||
i_B=io[bit],
|
p_DIR="BIDIR",
|
||||||
i_I=o[bit],
|
i_B=io[bit],
|
||||||
o_O=i[bit],
|
i_I=o[bit],
|
||||||
i_T=~oe,
|
o_O=i[bit],
|
||||||
)
|
i_T=~oe,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class LatticeECPXTrellisTristate(Module):
|
class LatticeECPXTrellisTristate(Module):
|
||||||
|
|
Loading…
Reference in New Issue