projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dd42d4
)
dfflegalize: remove redundant check for initialized dlatch
author
Paul Annesley
<paul@annesley.cc>
Sun, 17 Oct 2021 01:56:32 +0000
(12:56 +1100)
committer
Marcelina KoĆcielnicka
<mwk@0x04.net>
Sun, 17 Oct 2021 20:10:37 +0000
(22:10 +0200)
This if condition is repeated verbatim, and I can't imagine a legitimate
way the inputs could change in between. I imagine it's a copy/paste
mistake.
passes/techmap/dfflegalize.cc
patch
|
blob
|
history
diff --git
a/passes/techmap/dfflegalize.cc
b/passes/techmap/dfflegalize.cc
index c1e7e557d927a8f61a5fd586e90bcebc7fd4b98b..5210d01eb9814f3b73368d6e8ad255b3d61f2346 100644
(file)
--- a/
passes/techmap/dfflegalize.cc
+++ b/
passes/techmap/dfflegalize.cc
@@
-718,10
+718,6
@@
flip_dqisr:;
goto error;
}
- if (!(supported_dlatch & ~INIT_X)) {
- reason = "initialized dlatch are not supported";
- goto error;
- }
// If we got here, initialized dlatch is supported, but not this
// particular reset+init combination (nor its negation).
// The only hope left is breaking down to adff + dff + dlatch + mux.