Question: Consider a physical main memory / cache system with the following properties: Main memory is byte addressable. Memory accesses are to 1 - byte words

Consider a physical main memory/cache system with the following properties:
Main memory is byte addressable. Memory accesses are to 1-byte words (not 4-byte words). Main memory addresses are 13 bits wide. Cache is 4-way set associative (E=4), with a 4-byte block size (B=4) and eight sets (S=8).
The contents of the cache are as shown below, with all numbers given in hexadecimal.
4-way Set Associative Cache Index Tag V Bytes 0-3 Tag V Bytes 0-3 Tag V Bytes 0-3 Tag V Bytes 0-30 FO 1 ED 320A A28A 1 BF 801D FC 141 EF 09862A BC 025446F 1A 1 BC 0033E CD 38 AO 0167B ED 5A BC 18E 4C DF 18 E41 FB B712022 BC 1549E 1E FA B61 DC 81 B214000 B61F 7B 4474010 F5 B82E 3 BE 02F 7E 3D A8 CO 12795 A474 C4007116B D8 BC 0 C7 B7 AF C247E 132211C 2C 8A 122 C2 DC 34 BC 1 BA DD 37 D8 DC 0 E7 A239 BA 5980 A9762B EE 540 BC 91 D59298180 BA 9B F6 BC 14816810A 63805D 4D F7 DA BC 169 C28C 748A 1 A8 CE 7F DA 381 FA 93 EB 4878A 1042A 326A 9 E 0 B186560E CC 1963047 F2 BC 1 F81D 4230
a. What is the size (C) of this cache in bytes?
Explain your answer below:
b. The diagram below shows a 13-bit main memory address. Identify the bits of the main memory address that constitute the following fields for addressing the cache:
CO cache block offset
Cl cache set index
CT cache tag c. Suppose that the CPU reads a byte from main memory address \(0\times 071\mathrm{~A}\).
i. Write the binary equivalent of the main memory address in the diagram below:
ii. Fill in the table below for main memory address \(0\times 071\mathrm{~A}\). All values should be given in hexadecimal.
d. Suppose that the CPU reads a byte from main memory address \(0\times 16\mathrm{E}8\).
i. Write the binary equivalent of the main memory address in the diagram below.
ii. Fill in the table below for main memory address \(0\times 16\) E8. All values should be given in hexadecimal. c. Suppose that the CPU reads a byte from main memory address 0x071A.
i. Write the binary equivalent of the main memory address in the diagram below:
ii. Fill in the table below for main memory address \(0\times 071\mathrm{~A}\). All values should be given in hexadecimal.
d. Suppose that the CPU reads a byte from main memory address 0x16E8.
i. Write the binary equivalent of the main memory address in the diagram below.
ii. Fill in the table below for main memory address \(0\times 16\) E8. All values should be given in hexadecimal.
e. List all main memory addresses (in hex) that will result in a cache hit in set index 2.
Consider a physical main memory / cache system

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!