3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

ID(\\.*) -> ID(.*)

This commit is contained in:
Eddie Hung 2019-08-15 10:25:54 -07:00
parent 467c34eff0
commit 02dead2e60
25 changed files with 766 additions and 766 deletions

View file

@ -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);
}
}