Fix polarity of EN_POL
authorEddie Hung <eddie@fpgeh.com>
Wed, 21 Aug 2019 21:42:11 +0000 (14:42 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 21 Aug 2019 21:42:11 +0000 (14:42 -0700)
passes/pmgen/xilinx_srl.cc

index 4a3a30f8323881a670c01783f93a6c1a7bf845c1..bd4dc59ab21b94862dba80fd4e4f153c8664d4f8 100644 (file)
@@ -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);