deminout: Consider $tribuf cells
authorDavid Shah <dave@ds0.me>
Wed, 12 Dec 2018 17:17:36 +0000 (17:17 +0000)
committerDavid Shah <dave@ds0.me>
Wed, 12 Dec 2018 17:17:40 +0000 (17:17 +0000)
Signed-off-by: David Shah <dave@ds0.me>
passes/techmap/deminout.cc

index 0cc3df2af6ec286411b1c28784c65d35dcd38c43..47d0ff416232a3bdf2d75356c3a585baab021b3e 100644 (file)
@@ -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()) {