2021-11-30 00:32:51 +00:00
|
|
|
dst := IP
|
2023-01-20 20:35:46 +00:00
|
|
|
sdc_src := ~/repos/sdc.tar.gz
|
2022-10-24 20:38:39 +00:00
|
|
|
# vcu118
|
2023-04-10 19:36:33 +00:00
|
|
|
export XILINX_PART := xcvu9p-flga2104-2L-e
|
|
|
|
export XILINX_BOARD := xilinx.com:vcu118:part0:2.4
|
|
|
|
export board := vcu118
|
2022-10-24 20:38:39 +00:00
|
|
|
|
|
|
|
# vcu108
|
2023-04-10 19:36:33 +00:00
|
|
|
#export XILINX_PART := xcvu095-ffva2104-2-e
|
|
|
|
#export XILINX_BOARD := xilinx.com:vcu108:part0:1.2
|
|
|
|
#export board := vcu108
|
2022-10-24 20:38:39 +00:00
|
|
|
|
2021-11-30 00:32:51 +00:00
|
|
|
|
2021-12-03 16:05:13 +00:00
|
|
|
all: FPGA
|
2021-11-30 00:32:51 +00:00
|
|
|
|
2023-01-21 01:43:18 +00:00
|
|
|
FPGA: PreProcessFiles IP SDC
|
2022-11-07 15:20:05 +00:00
|
|
|
vivado -mode tcl -source wally.tcl 2>&1 | tee wally.log
|
2021-12-03 16:05:13 +00:00
|
|
|
|
|
|
|
IP: $(dst)/xlnx_proc_sys_reset.log \
|
2022-10-24 20:38:39 +00:00
|
|
|
$(dst)/xlnx_ddr4-$(board).log \
|
2023-04-10 19:36:33 +00:00
|
|
|
$(dst)/xlnx_ddr3-artya7.log \
|
2021-11-30 00:32:51 +00:00
|
|
|
$(dst)/xlnx_axi_clock_converter.log \
|
|
|
|
$(dst)/xlnx_ahblite_axi_bridge.log
|
|
|
|
|
2023-01-20 20:35:46 +00:00
|
|
|
SDC:
|
|
|
|
cp $(sdc_src) ../src/
|
|
|
|
tar xzf ../src/sdc.tar.gz -C ../src
|
|
|
|
|
2023-01-21 01:43:18 +00:00
|
|
|
PreProcessFiles:
|
2023-01-21 02:16:33 +00:00
|
|
|
rm -rf ../src/CopiedFiles_do_not_add_to_repo/
|
2023-02-02 22:14:11 +00:00
|
|
|
cp -r ../../src/ ../src/CopiedFiles_do_not_add_to_repo/
|
2023-01-21 01:43:18 +00:00
|
|
|
./insert_debug_comment.sh
|
|
|
|
|
2021-11-30 00:32:51 +00:00
|
|
|
$(dst)/%.log: %.tcl
|
|
|
|
mkdir -p IP
|
|
|
|
cd IP;\
|
|
|
|
vivado -mode batch -source ../$*.tcl | tee $*.log
|
2021-11-30 00:42:28 +00:00
|
|
|
|
2021-12-03 16:05:13 +00:00
|
|
|
cleanIP:
|
|
|
|
rm -rf IP
|
|
|
|
|
|
|
|
cleanLogs:
|
|
|
|
rm -rf *.jou *.log
|
|
|
|
|
|
|
|
cleanFPGA:
|
|
|
|
rm -rf WallyFPGA.* reports sim .Xil
|
|
|
|
|
|
|
|
cleanAll: cleanIP cleanLogs cleanFPGA
|