sf2: Emit CLKINT even if -clkbuf not passed
authorMarcelina Kościelnicka <mwk@0x04.net>
Fri, 17 Jul 2020 13:01:45 +0000 (15:01 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Fri, 17 Jul 2020 13:01:47 +0000 (15:01 +0200)
This restores pre #2229 behavior.

techlibs/sf2/synth_sf2.cc

index cd29a9c21e287c98a42980585752086877a122b8..a0061ebd0fec10675dfee3635235c3617d8893a5 100644 (file)
@@ -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");
                        }