projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b97b61
)
Hotfix for 4c82ddf
author
Clifford Wolf
<clifford@clifford.at>
Thu, 21 Feb 2019 18:27:23 +0000
(19:27 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Thu, 21 Feb 2019 18:27:23 +0000
(19:27 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/cmds/setundef.cc
patch
|
blob
|
history
diff --git
a/passes/cmds/setundef.cc
b/passes/cmds/setundef.cc
index aea3165e49a857b3813b0ce3aad907251feb86e3..f6949c820c7db759b1280cf7f5e4c5216c698385 100644
(file)
--- a/
passes/cmds/setundef.cc
+++ b/
passes/cmds/setundef.cc
@@
-238,20
+238,11
@@
struct SetundefPass : public Pass {
{
if (params_mode)
{
- for (auto *cell : module->cells())
- {
- // Only modify selected cells.
- if (!design->selected(module, it)) {
- continue;
- }
-
- for (auto ¶meter : cell->parameters)
- {
+ for (auto *cell : module->selected_cells()) {
+ for (auto ¶meter : cell->parameters) {
for (auto &bit : parameter.second.bits) {
if (bit > RTLIL::State::S1)
- {
bit = worker.next_bit();
- }
}
}
}