Common Makefile v3 and changed all designs
Signed-off-by: Joshua Fife <jpfife17@gmail.com>
This commit is contained in:
parent
5d1de90055
commit
2af9d695a7
|
@ -1,6 +1,35 @@
|
||||||
BUILDDIR := ${current_dir}/build
|
BUILDDIR := ${current_dir}/build
|
||||||
BOARD_BUILDDIR := ${BUILDDIR}/${TARGET}
|
BOARD_BUILDDIR := ${BUILDDIR}/${TARGET}
|
||||||
|
|
||||||
|
# Set board properties based on TARGET variable
|
||||||
|
ifeq ($(TARGET),arty_35)
|
||||||
|
DEVICE := xc7a50t_test
|
||||||
|
BITSTREAM_DEVICE := artix7
|
||||||
|
PARTNAME := xc7a35tcsg324-1
|
||||||
|
else ifeq ($(TARGET),arty_100)
|
||||||
|
DEVICE := xc7a100t_test
|
||||||
|
BITSTREAM_DEVICE := artix7
|
||||||
|
PARTNAME := xc7a100tcsg324-1
|
||||||
|
else ifeq ($(TARGET),nexys4ddr)
|
||||||
|
DEVICE := xc7a100t_test
|
||||||
|
BITSTREAM_DEVICE := artix7
|
||||||
|
PARTNAME := xc7a100tcsg324-1
|
||||||
|
else ifeq ($(TARGET),zybo)
|
||||||
|
DEVICE := xc7z010_test
|
||||||
|
BITSTREAM_DEVICE := zynq7
|
||||||
|
PARTNAME := xc7z010clg400-1
|
||||||
|
else ifeq ($(TARGET),nexys_video)
|
||||||
|
DEVICE := xc7a200t_test
|
||||||
|
BITSTREAM_DEVICE := artix7
|
||||||
|
PARTNAME := xc7a200tsbg484-1
|
||||||
|
else ifeq ($(TARGET),basys3)
|
||||||
|
DEVICE := xc7a50t_test
|
||||||
|
BITSTREAM_DEVICE := artix7
|
||||||
|
PARTNAME := xc7a35tcpg236-1
|
||||||
|
else
|
||||||
|
$(error Unsupported board type)
|
||||||
|
endif
|
||||||
|
|
||||||
# Determine the type of constraint being used
|
# Determine the type of constraint being used
|
||||||
ifneq (${XDC},)
|
ifneq (${XDC},)
|
||||||
XDC_CMD := -x ${XDC}
|
XDC_CMD := -x ${XDC}
|
||||||
|
|
|
@ -3,35 +3,17 @@ TOP := top
|
||||||
SOURCES := ${current_dir}/counter.v
|
SOURCES := ${current_dir}/counter.v
|
||||||
|
|
||||||
ifeq ($(TARGET),arty_35)
|
ifeq ($(TARGET),arty_35)
|
||||||
DEVICE := xc7a50t_test
|
|
||||||
BITSTREAM_DEVICE := artix7
|
|
||||||
PARTNAME := xc7a35tcsg324-1
|
|
||||||
XDC := ${current_dir}/arty.xdc
|
XDC := ${current_dir}/arty.xdc
|
||||||
else ifeq ($(TARGET),arty_100)
|
else ifeq ($(TARGET),arty_100)
|
||||||
DEVICE := xc7a100t_test
|
|
||||||
BITSTREAM_DEVICE := artix7
|
|
||||||
PARTNAME := xc7a100tcsg324-1
|
|
||||||
XDC := ${current_dir}/arty.xdc
|
XDC := ${current_dir}/arty.xdc
|
||||||
else ifeq ($(TARGET),nexys4ddr)
|
else ifeq ($(TARGET),nexys4ddr)
|
||||||
DEVICE := xc7a100t_test
|
|
||||||
BITSTREAM_DEVICE := artix7
|
|
||||||
PARTNAME := xc7a100tcsg324-1
|
|
||||||
XDC := ${current_dir}/nexys4ddr.xdc
|
XDC := ${current_dir}/nexys4ddr.xdc
|
||||||
else ifeq ($(TARGET),zybo)
|
else ifeq ($(TARGET),zybo)
|
||||||
DEVICE := xc7z010_test
|
|
||||||
BITSTREAM_DEVICE := zynq7
|
|
||||||
PARTNAME := xc7z010clg400-1
|
|
||||||
XDC := ${current_dir}/zybo.xdc
|
XDC := ${current_dir}/zybo.xdc
|
||||||
SOURCES:=${current_dir}/counter_zynq.v
|
SOURCES:=${current_dir}/counter_zynq.v
|
||||||
else ifeq ($(TARGET),nexys_video)
|
else ifeq ($(TARGET),nexys_video)
|
||||||
DEVICE := xc7a200t_test
|
|
||||||
BITSTREAM_DEVICE := artix7
|
|
||||||
PARTNAME := xc7a200tsbg484-1
|
|
||||||
XDC := ${current_dir}/nexys_video.xdc
|
XDC := ${current_dir}/nexys_video.xdc
|
||||||
else
|
else
|
||||||
DEVICE := xc7a50t_test
|
|
||||||
BITSTREAM_DEVICE := artix7
|
|
||||||
PARTNAME := xc7a35tcpg236-1
|
|
||||||
XDC := ${current_dir}/basys3.xdc
|
XDC := ${current_dir}/basys3.xdc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -9,17 +9,6 @@ PCF := ${current_dir}/arty.pcf
|
||||||
SDC := ${current_dir}/arty.sdc
|
SDC := ${current_dir}/arty.sdc
|
||||||
XDC := ${current_dir}/arty.xdc
|
XDC := ${current_dir}/arty.xdc
|
||||||
|
|
||||||
|
|
||||||
BITSTREAM_DEVICE := artix7
|
|
||||||
|
|
||||||
ifeq ($(TARGET),arty_100)
|
|
||||||
PARTNAME := xc7a100tcsg324-1
|
|
||||||
DEVICE := xc7a100t_test
|
|
||||||
else
|
|
||||||
PARTNAME := xc7a35tcsg324-1
|
|
||||||
DEVICE := xc7a50t_test
|
|
||||||
endif
|
|
||||||
|
|
||||||
export
|
export
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -6,27 +6,18 @@ SOURCES := ${current_dir}/picosoc_noflash.v \
|
||||||
${current_dir}/progmem.v
|
${current_dir}/progmem.v
|
||||||
|
|
||||||
SDC := ${current_dir}/picosoc.sdc
|
SDC := ${current_dir}/picosoc.sdc
|
||||||
BITSTREAM_DEVICE := artix7
|
|
||||||
|
|
||||||
ifeq ($(TARGET),arty_35)
|
ifeq ($(TARGET),arty_35)
|
||||||
DEVICE := xc7a50t_test
|
|
||||||
SOURCES += ${current_dir}/arty.v
|
SOURCES += ${current_dir}/arty.v
|
||||||
PARTNAME := xc7a35tcsg324-1
|
|
||||||
PCF := ${current_dir}/arty.pcf
|
PCF := ${current_dir}/arty.pcf
|
||||||
else ifeq ($(TARGET),arty_100)
|
else ifeq ($(TARGET),arty_100)
|
||||||
DEVICE := xc7a100t_test
|
|
||||||
SOURCES += ${current_dir}/arty.v
|
SOURCES += ${current_dir}/arty.v
|
||||||
PARTNAME := xc7a100tcsg324-1
|
|
||||||
PCF := ${current_dir}/arty.pcf
|
PCF := ${current_dir}/arty.pcf
|
||||||
else ifeq ($(TARGET),nexys4ddr)
|
else ifeq ($(TARGET),nexys4ddr)
|
||||||
DEVICE := xc7a100t_test
|
|
||||||
SOURCES += ${current_dir}/nexys4ddr.v
|
SOURCES += ${current_dir}/nexys4ddr.v
|
||||||
PARTNAME := xc7a100tcsg324-1
|
|
||||||
PCF := ${current_dir}/nexys4ddr.pcf
|
PCF := ${current_dir}/nexys4ddr.pcf
|
||||||
else
|
else
|
||||||
DEVICE := xc7a50t_test
|
|
||||||
SOURCES += ${current_dir}/basys3.v
|
SOURCES += ${current_dir}/basys3.v
|
||||||
PARTNAME := xc7a35tcpg236-1
|
|
||||||
PCF := ${current_dir}/basys3.pcf
|
PCF := ${current_dir}/basys3.pcf
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue