Add warning if synth_xilinx -abc9 with family != xc7

This commit is contained in:
Eddie Hung 2019-06-27 11:22:49 -07:00
parent 469f98b6bd
commit 1237a4c116
1 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,8 @@ struct SynthXilinxPass : public ScriptPass
if (help_mode)
run("abc -luts 2:2,3,6:5[,10,20] [-dff]", "(skip if 'nowidelut', only for '-retime')");
else if (abc9) {
if (family != "xc7")
log_warning("'synth_xilinx -abc9' currently supports '-family xc7' only.\n");
if (nowidelut)
run("abc9 -lut +/xilinx/abc_xc7_nowide.lut -box +/xilinx/abc_xc7.box -W " + std::string(XC7_WIRE_DELAY) + string(retime ? " -dff" : ""));
else