set undriven pads to zero

This commit is contained in:
Pepijn de Vos 2019-09-04 16:29:40 +02:00
parent d65a47c86d
commit ae93c034ad
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
module demo ( module demo (
input clk, input clk,
output [15:0] leds output [15:0] leds,
//,output unused output unused
); );
localparam PRESCALE = 20; localparam PRESCALE = 20;
reg [PRESCALE+3:0] counter = 0; reg [PRESCALE+3:0] counter = 0;

View File

@ -210,6 +210,7 @@ struct SynthGowinPass : public ScriptPass
if (check_label("map_cells")) if (check_label("map_cells"))
{ {
run("techmap -map +/gowin/cells_map.v"); run("techmap -map +/gowin/cells_map.v");
run("setundef -undriven -zero");
run("hilomap -hicell VCC V -locell GND G"); run("hilomap -hicell VCC V -locell GND G");
run("iopadmap -bits -inpad IBUF O:I -outpad OBUF I:O", "(unless -noiopads)"); run("iopadmap -bits -inpad IBUF O:I -outpad OBUF I:O", "(unless -noiopads)");
run("dffinit -ff DFF Q INIT"); run("dffinit -ff DFF Q INIT");