diff options
author | whitequark <whitequark@whitequark.org> | 2018-12-07 16:58:33 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2018-12-07 17:20:34 +0000 |
commit | 7ff5a9db2d17c384260c2220c9205a7b4891f001 (patch) | |
tree | b2a11d22feab846070dda3612ad60b0504ca8caa /passes/equiv | |
parent | c38ea9ae65b2a987d6a7ea790abf339944069f9a (diff) | |
download | yosys-7ff5a9db2d17c384260c2220c9205a7b4891f001.tar.gz yosys-7ff5a9db2d17c384260c2220c9205a7b4891f001.tar.bz2 yosys-7ff5a9db2d17c384260c2220c9205a7b4891f001.zip |
equiv_opt: pass -D EQUIV when techmapping.
This allows avoiding techmap crashes e.g. because of large memories
in white-box cell models.
Diffstat (limited to 'passes/equiv')
-rw-r--r-- | passes/equiv/equiv_opt.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/passes/equiv/equiv_opt.cc b/passes/equiv/equiv_opt.cc index 68593d301..408afd3e4 100644 --- a/passes/equiv/equiv_opt.cc +++ b/passes/equiv/equiv_opt.cc @@ -137,10 +137,12 @@ struct EquivOptPass : public ScriptPass if ((!techmap_opts.empty() || help_mode) && check_label("techmap", "(only with -map)")) { + string opts; if (help_mode) - run("techmap -autoproc -map <filename> ..."); + opts = " -map <filename> ..."; else - run("techmap -autoproc" + techmap_opts); + opts = techmap_opts; + run("techmap -D EQUIV -autoproc" + opts); } if (check_label("prove")) |