2023-08-28 23:48:36 +02:00
|
|
|
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:
|
2024-10-18 23:48:31 +02:00
|
|
|
rm -f pixelflut.bit pixelflut.fasm pixelflut.frames pixelflut.json
|
2023-08-28 23:48:36 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-10-18 23:58:44 +02:00
|
|
|
pixelflut.json: pixelflut.v
|
2023-08-28 23:48:36 +02:00
|
|
|
yosys -q -p 'synth_xilinx -top pixelflut; write_json $@' $^
|