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

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [ip.hwp.accelerator/] [dct_to_hibi/] [1.0/] [sim/] [create_makefile] - Blame information for rev 145

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

Line No. Rev Author Line
1 145 lanttu
#! /bin/sh
2
 
3
 
4
# Ymparistomuuttuja $DCT_DATA_DIR taytyy olla asetettu!
5
# Se kertoo, mihin hakemistoon fiilut kaannetaan
6
 
7
clear
8
 
9
DCT_DATA_DIR="D:\tmp\Dct"
10
HIBI_CVS_TREE=../../../../../../Hibi/Hibi
11
HIBI_SRC_DIR=$HIBI_CVS_TREE/IP/Interconnections/Hibi/Hibi_v2/Vhdl/Ver_05
12
DCT_WORK_DIR=..
13
DCTQIDCT_DIR=../../..
14
 
15
echo 'Creating makefile'
16
 
17
if test ! -d ${DCT_DATA_DIR}
18
then
19
  echo 'Tehdaan /tmp:iin projektille hakemistorakenne...'
20
  echo '($DCT_DATA_DIR =' $DCT_DATA_DIR ')'
21
  mkdir $DCT_DATA_DIR
22
fi
23
 
24
# Poistetaan vanha library ja tehdaan uusi
25
echo "Remove old vhdl library and create new "
26
rm -rf $DCT_DATA_DIR\\codelib
27
rm -rf $DCT_DATA_DIR\\common_da
28
rm -rf $DCT_DATA_DIR\\dct
29
rm -rf $DCT_DATA_DIR\\idct
30
rm -rf $DCT_DATA_DIR\\quantizer
31
rm -rf $DCT_DATA_DIR\\dctQidct
32
 
33
vlib $DCT_DATA_DIR\\codelib
34
vlib $DCT_DATA_DIR\\common_da
35
vlib $DCT_DATA_DIR\\dct
36
vlib $DCT_DATA_DIR\\idct
37
vlib $DCT_DATA_DIR\\quantizer
38
vlib $DCT_DATA_DIR\\dctQidct
39
 
40
vmap work $DCT_DATA_DIR\\codelib
41
vmap common_da $DCT_DATA_DIR\\common_da
42
vmap dct $DCT_DATA_DIR\\dct
43
vmap idct $DCT_DATA_DIR\\idct
44
vmap quantizer $DCT_DATA_DIR\\quantizer
45
vmap dctQidct $DCT_DATA_DIR\\dctQidct
46
 
47
 
48
# Ver_03 = cut-through
49
# Ver_02= store-and-forward
50
# Note! encode_decode_system.vhdl defines constant wait_fifo_empty_c
51
# it must be 0 for cut-through and 1 for store-and-forward!
52
#vcom -quiet -check_synthesis ../../../../IP/Interconnections/Mesh_2d/Vhdl/$MESH_VER/mesh_2d_pkg.vhd
53
 
54
 
55
vcom -quiet $HIBI_CVS_TREE/IP/Memories/Fifos/Fifo_Comparison/Vhdl/fifo_reg.vhd
56
vcom -quiet $HIBI_CVS_TREE/IP/Memories/Fifos/Fifo_Comparison/Vhdl/fifo_slotted_2.vhd
57
 
58
vcom -quiet $HIBI_CVS_TREE/IP/Platform/Synchronizer/Vhdl/aif*.vhd
59
 
