URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
[/] [minsoc/] [trunk/] [prj/] [scripts/] [xilinxxst.sh] - Diff between revs 88 and 108
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 88 |
Rev 108 |
Line 7... |
Line 7... |
DIR_OUTPUT=$2
|
DIR_OUTPUT=$2
|
PROJECT_FILE=$3
|
PROJECT_FILE=$3
|
TOP_MODULE_NAME=$4
|
TOP_MODULE_NAME=$4
|
TOP_MODULE=$5
|
TOP_MODULE=$5
|
|
|
|
ENV=`uname -o`
|
|
|
|
function adaptpath
|
|
{
|
|
if [ "$ENV" == "Cygwin" ]
|
|
then
|
|
local cygpath=`cygpath -w $1`
|
|
echo "$cygpath"
|
|
else
|
|
echo "$1"
|
|
fi
|
|
}
|
|
|
if [ ! -f $PROJECT ]
|
if [ ! -f $PROJECT ]
|
then
|
then
|
echo "Unexistent project file."
|
echo "Unexistent project file."
|
exit 1
|
exit 1
|
fi
|
fi
|
Line 29... |
Line 42... |
|
|
DIR_PATH="-vlgincdir {"
|
DIR_PATH="-vlgincdir {"
|
|
|
for dir in "${PROJECT_DIR[@]}"
|
for dir in "${PROJECT_DIR[@]}"
|
do
|
do
|
DIR_PATH="$DIR_PATH \"$MINSOC_DIR/$dir\" "
|
adapted_dir=`adaptpath $MINSOC_DIR/$dir`
|
|
DIR_PATH="$DIR_PATH \"$adapted_dir\" "
|
done
|
done
|
|
|
DIR_PATH="$DIR_PATH }"
|
DIR_PATH="$DIR_PATH }"
|
echo $DIR_PATH >> $DIR_OUTPUT
|
echo $DIR_PATH >> $DIR_OUTPUT
|
|
|
echo "-ifn $MINSOC_DIR/prj/xilinx/${PROJECT_FILE}" >> $DIR_OUTPUT
|
adapted_project_file=`adaptpath $MINSOC_DIR/prj/xilinx/${PROJECT_FILE}`
|
|
echo "-ifn $adapted_project_file" >> $DIR_OUTPUT
|
echo "-ifmt Verilog" >> $DIR_OUTPUT
|
echo "-ifmt Verilog" >> $DIR_OUTPUT
|
echo "-ofn ${TOP_MODULE_NAME}" >> $DIR_OUTPUT
|
echo "-ofn ${TOP_MODULE_NAME}" >> $DIR_OUTPUT
|
echo "-ofmt NGC" >> $DIR_OUTPUT
|
echo "-ofmt NGC" >> $DIR_OUTPUT
|
echo "-p DEVICE_PART" >> $DIR_OUTPUT
|
echo "-p DEVICE_PART" >> $DIR_OUTPUT
|
echo "-top ${TOP_MODULE_NAME}" >> $DIR_OUTPUT
|
echo "-top ${TOP_MODULE_NAME}" >> $DIR_OUTPUT
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.