blob: 4fff99d27ab30996ec9ea13932ce619b6338f434 [file] [log] [blame]
PART = xczu7ev-ffvc1156-2-i
BIT2FASM_ARGS = --verbose
SOURCES = top_mini.v
all: top_patched.fasm
clean:
@rm -f *.bit
@rm -f *.bin
@rm -f *.bits
@rm -f *.fasm
@rm -f *.log
@rm -rf build
.PHONY: all clean
top.bit: $(SOURCES) runme.py
source zynqusp-swbut.sh; \
python runme.py
cp build/*.bit ./
top.fasm: top.bit
PYTHONPATH="$(URAY_DIR):$(URAY_DIR)/utils:$(URAY_DIR)/third_party/fasm" \
PATH="$(URAY_DIR)/build/tools:$(PATH)" \
$(URAY_BIT2FASM) $(BIT2FASM_ARGS) \
$< > $@ \
|| (rm -f $@ && exit 1)
top_patched.bit: top.fasm
fasm2bit.sh top.fasm top.bit $@
top_patched.fasm: top_patched.bit
$(URAY_BIT2FASM) $(BIT2FASM_ARGS) \
$< > $@ \
|| (rm -f $@ && exit 1)