mirror of
https://github.com/wfjm/w11.git
synced 2026-02-04 16:03:52 +00:00
- after 0.581: documentation updates, no functional changes
- from 0.5 -> 0.6:
- revised ibus and rbus protocol; backend server rewritten; Nexys3 port;
Cypress Fx2 support; LP11,PC11 support
62 lines
1.4 KiB
Bash
Executable File
62 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# $Id: xtwv 554 2014-04-21 14:01:51Z mueller $
|
|
#
|
|
# Xilinx Tool Wrapper script for Vivado
|
|
# define XTWV_PATH
|
|
# usage xwtv <vivado command>
|
|
#
|
|
# Revision History:
|
|
# Date Rev Version Comment
|
|
# 2014-04-18 554 1.0.1 fake XILINX_VIVADO, 2014.1 doesn't define it anymore
|
|
# 2013-10-12 539 1.0 Initial version (cloned from xtwi)
|
|
#
|
|
# Note: For Xilinx Vivado installations with an install path <ipath> holds
|
|
# <ipath> dir with settings(32|64).sh
|
|
#
|
|
|
|
# store arg list on vars (will be dropped later to source scripts)
|
|
arglist_val=$@
|
|
arglist_num=$#
|
|
#
|
|
# check whether Vivado already setup ($XILINX_VIVADO defined)
|
|
if [ -z "$XILINX_VIVADO" ]
|
|
then
|
|
# check whether $XTWV_PATH defined
|
|
if [ -z "$XTWV_PATH" ]
|
|
then
|
|
echo "XTWV_PATH not defined"
|
|
exit 1
|
|
fi
|
|
|
|
# check whether 32 or 64 bit system (uname -m gives 'i686' or 'x86_64')
|
|
if [ `uname -m` = "x86_64" ]
|
|
then
|
|
settings_filename=$XTWV_PATH/settings64.sh
|
|
else
|
|
settings_filename=$XTWV_PATH/settings32.sh
|
|
fi
|
|
if [ ! -e "$settings_filename" ]
|
|
then
|
|
echo "can't locate init script '$settings_filename'"
|
|
exit 1
|
|
fi
|
|
|
|
# drop arg list, suppress output
|
|
set --
|
|
. $settings_filename > /dev/null
|
|
|
|
# check that XILINX_VIVADO defined
|
|
if [ -z "$XILINX_VIVADO" ]
|
|
then
|
|
export XILINX_VIVADO=$XTWV_PATH/.
|
|
fi
|
|
|
|
else
|
|
echo "XILINX_VIVADO already defined"
|
|
fi
|
|
|
|
if [ $arglist_num != 0 ]
|
|
then
|
|
exec $arglist_val
|
|
fi
|