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

Subversion Repositories fir_wishbone

[/] [fir_wishbone/] [trunk/] [workspaces/] [simulation/] [questa/] [simulate.sh] - Blame information for rev 15

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 daniel.kho
#!/bin/bash
2
#
3
#       Example bash script for Mentor Graphics QuestaSim/ModelSim simulation.
4
#
5
#       Author(s):
6
#       - Daniel C.K. Kho, daniel.kho@opencores.org | daniel.kho@tauhop.com
7
#
8
#       Copyright (C) 2012-2013 Authors and OPENCORES.ORG
9
#
10
# This program is free software: you can redistribute it and/or modify
11
# it under the terms of the GNU General Public License as published by
12
# the Free Software Foundation, either version 3 of the License, or
13
# (at your option) any later version.
14
#
15
# This program is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
# GNU General Public License for more details.
19
#
20
# You should have received a copy of the GNU General Public License
21
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
#
23
# This notice and disclaimer must be retained as part of this text at all times.
24
#
25
#       @dependencies:
26
#       @designer: Daniel C.K. Kho [daniel.kho@gmail.com] | [daniel.kho@tauhop.com]
27
#       @history: @see Mercurial log for full list of changes.
28
#
29
#       @Description:
30
#
31
 
32 15 daniel.kho
errorStr=`grep "\*\* Error: " $1/simulate.log`
33
echo $errorStr;
34 6 daniel.kho
 
35
if [ `echo ${#errorStr}` -gt 0 ]
36 15 daniel.kho
then echo "Errors exist. Refer $1/simulate.log for more details. Exiting."; exit;
37 6 daniel.kho
else
38 15 daniel.kho
        vsim -t ps -do $1/waves.do -voptargs="+acc" "work.tb_fir(rtl)";
39 6 daniel.kho
        echo $(date "+[%Y-%m-%d %H:%M:%S]: simulation loaded.");
40
fi

powered by: WebSVN 2.1.0

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