| Memory @ |
0 | 1 |
2 | 3 |
4 | 5 |
6 | 7 |
8 | 9 |
10 | 11 |
12 | 13 |
14 | 15 |
| Data |
| |
| |
| |
| |
0 | 0 |
0 | 0 |
0 | 0 |
1 | 2 |
| Memory @ |
16 | 17 |
18 | 19 |
20 | 21 |
22 | 23 |
24 | 25 |
26 | 27 |
28 | 29 |
30 | 31 |
| Data |
3 | 4 |
5 | 6 |
7 | 8 |
0 | 0 |
0 | 0 |
0 | 0 |
0 | 0 |
0 | 0 |
|
segment tag |
cell 0 |
cell 1 |
cell 2 |
cell 3 |
|
hit/miss |
code being exectued |
| line 1 |
|
|
|
|
|
|
| i = 0; j = 0;
|
| line 0 |
|
|
|
|
|
|
| A += m(i+j)
|
|
segment tag |
cell 0 |
cell 1 |
cell 2 |
cell 3 |
|
hit/miss |
code being exectued |
| line 1 |
|
|
|
|
|
|
| i = 0, j = 0
|
| line 0 |
|
|
|
|
|
|
| A += m(i+j+14)
|
|
segment tag |
cell 0 |
cell 1 |
cell 2 |
cell 3 |
|
hit/miss |
code being exectued |
| line 1 |
|
|
|
|
|
|
| i = 1, j = 0
|
| line 0 |
|
|
|
|
|
|
| A += m(i+j)
|
|
segment tag |
cell 0 |
cell 1 |
cell 2 |
cell 3 |
|
hit/miss |
code being exectued |
| line 1 |
|
|
|
|
|
|
| i = 1, j = 0
|
| line 0 |
|
|
|
|
|
|
| A += m(i+j+14)
|
|
segment tag |
cell 0 |
cell 1 |
cell 2 |
cell 3 |
|
hit/miss |
code being exectued |
| line 1 |
|
|
|
|
|
|
| i = 2, j = 0
|
| line 0 |
|
|
|
|
|
|
| A += m(i+j)
|
|
segment tag |
cell 0 |
cell 1 |
cell 2 |
cell 3 |
|
hit/miss |
code being exectued |
| line 1 |
|
|
|
|
|
|
| i = 2, j = 0
|
| line 0 |
|
|
|
|
|
|
| A += m(i+j+14)
|
|
segment tag |
cell 0 |
cell 1 |
cell 2 |
cell 3 |
|
hit/miss |
code being exectued |
| line 1 |
|
|
|
|
|
|
| i = 2, j = 0
|
| line 0 |
|
|
|
|
|
|
| m(j+8) = A
|