#Auto generated by Edalize

ifndef INTERCHANGE_SCHEMA_PATH
$(error Environment variable INTERCHANGE_SCHEMA_PATH was not found. It should be set to <fpga-interchange-schema path>/interchange)
endif

all: test_symbiflow_nextpnr_fpga_interchange_0.bit

test_symbiflow_nextpnr_fpga_interchange_0.json: edalize_yosys_template.tcl
	$(EDALIZE_LAUNCHER) yosys -l yosys.log -p 'tcl edalize_yosys_template.tcl'

test_symbiflow_nextpnr_fpga_interchange_0.netlist: test_symbiflow_nextpnr_fpga_interchange_0.json
	$(EDALIZE_LAUNCHER) python -m fpga_interchange.yosys_json --schema_dir $(INTERCHANGE_SCHEMA_PATH) --device xc7a35t.device --top top_module test_symbiflow_nextpnr_fpga_interchange_0.json test_symbiflow_nextpnr_fpga_interchange_0.netlist

test_symbiflow_nextpnr_fpga_interchange_0.phys: test_symbiflow_nextpnr_fpga_interchange_0.netlist
	$(EDALIZE_LAUNCHER) nextpnr-fpga_interchange --chipdb chipdb.bin --package csg324 --xdc top.xdc --netlist test_symbiflow_nextpnr_fpga_interchange_0.netlist --write test_symbiflow_nextpnr_fpga_interchange_0.routed.json --phys test_symbiflow_nextpnr_fpga_interchange_0.phys --fake_option 1000

test_symbiflow_nextpnr_fpga_interchange_0.fasm: test_symbiflow_nextpnr_fpga_interchange_0.phys
	$(EDALIZE_LAUNCHER) python -m fpga_interchange.fasm_generator --schema_dir $(INTERCHANGE_SCHEMA_PATH) --family xc7 xc7a35t.device test_symbiflow_nextpnr_fpga_interchange_0.netlist test_symbiflow_nextpnr_fpga_interchange_0.phys test_symbiflow_nextpnr_fpga_interchange_0.fasm

test_symbiflow_nextpnr_fpga_interchange_0.bit: test_symbiflow_nextpnr_fpga_interchange_0.fasm
	$(EDALIZE_LAUNCHER) symbiflow_write_bitstream -d artix7 -f test_symbiflow_nextpnr_fpga_interchange_0.fasm -p xc7a35tcsg324-1csg324-1 -b test_symbiflow_nextpnr_fpga_interchange_0.bit
