mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
ID(\\.*) -> ID(.*)
This commit is contained in:
parent
467c34eff0
commit
02dead2e60
25 changed files with 766 additions and 766 deletions
|
@ -92,18 +92,18 @@ struct PmuxtreePass : public Pass {
|
|||
if (cell->type != ID($pmux))
|
||||
continue;
|
||||
|
||||
SigSpec sig_data = cell->getPort(ID(\\B));
|
||||
SigSpec sig_sel = cell->getPort(ID(\\S));
|
||||
SigSpec sig_data = cell->getPort(ID(B));
|
||||
SigSpec sig_sel = cell->getPort(ID(S));
|
||||
|
||||
if (!cell->getPort(ID(\\A)).is_fully_undef()) {
|
||||
sig_data.append(cell->getPort(ID(\\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(ID(\\Y)), result);
|
||||
module->connect(cell->getPort(ID(Y)), result);
|
||||
module->remove(cell);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue