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

Subversion Repositories aes_crypto_core

[/] [aes_crypto_core/] [trunk/] [sim/] [aescomp&run.do] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 hemanth
# Simple script to automate the verification process
2
 
3
#------------------------------------------------------------------------------
4
#    Project directory settings (Put your actual directory paths here)
5
#------------------------------------------------------------------------------
6
set proj_dir "d:/cvsroot/aes128"
7
set sim_dir "$proj_dir/sim"
8
set rtl_dir "$proj_dir/rtl"
9
set tb_dir "$proj_dir/tb"
10
 
11
 
12
#------------------------------------------------------------------------------
13
#    Project compile variable settings
14
#    0 -> disabled; 1 -> enabled
15
#------------------------------------------------------------------------------
16
set compile_rtl 1
17
set compile_tb  1
18
 
19
 
20
#------------------------------------------------------------------------------
21
#    Compile RTL and TB modules
22
#------------------------------------------------------------------------------
23
cd $sim_dir
24
if {$compile_rtl == 1} then {
25
vcom -work work $rtl_dir/aes_package.vhd
26
vcom -work work $rtl_dir/key_expander.vhd
27
vcom -work work $rtl_dir/aes128_fast.vhd
28
}
29
if {$compile_tb == 1} then {
30
vcom -work work $tb_dir/aes_tb_package.vhd
31
vcom -work work $tb_dir/aes_tester.vhd
32
vcom -work work $tb_dir/aes_fips_tester.vhd
33
vcom -work work $tb_dir/aes_fips_mctester.vhd
34
}
35
 
36
#------------------------------------------------------------------------------
37
#    Test variable settings (can run only one test at a time)
38
#    0 -> disabled; 1 -> enabled
39
#    Set the "mode_tb" and "indicator" in aes_tester.vhd before choosing sim_aes_tester
40
#-------------------------------------------------------------------------------
41
set sim_aes_tester 0
42
set sim_aes_fips_tester 0
43
set sim_aes_fips_mctester 0
44
 
45
 
46
#------------------------------------------------------------------------------
47
#    Simulation
48
#------------------------------------------------------------------------------
49
if {$sim_aes_tester == 1} then {
50
  vsim work.aes_tester
51
  run 17 us
52
  quit -sim
53
} elseif {$sim_aes_fips_tester == 1} then {
54
  vsim work.aes_fips_tester
55
  run 2 ms
56
  quit -sim
57
} elseif {$sim_aes_fips_mctester == 1} then {
58
  vsim work.aes_fips_mctester
59
  run 8 sec
60
  quit -sim
61
}
62
 
63
 
64
 

powered by: WebSVN 2.1.0

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