CHIPDB_DIR = /usr/share/nextpnr/xilinx-chipdb XRAY_DATABASE_DIR = /usr/share/xray/database PART = xc7a35tcsg324-1 .PHONY: all clean prog all: pixelflut.bit clean: rm -f pixelflut.bit pixelflut.fasm pixelflut.frames pixelflut.json prog: pixelflut.bit openFPGALoader -b arty_a7_35t $< pixelflut.bit: pixelflut.frames xc7frames2bit --part_file "$(XRAY_DATABASE_DIR)/artix7/$(PART)/part.yaml" --part_name $(PART) --frm_file $< --output_file $@ pixelflut.frames: pixelflut.fasm fasm2frames --db-root "$(XRAY_DATABASE_DIR)/artix7" --part $(PART) $< > $@ pixelflut.fasm: arty_a7_35t.xdc pixelflut.json nextpnr-xilinx --chipdb "$(CHIPDB_DIR)/$(PART).bin" --fasm $@ --json pixelflut.json --xdc arty_a7_35t.xdc pixelflut.json: pixelflut.v ddr3l.v yosys -q -p 'synth_xilinx -top pixelflut; write_json $@' $^