Bugfix for $_DFF_?_ in "dff2dffe -direct-match"
authorClifford Wolf <clifford@clifford.at>
Fri, 17 Apr 2015 19:35:59 +0000 (21:35 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 17 Apr 2015 19:35:59 +0000 (21:35 +0200)
passes/techmap/dff2dffe.cc

index 4d2808851d664608f86981fca2f99df52735cfe7..5ebc3ef98a5ced5cf160c30d2abd2f1295dbf712 100644 (file)
@@ -305,8 +305,8 @@ struct Dff2dffePass : public Pass {
                        if (args[argidx] == "-direct-match" && argidx + 1 < args.size()) {
                                bool found_match = false;
                                const char *pattern = args[++argidx].c_str();
-                               if (patmatch(pattern, "$_DFF_P_"  )) found_match = true, direct_dict["$_DFF_P_"  ] = "$_DFFE_P_";
-                               if (patmatch(pattern, "$_DFF_N_"  )) found_match = true, direct_dict["$_DFF_N_"  ] = "$_DFFE_N_";
+                               if (patmatch(pattern, "$_DFF_P_"  )) found_match = true, direct_dict["$_DFF_P_"  ] = "$_DFFE_PP_";
+                               if (patmatch(pattern, "$_DFF_N_"  )) found_match = true, direct_dict["$_DFF_N_"  ] = "$_DFFE_NP_";
                                if (patmatch(pattern, "$_DFF_NN0_")) found_match = true, direct_dict["$_DFF_NN0_"] = "$__DFFE_NN0";
                                if (patmatch(pattern, "$_DFF_NN1_")) found_match = true, direct_dict["$_DFF_NN1_"] = "$__DFFE_NN1";
                                if (patmatch(pattern, "$_DFF_NP0_")) found_match = true, direct_dict["$_DFF_NP0_"] = "$__DFFE_NP0";