From: Eddie Hung Date: Thu, 12 Dec 2019 22:33:33 +0000 (-0800) Subject: synth_xilinx: error out if tristate without '-iopad' X-Git-Tag: working-ls180~846^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bd623bb05c0be74b024f5635e754e794bd6316c;p=yosys.git synth_xilinx: error out if tristate without '-iopad' --- diff --git a/techlibs/xilinx/synth_xilinx.cc b/techlibs/xilinx/synth_xilinx.cc index 2c5686a35..6dd769055 100644 --- a/techlibs/xilinx/synth_xilinx.cc +++ b/techlibs/xilinx/synth_xilinx.cc @@ -306,6 +306,10 @@ struct SynthXilinxPass : public ScriptPass run("proc"); if (flatten || help_mode) run("flatten", "(with '-flatten')"); + active_design->scratchpad_unset("tribuf.added_something"); + run("tribuf -logic"); + if (!do_iopad && active_design->scratchpad_get_bool("tribuf.added_something")) + log_error("Tristate buffers are unsupported without the '-iopad' option.\n"); run("tribuf -logic"); run("deminout"); run("opt_expr");