aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-02-06 18:12:44 +0100
committerClifford Wolf <clifford@clifford.at>2018-02-06 18:12:44 +0100
commita7a6f3695f03173e2bae0b206b785597f0342ef0 (patch)
tree6bb24dc4ca49f5c34705ce0a42617dc972ea4a9e /examples
parentd3a753f7d747b007f464a831d6b2b21e87991e46 (diff)
downloadicestorm-a7a6f3695f03173e2bae0b206b785597f0342ef0.tar.gz
icestorm-a7a6f3695f03173e2bae0b206b785597f0342ef0.tar.bz2
icestorm-a7a6f3695f03173e2bae0b206b785597f0342ef0.zip
Remove up5k_mac16 "example" and add README to up5k_rgb and icebreaker
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'examples')
-rw-r--r--examples/icebreaker/README2
-rw-r--r--examples/up5k_mac16/.gitignore12
-rw-r--r--examples/up5k_mac16/Makefile36
-rw-r--r--examples/up5k_mac16/mac16.pcf4
-rw-r--r--examples/up5k_mac16/mac16.v71
-rw-r--r--examples/up5k_rgb/README2
6 files changed, 4 insertions, 123 deletions
diff --git a/examples/icebreaker/README b/examples/icebreaker/README
new file mode 100644
index 0000000..19b3763
--- /dev/null
+++ b/examples/icebreaker/README
@@ -0,0 +1,2 @@
+Simple example for the iCEbreaker dev board:
+https://github.com/esden/icebreaker/
diff --git a/examples/up5k_mac16/.gitignore b/examples/up5k_mac16/.gitignore
deleted file mode 100644
index dd32bfb..0000000
--- a/examples/up5k_mac16/.gitignore
+++ /dev/null
@@ -1,12 +0,0 @@
-*.bin
-*.blif
-*.asc
-*.rpt
-*.glb
-*.psb
-*.sdf
-*.vsb
-*.bin
-*.tmp/
-*.exp
-*.vlog
diff --git a/examples/up5k_mac16/Makefile b/examples/up5k_mac16/Makefile
deleted file mode 100644
index 06c9ed7..0000000
--- a/examples/up5k_mac16/Makefile
+++ /dev/null
@@ -1,36 +0,0 @@
-PROJ = mac16
-PIN_DEF = mac16.pcf
-DEVICE = up5k
-
-ARACHNE = arachne-pnr
-ARACHNE_ARGS =
-ICEPACK = icepack
-ICETIME = icetime
-ICEPROG = iceprog
-
-all: $(PROJ).bin
-
-%.blif: %.v
- yosys -p 'synth_ice40 -top top -blif $@' $<
-
-%.asc: $(PIN_DEF) %.blif
- $(ARACHNE) $(ARACHNE_ARGS) -d $(subst up,,$(subst hx,,$(subst lp,,$(DEVICE)))) -o $@ -p $^
-
-%.bin: %.asc
- $(ICEPACK) $< $@
-
-%.rpt: %.asc
- $(ICETIME) -d $(DEVICE) -mtr $@ $<
-
-prog: $(PROJ).bin
- $(ICEPROG) -S $<
-
-sudo-prog: $(PROJ).bin
- @echo 'Executing prog as root!!!'
- sudo $(ICEPROG) -S $<
-
-clean:
- rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
-
-.SECONDARY:
-.PHONY: all prog clean
diff --git a/examples/up5k_mac16/mac16.pcf b/examples/up5k_mac16/mac16.pcf
deleted file mode 100644
index 5e21181..0000000
--- a/examples/up5k_mac16/mac16.pcf
+++ /dev/null
@@ -1,4 +0,0 @@
-set_io clk 44
-set_io rstn 27
-set_io LED1 12
-set_io LED2 13
diff --git a/examples/up5k_mac16/mac16.v b/examples/up5k_mac16/mac16.v
deleted file mode 100644
index 0323fc3..0000000
--- a/examples/up5k_mac16/mac16.v
+++ /dev/null
@@ -1,71 +0,0 @@
-module top(
- input clk,
- input rstn,
- output LED1,
- output LED2);
-
-wire reset = !rstn;
-
-wire [15:0] A = 16'd999;
-wire [15:0] B = 16'd12345;
-wire [31:0] RES = 32'd12332655;
-
-wire [31:0] dsp_out;
-
-SB_MAC16 i_sbmac16
- (
- .A(A),
- .B(B),
- .C(16'b0),
- .D(16'b0),
- .CLK(clk),
- .CE(1'b1),
- .IRSTTOP(reset),
- .IRSTBOT(reset),
- .ORSTTOP(reset),
- .ORSTBOT(reset),
- .AHOLD(1'b0),
- .BHOLD(1'b0),
- .CHOLD(1'b0),
- .DHOLD(1'b0),
- .OHOLDTOP(1'b0),
- .OHOLDBOT(1'b0),
- .OLOADTOP(1'b0),
- .OLOADBOT(1'b0),
- .ADDSUBTOP(1'b0),
- .ADDSUBBOT(1'b0),
- .CO(),
- .CI(1'b0),
- .O(dsp_out)
- );
-
-//16x16 => 32 unsigned pipelined multiply
-defparam i_sbmac16. B_SIGNED = 1'b0;
-defparam i_sbmac16. A_SIGNED = 1'b0;
-defparam i_sbmac16. MODE_8x8 = 1'b0;
-
-defparam i_sbmac16. BOTADDSUB_CARRYSELECT = 2'b00;
-defparam i_sbmac16. BOTADDSUB_UPPERINPUT = 1'b0;
-defparam i_sbmac16. BOTADDSUB_LOWERINPUT = 2'b00;
-defparam i_sbmac16. BOTOUTPUT_SELECT = 2'b11;
-
-defparam i_sbmac16. TOPADDSUB_CARRYSELECT = 2'b00;
-defparam i_sbmac16. TOPADDSUB_UPPERINPUT = 1'b0;
-defparam i_sbmac16. TOPADDSUB_LOWERINPUT = 2'b00;
-defparam i_sbmac16. TOPOUTPUT_SELECT = 2'b11;
-
-defparam i_sbmac16. PIPELINE_16x16_MULT_REG2 = 1'b1;
-defparam i_sbmac16. PIPELINE_16x16_MULT_REG1 = 1'b1;
-defparam i_sbmac16. BOT_8x8_MULT_REG = 1'b1;
-defparam i_sbmac16. TOP_8x8_MULT_REG = 1'b1;
-defparam i_sbmac16. D_REG = 1'b0;
-defparam i_sbmac16. B_REG = 1'b1;
-defparam i_sbmac16. A_REG = 1'b1;
-defparam i_sbmac16. C_REG = 1'b0;
-
-assign LED1 = (dsp_out == RES) ? 1'b1 : 1'b0;
-assign LED2 = 1'b0;
-
-
-
-endmodule
diff --git a/examples/up5k_rgb/README b/examples/up5k_rgb/README
new file mode 100644
index 0000000..cc41315
--- /dev/null
+++ b/examples/up5k_rgb/README
@@ -0,0 +1,2 @@
+Simple RGB LED demo for UP5K boards, such as the Lattice "iCE40 UltraPlus Breakout Board" and
+the Lattice "iCE40 UltraPlus Mobile Development Platform".