From: David Shah Date: Mon, 4 Mar 2019 10:50:56 +0000 (+0000) Subject: lattice/common: Fix tristate buses with Trellis X-Git-Tag: 24jan2021_ls180~1371^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebe8f600e1472d710389ecdea344597ce5621065;p=litex.git lattice/common: Fix tristate buses with Trellis Signed-off-by: David Shah --- diff --git a/litex/build/lattice/common.py b/litex/build/lattice/common.py index d1e7e82e..6875b693 100644 --- a/litex/build/lattice/common.py +++ b/litex/build/lattice/common.py @@ -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):