mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Transform all "\\*" identifiers into ID()
This commit is contained in:
parent
9f98241010
commit
78ba8b8574
25 changed files with 782 additions and 782 deletions
|
@ -92,18 +92,18 @@ struct PmuxtreePass : public Pass {
|
|||
if (cell->type != ID($pmux))
|
||||
continue;
|
||||
|
||||
SigSpec sig_data = cell->getPort("\\B");
|
||||
SigSpec sig_sel = cell->getPort("\\S");
|
||||
SigSpec sig_data = cell->getPort(ID(\\B));
|
||||
SigSpec sig_sel = cell->getPort(ID(\\S));
|
||||
|
||||
if (!cell->getPort("\\A").is_fully_undef()) {
|
||||
sig_data.append(cell->getPort("\\A"));
|
||||
if (!cell->getPort(ID(\\A)).is_fully_undef()) {
|
||||
sig_data.append(cell->getPort(ID(\\A)));
|
||||
SigSpec sig_sel_or = module->ReduceOr(NEW_ID, sig_sel);
|
||||
sig_sel.append(module->Not(NEW_ID, sig_sel_or));
|
||||
}
|
||||
|
||||
SigSpec result, result_or;
|
||||
result = recursive_mux_generator(module, sig_data, sig_sel, result_or);
|
||||
module->connect(cell->getPort("\\Y"), result);
|
||||
module->connect(cell->getPort(ID(\\Y)), result);
|
||||
module->remove(cell);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue