From ebe8f600e1472d710389ecdea344597ce5621065 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 4 Mar 2019 10:50:56 +0000 Subject: [PATCH] lattice/common: Fix tristate buses with Trellis Signed-off-by: David Shah --- litex/build/lattice/common.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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): -- 2.30.2