diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-07-10 14:38:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 14:38:13 -0700 |
commit | bb2144ae733f1a2c5e629a8251bfbdcc15559aa4 (patch) | |
tree | 2ba1b5b6cc0df7d6dba956905ca39fcc7b22ea75 /techlibs/ice40 | |
parent | 2f990a73192de15199c16c5c683228a97dc8ce2d (diff) | |
parent | 6bbd286e033ed25bb49684316a86d6227dec4cd7 (diff) | |
download | yosys-bb2144ae733f1a2c5e629a8251bfbdcc15559aa4.tar.gz yosys-bb2144ae733f1a2c5e629a8251bfbdcc15559aa4.tar.bz2 yosys-bb2144ae733f1a2c5e629a8251bfbdcc15559aa4.zip |
Merge pull request #1180 from YosysHQ/eddie/no_abc9_retime
Error out if -abc9 and -retime specified
Diffstat (limited to 'techlibs/ice40')
-rw-r--r-- | techlibs/ice40/synth_ice40.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc index 9dd5d81f7..2c75215cb 100644 --- a/techlibs/ice40/synth_ice40.cc +++ b/techlibs/ice40/synth_ice40.cc @@ -227,6 +227,9 @@ struct SynthIce40Pass : public ScriptPass if (device_opt != "hx" && device_opt != "lp" && device_opt !="u") log_cmd_error("Invalid or no device specified: '%s'\n", device_opt.c_str()); + if (abc == "abc9" && retime) + log_cmd_error("-retime option not currently compatible with -abc9!\n"); + log_header(design, "Executing SYNTH_ICE40 pass.\n"); log_push(); @@ -296,7 +299,7 @@ struct SynthIce40Pass : public ScriptPass run("techmap"); else run("techmap -map +/techmap.v -map +/ice40/arith_map.v"); - if ((retime || help_mode) && abc != "abc9") + if (retime || help_mode) run(abc + " -dff", "(only if -retime)"); run("ice40_opt"); } |