-
Notifications
You must be signed in to change notification settings - Fork 6
/
referencefile.txt
61 lines (44 loc) · 894 Bytes
/
referencefile.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
from collections import defaultdict
class Buffer:
def __init__(self):
self.dict = defaultdict(lambda: "0"*8)
def set(self, register_name, register_value):
self.dict[register_name] = register_value
def get(self, register_name):
if register_name in self.dict:
return self.dict[register_name]
def flush(self):
self.dict.clear()
"""
F D E M W
F D E M W
F D E M W
F D E M W
F D E M W
F D E M W
F b D b E b M b W
stalling
reverse
writeback -> standard
Memory -> M->M E->M memor
Execute ->
"""
"""
#instruction
normal
normal
sw
normal
lw
normal
lw x10 add
sw x10 add //hazard
lw x10 add // addi x10 x10 x10
sw x10 adress2 M->M
addi x10
lw x10 add //1 stalling
addi x11 x10
sw x11 0(x10)
sw x10 add //no hazard
lw x10 add
"""