Question: Cache Access Question Miss-Hit specify if there is hit or miss according to first given table to address values in the second one A processor
Cache Access Question Miss-Hit specify if there is hit or miss according to first given table to address values in the second one
A processor has a data cache which has 8 cache-lines as in the following figure.
| Index | Valid | Tag | Data |
| 000 | Y | 11 | XXXXXXX |
| 001 | Y | 10 | XXXXXXX |
| 010 | N | ||
| 011 | N | ||
| 100 | Y | 00 | XXXXXXX |
| 101 | Y | 01 | XXXXXXX |
| 110 | N | ||
| 111 | N |
a) Following addresses come to the cache in the given order. Write down which of them are hit and which of them are miss?
| Address(decimal) | Binary | Hit/Miss |
| 21 | ||
| 11 | ||
| 19 | ||
| 16 | ||
| 3 | ||
| 6 | ||
| 4 | ||
| 31 | ||
| 4 | ||
| 31 |
I couldnt do it because the wat it is asked is different that what i was expecting but i suppose we need to convert the address data to binary and take the last 2 bits as a index and assume that nothing is yet fetched to the cache yet please help i counlt figure it out at least lead me way to figure this out
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
