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

Subversion Repositories wb_vga

[/] [wb_vga/] [trunk/] [wb_tk/] [compile.sh] - Blame information for rev 7

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

Line No. Rev Author Line
1 7 tantos
#!/bin/bash
2
#
3
# Script to compile sources to a library using Active HDL
4
# (c) Copyright Andras Tantos <tantos@opencores.org> 2001/04/25
5
# This code is distributed under the terms and conditions of the GNU General Public Lince.
6
#
7
# USAGE:
8
#
9
# Set APATH to the installation directory of ActiveHDL and
10
# LIB to whatever name your library has
11
# RESULT_PATH to where generated files you wish to be put
12
# Also make sure that you upadted the Library.cfg file to contain
13
# the specified library name.
14
# After the common part, list all files you wish to include in your library
15
# with 'compile_file' preciding the file name.
16
#
17
# NOTES:
18
#
19
# This script depends on the following executables:
20
#    bash
21
#    cat
22
#    rm
23
#    mv
24
#    mkdir
25
#    echo
26
#    test
27
# they are available under all UNIX-es and can be installed for windows
28
# and DOS too. The windows version of these files can be obtained from
29
# GNU Cygnus distribution (http://sources.redhat.com/cygwin)
30
# The minimal package of these utilities are also available from
31
# OpenCores web-site.
32
 
33
APATH=C:/CAED/ActiveHDL.36/
34
LIB=wb_tk
35
RESULT_PATH=ahdl
36
 
37
# ___________Common part of the script____________
38
 
39
LIB_FILE=$RESULT_PATH/$LIB.lib
40
CMP_FILE=$RESULT_PATH/0.mgf
41
CMP=$APATH/bin/acombat.exe
42
CMP_FLAGS="-avhdl $APATH -lib $LIB -93"
43
 
44
compile_file() {
45
    LOG_FILE=$1
46
    LOG_FILE=$RESULT_PATH/${LOG_FILE/.vhd/.rlt}
47
    ERR_FILE=${LOG_FILE/.rtl/.err}
48
    rm -f $LOG_FILE
49
    rm -f $ERR_FILE
50
    $CMP $CMP_FLAGS -log $LOG_FILE $1 || {
51
        mv $LOG_FILE $ERR_FILE
52
        cat $ERR_FILE
53
        exit 1
54
    }
55
    cat $LOG_FILE
56
}
57
 
58
if test ! -d $RESULT_PATH; then
59
    mkdir $RESULT_PATH
60
fi
61
rm -f $RESULT_PATH/*
62
if test ! -f $LIB_FILE; then
63
        echo > $LIB_FILE
64
fi
65
# ___________End of common part of the script____________
66
 
67
compile_file technology.vhd
68
compile_file wb_arbiter.vhd
69
compile_file wb_async_master.vhd
70
compile_file wb_async_slave.vhd
71
compile_file wb_bus_dnsize.vhd
72
compile_file wb_bus_upsize.vhd
73
compile_file wb_bus_resize.vhd
74
compile_file wb_out_reg.vhd
75
compile_file wb_ram.vhd
76
compile_file wb_test.vhd
77
compile_file wb_tk.vhd
78
 

powered by: WebSVN 2.1.0

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