A byte-addressable machine has $2^{20}$ bytes of memory, sixteen-byte blocks and a direct-mapped cache with $2^{12}$ lines. Consecutive addresses include hexadecimal E201F and E2020. Find the tag and cache-line address, in hexadecimal, for E201F.
The sixteen-byte block offset consumes the final four address bits. The next twelve bits select the cache line and the upper four bits form the tag. Splitting E201F as E | 201 | F gives tag E and line 201, A.
More Memory Interfacing and Hierarchy questions
GATE 2021 CS (CS2) Q29– A byte-addressable set-associative cache is 2 KB, with 64-byte blocks and 32-bit…
GATE 2021 CS (CS2) Q37– L1 and larger L2 form an inclusive cache hierarchy. S1: Read misses in a write-through L1…
GATE 2026 CS (CS1) Q38– The size of the physical address space of a processor is 232 bytes. The capacity of a…
GATE 2026 CS (CS2) Q52– Consider a system with a processor and a 4 KB direct-mapped cache with block size 16…
GATE 2026 CS (CS2) Q56– Consider a system with 1 MB physical memory and word length 1 byte. The system uses a…
GATE 2025 CS (CS1) Q36– Consider a memory system with 1M bytes of main memory and 16K bytes of cache memory.…