OpenCores
URL https://opencores.org/ocsvn/minsoc/minsoc/trunk

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [prj/] [scripts/] [xilinxxst.sh] - Blame information for rev 85

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 85 rfajardo
#!/bin/bash
2
 
3
#system workings
4
MINSOC_DIR=`pwd`/..
5
 
6
PROJECT=$1
7
DIR_OUTPUT=$2
8
PROJECT_FILE=$3
9
TOP_MODULE_NAME=$4
10
TOP_MODULE=$5
11
 
12
if [ ! -f $PROJECT ]
13
then
14
    echo "Unexistent project file."
15
    exit 1
16
fi
17
 
18
if [ -z "$DIR_OUTPUT" ]
19
then
20
    echo "Second argument should be the destintion file for the directory inclusions."
21
    exit 1
22
fi
23
 
24
source $PROJECT
25
 
26
echo "set -tmpdir "./xst"" >> $DIR_OUTPUT
27
echo "run" >> $DIR_OUTPUT
28
 
29
DIR_PATH="-vlgincdir {"
30
 
31
for dir in "${PROJECT_DIR[@]}"
32
do
33
    DIR_PATH="$DIR_PATH \"$MINSOC_DIR/$dir\" "
34
done
35
 
36
DIR_PATH="$DIR_PATH }"
37
echo $DIR_PATH >> $DIR_OUTPUT
38
 
39
echo "-ifn $MINSOC_DIR/prj/${PROJECT_FILE}" >> $DIR_OUTPUT
40
echo "-ifmt Verilog" >> $DIR_OUTPUT
41
echo "-ofn ${TOP_MODULE_NAME}" >> $DIR_OUTPUT
42
echo "-ofmt NGC" >> $DIR_OUTPUT
43
echo "-p DEVICE_PART" >> $DIR_OUTPUT
44
echo "-top ${TOP_MODULE_NAME}" >> $DIR_OUTPUT
45
echo "-opt_mode Speed" >> $DIR_OUTPUT
46
echo "-opt_level 1" >> $DIR_OUTPUT
47
if [ -n "$TOP_MODULE" ]
48
then
49
    echo "-iobuf yes" >> $DIR_OUTPUT
50
else
51
    echo "-iobuf no" >> $DIR_OUTPUT
52
fi

powered by: WebSVN 2.1.0

© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.