60
# Kaannetaan hibin koodit
61
vcom -quiet $HIBI_SRC_DIR/hibiv2_pkg.vhd
62
vcom -quiet $HIBI_SRC_DIR/cfg_init_pkg.vhd
63
vcom -quiet $HIBI_SRC_DIR/addr_data_demuxes.vhd
64
vcom -quiet $HIBI_SRC_DIR/tx_ctrl.vhd
65
vcom -quiet $HIBI_SRC_DIR/addr_data_muxes.vhd
66
vcom -quiet $HIBI_SRC_DIR/addr_decoder.vhd
67
vcom -quiet $HIBI_SRC_DIR/cfg_mem.vhd
68
vcom -quiet $HIBI_SRC_DIR/double_fifo_demux_wr.vhd
69
vcom -quiet $HIBI_SRC_DIR/double_fifo_mux_rd.vhd
70
#vcom -quiet $HIBI_SRC_DIR/fifo.vhd
71
vcom -quiet $HIBI_CVS_TREE/IP/Memories/Fifos/Vhdl/multiclk_fifo.vhd
72
vcom -quiet $HIBI_SRC_DIR/fifo_muxes.vhd
73
vcom -quiet $HIBI_SRC_DIR/hibi_wrapper_r1.vhd
74
vcom -quiet $HIBI_SRC_DIR/receiver.vhd
75
vcom -quiet $HIBI_SRC_DIR/rx_ctrl.vhd
76
vcom -quiet $HIBI_SRC_DIR/transmitter.vhd
77
vcom -quiet $HIBI_SRC_DIR/hibi_wrapper_r3.vhd
78
vcom -quiet $HIBI_SRC_DIR/hibi_wrapper_r4.vhd
79
vcom -quiet $HIBI_SRC_DIR/hibi_wrapper_r3_top.vhd
80
vcom -quiet $HIBI_SRC_DIR/hibi_wrapper_r4_top.vhd
81
vcom -quiet $HIBI_SRC_DIR/async_fifo_interfaces.vhd
82
vcom -quiet $HIBI_SRC_DIR/hibi_bridge_v2.vhd
83
vcom -quiet $HIBI_SRC_DIR/eight_hibi_r4.vhd
84
 
85
 
86
# Käännetään system monitor
87
#vcom -quiet -check_synthesis ../Vhdl/system_monitor.vhd
88
 
89
 
90
 
91
#compile components for library [common_da]
92
vcom -93 -quiet -work common_da $DCTQIDCT_DIR/Vhdl/common_da/*.vhd
93
 
94
#compile components for library [dct]
95
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_pkg.vhd
96
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/Rom_dct_sum.vhd
97
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/Rom_dct_sub.vhd
98
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT1D_DA.vhd
99
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_control.vhd
100
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_core.vhd
101
#vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_core_tester.vhd
102
#vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_core_tb.vhd
103
 
104
#compile components for library [idct]
105
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_pkg.vhd
106
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/Rom_idct_even.vhd
107
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/Rom_idct_odd.vhd
108
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_post_sum.vhd
109
vcom -93 -quiet  -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT1D_DA.vhd
110
vcom -93 -quiet  -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_control.vhd
111
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_core.vhd
112
#vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_core_tester.vhd
113
#vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_core_tb.vhd
114
 
115
#compile components for library [quantizer]
116
vcom -93 -quiet -work quantizer $DCTQIDCT_DIR/Vhdl/quantizer/Quantizer_pkg.vhd
117
vcom -93 -quiet -work quantizer $DCTQIDCT_DIR/Vhdl/quantizer/IQuant.vhd
118
 
119
#compile components for library [dctQidct]
120
vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/IDCT_fifo.vhd
121
vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/dctQidct_core.vhd
122
#vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/dctQidct_core_tester.vhd
123
#vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/dctQidct_core_tb.vhd
124
 
125
#compile configuration for testbenches
126
#vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_core_tb_config.vhd
127
#vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_core_tb_config.vhd
128
#vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/dctQidct_core_tb_config.vhd
129
 
130
 
131
# DCT_TO_HIBI
132
echo 'Compiling DCT_to_HIBI'
133
vcom -quiet -check_synthesis ../Vhdl/cl_cnt.vhd
134
vcom -quiet -check_synthesis ../Vhdl/dct_to_hibi_v2.vhd
135
vcom -quiet -check_synthesis ../Vhdl/dctqidct_top.vhd
136
 
137
# TESTBENCH
138
echo 'Compiling testbench'
139
vcom -quiet -check_synthesis ../Testbenches/tb_dct_package.vhd
140
vcom -quiet -check_synthesis ../Testbenches/tb_dct_cpu.vhd
141
vcom -quiet -check_synthesis ../Testbenches/tb_pinger.vhd
142
vcom -quiet -check_synthesis ../Testbenches/tb_dct_top.vhd
143
 
144
 
145
# Poistetaan vanha makefile ja tehdaan uusi
146
rm -f ../makefile.vhdl
147
vmake $DCT_DATA_DIR/codelib > $DCT_WORK_DIR/Simulation/makefile.vhd
148
 
149
echo "Create makefile complete "
150
 
151
 
152
 

powered by: WebSVN 2.1.0

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