diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-12 09:05:02 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-12 09:05:02 -0700 |
commit | 2cbcd6224c0293a3abdf00f51c515fc556d9d3e1 (patch) | |
tree | bf9b2cc5fe48eb26391124aee2abbe414404ec9f /passes/techmap | |
parent | 882a83c383e277e51083019227a88c38bc6b1c68 (diff) | |
download | yosys-2cbcd6224c0293a3abdf00f51c515fc556d9d3e1.tar.gz yosys-2cbcd6224c0293a3abdf00f51c515fc556d9d3e1.tar.bz2 yosys-2cbcd6224c0293a3abdf00f51c515fc556d9d3e1.zip |
Revert "Merge remote-tracking branch 'origin/eddie/shregmap_improve' into xc7mux"
This reverts commit a138381ac3f2c820d187f08531ffd823d6cbcfd5, reversing
changes made to b77c5da76919f7f99f171a0a2775896fbc8debc2.
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/shregmap.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/passes/techmap/shregmap.cc b/passes/techmap/shregmap.cc index 46f6a79fb..21dfe9619 100644 --- a/passes/techmap/shregmap.cc +++ b/passes/techmap/shregmap.cc @@ -293,13 +293,10 @@ struct ShregmapWorker if (opts.init || sigbit_init.count(q_bit) == 0) { - auto r = sigbit_chain_next.insert(std::make_pair(d_bit, cell)); - if (!r.second) { + if (sigbit_chain_next.count(d_bit)) { sigbit_with_non_chain_users.insert(d_bit); - Wire *wire = module->addWire(NEW_ID); - module->connect(wire, d_bit); - sigbit_chain_next.insert(std::make_pair(wire, cell)); - } + } else + sigbit_chain_next[d_bit] = cell; sigbit_chain_prev[q_bit] = cell; continue; |