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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [backend/] [std/] [configure] - Diff between revs 85 and 87

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 85 Rev 87
Line 8... Line 8...
 
 
#system workings
#system workings
MINSOC_DIR=`pwd`/../..
MINSOC_DIR=`pwd`/../..
BACKEND_DIR=$MINSOC_DIR/backend
BACKEND_DIR=$MINSOC_DIR/backend
SYN_DIR=$MINSOC_DIR/syn
SYN_DIR=$MINSOC_DIR/syn
SYNSRC_DIR=$SYN_DIR/xilinx
SYNSRC_DIR=$MINSOC_DIR/prj/xilinx
SYNSUPPORT_DIR=$SYN_DIR/buildSupport
SYNSUPPORT_DIR=$SYN_DIR/buildSupport
 
MAKEFILE_DIR=$SYN_DIR/xilinx
 
 
SYN_FILES=(ethmac.xst uart_top.xst adbg_top.xst or1200_top.xst minsoc_top.xst Makefile)
SYN_FILES=(ethmac.xst uart_top.xst adbg_top.xst or1200_top.xst minsoc_top.xst)
 
MAKEFILE=Makefile
 
 
FIND_PART='DEVICE_PART'
FIND_PART='DEVICE_PART'
FIND_CONSTRAINT='CONSTRAINT_FILE'
FIND_CONSTRAINT='CONSTRAINT_FILE'
 
 
BOARD_DIR=$BACKEND_DIR/$BOARD
BOARD_DIR=$BACKEND_DIR/$BOARD
Line 30... Line 32...
        echo "because it relies on the directory structure of the minsoc system."
        echo "because it relies on the directory structure of the minsoc system."
        echo ""
        echo ""
        echo "Possibly your minsoc directory is named differently, minsoc_trunk for example."
        echo "Possibly your minsoc directory is named differently, minsoc_trunk for example."
        echo "Its name must be minsoc only."
        echo "Its name must be minsoc only."
        echo ""
        echo ""
 
    exit 1
fi
fi
 
 
echo ""
echo ""
echo "Configuring SoC board's specific files for firmware compilation, "
echo "Configuring SoC board's specific files for firmware compilation, "
echo "testbench generation and synthesis."
echo "testbench generation and synthesis."
Line 44... Line 47...
 
 
if [ $CONSTRAINT_FILE == 'NONE' ]
if [ $CONSTRAINT_FILE == 'NONE' ]
then
then
    echo "Skipping synthesis preparation. Standard implementation can only be simulated."
    echo "Skipping synthesis preparation. Standard implementation can only be simulated."
else
else
    echo "Device part for files under minsoc/syn/src will be patched and stored "
    echo "Device part for files under minsoc/prj/xilinx will be patched and stored "
    echo "temporarily."
    echo "temporarily."
    echo "Afterwards, they are copied to minsoc/syn/buildSupport."
    echo "Afterwards, they are copied to minsoc/syn/buildSupport."
    echo "__________________________________________________________________________"
    echo "__________________________________________________________________________"
    echo ""
    echo ""
    for file in "${SYN_FILES[@]}"
    for file in "${SYN_FILES[@]}"
Line 59... Line 62...
        sed "s/$FIND_PART/$DEVICE_PART/g" $SYNSRC_DIR/$file > TMPFILE
        sed "s/$FIND_PART/$DEVICE_PART/g" $SYNSRC_DIR/$file > TMPFILE
        sed "s/$FIND_CONSTRAINT/$CONSTRAINT_FILE/g" TMPFILE > TMPFILE2 && mv TMPFILE2 $SYNSUPPORT_DIR/$file
        sed "s/$FIND_CONSTRAINT/$CONSTRAINT_FILE/g" TMPFILE > TMPFILE2 && mv TMPFILE2 $SYNSUPPORT_DIR/$file
        rm TMPFILE
        rm TMPFILE
    done
    done
 
 
    echo "Moving Makefile back from minsoc/syn/buildSupport to minsoc/syn..."
    echo "Updating Makefile file..."
    mv $SYNSUPPORT_DIR/Makefile $SYN_DIR
    echo "Copying Makefile to synthesis directory..."
 
    echo ""
 
    sed "s/$FIND_PART/$DEVICE_PART/g" $MAKEFILE_DIR/$MAKEFILE > TMPFILE
 
    sed "s/$FIND_CONSTRAINT/$CONSTRAINT_FILE/g" TMPFILE > TMPFILE2 && mv TMPFILE2 $SYN_DIR/$MAKEFILE
 
    rm TMPFILE
fi
fi
echo ""
echo ""
echo ""
echo ""
 
 
 
 

powered by: WebSVN 2.1.0

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