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

Subversion Repositories t400

[/] [t400/] [trunk/] [syn/] [t421/] [xc3s1000/] [compile_project.tcl] - Blame information for rev 179

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 154 arniml
##############################################################################
2
#
3
# Generic project compile script
4
#
5 179 arniml
# $Id: compile_project.tcl 179 2009-04-01 19:48:38Z arniml $
6 154 arniml
#
7
# Execute from within xtclsh.
8
#
9
# Environment variables:
10
#   $MODULE : Name of the toplevel project
11
#             -> mandatory <-
12
#   $BLD    : Build directory where the project and all temporary files
13
#             are stored
14
#             -> optional, default is "bld" <-
15
#
16
##############################################################################
17
 
18
# mandatory environment variable for project name: $MODULE
19
if {[info exists env(MODULE)]} {
20
    set PROJECT $env(MODULE)
21
    puts "Info: Setting project name from \$MODULE: $PROJECT"
22
} else {
23
    puts "Error: Environment variable MODULE not set."
24
    exit 1
25
}
26
 
27
# optional environment variable for build directory: $BLD
28
# default is 'bld'
29
puts -nonewline "Info: "
30
if {[info exists env(BLD)]} {
31
    set bld $env(BLD)
32
    puts -nonewline "Setting build directory from \$BLD"
33
} else {
34
    set bld bld
35
    puts -nonewline "Setting build directory to default"
36
}
37
puts ": $bld"
38
 
39
cd $bld
40
 
41
project open $PROJECT.ise
42
 
43
puts "Starting design implementation..."
44
process run "Generate Programming File"
45
 
46
project close

powered by: WebSVN 2.1.0

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