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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [verilator/] [prj/] [scripts/] [xilinxxst.sh] - Blame information for rev 88

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 88 rfajardo
echo -n "" > $DIR_OUTPUT
24 85 rfajardo
 
25
source $PROJECT
26
 
27
echo "set -tmpdir "./xst"" >> $DIR_OUTPUT
28
echo "run" >> $DIR_OUTPUT
29
 
30
DIR_PATH="-vlgincdir {"
31
 
32
for dir in "${PROJECT_DIR[@]}"
33
do
34
    DIR_PATH="$DIR_PATH \"$MINSOC_DIR/$dir\" "
35
done
36
 
37
DIR_PATH="$DIR_PATH }"
38
echo $DIR_PATH >> $DIR_OUTPUT
39
 
40 88 rfajardo
echo "-ifn $MINSOC_DIR/prj/xilinx/${PROJECT_FILE}" >> $DIR_OUTPUT
41 85 rfajardo
echo "-ifmt Verilog" >> $DIR_OUTPUT
42
echo "-ofn ${TOP_MODULE_NAME}" >> $DIR_OUTPUT
43
echo "-ofmt NGC" >> $DIR_OUTPUT
44
echo "-p DEVICE_PART" >> $DIR_OUTPUT
45
echo "-top ${TOP_MODULE_NAME}" >> $DIR_OUTPUT
46
echo "-opt_mode Speed" >> $DIR_OUTPUT
47
echo "-opt_level 1" >> $DIR_OUTPUT
48
if [ -n "$TOP_MODULE" ]
49
then
50
    echo "-iobuf yes" >> $DIR_OUTPUT
51
else
52
    echo "-iobuf no" >> $DIR_OUTPUT
53
fi

powered by: WebSVN 2.1.0

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