-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.do
69 lines (64 loc) · 1.07 KB
/
run.do
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
vlib work
vlog fsm.v
vsim fsm
log {/*}
add wave -r {/*}
#create clock
force {CLOCK_50} 0 0ns, 1 {2ns} -r 5ns;
force {KEY[0]} 0;
force {KEY[1]} 1;
force {KEY[2]} 1;
force {KEY[3]} 1;
force {SW[6]} 0;
force {SW[5]} 0;
force {SW[4]} 0;
force {SW[3]} 0;
force {SW[2]} 0;
force {SW[1]} 0;
force {SW[0]} 0;
force {SW[9]} 0;
force {SW[8]} 0;
force {SW[7]} 0;
run 10ns
force {KEY[0]} 1;
run 10ns
force {KEY[0]} 1;
force {SW[6]} 1;
force {SW[5]} 1;
force {SW[4]} 0;
force {SW[3]} 0;
force {SW[2]} 1;
force {SW[1]} 0;
force {SW[0]} 0;
force {SW[9]} 1;
force {SW[8]} 1;
force {SW[7]} 0;
run 10000ns
force {KEY[3]} 0;
run 10000ns
force {KEY[3]} 1;
run 100ns
force {KEY[1]} 0;
run 100000ns
force {KEY[1]} 1;
run 1000000ns
force {SW[6]} 0;
force {SW[5]} 1;
force {SW[4]} 1;
force {SW[3]} 0;
force {SW[2]} 0;
force {SW[1]} 1;
force {SW[0]} 0;
run 100ns
force {KEY[3]} 0;
run 10000ns
force {KEY[3]} 1;
run 100ns
force {KEY[1]} 0;
run 100000ns
force {KEY[1]} 1;
run 100000ns
force {KEY[2]} 0;
run 100000ns
force {KEY[2]} 1;
run 192400ns