aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-28 17:41:57 -0800
committerEddie Hung <eddie@fpgeh.com>2020-01-28 17:41:57 -0800
commit0fd64aab25787e2591080cf71192ee16fcf2ae9f (patch)
tree74a9b1eb3a584fbdd5221800028180b096b82caf /techlibs
parent7e0e42f907260e76e3c7cb01c907a0cf61a6e326 (diff)
downloadyosys-0fd64aab25787e2591080cf71192ee16fcf2ae9f.tar.gz
yosys-0fd64aab25787e2591080cf71192ee16fcf2ae9f.tar.bz2
yosys-0fd64aab25787e2591080cf71192ee16fcf2ae9f.zip
synth_xilinx: fix help when no active_design; fixes #1664
Diffstat (limited to 'techlibs')
-rw-r--r--techlibs/xilinx/synth_xilinx.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/techlibs/xilinx/synth_xilinx.cc b/techlibs/xilinx/synth_xilinx.cc
index 3c5599e4e..9b4b1f71a 100644
--- a/techlibs/xilinx/synth_xilinx.cc
+++ b/techlibs/xilinx/synth_xilinx.cc
@@ -316,9 +316,10 @@ struct SynthXilinxPass : public ScriptPass
run("proc");
if (flatten || help_mode)
run("flatten", "(with '-flatten')");
- active_design->scratchpad_unset("tribuf.added_something");
+ if (active_design)
+ active_design->scratchpad_unset("tribuf.added_something");
run("tribuf -logic");
- if (noiopad && active_design->scratchpad_get_bool("tribuf.added_something"))
+ if (noiopad && active_design && active_design->scratchpad_get_bool("tribuf.added_something"))
log_error("Tristate buffers are unsupported without the '-iopad' option.\n");
run("deminout");
run("opt_expr");