projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3a80b7
)
Fix typo in opt_rmdff
author
Eddie Hung
<eddie@fpgeh.com>
Wed, 5 Jun 2019 21:08:14 +0000
(14:08 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Wed, 5 Jun 2019 21:08:14 +0000
(14:08 -0700)
passes/opt/opt_rmdff.cc
patch
|
blob
|
history
diff --git
a/passes/opt/opt_rmdff.cc
b/passes/opt/opt_rmdff.cc
index 2abffa2a9d40a9ee9d07ece33efb878c9fc8f2d8..eeb992a3e446c823f7cde65190416b6f039ea7a8 100644
(file)
--- a/
passes/opt/opt_rmdff.cc
+++ b/
passes/opt/opt_rmdff.cc
@@
-292,8
+292,8
@@
bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff)
sig_q = dff->getPort("\\Q");
sig_c = dff->getPort("\\C");
sig_e = dff->getPort("\\E");
- val_cp = RTLIL::Const(dff->type[
6
] == 'P', 1);
- val_ep = RTLIL::Const(dff->type[
7
] == 'P', 1);
+ val_cp = RTLIL::Const(dff->type[
7
] == 'P', 1);
+ val_ep = RTLIL::Const(dff->type[
8
] == 'P', 1);
}
else if (dff->type == "$ff") {
sig_d = dff->getPort("\\D");