aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/pmuxtree.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-17 15:01:31 +0200
committerGitHub <noreply@github.com>2019-08-17 15:01:31 +0200
commit8915f496d97a2e858cbadb265695dd1a54b80ac4 (patch)
tree352bd2245f166e0f6679fed971655c7d3df0a7b4 /passes/techmap/pmuxtree.cc
parent41191f1ea48437423b4caf81e6af1e3024bb8c7d (diff)
parent3b19c3657cda6d972bd3b1c3eeacdfca5fb35de8 (diff)
downloadyosys-8915f496d97a2e858cbadb265695dd1a54b80ac4.tar.gz
yosys-8915f496d97a2e858cbadb265695dd1a54b80ac4.tar.bz2
yosys-8915f496d97a2e858cbadb265695dd1a54b80ac4.zip
Merge pull request #1300 from YosysHQ/eddie/cleanup2
Use ID::{A,B,Y,keep,blackbox,whitebox} instead of ID()
Diffstat (limited to 'passes/techmap/pmuxtree.cc')
-rw-r--r--passes/techmap/pmuxtree.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/passes/techmap/pmuxtree.cc b/passes/techmap/pmuxtree.cc
index f77652f3b..31ab13cec 100644
--- a/passes/techmap/pmuxtree.cc
+++ b/passes/techmap/pmuxtree.cc
@@ -92,18 +92,18 @@ struct PmuxtreePass : public Pass {
if (cell->type != ID($pmux))
continue;
- SigSpec sig_data = cell->getPort(ID(B));
+ 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);
}
}