-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile_src.txt
92 lines (79 loc) · 3.13 KB
/
compile_src.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash
#export PROJECTNAME="."
#echo "the project location is : $PROJECTNAME"
#echo "removing libs"
echo -e "\e[00;32mInitializing...\e[00m"
echo -e "\e[00;32mRemoving libs...\e[00m"
vdel -lib LIB/LIB_RTL -all
vdel -lib LIB/LIB_BENCH -all
#echo "creating library "
echo -e "\e[00;32mCreating library\e[00m"
vlib LIB/LIB_RTL
vmap LIB_RTL LIB/LIB_RTL
vlib LIB/LIB_BENCH
vmap LIB_BENCH LIB/LIB_BENCH
# compilation des fichiers sources
#echo "compile vhdl sources"
echo -e "\e[00;32mCompile VHDL sources\e[00m"
vcom -work LIB_RTL SRC/RTL/ascon_pack.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/add_const.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/s_box.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/substitution.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/diffusion.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/permutation_base.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/permutation_inter.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/permutation_finale.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/mux_state.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/state_register_w_en.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/state_register.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/register_w_en.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/xor_begin.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/xor_end.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/mde_ascon_moore.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/compteur_double_init.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/compteur_bloc_init.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_RTL SRC/RTL/ascon_top.vhd
echo -e "\e[00;34mFile compiled\e[00m"
#vcom -work LIB_RTL $PROJECTNAME/SRC/RTL/ascon_top.vhd
# compilation des fichiers TB
#echo "compile vhdl test bench"
echo -e "\e[00;32mCompile VHDL test bench\e[00m"
vcom -work LIB_BENCH SRC/BENCH/add_const_tb.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_BENCH SRC/BENCH/substitution_tb.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_BENCH SRC/BENCH/diffusion_tb.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_BENCH SRC/BENCH/permutation_base_tb.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_BENCH SRC/BENCH/permutation_inter_tb.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_BENCH SRC/BENCH/permutation_finale_tb.vhd
echo -e "\e[00;34mFile compiled\e[00m"
vcom -work LIB_BENCH SRC/BENCH/ascon_top_tb.vhd
echo -e "\e[00;34mFile compiled\e[00m"
#vcom -work LIB_BENCH $PROJECTNAME/SRC/BENCH/ascon_top_tb.vhd
# lancement du simulateur
#echo "compilation finished"
#echo "to start the simulation, type vsim&"
echo -e "\e[00;35mCompilation finished!\e[00m"
echo -e "\e[00;35mTo start the simulation, type vsim&!\e[00m"
# ATTENTION un seul VSIM decommenté à la fois!
#vsim LIB_BENCH.ascon_top_tb_conf #-do ascon_top_wave.do