forked from HailStorm32/ECE-486-586-Pipeline-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hazardTestExplained3.txt
66 lines (46 loc) · 1.42 KB
/
hazardTestExplained3.txt
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
Parsed Instructions from the hazardTest.. Note, this doesn't
have any branching/jump instructions yet.
Line 1: 040504D2
ADDI Rs: 0 Rt: 5 Imm: 1234 R5 = 0 + 1234
Line 2: 300B0400 <--Hazard #3a
LDW Rs: 0 Rt: 11 Imm: 1024 R11 = MEM[1000+0] ((1024/4)+1 = line 257)
Line 3: 04640258 <--Hazard #4a
ADDI Rs: 3 Rt: 4 Imm: 600 R4 = R3 + 600
Line 4: 14970002 <--Hazard #4b #5a
MULI Rs: R4 Rt: R23 Imm: 2 R23 = R4 * 2
Line 5: 0576000A <--Hazard #3b
ADDI Rs: R11 Rt: R22 Imm: 10 R22 = R11 + 10
Line 6: 32F900A4 <--Hazard #5b
LDW Rs: R23 Rt: R25 Imm: 164 R25 = MEM[164+1200] ((1364/4)+1 = line 342)
Line 7: 0C06FFCE
SUBI Rs: 0 Rt: 6 Imm: 65486 R6 = 0 - -50
Line 8: 2C01003F <--Hazard #2a
XORI Rs: 0 Rt: 1 Imm: 63 R1 = 0 ^ 63
Line 9: 00A53800 <--Hazard #1a
ADD RS: 5 Rt: 5 Rd: 7 R7 = R5 + R5
Line 10: 00813800 <--Hazard #1b #2b
ADD Rs: 4 Rt: 1 Rd:7 R7 = R4 + R1
Line 11: 0CEC0014 <--Hazard #1c
SUBI Rs: 7 Rt: 12 Imm: 20 R12 = R7 - 20
Line 12: 34040578
STW Rs: 0 Rt: 4 Imm: 1400 MEM[1400+0] = R4 ((1400/4)+1 = line 351)
Line 13: 0568FFFB
ADDI Rs: 11 Rt: 8 Imm: 65531 R8 = r11 + -5
Line 14: 04090190
ADDI Rs: 0 Rt: 9 Imm: 400 R9 = 0 + 400
Line 15: 040A000D
ADDI Rs: 0 Rt: 10 Imm: 13 r10 = 0 + 13
Line 16: 44000000
HALT Rs: 0 Rt: 0 Imm: 0 Halt
Final Register State:
R1 : 63
R4 : 600
R5 : 1234
R6 : 50
R7 : 663
R8 : 4294967293
R11 : 2
R12 : 643
R22 : 12
R23 : 1200
R25 : 36