Tidy up 5k examples

This commit is contained in:
David Shah 2017-11-20 09:51:03 +00:00
parent da7a2a9d0d
commit 9184fbdf40
6 changed files with 18 additions and 35 deletions

View File

@ -1,4 +0,0 @@
example.bin
example.blif
example.asc
example.rpt

View File

@ -1,10 +0,0 @@
module top (
input btn,
output LED0,
output LED1,
);
assign LED0 = !btn;
assign LED1 = btn;
endmodule

View File

@ -1,3 +0,0 @@
set_io LED0 12
set_io LED1 21
set_io btn 26

View File

@ -1,12 +1,12 @@
PROJ = example
PIN_DEF = up5k.pcf
PROJ = mac16
PIN_DEF = mac16.pcf
DEVICE = up5k
# Relative paths for easier development without messing with installed version
ARACHNE = ../../../arachne-pnr/bin/arachne-pnr
ARACHNE_ARGS = -c ../../icebox/chipdb-5k.txt
ICEPACK = ../../icepack/icepack
ICETIME = ../../icetime/icetime
ICEPROG = ../../iceprog/iceprog
ARACHNE = arachne-pnr
ARACHNE_ARGS =
ICEPACK = icepack
ICETIME = icetime
ICEPROG = iceprog
all: $(PROJ).bin

View File

@ -1,12 +1,12 @@
PROJ = rgb
PIN_DEF = rgb.pcf
DEVICE = up5k
# Relative paths for easier development without messing with installed version
ARACHNE = ../../../arachne-pnr/bin/arachne-pnr
ARACHNE_ARGS = -c ../../icebox/chipdb-5k.txt
ICEPACK = ../../icepack/icepack
ICETIME = ../../icetime/icetime
ICEPROG = ../../iceprog/iceprog
ARACHNE = arachne-pnr
ARACHNE_ARGS =
ICEPACK = icepack
ICETIME = icetime
ICEPROG = iceprog
all: $(PROJ).bin

View File

@ -10,7 +10,7 @@ SB_HFOSC inthosc (
.CLKHF(clk)
);
localparam counter_width = 30;
localparam counter_width = 32;
reg [counter_width-1:0] ctr;
@ -73,9 +73,9 @@ SB_RGBA_DRV RGBA_DRIVER (
defparam RGBA_DRIVER.CURRENT_MODE = "0b1";
defparam RGBA_DRIVER.RGB0_CURRENT = "0b000001";
defparam RGBA_DRIVER.RGB1_CURRENT = "0b000011";
defparam RGBA_DRIVER.RGB2_CURRENT = "0b000011";
defparam RGBA_DRIVER.RGB0_CURRENT = "0b000111";
defparam RGBA_DRIVER.RGB1_CURRENT = "0b000111";
defparam RGBA_DRIVER.RGB2_CURRENT = "0b000111";
endmodule