Skip to content

Commit

Permalink
set undriven pads to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijndevos committed Sep 4, 2019
1 parent d65a47c commit ae93c03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/gowin/demo.v
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions techlibs/gowin/synth_gowin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ae93c03

Please sign in to comment.