-
Notifications
You must be signed in to change notification settings - Fork 3
/
Branch.do
92 lines (86 loc) · 2.47 KB
/
Branch.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
vsim -gui work.processor
mem load -i instruction.mem /processor/FETCHING/y/addressing_instruction
add wave -position end sim:/processor/rst
add wave -position end sim:/processor/clk
add wave -position end sim:/processor/IF_ID_BUFFER_FROM_FETCHING
add wave -position end sim:/processor/IF_ID_BUFFER_TO_DECODING
add wave -position end sim:/processor/ID_IE_TO_EXECUTION
add wave -position end sim:/processor/FETCHING/target
add wave -position end sim:/processor/FETCHING/will_branch
add wave -position end sim:/processor/FETCHING/pc_instruction
add wave -position end sim:/processor/FETCHING/pc_write
add wave -position end sim:/processor/DECODING/Rx/loop1(0)/rx/reg_out
add wave -position end sim:/processor/DECODING/Rx/loop1(1)/rx/reg_out
add wave -position end sim:/processor/DECODING/Rx/loop1(2)/rx/reg_out
add wave -position end sim:/processor/DECODING/Rx/loop1(3)/rx/reg_out
add wave -position end sim:/processor/DECODING/Rx/loop1(4)/rx/reg_out
add wave -position end sim:/processor/DECODING/Rx/loop1(5)/rx/reg_out
add wave -position end sim:/processor/DECODING/Rx/loop1(6)/rx/reg_out
add wave -position end sim:/processor/DECODING/Rx/loop1(7)/rx/reg_out
add wave -position end sim:/processor/DECODING/stall_pipe
add wave -position end sim:/processor/DECODING/ID_IE_BUFFER(133)
add wave -position end sim:/processor/EXECUTION/ID_IE_BUFFER(133)
add wave -position end sim:/processor/EXECUTION/TARGET
add wave -position end sim:/processor/EXECUTION/setting_flag/Z_out
add wave -position end sim:/processor/EXECUTION/setting_flag/N_out
add wave -position end sim:/processor/EXECUTION/setting_flag/C_out
add wave -position end sim:/processor/MEMORY/current_SP
add wave -position end sim:/processor/MEMORY/EPC_val
add wave -position end sim:/processor/IN_PORT
add wave -position end sim:/processor/OUT_PORT
force -freeze sim:/processor/clk 1 0, 0 {50 ps} -r 100
# reset all
force -freeze sim:/processor/rst 1 0
force -freeze sim:/processor/IN_PORT X"0000" 0
run
force -freeze sim:/processor/rst 0 0
force -freeze sim:/processor/IN_PORT X"0030" 0
run
force -freeze sim:/processor/IN_PORT X"0050" 0
run
force -freeze sim:/processor/IN_PORT X"0100" 0
run
force -freeze sim:/processor/IN_PORT X"0300" 0
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
run
force -freeze sim:/processor/IN_PORT X"0700" 0
run
run
run
run
run
run
run
run
run
run
run