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
|
||||
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
|
||||
ifneq (${XDC},)
|
||||
XDC_CMD := -x ${XDC}
|
||||
|
|
|
@ -3,35 +3,17 @@ TOP := top
|
|||
SOURCES := ${current_dir}/counter.v
|
||||
|
||||
ifeq ($(TARGET),arty_35)
|
||||
DEVICE := xc7a50t_test
|
||||
BITSTREAM_DEVICE := artix7
|
||||
PARTNAME := xc7a35tcsg324-1
|
||||
XDC := ${current_dir}/arty.xdc
|
||||
else ifeq ($(TARGET),arty_100)
|
||||
DEVICE := xc7a100t_test
|
||||
BITSTREAM_DEVICE := artix7
|
||||
PARTNAME := xc7a100tcsg324-1
|
||||
XDC := ${current_dir}/arty.xdc
|
||||
else ifeq ($(TARGET),nexys4ddr)
|
||||
DEVICE := xc7a100t_test
|
||||
BITSTREAM_DEVICE := artix7
|
||||
PARTNAME := xc7a100tcsg324-1
|
||||
XDC := ${current_dir}/nexys4ddr.xdc
|
||||
else ifeq ($(TARGET),zybo)
|
||||
DEVICE := xc7z010_test
|
||||
BITSTREAM_DEVICE := zynq7
|
||||
PARTNAME := xc7z010clg400-1
|
||||
XDC := ${current_dir}/zybo.xdc
|
||||
SOURCES:=${current_dir}/counter_zynq.v
|
||||
else ifeq ($(TARGET),nexys_video)
|
||||
DEVICE := xc7a200t_test
|
||||
BITSTREAM_DEVICE := artix7
|
||||
PARTNAME := xc7a200tsbg484-1
|
||||
XDC := ${current_dir}/nexys_video.xdc
|
||||
else
|
||||
DEVICE := xc7a50t_test
|
||||
BITSTREAM_DEVICE := artix7
|
||||
PARTNAME := xc7a35tcpg236-1
|
||||
XDC := ${current_dir}/basys3.xdc
|
||||
endif
|
||||
|
||||
|
|
|
@ -9,17 +9,6 @@ PCF := ${current_dir}/arty.pcf
|
|||
SDC := ${current_dir}/arty.sdc
|
||||
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
|
||||
|
||||
all:
|
||||
|
|
|
@ -6,27 +6,18 @@ SOURCES := ${current_dir}/picosoc_noflash.v \
|
|||
${current_dir}/progmem.v
|
||||
|
||||
SDC := ${current_dir}/picosoc.sdc
|
||||
BITSTREAM_DEVICE := artix7
|
||||
|
||||
ifeq ($(TARGET),arty_35)
|
||||
DEVICE := xc7a50t_test
|
||||
SOURCES += ${current_dir}/arty.v
|
||||
PARTNAME := xc7a35tcsg324-1
|
||||
PCF := ${current_dir}/arty.pcf
|
||||
else ifeq ($(TARGET),arty_100)
|
||||
DEVICE := xc7a100t_test
|
||||
SOURCES += ${current_dir}/arty.v
|
||||
PARTNAME := xc7a100tcsg324-1
|
||||
PCF := ${current_dir}/arty.pcf
|
||||
else ifeq ($(TARGET),nexys4ddr)
|
||||
DEVICE := xc7a100t_test
|
||||
SOURCES += ${current_dir}/nexys4ddr.v
|
||||
PARTNAME := xc7a100tcsg324-1
|
||||
PCF := ${current_dir}/nexys4ddr.pcf
|
||||
else
|
||||
DEVICE := xc7a50t_test
|
||||
SOURCES += ${current_dir}/basys3.v
|
||||
PARTNAME := xc7a35tcpg236-1
|
||||
PCF := ${current_dir}/basys3.pcf
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue