diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-15 09:23:57 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-15 09:23:57 -0700 |
commit | 4cfefae21e872bb5a4dc13473316352da2b7a916 (patch) | |
tree | c15999e09436abf18b284eda38a958ce6e5295e1 /passes/techmap/techmap.cc | |
parent | d8a2aaa46379df7a07f4b776b7f9981b04999215 (diff) | |
download | yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.tar.gz yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.tar.bz2 yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.zip |
More use of IdString::in()
Diffstat (limited to 'passes/techmap/techmap.cc')
-rw-r--r-- | passes/techmap/techmap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index 2708b08ae..ca231eb53 100644 --- a/passes/techmap/techmap.cc +++ b/passes/techmap/techmap.cc @@ -349,7 +349,7 @@ struct TechmapWorker port_signal_map.apply(it2.second); } - if (c->type == "$memrd" || c->type == "$memwr" || c->type == "$meminit") { + if (c->type.in("$memrd", "$memwr", "$meminit")) { IdString memid = c->getParam("\\MEMID").decode_string(); log_assert(memory_renames.count(memid) != 0); c->setParam("\\MEMID", Const(memory_renames[memid].str())); @@ -520,7 +520,7 @@ struct TechmapWorker int port_counter = 1; for (auto &c : extmapper_cell->connections_) { RTLIL::Wire *w = extmapper_module->addWire(c.first, GetSize(c.second)); - if (w->name == "\\Y" || w->name == "\\Q") + if (w->name.in("\\Y", "\\Q")) w->port_output = true; else w->port_input = true; |