aboutsummaryrefslogtreecommitdiff
path: root/examples/icestick/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-07-21 16:56:15 +0200
committerClifford Wolf <clifford@clifford.at>2017-07-21 16:57:11 +0200
commit6124133269c7ff7bc550064e116c1bcfcbb412bf (patch)
tree543cb2f799f556074d82f073e3ad7ba586d685ad /examples/icestick/Makefile
parentcb0a0f7ef81555cb5c8e51cabb806a302c92b91a (diff)
Add icestick "checker" example
Diffstat (limited to 'examples/icestick/Makefile')
-rw-r--r--examples/icestick/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/icestick/Makefile b/examples/icestick/Makefile
index d687d14..8b8e741 100644
--- a/examples/icestick/Makefile
+++ b/examples/icestick/Makefile
@@ -1,5 +1,6 @@
PROJ = example
# PROJ = rs232demo
+# PROJ = checker
PIN_DEF = icestick.pcf
DEVICE = hx1k
@@ -22,16 +23,16 @@ all: $(PROJ).rpt $(PROJ).bin
iverilog -o $@ $^
%_tb.vcd: %_tb
- ./$< +vcd=$@
+ vvp -N $< +vcd=$@
%_syn.v: %.blif
- yosys -o $@ $^
+ yosys -p 'read_blif -wideports $^; write_verilog $@'
%_syntb: %_tb.v %_syn.v
iverilog -o $@ $^ `yosys-config --datdir/ice40/cells_sim.v`
%_syntb.vcd: %_syntb
- ./$< +vcd=$@
+ vvp -N $< +vcd=$@
prog: $(PROJ).bin
iceprog $<