#Auto generated by Edalize

TOP	:= {{ top }}
PARTNAME:= {{ partname }}
BITSTREAM_DEVICE := {{ bitstream_device }}

all: ${TOP}.bit

${TOP}.fasm: ${TOP}-nextpnr.mk
	$(EDALIZE_LAUNCHER) $(MAKE) -f ${TOP}-nextpnr.mk

${TOP}.bit: ${TOP}.fasm
	$(EDALIZE_LAUNCHER) symbiflow_write_bitstream -d ${BITSTREAM_DEVICE} -f ${TOP}.fasm -p ${PARTNAME} -b ${TOP}.bit

clean:
	$(EDALIZE_LAUNCHER) rm -rf *.bit *.blif *.edif *.fasm *.json *.netlist *.phys *.txt *.log
