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.interface/] [udp2hibi/] [1.0/] [sim/] [create_makefile.sh] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
#!/bin/bash
2
 
3
#
4
# Compile all vhdl codes and create makefile for udp2hibi
5
#
6
# Jussi Nieminen, 2009
7
 
8
FLAGS="-check_synthesis -quiet"
9
 
10
# Paths to files
11
VHD_DIR="../vhd"
12
TB_DIR="../tb"
13
FIFO_DIR="../../../../ip.hwp.storage/fifos"
14
HIBI_DIR="../../../../ip.hwp.communication/hibi/3.0/vhd"
15
TG_DIR="../../../../ip.hwp.communication/traffic_generator/vhd"
16
#FIFO_DIR="../../../memories/fifos"
17
#HIBI_DIR="../../../interconnections/hibi/vhd"
18
#TG_DIR="../../../interconnections/traffic_generator/vhd"
19
LIB="library"
20
 
21
echo -e "\n1 Resetting working library..."
22
 
23
rm -r $LIB
24
vlib $LIB
25
vmap work $LIB
26
 
27
 
28
echo '2 Compiling files...'
29
 
30
# fifos
31
vcom $FLAGS $FIFO_DIR/fifo/1.0/vhd/fifo.vhd
32
vcom $FLAGS $FIFO_DIR/multiclk_fifo/1.0/vhd/multiclk_fifo_v3.vhd
33
 
34
# sub blocks
35
vcom $FLAGS $VHD_DIR/udp2hibi_pkg.vhd
36
vcom $FLAGS $VHD_DIR/hibi_receiver.vhd
37
vcom $FLAGS $VHD_DIR/ctrl_regs.vhd
38
vcom $FLAGS $VHD_DIR/tx_ctrl.vhd
39
vcom $FLAGS $VHD_DIR/rx_ctrl.vhd
40
vcom $FLAGS $VHD_DIR/hibi_transmitter.vhd
41
 
42
# toplevel
43
vcom $FLAGS $VHD_DIR/udp2hibi.vhd
44
 
45
echo '3 Compiling testbenches...'
46
vcom $FLAGS $TB_DIR/tb_hibi_receiver.vhd
47
vcom $FLAGS $TB_DIR/tb_ctrl_regs.vhd
48
vcom $FLAGS $TB_DIR/tb_tx_ctrl.vhd
49
vcom $FLAGS $TB_DIR/tb_udp2hibi.vhd
50
vcom $FLAGS $TB_DIR/tb_rx_ctrl.vhd
51
vcom $FLAGS $TB_DIR/tb_hibi_transmitter.vhd
52
 
53
if [ $1 = "hibi" ]
54
then
55
 
56
        echo '3b Compiling hibi...'
57
 
58
 
59
#       vcom $FLAGS ../../../interconnections/monitor/vhd/mon_pkg.vhd
60
#       vcom $FLAGS $HIBI_DIR/hibiv2_pkg.vhd
61
        vcom $FLAGS $HIBI_DIR/hibiv3_pkg.vhd
62
        vcom $FLAGS $HIBI_DIR/addr_data_mux_write.vhd
63
        vcom $FLAGS $HIBI_DIR/addr_data_demux_read.vhd
64
        vcom $FLAGS $HIBI_DIR/fifo_mux_rd.vhd
65
        vcom $FLAGS $HIBI_DIR/fifo_demux_wr.vhd
66
        vcom $FLAGS ../../../../ip.hwp.storage/fifos/fifo/1.0/vhd/fifo.vhd
67
        vcom $FLAGS $HIBI_DIR/lfsr.vhd
68
 
69
        vcom $FLAGS $HIBI_DIR/double_fifo_mux_rd.vhd
70
        vcom $FLAGS $HIBI_DIR/double_fifo_demux_wr.vhd
71
        vcom $FLAGS $HIBI_DIR/dyn_arb.vhd
72
        vcom $FLAGS $HIBI_DIR/cfg_init_pkg.vhd
73
        vcom $FLAGS $HIBI_DIR/cfg_mem.vhd
74
 
75
#       vcom $FLAGS $HIBI_DIR/addr_decoder_limits.vhd
76
        vcom $FLAGS $HIBI_DIR/rx_control.vhd
77
        vcom $FLAGS $HIBI_DIR/receiver.vhd
78
        vcom $FLAGS $HIBI_DIR/tx_control.vhd
79
        vcom $FLAGS $HIBI_DIR/transmitter.vhd
80
        vcom $FLAGS $HIBI_DIR/hibi_wrapper_r1.vhd
81
        vcom $FLAGS $HIBI_DIR/hibi_wrapper_r3.vhd
82
        vcom $FLAGS $HIBI_DIR/hibi_wrapper_r4.vhd
83
        vcom $FLAGS $HIBI_DIR/hibi_bridge_v2.vhd
84
 
85
#       vcom $FLAGS $TG_DIR/hibi_addr_pkg.vhd
86
#       vcom $FLAGS $TG_DIR/hibiv2.vhd
87
        vcom $FLAGS $HIBI_DIR/hibi_segment_v3.vhd
88
 
89
        vcom $FLAGS $TB_DIR/tb_hibi_test.vhd
90
 
91
fi
92
 
93
echo '4 Making the makefile...'
94
vmake $LIB > makefile
95
 
96
 
97
 
98
echo ' '
99
echo 'Done.'
100
echo 'Simulate with command vsim -novopt tb_udp2hibi and execute ~20 000 ns'

powered by: WebSVN 2.1.0

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