diff options
author | Claire Xen <claire@clairexen.net> | 2022-03-14 16:05:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 16:05:23 +0100 |
commit | 5e2992dae2e2e858e40afbe8556b376708bf3974 (patch) | |
tree | 14506df97af27a48542a6e4f21fb7527aa20c97b /passes | |
parent | 27c5bafc956b0dac22ef009645c15fe2eef326b7 (diff) | |
parent | 89300b2dca56e5d8e82a516376abc89a9e18d9db (diff) | |
download | yosys-5e2992dae2e2e858e40afbe8556b376708bf3974.tar.gz yosys-5e2992dae2e2e858e40afbe8556b376708bf3974.tar.bz2 yosys-5e2992dae2e2e858e40afbe8556b376708bf3974.zip |
Merge pull request #3213 from antonblanchard/abc-typo
abc: Fix {I} and {P} substitution
Diffstat (limited to 'passes')
-rw-r--r-- | passes/techmap/abc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index 80c6282c4..2c91f3a48 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -757,10 +757,10 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin for (size_t pos = abc_script.find("{D}"); pos != std::string::npos; pos = abc_script.find("{D}", pos)) abc_script = abc_script.substr(0, pos) + delay_target + abc_script.substr(pos+3); - for (size_t pos = abc_script.find("{I}"); pos != std::string::npos; pos = abc_script.find("{D}", pos)) + for (size_t pos = abc_script.find("{I}"); pos != std::string::npos; pos = abc_script.find("{I}", pos)) abc_script = abc_script.substr(0, pos) + sop_inputs + abc_script.substr(pos+3); - for (size_t pos = abc_script.find("{P}"); pos != std::string::npos; pos = abc_script.find("{D}", pos)) + for (size_t pos = abc_script.find("{P}"); pos != std::string::npos; pos = abc_script.find("{P}", pos)) abc_script = abc_script.substr(0, pos) + sop_products + abc_script.substr(pos+3); for (size_t pos = abc_script.find("{S}"); pos != std::string::npos; pos = abc_script.find("{S}", pos)) |