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

Subversion Repositories wf3d

[/] [wf3d/] [trunk/] [bin/] [run_icarus.sh] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 specular
#!/bin/sh
2
 
3
 
4
#=======================================================================
5
# Project Monophony
6
#   Wire-Frame 3D Graphics Accelerator IP Core
7
#
8
# File:
9
#   run_icarus.sh
10
#
11
# Abstract:
12
#   Icarus Verilog simulation script
13
#
14
# Author:
15 9 specular
#   Kenji Ishimaru (info.info.wf3d@gmail.com)
16 2 specular
#
17
#======================================================================
18
#
19
# Copyright (c) 2015, Kenji Ishimaru
20
# All rights reserved.
21
#
22
# Redistribution and use in source and binary forms, with or without
23
# modification, are permitted provided that the following conditions are met:
24
#
25
#  -Redistributions of source code must retain the above copyright notice,
26
#   this list of conditions and the following disclaimer.
27
#  -Redistributions in binary form must reproduce the above copyright notice,
28
#   this list of conditions and the following disclaimer in the documentation
29
#   and/or other materials provided with the distribution.
30
#
31
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
32
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
33
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
34
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
35
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
36
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
37
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
38
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
39
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
40
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
41
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42
#
43
# Revision History
44
 
45
RTL_DIR="../rtl"
46
TOP_MODULE=top
47
 
48
sim_file=$1
49
echo "FILE=" $sim_file
50
 
51
iverilog \
52
    -c ../bin/icarus.cmd \
53
    -D VSIM \
54
    -D RTL_DEBUG \
55
    -y . \
56
    -y ${RTL_DIR} \
57
    -y ${RTL_DIR}/core \
58
    -y ../behavior \
59
    -y ../scenario/3d \
60
    -o ${TOP_MODULE} \
61
    timescale.v \
62
    ${sim_file}
63
 
64
if [ $? -gt 0 ]; then
65
  echo "iverilog compile error!"
66
  exit 1
67
fi
68
 
69
if [ ! -e ./vpi.vpi ]; then
70
iverilog-vpi ../bin/vpi/vpi.c
71
fi
72
 
73
if [ $? -gt 0 ]; then
74
  echo "iverilog-vpi compile error!"
75
  exit 1
76
fi
77
 
78
vvp -m ./vpi.vpi top

powered by: WebSVN 2.1.0

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