projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c7d721
)
Add CLKPOL == 0
author
Eddie Hung
<eddie@fpgeh.com>
Wed, 21 Aug 2019 21:35:40 +0000
(14:35 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Wed, 21 Aug 2019 21:35:40 +0000
(14:35 -0700)
passes/pmgen/xilinx_srl.cc
patch
|
blob
|
history
diff --git
a/passes/pmgen/xilinx_srl.cc
b/passes/pmgen/xilinx_srl.cc
index a4a8933079032bd419ab87e33a0ee498655461ae..4a3a30f8323881a670c01783f93a6c1a7bf845c1 100644
(file)
--- a/
passes/pmgen/xilinx_srl.cc
+++ b/
passes/pmgen/xilinx_srl.cc
@@
-64,6
+64,8
@@
void reduce_chain(xilinx_srl_pm &pm)
c->setParam(ID(INIT), initval.as_const());
if (c->type.in(ID($_DFF_P_), ID($_DFFE_PN_), ID($_DFFE_PP_)))
c->setParam(ID(CLKPOL), 1);
+ else if (c->type.in(ID($_DFF_N_), ID($DFFE_NN_), ID($_DFFE_NP_), ID(FDRE_1)))
+ c->setParam(ID(CLKPOL), 0);
else
log_abort();
if (c->type.in(ID($_DFFE_NN_), ID($_DFFE_PN_)))