diff options
author | David Shah <dave@ds0.me> | 2018-12-12 17:17:36 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2018-12-12 17:17:40 +0000 |
commit | 4c5944716834e42f5ff5ddaf9a4ef748f8cc2af7 (patch) | |
tree | 4fdfa82d80c539c5b5ea2e46b3181f6792c0a734 /passes/techmap | |
parent | d3fe9465f3efc30daf54926d6b3d2743b5fb3e51 (diff) | |
download | yosys-4c5944716834e42f5ff5ddaf9a4ef748f8cc2af7.tar.gz yosys-4c5944716834e42f5ff5ddaf9a4ef748f8cc2af7.tar.bz2 yosys-4c5944716834e42f5ff5ddaf9a4ef748f8cc2af7.zip |
deminout: Consider $tribuf cells
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/deminout.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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()) { |