2019-10-16 14:49:58 +00:00
|
|
|
XILINX ?= /opt/Xilinx/14.7
|
|
|
|
|
|
|
|
PATH := $(PATH):${XILINX}/ISE_DS/ISE/bin/lin64:${PAPILIO}/linux64
|
|
|
|
SHELL := env PATH=$(PATH) /bin/bash
|
|
|
|
|
2019-10-27 19:20:25 +00:00
|
|
|
build: $(TARGET).bit
|
2019-10-27 18:51:00 +00:00
|
|
|
|
2019-10-27 19:20:25 +00:00
|
|
|
$(TARGET).bit:
|
2019-10-16 14:49:58 +00:00
|
|
|
# create a working directory if necessary
|
|
|
|
mkdir -p working
|
|
|
|
# use the xilinx tools to synthesise the project and generate a bitstream file
|
|
|
|
xtclsh $(COMMON)/ise_build.tcl $(TARGET).xise
|
2019-10-27 19:20:25 +00:00
|
|
|
cp working/$(TARGET).bit $(TARGET).bit
|
2019-10-16 14:49:58 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf working/ iceconfig/
|
|
|
|
|
|
|
|
clobber: clean
|