diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2020-07-17 15:01:45 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2020-07-17 15:01:47 +0200 |
commit | 1b95b0e570492c9ee9f221ccd362b5846a941749 (patch) | |
tree | 4c2b97d4a8a30e05dbcd9efe90c51f205600b9ea /techlibs/sf2 | |
parent | 10bc0967e270cede75e38264b48621a07387d8e3 (diff) | |
download | yosys-1b95b0e570492c9ee9f221ccd362b5846a941749.tar.gz yosys-1b95b0e570492c9ee9f221ccd362b5846a941749.tar.bz2 yosys-1b95b0e570492c9ee9f221ccd362b5846a941749.zip |
sf2: Emit CLKINT even if -clkbuf not passed
This restores pre #2229 behavior.
Diffstat (limited to 'techlibs/sf2')
-rw-r--r-- | techlibs/sf2/synth_sf2.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/techlibs/sf2/synth_sf2.cc b/techlibs/sf2/synth_sf2.cc index cd29a9c21..a0061ebd0 100644 --- a/techlibs/sf2/synth_sf2.cc +++ b/techlibs/sf2/synth_sf2.cc @@ -211,8 +211,12 @@ struct SynthSf2Pass : public ScriptPass if (check_label("map_iobs")) { if (help_mode || iobs) { - if (help_mode || clkbuf) { - run("clkbufmap -buf CLKINT Y:A -inpad CLKBUF Y:PAD", "(if -clkbuf, unless -noiobs)"); + if (help_mode) { + run("clkbufmap -buf CLKINT Y:A [-inpad CLKBUF Y:PAD]", "(unless -noiobs, -inpad only passed if -clkbuf)"); + } else if (clkbuf) { + run("clkbufmap -buf CLKINT Y:A -inpad CLKBUF Y:PAD"); + } else { + run("clkbufmap -buf CLKINT Y:A"); } run("iopadmap -bits -inpad INBUF Y:PAD -outpad OUTBUF D:PAD -toutpad TRIBUFF E:D:PAD -tinoutpad BIBUF E:Y:D:PAD", "(unless -noiobs"); } |