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

Subversion Repositories radiohdl

[/] [radiohdl/] [trunk/] [modelsim/] [set_modelsim] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 danv
#!/bin/bash -eu
2
###############################################################################
3
#
4
# Copyright (C) 2014-2018
5
# ASTRON (Netherlands Institute for Radio Astronomy) 
6
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
7
#
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
12
#
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
# GNU General Public License for more details.
17
#
18
# You should have received a copy of the GNU General Public License
19
# along with this program.  If not, see .
20
#
21
# $Id$
22
#
23
###############################################################################
24
 
25
# does user wants feedback on what is happening?
26
if [ "${1:-}" == "--verbose" ]; then
27
    verbose=$1
28
    shift
29
else
30
    verbose=""
31
fi
32
 
33
# read generic functions
34
. ${RADIOHDL_GEAR}/generic.sh
35
 
36
# Buildset settings for selected a target, e.g.: "unb1", or "unb2"
37
BUILDSET=${1:-}
38
if [ "${BUILDSET}" = "" ]; then
39
  hdl_error $0 "Please specify all arguments\nUsage: $0 "
40
fi
41
 
42
# Select output directory for the library compilation results
43
buildset_config_file="${RADIOHDL_CONFIG}/hdl_buildset_${BUILDSET}.cfg"
44
if [ ! -f $buildset_config_file ]; then
45
  hdl_error $0 "File '$buildset_config_file' does not exist"
46
fi
47
. ${RADIOHDL_GEAR}/set_config_variable $verbose $buildset_config_file synth_tool_version
48
 
49
echo "Setting up modelsim for: ${BUILDSET}"
50
 
51
# Adopt buildset dependend directories
52
. ${RADIOHDL_GEAR}/set_config_variable $verbose $buildset_config_file modelsim_dir,modelsim_platform
53
 
54
# Adopt quartus installation dependend directories
55
modelsim_config_file="${RADIOHDL_CONFIG}/hdl_tool_modelsim.cfg"
56
. ${RADIOHDL_GEAR}/set_config_variable $verbose $modelsim_config_file model_tech_altera_lib
57
 
58
# TODO, load only for modelsim 10.4
59
export LD_PRELOAD=/home/software/freetype2/usr/lib/libfreetype.so
60
 
61
unset buildset_config_file modelsim_config_file verbose

powered by: WebSVN 2.1.0

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