aboutsummaryrefslogtreecommitdiffstats
path: root/passes/opt/opt.cc
diff options
context:
space:
mode:
authorJannis Harder <me@jix.one>2022-04-01 21:03:20 +0200
committerJannis Harder <me@jix.one>2022-04-01 21:03:20 +0200
commitca5b910296c05c95f3bc7f2d1d2b7db19d6328e2 (patch)
tree9cf51a65ac4706c2ece7d86a290aea4946b8bbde /passes/opt/opt.cc
parent2ec4af56e6ec83fe320cd7af958020ea56e1d9ab (diff)
downloadyosys-ca5b910296c05c95f3bc7f2d1d2b7db19d6328e2.tar.gz
yosys-ca5b910296c05c95f3bc7f2d1d2b7db19d6328e2.tar.bz2
yosys-ca5b910296c05c95f3bc7f2d1d2b7db19d6328e2.zip
opt_merge: Add `-keepdc` option required for formal verification
The `-keepdc` option prevents merging flipflops with dont-care bits in their initial value, as, in general, this is not a valid transform for formal verification. The keepdc option of `opt` is passed along to `opt_merge` now.
Diffstat (limited to 'passes/opt/opt.cc')
-rw-r--r--passes/opt/opt.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/passes/opt/opt.cc b/passes/opt/opt.cc
index c3e418c07..dc88563c2 100644
--- a/passes/opt/opt.cc
+++ b/passes/opt/opt.cc
@@ -114,6 +114,7 @@ struct OptPass : public Pass {
if (args[argidx] == "-keepdc") {
opt_expr_args += " -keepdc";
opt_dff_args += " -keepdc";
+ opt_merge_args += " -keepdc";
continue;
}
if (args[argidx] == "-nodffe") {