Script to build bitfile

This commit is contained in:
Joris van Rantwijk 2024-08-03 13:08:27 +02:00
parent 23f9077823
commit 22cc68d820
2 changed files with 21 additions and 0 deletions

11
fpga/01_build_bitfile.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -e
. script_env
setup_vivado
( cd vivado ; vivado -mode batch -source nonproject.tcl )
cp -a vivado/output/puzzlefw_top.bit .

10
fpga/script_env Normal file
View File

@ -0,0 +1,10 @@
#
# Common environment variables for FPGA scripts
#
VIVADO_DIR="/opt/Xilinx/Vivado/2020.2"
setup_vivado() {
. "${VIVADO_DIR}/settings64.sh"
}