diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-08-15 22:56:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 22:56:32 +0200 |
commit | d16178f233c6f89fe591d347508f71995b84ec82 (patch) | |
tree | 0c41cbe0ee18d5af63e5d8ff4736d85e1c642fb5 /passes/techmap/deminout.cc | |
parent | d8a2aaa46379df7a07f4b776b7f9981b04999215 (diff) | |
parent | 6cd8cace0c1d2a9f7b1f1cd56a223c38a5ea799a (diff) | |
download | yosys-d16178f233c6f89fe591d347508f71995b84ec82.tar.gz yosys-d16178f233c6f89fe591d347508f71995b84ec82.tar.bz2 yosys-d16178f233c6f89fe591d347508f71995b84ec82.zip |
Merge pull request #1299 from YosysHQ/eddie/cleanup2
More cleanup, more use of ID() inside passes/techmap
Diffstat (limited to 'passes/techmap/deminout.cc')
-rw-r--r-- | passes/techmap/deminout.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/techmap/deminout.cc b/passes/techmap/deminout.cc index 142d12bdc..585732e6b 100644 --- a/passes/techmap/deminout.cc +++ b/passes/techmap/deminout.cc @@ -83,13 +83,13 @@ 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_", "$tribuf")) + if (conn.first == ID(Y) && cell->type.in(ID($mux), ID($pmux), ID($_MUX_), ID($_TBUF_), ID($tribuf))) { - bool tribuf = cell->type.in("$_TBUF_", "$tribuf"); + bool tribuf = cell->type.in(ID($_TBUF_), ID($tribuf)); if (!tribuf) { for (auto &c : cell->connections()) { - if (!c.first.in("\\A", "\\B")) + if (!c.first.in(ID(A), ID(B))) continue; for (auto b : sigmap(c.second)) if (b == State::Sz) |