turn on all leds
[trilby-hat-fpga] / Makefile
1 PROJ:=led
2 TRELLIS?=/usr/share/trellis
3
4 all: ${PROJ}.bit
5
6 %.json: %.v
7         yosys -p "synth_ecp5 -json $@" $<
8
9 %_out.config: %.json
10         nextpnr-ecp5 --json $< --textcfg $@ --45k --package CABGA381 --lpf trilby.lpf
11
12 %.bit: %_out.config
13         ecppack --svf ${PROJ}.svf $< $@
14
15 ${PROJ}.svf : ${PROJ}.bit
16
17 prog: ${PROJ}.svf
18         openocd -f openocd/trilby.cfg -c "transport select jtag; init; svf $<; exit"
19
20 clean:
21         rm -f *.svf *.bit *.config *.json
22
23 .PHONY: prog clean