diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-04-17 21:35:59 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-04-17 21:35:59 +0200 |
commit | 8cdbcf6859e29fa4cda9b40a7cf51b9bef0ba779 (patch) | |
tree | 061c82bb586dcbb123cb432e5f05219d04d12fae /passes/techmap/dff2dffe.cc | |
parent | 661b64755915c6393fc56a8a543171e3722c91e1 (diff) | |
download | yosys-8cdbcf6859e29fa4cda9b40a7cf51b9bef0ba779.tar.gz yosys-8cdbcf6859e29fa4cda9b40a7cf51b9bef0ba779.tar.bz2 yosys-8cdbcf6859e29fa4cda9b40a7cf51b9bef0ba779.zip |
Bugfix for $_DFF_?_ in "dff2dffe -direct-match"
Diffstat (limited to 'passes/techmap/dff2dffe.cc')
-rw-r--r-- | passes/techmap/dff2dffe.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/techmap/dff2dffe.cc b/passes/techmap/dff2dffe.cc index 4d2808851..5ebc3ef98 100644 --- a/passes/techmap/dff2dffe.cc +++ b/passes/techmap/dff2dffe.cc @@ -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"; |