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

Subversion Repositories sha_core

[/] [sha_core/] [trunk/] [sim/] [sha256.do] - Blame information for rev 5

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

Line No. Rev Author Line
1 2 marsgod
#---------------------------------------------------------------------
2
# Project name         : SHA-256
3
# Project description  : Secure Hash Algorithm (SHA-256)
4
#
5
# File name            : sha256.do
6
#
7
# Design Engineer      : marsgod
8
# Quality Engineer     : marsgod
9
# Version              : 1.0
10
# Last modification    : 2004-05-10
11
#---------------------------------------------------------------------
12
 
13
transcript off
14
# ------------------------------------------------------------------- #
15
# Directories location
16
# ------------------------------------------------------------------- #
17
 
18
set source_dir rtl
19
set tb_dir     bench
20
set work_dir   sim/modelsim_lib
21
 
22
# ------------------------------------------------------------------- #
23
# Maping destination directory for core of model
24
# ------------------------------------------------------------------- #
25
 
26
vlib $work_dir
27
vmap SHA_LIB $work_dir
28
transcript on
29
 
30
 
31
# ------------------------------------------------------------------- #
32
# Compiling components of core
33
# ------------------------------------------------------------------- #
34
 
35
transcript off
36
vlog -work SHA_LIB +incdir+$source_dir $source_dir/sha256.v
37
 
38
 
39
# ------------------------------------------------------------------- #
40
# Compiling Test Bench
41
# ------------------------------------------------------------------- #
42
 
43
vlog  -work SHA_LIB $tb_dir/test_sha256.v
44
 
45
transcript on
46
 
47
 
48
# ------------------------------------------------------------------- #
49
# Loading the Test Bench
50
# ------------------------------------------------------------------- #
51
 
52
transcript off
53
vsim +nowarnTFMPC +nowarnTSCALE -t ns -lib SHA_LIB test_sha
54
 
55
transcript on
56
 
57
 
58
transcript on
59
 
60
do wave.do
61
 
62
run 1ms

powered by: WebSVN 2.1.0

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