set undriven pads to zero
authorPepijn de Vos <pepijndevos@gmail.com>
Wed, 4 Sep 2019 14:29:40 +0000 (16:29 +0200)
committerPepijn de Vos <pepijndevos@gmail.com>
Wed, 4 Sep 2019 14:29:40 +0000 (16:29 +0200)
examples/gowin/demo.v
techlibs/gowin/synth_gowin.cc

index f5c001893f7452b96553e7ce6935e20886887327..485fec97f4932038e22821c9724c14afe3200b10 100644 (file)
@@ -1,7 +1,7 @@
 module demo (
        input clk,
-       output [15:0] leds
-       //,output unused
+       output [15:0] leds,
+       output unused
 );
        localparam PRESCALE = 20;
        reg [PRESCALE+3:0] counter = 0;
index 0bfa9da1a669801e5ca09e40d674370783f530d3..f7a5006bcbb994b22327d226001c7e9a0b390342 100644 (file)
@@ -210,6 +210,7 @@ struct SynthGowinPass : public ScriptPass
                if (check_label("map_cells"))
                {
                        run("techmap -map +/gowin/cells_map.v");
+                       run("setundef -undriven -zero");
                        run("hilomap -hicell VCC V -locell GND G");
                        run("iopadmap -bits -inpad IBUF O:I -outpad OBUF I:O", "(unless -noiopads)");
                        run("dffinit  -ff DFF Q INIT");