icestorm/examples/up5k_rgb/Makefile.uwg30

37 lines
605 B
Makefile
Raw Permalink Normal View History

2018-01-14 11:45:35 +01:00
PROJ = rgb
PIN_DEF = rgb_uwg30.pcf
DEVICE = up5k
PACKAGE = uwg30
2018-01-14 11:45:35 +01:00
ICEPACK = icepack
ICETIME = icetime
ICEPROG = iceprog
all: $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -json $@' $<
2018-01-14 11:45:35 +01:00
%.asc: $(PIN_DEF) %.json
nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
2018-01-14 11:45:35 +01:00
%.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).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
2018-01-14 11:45:35 +01:00
.SECONDARY:
.PHONY: all prog clean