summaryrefslogtreecommitdiff
path: root/mkm_refdes/src/Makefile
blob: 304e59851ad1c3664155c75ea790964ba60f022f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
filename = mkm_refdes
pcf_file = $(filename).pcf

build:
	yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
	arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
	icepack $(filename).asc $(filename).bin

clean:
	rm -rf $(filename).blif $(filename).asc $(filename).bin