From 94d4dc3f48471277137c50e815f7619c155212b7 Mon Sep 17 00:00:00 2001 From: uis246 Date: Tue, 16 Aug 2022 17:51:44 +0300 Subject: [PATCH 1/2] Fix blinky for tangnano4k And also rename hdmi pins --- examples/tangnano4k.cst | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/examples/tangnano4k.cst b/examples/tangnano4k.cst index 819dbd2d..be3bd7d3 100644 --- a/examples/tangnano4k.cst +++ b/examples/tangnano4k.cst @@ -1,14 +1,24 @@ // these are the HDMI pins! -IO_LOC "led[0]" 27; -IO_LOC "led[1]" 28; -IO_LOC "led[2]" 29; -IO_LOC "led[3]" 30; -IO_LOC "led[4]" 31; -IO_LOC "led[5]" 32; +// in NP pairs +//TXC +IO_LOC "hdmi[0]" 27; +IO_LOC "hdmi[1]" 28; +//TX0 +IO_LOC "hdmi[2]" 29; +IO_LOC "hdmi[3]" 30; +//TX1 +IO_LOC "hdmi[4]" 31; +IO_LOC "hdmi[5]" 32; +//TX2 +IO_LOC "hdmi[6]" 34; +IO_LOC "hdmi[7]" 35; + +//Buttons IO_LOC "key" 15; IO_LOC "rst" 14; -IO_LOC "clk" 45; +IO_LOC "led" 10; +IO_LOC "clk" 45; // true LVDS pins IO_LOC "tlvds_p" 35,34; From 62c340e1583b9ae554e59bf78bb769c6d59bef84 Mon Sep 17 00:00:00 2001 From: uis246 Date: Tue, 16 Aug 2022 17:54:29 +0300 Subject: [PATCH 2/2] Fix LEDs count for tangnano4k --- examples/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Makefile b/examples/Makefile index bec1d108..4a720dd5 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -120,7 +120,7 @@ nanolcd-tangnano-synth.json: nanolcd/TOP.v nanolcd/VGAMod.v $(YOSYS) -D LEDS_NR=3 -D OSC_TYPE_OSCZ -p "read_verilog $^; synth_gowin -json $@" %-tangnano4k-synth.json: %.v - $(YOSYS) -D LEDS_NR=6 -D OSC_TYPE_OSCZ -p "read_verilog $^; synth_gowin -json $@" + $(YOSYS) -D LEDS_NR=1 -D OSC_TYPE_OSCZ -p "read_verilog $^; synth_gowin -json $@" %-tangnano9k-synth.json: %.v $(YOSYS) -D LEDS_NR=6 -D OSC_TYPE_OSC -p "read_verilog $^; synth_gowin -json $@"