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

Subversion Repositories wb_vga

[/] [wb_vga/] [trunk/] [wb_tk/] [compile.sh] - Diff between revs 7 and 8

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 7 Rev 8
#!/bin/bash
#!/bin/bash
#
#
# Script to compile sources to a library using Active HDL
# Script to compile sources to a library using Active HDL
# (c) Copyright Andras Tantos <tantos@opencores.org> 2001/04/25
# (c) Copyright Andras Tantos <tantos@opencores.org> 2001/04/25
# This code is distributed under the terms and conditions of the GNU General Public Lince.
# This code is distributed under the terms and conditions of the GNU General Public Lince.
#
#
# USAGE:
# USAGE:
#
#
# Set APATH to the installation directory of ActiveHDL and
# Set APATH to the installation directory of ActiveHDL and
# LIB to whatever name your library has
# LIB to whatever name your library has
# RESULT_PATH to where generated files you wish to be put
# RESULT_PATH to where generated files you wish to be put
# Also make sure that you upadted the Library.cfg file to contain
# Also make sure that you upadted the Library.cfg file to contain
# the specified library name.
# the specified library name.
# After the common part, list all files you wish to include in your library
# After the common part, list all files you wish to include in your library
# with 'compile_file' preciding the file name.
# with 'compile_file' preciding the file name.
#
#
# NOTES:
# NOTES:
#
#
# This script depends on the following executables:
# This script depends on the following executables:
#    bash
#    bash
#    cat
#    cat
#    rm
#    rm
#    mv
#    mv
#    mkdir
#    mkdir
#    echo
#    echo
#    test
#    test
# they are available under all UNIX-es and can be installed for windows
# they are available under all UNIX-es and can be installed for windows
# and DOS too. The windows version of these files can be obtained from
# and DOS too. The windows version of these files can be obtained from
# GNU Cygnus distribution (http://sources.redhat.com/cygwin)
# GNU Cygnus distribution (http://sources.redhat.com/cygwin)
# The minimal package of these utilities are also available from
# The minimal package of these utilities are also available from
# OpenCores web-site.
# OpenCores web-site.
 
 
APATH=C:/CAED/ActiveHDL.36/
APATH=C:/CAED/ActiveHDL.36/
LIB=wb_tk
LIB=wb_tk
RESULT_PATH=ahdl
RESULT_PATH=ahdl
 
 
# ___________Common part of the script____________
# ___________Common part of the script____________
 
 
LIB_FILE=$RESULT_PATH/$LIB.lib
LIB_FILE=$RESULT_PATH/$LIB.lib
CMP_FILE=$RESULT_PATH/0.mgf
CMP_FILE=$RESULT_PATH/0.mgf
CMP=$APATH/bin/acombat.exe
CMP=$APATH/bin/acombat.exe
CMP_FLAGS="-avhdl $APATH -lib $LIB -93"
CMP_FLAGS="-avhdl $APATH -lib $LIB -93"
 
 
compile_file() {
compile_file() {
    LOG_FILE=$1
    LOG_FILE=$1
    LOG_FILE=$RESULT_PATH/${LOG_FILE/.vhd/.rlt}
    LOG_FILE=$RESULT_PATH/${LOG_FILE/.vhd/.rlt}
    ERR_FILE=${LOG_FILE/.rtl/.err}
    ERR_FILE=${LOG_FILE/.rtl/.err}
    rm -f $LOG_FILE
    rm -f $LOG_FILE
    rm -f $ERR_FILE
    rm -f $ERR_FILE
    $CMP $CMP_FLAGS -log $LOG_FILE $1 || {
    $CMP $CMP_FLAGS -log $LOG_FILE $1 || {
        mv $LOG_FILE $ERR_FILE
        mv $LOG_FILE $ERR_FILE
        cat $ERR_FILE
        cat $ERR_FILE
        exit 1
        exit 1
    }
    }
    cat $LOG_FILE
    cat $LOG_FILE
}
}
 
 
if test ! -d $RESULT_PATH; then
if test ! -d $RESULT_PATH; then
    mkdir $RESULT_PATH
    mkdir $RESULT_PATH
fi
fi
rm -f $RESULT_PATH/*
rm -f $RESULT_PATH/*
if test ! -f $LIB_FILE; then
if test ! -f $LIB_FILE; then
        echo > $LIB_FILE
        echo > $LIB_FILE
fi
fi
# ___________End of common part of the script____________
# ___________End of common part of the script____________
 
 
compile_file technology.vhd
compile_file technology.vhd
compile_file wb_arbiter.vhd
compile_file wb_arbiter.vhd
compile_file wb_async_master.vhd
compile_file wb_async_master.vhd
compile_file wb_async_slave.vhd
compile_file wb_async_slave.vhd
compile_file wb_bus_dnsize.vhd
compile_file wb_bus_dnsize.vhd
compile_file wb_bus_upsize.vhd
compile_file wb_bus_upsize.vhd
compile_file wb_bus_resize.vhd
compile_file wb_bus_resize.vhd
compile_file wb_out_reg.vhd
compile_file wb_out_reg.vhd
compile_file wb_ram.vhd
compile_file wb_ram.vhd
compile_file wb_test.vhd
compile_file wb_test.vhd
compile_file wb_tk.vhd
compile_file wb_tk.vhd
 
 
 
 

powered by: WebSVN 2.1.0

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