-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTwoOperand.do
52 lines (47 loc) · 1.69 KB
/
TwoOperand.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
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/FETCHING/pc_instruction
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/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"0005" 0
run
force -freeze sim:/processor/IN_PORT X"0019" 0
run
force -freeze sim:/processor/IN_PORT X"FFFF" 0
run
force -freeze sim:/processor/IN_PORT X"F320" 0
run
run
run
run
run
run
run
run
run
run
run
run
run
run