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

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [soc/] [led_hibi_example/] [1.0/] [sim/] [sim.do] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
#
2
# Run simulation in Modelsim.
3
# Very simple stimulus, just toggle the switches
4
# few times and that's it.
5
#
6
# Erno Salminen, March 2012
7
 
8
.main clear
9
 
10
#restart -f
11
vsim work.led_hibi_example
12
do add_waves.do *
13
# add wave *
14
 
15
# Initialize evertyhing
16
#force /clk 1 0, 0 10 -repeat 20
17
#force /rst_n 0 0, 1 100
18
 
19
force /switch_0_in 0 0
20
run 1000
21
 
22
 
23
# Switches 0,1,2,3
24
force /switch_0_in 1 0, 0 500
25
run 1200
26
force /switch_0_in 1 0, 0 500
27
run 1200
28
 
29
#force /switch_1_in 1 0, 0 500
30
#run 1200
31
#force /switch_1_in 1 0, 0 500
32
#run 1200
33
 
34
#force /switch_2_in 1 0, 0 500
35
#run 1200
36
#force /switch_2_in 1 0, 0 500
37
#run 1200
38
 
39
#force /switch_3_in 1 0, 0 500
40
#run 1200
41
#force /switch_3_in 1 0, 0 500
42
#run 1200
43
 
44
 
45
# Switches 4, 5, 6, 7
46
#force /switch_4_in 1 0, 0 500
47
#run 2000
48
 
49
 
50
 
51
# Switches 0 and 4 at the same time
52
force /switch_0_in 1 0, 0 500
53
# force /switch_4_in 1 0, 0 500
54
run 2000
55
force /switch_0_in 1 0, 0 500
56
#force /switch_4_in 1 0, 0 500
57
run 2000

powered by: WebSVN 2.1.0

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