-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
74 lines (60 loc) · 1.3 KB
/
README
File metadata and controls
74 lines (60 loc) · 1.3 KB
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
Parit Burintrathikul
Java Simulation of Cache Memory Functions
main memory is my memorysim
block is a block class
hex to bi has the calculations
the file input has an no automatic .txt added so if the file has a .txt or something add appropriate endings
Testcase1:
args: test2.txt 1024 4 32
store 0x1a25bb 4 c77eaabb
load 0x1a25bb 4
load 0x1a25bb 4
output
store 0x1a25bb miss
load 0x1a25bb miss c77eaabb
load 0x1a25bb hit c77eaabb
TEST2:
args: test2.txt 1 512 2
store 0x1a25bb 1 c77e
store 0x0 1 123456
load 0x0 1
load 0x0 1
load 0x1a25bb 1
store 0x1a25bb miss
store 0x0 miss
load 0x0 miss 12
load 0x0 hit 12
load 0x1a25bb miss c7
Test3:
args: test2.txt 1024 4 32
store 0x1a25bb 1 c77e
load 0x1a25bb 1
store 0x1a25bb 1 45
load 0x1a25bb 1
store 0x1a25bb miss
load 0x1a25bb miss c7
store 0x1a25bb hit
load 0x1a25bb hit 45
Test case4 :
rgs: tracefile.txt 1024 4 32
store 0x1a25bb 4 c77eaabb
store 0xFA25A0 4 abcdef90
store 0xC225A0 4 12345678
load 0x1a25bb 4
load 0xFA25A0 4
load 0xFA25A0 4
load 0xC225A0 4
load 0x1a25bb 4
load 0xC225A0 4
load 0xFA25A0 4
output
store 0x1a25bb miss
store 0xFA25A0 miss
store 0xC225A0 miss
load 0x1a25bb miss c77eaabb
load 0xFA25A0 miss abcdef90
load 0xFA25A0 hit abcdef90
load 0xC225A0 miss 12345678
load 0x1a25bb miss c77eaabb
load 0xC225A0 hit 12345678
load 0xFA25A0 miss abcdef90