aboutsummaryrefslogtreecommitdiffstats
path: root/passes/opt/opt_muxtree.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-10-15 14:57:28 +0200
committerClifford Wolf <clifford@clifford.at>2015-10-15 14:57:28 +0200
commit1d83854d84b7a0a23ee14b72c1a289b50becdeca (patch)
tree443eb4c608d49541e461fd45f825bf93a36aea71 /passes/opt/opt_muxtree.cc
parent5dd3e93e8f23015d23915ee88f6ffec56166494a (diff)
downloadyosys-1d83854d84b7a0a23ee14b72c1a289b50becdeca.tar.gz
yosys-1d83854d84b7a0a23ee14b72c1a289b50becdeca.tar.bz2
yosys-1d83854d84b7a0a23ee14b72c1a289b50becdeca.zip
Bugfixes in handling of "keep" attribute on wires
Diffstat (limited to 'passes/opt/opt_muxtree.cc')
-rw-r--r--passes/opt/opt_muxtree.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/opt/opt_muxtree.cc b/passes/opt/opt_muxtree.cc
index 15d59202e..905a01627 100644
--- a/passes/opt/opt_muxtree.cc
+++ b/passes/opt/opt_muxtree.cc
@@ -136,7 +136,7 @@ struct OptMuxtreeWorker
}
}
for (auto wire : module->wires()) {
- if (wire->port_output)
+ if (wire->port_output || wire->get_bool_attribute("\\keep"))
for (int idx : sig2bits(RTLIL::SigSpec(wire)))
bit2info[idx].seen_non_mux = true;
}