2018-11-29 04:37:55 +01:00
|
|
|
#!/bin/bash
|
2020-04-16 10:50:39 +02:00
|
|
|
# Copyright (C) 2017-2020 The Project X-Ray Authors.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a ISC-style
|
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
|
# https://opensource.org/licenses/ISC
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: ISC
|
2018-11-29 04:37:55 +01:00
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
|
|
: "${PROJECT:?Need to set PROJECT non-empty}"
|
|
|
|
|
|
|
|
|
|
# Create build dir
|
|
|
|
|
export SRC_DIR=$PWD
|
|
|
|
|
BUILD_DIR=build/$PROJECT
|
|
|
|
|
mkdir -p $BUILD_DIR
|
|
|
|
|
cd $BUILD_DIR
|
|
|
|
|
|
|
|
|
|
export TOP_V=$SRC_DIR/tcl.v
|
|
|
|
|
|
2018-12-28 18:58:28 +01:00
|
|
|
${XRAY_VIVADO} -mode batch -source $SRC_DIR/$PROJECT.tcl
|
2018-11-29 04:37:55 +01:00
|
|
|
for x in design*.bit; do
|
|
|
|
|
${XRAY_BITREAD} -F $XRAY_ROI_FRAMES -o ${x}s -z -y $x
|
|
|
|
|
done
|
|
|
|
|
test -z "$(fgrep CRITICAL vivado.log)"
|
|
|
|
|
touch run.ok
|
|
|
|
|
|