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.storage/] [sdram2hibi/] [1.0/] [sim/] [create_makefile] - Blame information for rev 147

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

Line No. Rev Author Line
1 145 lanttu
#
2
# Skripti kaantaa kaikki vhdl-tiedostot ja tekee niista makefilen
3
# Ymparistomuuttjat
4
#       MEM_DATA_DIR    kertoo mihin hakemistoon kaannetyt fiilut laitetaan.
5
#       MEM_WORK_DIR    kertoo minkä hakemiston alta lähdekoodit haetaan
6
#
7
 
8
clear
9
# Omia VHDL-koodeja varten
10
#Poistetaan vanha codelib ja tehdaan ja mapataan uusi
11
echo "\nRemoving old vhdl library \n"
12
rm -rf $MEM_DATA_DIR/codelib
13
echo; echo "\nCreating a new library at"
14
echo $MEM_DATA_DIR; echo
15
 
16
mkdir $MEM_DATA_DIR
17
vlib $MEM_DATA_DIR/codelib
18
vmap work $MEM_DATA_DIR/codelib
19
 
20
# Alteran solukirjastojen simulointimallit
21
#vlib $MEM_DATA_DIR/altera_mf
22
#vlib $MEM_DATA_DIR/lpm
23
#vlib $MEM_DATA_DIR/stratix
24
 
25
vlib $MEM_DATA_DIR/altera_vhdl_support
26
vmap altera_vhdl_support $MEM_DATA_DIR/altera_vhdl_support
27
vcom -work altera_vhdl_support ../Vhdl/altera_vhdl_support.vhd
28
 
29
#vmap altera_mf $MEM_DATA_DIR/altera_mf
30
#vmap lpm $MEM_DATA_DIR/lpm
31
#vmap stratix $MEM_DATA_DIR/stratix
32
 
33
#vcom -work lpm ../../Interconnections/Hibi/Hibi_v2/TryOutCodes/sim_lib/220pack.vhd
34
#vcom -work lpm ../../Interconnections/Hibi/Hibi_v2/TryOutCodes/sim_lib/220model.vhd
35
#vcom -work stratix ../../Interconnections/Hibi/Hibi_v2/TryOutCodes/sim_lib/stratix_atoms.vhd
36
#vcom -work stratix ../../Interconnections/Hibi/Hibi_v2/TryOutCodes/sim_lib/stratix_components.vhd
37
#vcom -work ../../Interconnections/Hibi/Hibi_v2/TryOutCodes/sim_lib/altera_mf_components.vhd
38
#vcom -work ../../Interconnections/Hibi/Hibi_v2/TryOutCodes/sim_lib/altera_mf.vhd
39
 
40
 
41
 
42
 
43
 
44
 
45
 
46
# Hibi-koodit v2
47
echo; echo "\nCompiling vhdl codes\n"; echo
48
 
49
 
50
 
51
vcom -cover bcest ../Fifos/fifo.vhdl
52
vcom -cover bcest ../Vhdl/sram_scalable_v2.vhdl
53
vcom -cover bcest ../Vhdl/sdram50Mhz_cas3.vhd
54
vcom -cover bcest ../Vhdl/sdram_ctrl.vhdl
55
 
56
 
57
 
58
# Testipenkit
59
echo; echo "\nCompiling vhdl testbenches\n";echo
60
 
61
 
62
vcom -cover bcest ../Testbench/tb_sram_scalable.vhdl
63
 
64
vcom -cover bcest ../Testbench/sdram_test_component.vhd
65
 
66
vcom../Testbench/tb_sdram_ctrl.vhdl
67
vcom ../Testbench/tb_sdramctrl_sdram50mhz.vhdl
68
vcom ../Testbench/tb_sdram_test_component.vhdl
69
 
70
 
71
echo;echo "\nCreating a new makefile"
72
rm -f $MEM_WORK_DIR/makefile
73
vmake $MEM_DATA_DIR/codelib > $MEM_WORK_DIR/makefile
74
 
75
echo " --------Create_Makefile done------------- \n"
76
 
77
 
78
 

powered by: WebSVN 2.1.0

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