Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix blinky for tangnano4k #125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@"
Expand Down
24 changes: 17 additions & 7 deletions examples/tangnano4k.cst
Original file line number Diff line number Diff line change
@@ -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;