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

Subversion Repositories radiohdl

[/] [radiohdl/] [trunk/] [modelsim/] [set_modelsim] - Rev 4

Compare with Previous | Blame | View Log

#!/bin/bash -eu
###############################################################################
#
# Copyright (C) 2014-2018
# ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# $Id$
#
###############################################################################

# does user wants feedback on what is happening?
if [ "${1:-}" == "--verbose" ]; then
    verbose=$1
    shift
else
    verbose=""
fi

# read generic functions
. ${RADIOHDL_GEAR}/generic.sh

# Buildset settings for selected a target, e.g.: "unb1", or "unb2"
BUILDSET=${1:-}
if [ "${BUILDSET}" = "" ]; then
  hdl_error $0 "Please specify all arguments\nUsage: $0 <buildset>"
fi

# Select output directory for the library compilation results
buildset_config_file="${RADIOHDL_CONFIG}/hdl_buildset_${BUILDSET}.cfg"
if [ ! -f $buildset_config_file ]; then
  hdl_error $0 "File '$buildset_config_file' does not exist"
fi
. ${RADIOHDL_GEAR}/set_config_variable $verbose $buildset_config_file synth_tool_version

echo "Setting up modelsim for: ${BUILDSET}"

# Adopt buildset dependend directories
. ${RADIOHDL_GEAR}/set_config_variable $verbose $buildset_config_file modelsim_dir,modelsim_platform

# Adopt quartus installation dependend directories
modelsim_config_file="${RADIOHDL_CONFIG}/hdl_tool_modelsim.cfg"
. ${RADIOHDL_GEAR}/set_config_variable $verbose $modelsim_config_file model_tech_altera_lib

# TODO, load only for modelsim 10.4
export LD_PRELOAD=/home/software/freetype2/usr/lib/libfreetype.so

unset buildset_config_file modelsim_config_file verbose

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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