From: David Shah Date: Wed, 12 Dec 2018 17:17:36 +0000 (+0000) Subject: deminout: Consider $tribuf cells X-Git-Tag: yosys-0.9~375^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c5944716834e42f5ff5ddaf9a4ef748f8cc2af7;p=yosys.git deminout: Consider $tribuf cells Signed-off-by: David Shah --- diff --git a/passes/techmap/deminout.cc b/passes/techmap/deminout.cc index 0cc3df2af..47d0ff416 100644 --- a/passes/techmap/deminout.cc +++ b/passes/techmap/deminout.cc @@ -83,9 +83,9 @@ struct DeminoutPass : public Pass { for (auto bit : sigmap(conn.second)) bits_used.insert(bit); - if (conn.first == "\\Y" && cell->type.in("$mux", "$pmux", "$_MUX_", "$_TBUF_")) + if (conn.first == "\\Y" && cell->type.in("$mux", "$pmux", "$_MUX_", "$_TBUF_", "$tribuf")) { - bool tribuf = (cell->type == "$_TBUF_"); + bool tribuf = (cell->type == "$_TBUF_" || cell->type == "$tribuf"); if (!tribuf) { for (auto &c : cell->connections()) {