From 6cf5157fe7a8f4299a002f1be6c95ba5507a2cd4 Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Wed, 4 Sep 2019 10:52:28 +0200 Subject: Update example for GW1NR-9 This uses the Trenz TEC0117 on Gowin IDE 1.8.4 --- examples/gowin/demo.v | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/gowin/demo.v') diff --git a/examples/gowin/demo.v b/examples/gowin/demo.v index 6ea108384..3cb782fa7 100644 --- a/examples/gowin/demo.v +++ b/examples/gowin/demo.v @@ -1,9 +1,6 @@ module demo ( input clk, - input [3:0] sw, - output [15:0] leds, - output [7:0] seg7dig, - output [3:0] seg7sel + output [15:0] leds ); localparam PRESCALE = 20; reg [PRESCALE+3:0] counter = 0; -- cgit v1.2.3 From 072367245184528de0907f48ed45af79901d93eb Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Wed, 4 Sep 2019 10:58:48 +0200 Subject: Add demonstration of breakage Unused outputs lead to undriven buffers, which lead to syntax errors. --- examples/gowin/demo.v | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/gowin/demo.v') diff --git a/examples/gowin/demo.v b/examples/gowin/demo.v index 3cb782fa7..f5c001893 100644 --- a/examples/gowin/demo.v +++ b/examples/gowin/demo.v @@ -1,6 +1,7 @@ module demo ( input clk, output [15:0] leds + //,output unused ); localparam PRESCALE = 20; reg [PRESCALE+3:0] counter = 0; -- cgit v1.2.3 From ae93c034adc8a7d14a9f39175dacdddda75ea7a2 Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Wed, 4 Sep 2019 16:29:40 +0200 Subject: set undriven pads to zero --- examples/gowin/demo.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/gowin/demo.v') diff --git a/examples/gowin/demo.v b/examples/gowin/demo.v index f5c001893..485fec97f 100644 --- a/examples/gowin/demo.v +++ b/examples/gowin/demo.v @@ -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; -- cgit v1.2.3