Debian Codegraph @

examples/hx8kboard/Makefile

raw
1 PROJ = example
2 PIN_DEF = hx8kboard.pcf
3 DEVICE = hx8k
4 PACKAGE = ct256
5
6 all: $(PROJ).rpt $(PROJ).bin
7
8 %.json: %.v
9 yosys -p 'synth_ice40 -top top -json $@' $<
10
11 %.asc: $(PIN_DEF) %.json
12 nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
13
14 %.bin: %.asc
15 icepack $< $@
16
17 %.rpt: %.asc
18 icetime -d $(DEVICE) -mtr $@ $<
19
20 prog: $(PROJ).bin
21 iceprog $<
22
23 sudo-prog: $(PROJ).bin
24 @echo 'Executing prog as root!!!'
25 sudo iceprog $<
26
27 clean:
28 rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
29
30 .SECONDARY:
31 .PHONY: all prog clean