mirror of
https://github.com/wfjm/w11.git
synced 2026-01-30 21:52:12 +00:00
- added support for Nexys4 and Basys3 boards - added RL11 disk support - lots of documentation updated
65 lines
1.5 KiB
Bash
Executable File
65 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# $Id: xtwv 641 2015-02-01 22:12:15Z mueller $
|
|
#
|
|
# Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
|
# License disclaimer see LICENSE_gpl_v2.txt in $RETROBASE directory
|
|
#
|
|
# 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
|