2018-12-12 23:39:29 +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-12-12 23:39:29 +01:00
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
|
|
export FUZDIR=$PWD
|
|
|
|
|
source ${XRAY_GENHEADER}
|
|
|
|
|
|
|
|
|
|
# Some projects have hard coded top.v, others are generated
|
|
|
|
|
if [ -f $FUZDIR/top.py ] ; then
|
2020-02-18 18:00:34 +01:00
|
|
|
XRAY_DATABASE_ROOT=$FUZDIR/../build_${XRAY_PART}/basicdb python3 $FUZDIR/top.py >top.v
|
2018-12-12 23:39:29 +01:00
|
|
|
fi
|
|
|
|
|
|
2018-12-28 18:58:28 +01:00
|
|
|
${XRAY_VIVADO} -mode batch -source $FUZDIR/generate.tcl
|
2018-12-12 23:39:29 +01:00
|
|
|
test -z "$(fgrep CRITICAL vivado.log)"
|
|
|
|
|
|
|
|
|
|
for x in design*.bit; do
|
|
|
|
|
${XRAY_BITREAD} -F $XRAY_ROI_FRAMES -o ${x}s -z -y $x
|
|
|
|
|
done
|
|
|
|
|
|
2018-12-18 04:45:43 +01:00
|
|
|
python3 $FUZDIR/../fuzzaddr/generate.py $GENERATE_ARGS >segdata_tilegrid.txt
|
2018-12-12 23:39:29 +01:00
|
|
|
|