aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2017-11-20 09:51:03 +0000
committerDavid Shah <davey1576@gmail.com>2017-11-20 09:51:19 +0000
commit9184fbdf404c0e94326919c92a27d3292994cdf1 (patch)
treeb94fdbf6f316b9758e8afd848d8c900343469f07 /examples
parentda7a2a9d0db95d6a172286eaddd6e930a27ea752 (diff)
downloadicestorm-9184fbdf404c0e94326919c92a27d3292994cdf1.tar.gz
icestorm-9184fbdf404c0e94326919c92a27d3292994cdf1.tar.bz2
icestorm-9184fbdf404c0e94326919c92a27d3292994cdf1.zip
Tidy up 5k examples
Diffstat (limited to 'examples')
-rw-r--r--examples/up5k/.gitignore4
-rw-r--r--examples/up5k/example.v10
-rw-r--r--examples/up5k/up5k.pcf3
-rw-r--r--examples/up5k_mac16/Makefile (renamed from examples/up5k/Makefile)16
-rw-r--r--examples/up5k_rgb/Makefile12
-rw-r--r--examples/up5k_rgb/rgb.v8
6 files changed, 18 insertions, 35 deletions
diff --git a/examples/up5k/.gitignore b/examples/up5k/.gitignore
deleted file mode 100644
index c1fa30b..0000000
--- a/examples/up5k/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-example.bin
-example.blif
-example.asc
-example.rpt
diff --git a/examples/up5k/example.v b/examples/up5k/example.v
deleted file mode 100644
index 01b76b8..0000000
--- a/examples/up5k/example.v
+++ /dev/null
@@ -1,10 +0,0 @@
-module top (
- input btn,
- output LED0,
- output LED1,
-);
-
-assign LED0 = !btn;
-assign LED1 = btn;
-
-endmodule
diff --git a/examples/up5k/up5k.pcf b/examples/up5k/up5k.pcf
deleted file mode 100644
index b1d1263..0000000
--- a/examples/up5k/up5k.pcf
+++ /dev/null
@@ -1,3 +0,0 @@
-set_io LED0 12
-set_io LED1 21
-set_io btn 26
diff --git a/examples/up5k/Makefile b/examples/up5k_mac16/Makefile
index ea16f06..06c9ed7 100644
--- a/examples/up5k/Makefile
+++ b/examples/up5k_mac16/Makefile
@@ -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
diff --git a/examples/up5k_rgb/Makefile b/examples/up5k_rgb/Makefile
index 711ce5a..51c1f72 100644
--- a/examples/up5k_rgb/Makefile
+++ b/examples/up5k_rgb/Makefile
@@ -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
diff --git a/examples/up5k_rgb/rgb.v b/examples/up5k_rgb/rgb.v
index 81920cb..fa29fba 100644
--- a/examples/up5k_rgb/rgb.v
+++ b/examples/up5k_rgb/rgb.v
@@ -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