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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [bin/] [xilinx_ghdl_simprim] - Blame information for rev 8

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 wfjm
#!/bin/sh
2 8 wfjm
# $Id: xilinx_ghdl_simprim 248 2009-11-08 22:51:38Z mueller $
3 2 wfjm
#
4
#  Revision History:
5
# 2009-11-08   248   1.1    adopt to ISE 11.1, use VITAL models from ./primitive
6
# 2007-10-26    92   1.0    Initial version
7
#
8
 
9
if [ -z "$XILINX" ]
10
then
11
  echo "XILINX not defined"
12
  exit 1
13
fi
14
#
15
cd $XILINX
16
echo "============================================================"
17
echo "* Build ghdl SIMPRIM libs for $XILINX"
18
echo "============================================================"
19
#
20
if [ ! -d ghdl ]
21
then
22
  mkdir ghdl
23
fi
24
#
25
cd $XILINX/ghdl
26
if [ ! -d simprim  ]
27
then
28
  mkdir simprim
29
fi
30
#
31
cd $XILINX/ghdl/simprim
32
cp $XILINX/vhdl/src/simprims/simprim_Vcomponents.vhd .
33
cp $XILINX/vhdl/src/simprims/simprim_Vpackage.vhd .
34
#
35
# for ISE 11.1 the VITAL models are individually in sub-dir primitives
36
#   and vhdl_analyze_order is a file with best compilation order
37
# for ISE 10 and before all VITAL models are in one concatenetaed file
38
#   in this case xilinx_vhdl_chop will chop this into individual model files
39
#
40
if [ ! -d primitive ]
41
then
42
  mkdir primitive
43
fi
44
cd  primitive
45
#
46
if [ -d $XILINX/vhdl/src/simprims/primitive ]
47
then
48
  cp -p $XILINX/vhdl/src/simprims/primitive/other/*.vhd .
49
  cp -p $XILINX/vhdl/src/simprims/primitive/other/vhdl_analyze_order .
50
else
51
  xilinx_vhdl_chop $XILINX/vhdl/src/simprims/simprim_VITAL.vhd
52
  find . -maxdepth 1 -name "*.vhd" | perl -p -e 's|\./||' > vhdl_analyze_order
53
fi
54
#
55
xilinx_vhdl_memcolltype_fix
56
#
57
cd ..
58
echo "# ghdl ... simprim_Vcomponents.vhd"
59
ghdl -a --ieee=synopsys --work=simprim --no-vital-checks simprim_Vcomponents.vhd
60
echo "# ghdl ... simprim_Vpackage.vhd"
61
ghdl -a --ieee=synopsys --work=simprim --no-vital-checks simprim_Vpackage.vhd
62
 
63
for file in `cat primitive/vhdl_analyze_order`
64
do
65
  echo "# ghdl ... primitive/$file"
66
  ghdl -a -fexplicit --ieee=synopsys --work=simprim \
67
      --no-vital-checks primitive/$file 2>&1 |\
68
      tee primitive/$file.ghdl.log
69
done
70
#
71
echo "--- scan for compilation errors:"
72
find primitive -name "*.ghdl.log" | xargs grep error
73
#

powered by: WebSVN 2.1.0

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