aboutsummaryrefslogtreecommitdiff
path: root/examples/icestick/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/icestick/Makefile')
-rw-r--r--examples/icestick/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/icestick/Makefile b/examples/icestick/Makefile
index 9294608..d687d14 100644
--- a/examples/icestick/Makefile
+++ b/examples/icestick/Makefile
@@ -18,6 +18,21 @@ all: $(PROJ).rpt $(PROJ).bin
%.rpt: %.asc
icetime -d $(DEVICE) -mtr $@ $<
+%_tb: %_tb.v %.v
+ iverilog -o $@ $^
+
+%_tb.vcd: %_tb
+ ./$< +vcd=$@
+
+%_syn.v: %.blif
+ yosys -o $@ $^
+
+%_syntb: %_tb.v %_syn.v
+ iverilog -o $@ $^ `yosys-config --datdir/ice40/cells_sim.v`
+
+%_syntb.vcd: %_syntb
+ ./$< +vcd=$@
+
prog: $(PROJ).bin
iceprog $<