projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1646a0
)
opt_dff: Fix behavior on $ff with D == Q.
author
Marcelina Kościelnicka
<mwk@0x04.net>
Thu, 14 Apr 2022 13:08:20 +0000
(15:08 +0200)
committer
Marcelina Kościelnicka
<mwk@0x04.net>
Fri, 15 Apr 2022 20:00:32 +0000
(22:00 +0200)
passes/opt/opt_dff.cc
patch
|
blob
|
history
diff --git
a/passes/opt/opt_dff.cc
b/passes/opt/opt_dff.cc
index 73d674c8d420c21803679ce5605a02e76a77bd5d..0ad4acec2167447f2c5843d29c529a1f2e4ef586 100644
(file)
--- a/
passes/opt/opt_dff.cc
+++ b/
passes/opt/opt_dff.cc
@@
-554,7
+554,7
@@
struct OptDffWorker
// The D input path is effectively useless, so remove it (this will be a const-input D latch, SR latch, or a const driver).
log("Handling D = Q on %s (%s) from module %s (removing D path).\n",
log_id(cell), log_id(cell->type), log_id(module));
- ff.has_clk = ff.has_ce = false;
+ ff.has_
gclk = ff.has_
clk = ff.has_ce = false;
changed = true;
}
}