mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 23:03:42 +00:00
More use of IdString::in()
This commit is contained in:
parent
d8a2aaa463
commit
4cfefae21e
7 changed files with 38 additions and 40 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue