diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-21 14:42:11 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-21 14:42:11 -0700 |
commit | 3c8e8521a6c5431c9350038abcb50dff5dfe8469 (patch) | |
tree | 7c3a850c1bde64bd9fb866ffcf984f622391f42d /passes/pmgen | |
parent | a980f0d4be218040ee2ecf42186583e416f82d91 (diff) | |
download | yosys-3c8e8521a6c5431c9350038abcb50dff5dfe8469.tar.gz yosys-3c8e8521a6c5431c9350038abcb50dff5dfe8469.tar.bz2 yosys-3c8e8521a6c5431c9350038abcb50dff5dfe8469.zip |
Fix polarity of EN_POL
Diffstat (limited to 'passes/pmgen')
-rw-r--r-- | passes/pmgen/xilinx_srl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/pmgen/xilinx_srl.cc b/passes/pmgen/xilinx_srl.cc index 4a3a30f83..bd4dc59ab 100644 --- a/passes/pmgen/xilinx_srl.cc +++ b/passes/pmgen/xilinx_srl.cc @@ -68,9 +68,9 @@ void reduce_chain(xilinx_srl_pm &pm) c->setParam(ID(CLKPOL), 0); else log_abort(); - if (c->type.in(ID($_DFFE_NN_), ID($_DFFE_PN_))) + if (c->type.in(ID($_DFFE_NP_), ID($_DFFE_PP_))) c->setParam(ID(ENPOL), 1); - else if (c->type.in(ID($_DFFE_NP_), ID($_DFFE_PN_))) + else if (c->type.in(ID($_DFFE_NN_), ID($_DFFE_PN_))) c->setParam(ID(ENPOL), 0); else c->setParam(ID(ENPOL), 2); |