GATE CSE Cache Memory and Hierarchy PYQs
Memory hierarchy and cache mapping is one of the highest-yield, most quantitative topics in GATE Computer Science, regularly tested through 2-mark NAT and MSQ q… Read the guide
- Questions
- 47
- Asked
- since 2011
- Total marks
- 82
- Marks / paper
- 3.3
47 GATE CSE Cache Memory and Hierarchy PYQs with solutions, from Computer Organization and Architecture. Browse all GATE CSE PYQs.
Questions
Every official paper that asked this topic, newest first.
- GATE CSE 2026 Set 1 · Q38The size of the physical address space of a processor is bytes. The capacity of a cache memory unit is bytes. The cache block size is 128 bytes. The cache memory unit can be built as a direct mapped cache or as a -way set-associative cache, where and . Let…MCQ2 marksMediumSolve
- GATE CSE 2026 Set 2 · Q52Consider a system with a processor and a 4 KB direct mapped cache with block size of 16 bytes. The system has a 16 MB physical memory. Four words P, Q, R, and S are accessed by the processor in the same order 10 times. That is, there are a total of 40 memory references in the sequence P, Q, R, S, P, Q, R, S,...…MSQ2 marksMediumSolve
- GATE CSE 2026 Set 2 · Q56Consider a system with 1 MB physical memory and a word length of 1 byte. The system uses a direct mapped cache, with block numbers starting from 0. The word with physical address 0xA2C28 is mapped to the cache block number . The maximum possible size of the cache (in KB) for this configuration is ________.…NAT2 marksHardSolve
- GATE CSE 2025 Set 1 · Q36Consider a memory system with 1M bytes of main memory and 16K bytes of cache memory. Assume that the processor generates 20-bit memory address, and the cache block size is 16 bytes. If the cache uses direct mapping, how many bits will be required to store all the values? [Assume memory is byte…MCQ2 marksEasySolve
- GATE CSE 2025 Set 1 · Q53A computer has a memory hierarchy consisting of two-level cache (L1 and L2) and a main memory. If the processor needs to access data from memory, it first looks into L1 cache. If the data is not found in L1 cache, it goes to L2 cache. If it fails to get the data from L2 cache, it goes to main memory, where the data is…NAT2 marksMediumDiagramSolve
- GATE CSE 2025 Set 2 · Q39For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to index into a cache block. The size of each cache block is one byte. Assume that there is no other information stored for each cache block. Which ONE of the following is the CORRECT option for the sizes of the main memory and the…MCQ2 marksMediumSolve
- GATE CSE 2025 Set 2 · Q55Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is 1 nanosecond (ns) and the “hit rate” for L1 cache is 90% while the processor is accessing the data from L1 cache. Whereas, for the second level (L2) cache, the “hit rate” is 80% and the “miss…NAT2 marksMediumSolve
- GATE CSE 2025 Set 2 · Q61An application executes number of instructions in 6.3 seconds. There are four types of instructions, the details of which are given in the table. The duration of a clock cycle in nanoseconds is __________. (rounded off to one decimal place)NAT2 marksEasyDiagramSolve
- GATE CSE 2024 Set 1 · Q53Consider two set-associative cache memory architectures: WBC, which uses the write back policy, and WTC, which uses the write through policy. Both of them use the LRU () block replacement policy. The cache memory is connected to the main memory. Which of the following statements…MSQ2 marksMediumSolve
- GATE CSE 2024 Set 1 · Q54Consider a 512 GB hard disk with 32 storage surfaces. There are 4096 sectors per track and each sector holds 1024 bytes of data. The number of cylinders in the hard disk is ______NAT2 marksEasySolve
- GATE CSE 2024 Set 1 · Q55The baseline execution time of a program on a 2 GHz single core machine is 100 nanoseconds (). The code corresponding to 90% of the execution time can be fully parallelized. The overhead for using an additional core is 10 when running on a multicore system. Assume that all cores in the multicore…NAT2 marksMediumSolve
- GATE CSE 2024 Set 1 · Q56A given program has 25% load/store instructions. Suppose the ideal CPI (cycles per instruction) without any memory stalls is 2. The program exhibits 2% miss rate on instruction cache and 8% miss rate on data cache. The miss penalty is 100 cycles. The speedup () achieved with a…NAT2 marksMediumSolve
- GATE CSE 2023 · Q42A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two input address lines (IA4 and IA3) are connected to the chip select (CS) port of these memory blocks through a decoder as shown in the figure. The remaining ten input address lines from IA11–IA0 are connected to the address port of…MCQ2 marksMediumDiagramSolve
- GATE CSE 2023 · Q64An 8-way set associative cache of size 64 KB (1 KB = 1024 bytes) is used in a system with 32-bit address. The address is sub-divided into TAG, INDEX, and BLOCK OFFSET. The number of bits in the TAG is __________.NAT2 marksEasySolve
- GATE CSE 2022 · Q24Let WB and WT be two set associative cache organizations that use LRU algorithm for cache block replacement. WB is a write back cache and WT is a write through cache. Which of the following statements is/are FALSE?MSQ1 markMediumSolve
- GATE CSE 2022 · Q33A cache memory that has a hit rate of has an access latency and miss penalty . An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to , whereas the miss penalty is not affected.…NAT1 markEasySolve
- GATE CSE 2022 · Q40Consider a digital display system (DDS) shown in the figure that displays the contents of register X. A 16-bit code word is used to load a word in X, either from S or from R. S is a 1024-word memory segment and R is a 32-word register file. Based on the value of mode bit M, T selects an input word to load in X. P and…MCQ2 marksMediumDiagramSolve
- GATE CSE 2022 · Q54Consider a system with 2 KB direct mapped data cache with a block size of 64 bytes. The system has a physical address space of 64 KB and a word length of 16 bits. During the execution of a program, four data words P, Q, R, and S are accessed in that order 10 times (i.e., PQRSPQRS...). Hence, there are 40 accesses to…MSQ2 marksMediumSolve
- GATE CSE 2021 Set 1 · Q22Consider a computer system with a byte-addressable primary memory of size bytes. Assume the computer system has a direct-mapped cache of size 32 KB ( bytes), and each cache block is of size 64 bytes. The size of the tag field is ________ bits.NAT1 markMediumSolve
- GATE CSE 2021 Set 2 · Q19Consider a set-associative cache of size 2KB ( bytes) with cache block size of 64 bytes. Assume that the cache is byte-addressable and a 32-bit address is used for accessing the cache. If the width of the tag field is 22 bits, the associativity of the cache is ________.NAT1 markMediumSolve
- GATE CSE 2021 Set 2 · Q27Assume a two-level inclusive cache hierarchy, L1 and L2, where L2 is the larger of the two. Consider the following statements. : Read misses in a write through L1 cache do not result in writebacks of dirty lines to the L2. : Write allocate policy be used in conjunction with write through…MCQ2 marksMediumSolve
- GATE CSE 2020 · Q30A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 256 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x42C8A4, A2 = 0x546888, A3 = 0x6A289C, A4 = 0x5E4880…MCQ2 marksMediumSolve
- GATE CSE 2019 · Q1A certain processor uses a fully associative cache of size 16 kB. The cache block size is 16 bytes. Assume that the main memory is byte addressable and uses a 32-bit address. How many bits are required for the and the fields respectively in the addresses generated by the processor?MCQ1 markEasySolve
- GATE CSE 2019 · Q2The chip select logic for a certain DRAM chip in a memory system design is shown below. Assume that the memory system has 16 address lines denoted by to . What is the range of addresses (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?MCQ1 markMediumDiagramSolve
- GATE CSE 2018 · Q23A 32-bit wide main memory unit with a capacity of 1 GB is built using 256M 4-bit DRAM chips. The number of rows of memory cells in the DRAM chip is . The time taken to perform one refresh operation is 50 nanoseconds. The refresh period is 2 milliseconds. The percentage (rounded to the closest…NAT1 markMediumSolve
- GATE CSE 2017 Set 1 · Q25Consider a two-level cache hierarchy with L1 and L2 caches. An application incurs 1.4 memory accesses per instruction on average. For this application, the miss rate of L1 cache is 0.1; the L2 cache experiences, on average, 7 misses per 1000 instructions. The miss rate of L2 expressed correct to two decimal places is…NAT1 markMediumSolve
- GATE CSE 2017 Set 1 · Q51Consider a 2-way set associative cache with 256 blocks and uses LRU replacement. Initially the cache is empty. Conflict misses are those misses which occur due to contention of multiple blocks for the same cache set. Compulsory misses occur due to first time access to the block. The following sequence of accesses to…NAT2 marksMediumSolve
- GATE CSE 2017 Set 1 · Q54A cache memory unit with capacity of words and block size of words is to be designed. If it is designed as a direct mapped cache, the length of the TAG field is 10 bits. If the cache unit is now designed as a 16-way set-associative cache, the length of the TAG field is _________ bits.NAT2 marksMediumSolve
- GATE CSE 2017 Set 2 · Q29In a two-level cache system, the access times of and caches are 1 and 8 clock cycles, respectively. The miss penalty from the cache to main memory is 18 clock cycles. The miss rate of cache is twice that of . The average memory access time (AMAT) of this cache system is 2 cycles.…MCQ2 marksMediumSolve
- GATE CSE 2017 Set 2 · Q45The read access times and the hit ratios for different caches in a memory hierarchy are as given below. The read access time of main memory is 90 nanoseconds. Assume that the caches use the referred-word-first read policy and the write back policy. Assume that all the caches are direct mapped caches. Assume that the…NAT2 marksMediumDiagramSolve
- GATE CSE 2017 Set 2 · Q53Consider a machine with a byte addressable main memory of bytes divided into blocks of size 32 bytes. Assume that a direct mapped cache having 512 cache lines is used with this machine. The size of the tag field in bits is _________.NAT2 marksEasySolve
- GATE CSE 2016 Set 1 · Q9A processor can support a maximum memory of 4 GB, where the memory is word-addressable (a word consists of two bytes). The size of the address bus of the processor is at least _________ bits.NAT1 markEasySolve
- GATE CSE 2016 Set 2 · Q32The width of the physical address on a machine is 40 bits. The width of the tag field in a 512 KB 8-way set associative cache is _______ bits.NAT2 marksMediumSolve
- GATE CSE 2015 Set 3 · Q14Consider a machine with a byte addressable main memory of bytes, block size of 16 bytes and a direct mapped cache having cache lines. Let the addresses of two consecutive bytes in main memory be and . What are the tag and cache line address…MCQ1 markMediumSolve
- GATE CSE 2014 Set 1 · Q44An access sequence of cache block addresses is of length and contains unique block addresses. The number of unique block addresses between two consecutive accesses to the same block address is bounded above by . What is the miss ratio if the access sequence is passed through a cache of associativity …MCQ2 marksMediumSolve
- GATE CSE 2014 Set 1 · Q55Consider two processors and executing the same instruction set. Assume that under identical conditions, for the same input, a program running on takes 25% less time but incurs 20% more CPI (clock cycles per instruction) as compared to the program running on . If the clock frequency of …NAT2 marksMediumSolve
- GATE CSE 2014 Set 2 · Q9A 4-way set-associative cache memory unit with a capacity of 16 KB is built using a block size of 8 words. The word length is 32 bits. The size of the physical address space is 4 GB. The number of bits for the TAG field is ________NAT1 markMediumSolve
- GATE CSE 2014 Set 2 · Q43In designing a computer's cache system, the cache block (or cache line) size is an important parameter. Which one of the following statements is correct in this context?MCQ2 marksMediumSolve
- GATE CSE 2014 Set 2 · Q44If the associativity of a processor cache is doubled while keeping the capacity and block size unchanged, which one of the following is guaranteed to be NOT affected?MCQ2 marksMediumSolve
- GATE CSE 2014 Set 2 · Q55Consider a main memory system that consists of 8 memory modules attached to the system bus, which is one word wide. When a write request is made, the bus is occupied for 100 nanoseconds (ns) by the data, address, and control signals. During the same 100 ns, and for 500 ns thereafter, the addressed memory module…NAT2 marksMediumSolve
- GATE CSE 2014 Set 3 · Q44The memory access time is 1 nanosecond for a read operation with a hit in cache, 5 nanoseconds for a read operation with a miss in cache, 2 nanoseconds for a write operation with a hit in cache and 10 nanoseconds for a write operation with a miss in cache. Execution of a sequence of instructions involves 100…NAT2 marksMediumSolve
- GATE CSE 2013 · Q20In a -way set associative cache, the cache is divided into sets, each of which consists of lines. The lines of a set are placed in sequence one after another. The lines in set are sequenced before the lines in set . The main memory blocks are numbered onwards. The main memory…MCQ1 markMediumSolve
- GATE CSE 2013 · Q46A RAM chip has a capacity of 1024 words of 8 bits each (). The number of decoders with enable line needed to construct a RAM from RAM isMCQ2 marksEasySolve
- GATE CSE 2013 · Q53Statement for Linked Answer Questions 52 and 53: A computer uses 46-bit virtual address, 32-bit physical address, and a three-level paged page table organization. The page table base register stores the base address of the first-level table (), which occupies exactly one page. Each entry of stores the…MCQ2 marksHardSolve
- GATE CSE 2012 · Q54Statement for Linked Answer Questions 54 and 55: A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1…MCQ2 marksMediumSolve
- GATE CSE 2012 · Q55Statement for Linked Answer Questions 54 and 55: A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1…MCQ2 marksMediumSolve
- GATE CSE 2011 · Q43An 8KB direct-mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller maintains the tag information for each cache block comprising of the following. 1 Valid bit 1 Modified bit As many bits as the minimum needed to identify the…MCQ2 marksMediumSolve
What GATE tests in Cache Memory and Hierarchy
Concepts, patterns, formulas and traps distilled from past papers.
Memory hierarchy and cache mapping is one of the highest-yield, most quantitative topics in GATE Computer Science, regularly tested through 2-mark NAT and MSQ questions. GATE focuses heavily on bit-level address field decomposition (Tag, Set/Line Index, Block Offset) across direct, set-associative, and fully-associative caches, as well as multi-level hierarchical Average Memory Access Time (AMAT) calculations. Recent years have increased the emphasis on multi-select questions (MSQs) tracing reference sequences for eviction behavior and comparing write-back versus write-through policies.
Core concepts
- Direct, fully-associative, and k-way set-associative cache mapping
- Physical vs. Virtual indexing and Tagging (Page coloring for aliasing)
- Hierarchical vs. Simultaneous memory access models
- Average Memory Access Time (AMAT) and stall cycles per instruction
- Separate Instruction (I-Cache) and Data (D-Cache) hierarchies
- Write-Through with No-Write Allocate vs. Write-Back with Write Allocate
- Dirty (Modified) bit and Valid bit mechanics during hit/miss/eviction
- Block replacement algorithms (LRU, FIFO) and reference string simulation
- Compulsory (cold), Capacity, and Conflict misses
- Memory interleaving, bank cycle time, and bus bottleneck analysis
- Magnetic disk drive geometry and capacity calculations
- Address decomposition: Tag, Set Index, and Word/Byte Offset fields
- Cache organization: k-way Set-Associative, Direct-Mapped, and Fully-Associative architectures
- Cache tag directory overhead: Tag size, Valid bits, Dirty/Modified bits, and Replacement policy bits
- Set mapping arithmetic using modulo operations (j mod v)
- Write update policies: Write-through vs. Write-back and dirty bit behavior
- Write miss policies: Write-allocate vs. No-write-allocate pairing and multilevel inclusivity
- Address division into Tag, Set/Line Index, and Block Offset
- Direct-mapped vs. P-way set-associative cache geometry
- Metadata bits per line (Tag bits, Valid bit, Modified/Dirty bit in write-back cache)
- Hexadecimal address bit-slicing and masking to extract index and tag
- Byte addressability vs. word length distinctions
- Address line partitioning (Chip Select decoding vs. Internal Memory Address)
- Decoder logic (Active High/Active Low Chip Select)
- Non-contiguous bit decoding (interleaving / stride addressing caused by middle-bit chip selection)
- Starting and ending addresses of memory modules
- Memory matrix organization (rows vs columns of RAM chips)
- Hierarchical address decoder construction using enable inputs
- DRAM row-by-row refresh timing, refresh period, and bandwidth overhead
- Address decoder sizing (k : 2k) versus Multiplexer routing (k : 1)
- Code word / control word bit allocation for memory/register select
- Multi-level memory hierarchy (L1, L2, Main Memory) AMAT and miss rates
- Cycles Per Instruction (CPI) per instruction class
- Total clock cycle computation from instruction mix
- CPU execution time and clock period relationship
- Unit conversion between seconds and nanoseconds
- Fully associative, direct, and set-associative cache mapping
- Physical address breakdown (Tag, Index, Block Offset)
- Byte-addressable memory organization
- Memory chip interfacing and address decoding
- Active-high and active-low chip select logic
- Hexadecimal-to-binary address range conversion
- CPU Execution Time equation
- Cycles Per Instruction (CPI)
- Clock frequency (f) vs Clock cycle time ( = 1/f)
- Instruction count invariance across identical instruction sets and inputs
- Relative performance percentage scaling
Recurring question patterns
Cache Address Field Decomposition and Tag Sizing
CommonNAT2 marks2026, 2025, 2023, 2021Given physical address size, cache capacity, block size, and associativity (or variations where one parameter is unknown or parameterized by variables), calculate the width of Tag, Set Index, or Offset bits, or total tag memory required.
Multi-Level Cache AMAT and CPI Stall Analysis
CommonNAT2 marks2025, 2024, 2022, 2017Given L1/L2 access times, local/global hit rates, and main memory miss penalties (often separated into I-cache and D-cache or read/write distributions), calculate AMAT, effective CPI, or minimum required hit rate after optimization.
Address Trace Simulation and Cache Conflict/Hit Analysis
CommonMSQ2 marks2026, 2022, 2017, 2014Given a sequence of hex addresses or block numbers accessed in a loop over a specific cache organization, trace compulsory vs conflict misses, hit/miss outcomes for specific references, and final cache contents.
Write Policy Conceptual Analysis
OccasionalMSQ2 marks2024, 2022Evaluate architectural assertions regarding Write-Back vs. Write-Through policies, dirty bit necessity, eviction penalties on read/write misses, and memory bus traffic.
Memory Interleaving and Secondary Storage Geometry
OccasionalNAT2 marks2024, 2016, 2014Calculate throughput/initiation rates in multi-module interleaved memory systems or solve for disk geometry parameters (cylinders, surfaces, sectors) from capacity constraints.
Cache Address Breakdown and Tag Directory Size Calculation
CommonMCQ2 marks2012Given physical address size, cache capacity, associativity, and block size, calculate the number of tag bits and the total size in bits/Kbits of the tag directory (including status bits like valid, modified/dirty, replacement bits).
Algebraic Block-to-Line/Set Mapping Formulation
OccasionalMCQ1 marks2013Formulating the exact cache line index range or set index algebraically for a memory block in a -way set associative cache with sets where lines are ordered consecutively.
Cache Write and Allocation Policy Analysis
OccasionalMCQ2 marks2021Multi-statement verification evaluating properties of write-through vs. write-back policies (dirty line handling, writebacks on read/write misses) and their pairings with write-allocate vs. no-write-allocate policies in single/multilevel caches.
Hexadecimal Address Mapping and Set/Line Index Extraction
CommonMCQ2 marks2020, 2015Given physical memory size, cache parameters (cache size, associativity, block size), and one or more hexadecimal addresses, determine field bit-widths (Tag, Index, Offset) and identify which set/line the addresses map to or extract their exact hexadecimal Tag and Index values.
Cache Controller Metadata and Tag Directory Size Calculation
OccasionalMCQ2 marks2011Given cache capacity, block size, address length, and mapping scheme along with status bits (valid bit, dirty/modified bit for write-back), determine the total storage required for metadata (tag directory size).
Decoder-Based Chip Select and Address Mapping
RareMCQ2 marks2023A system memory of size is built using smaller memory blocks selected by a decoder driven by a subset of system address lines. Candidates determine the starting/ending addresses or address range of specific memory chips based on which bit positions drive the decoder versus the chip internal address lines.
Memory Chip Expansion and Decoder Tree Design
OccasionalMCQ2 marks2013Constructing a target memory capacity and word length using smaller RAM/ROM chips, determining row/column organization, and calculating the exact number of smaller decoders (with enable lines) required to form the address decoding tree.
DRAM Refresh Overhead and Bandwidth Availability
OccasionalNAT1 marks2018Given the number of memory cell rows in a DRAM chip, time per row refresh operation, and refresh period, calculating the total refresh time overhead and the remaining percentage of time available for read/write operations.
Memory & Register Interfacing Logic Identification
OccasionalMCQ2 marks2022Determining the required addressing components (e.g., decoders) and data path routing units (e.g., multiplexers) for interfacing distinct memory segments and register files given word sizes and instruction/code word layouts.
Hierarchical Average Memory Access Time (AMAT)
OccasionalNAT2 marks2025Computing the overall AMAT across a multi-level hierarchy (L1 cache, L2 cache, Main Memory) given access times, hit rates, or miss penalties at each level in simultaneous or hierarchical access configurations.
Instruction Mix and Clock Cycle Time Calculation
CommonNAT2 marks2025Given an instruction breakdown by category with respective CPIs/cycle counts and total execution time, compute the total clock cycles and solve for the clock cycle duration (in ns) or clock frequency (in MHz/GHz).
Cache Address Field Division
CommonMCQ1 marks2019Given cache parameters (cache size, block size, associativity) and main memory address width, compute the number of bits allocated to Tag, Set/Index, and Word/Byte offset fields.
Chip Select Address Decoding
CommonMCQ1 marks2019Given a logic gate circuit (e.g., AND/NAND with inverted inputs) driving the Chip Select (CS) line using higher-order address lines, determine the enabled memory address range in hexadecimal.
Comparative CPU Performance & Execution Time Ratio
CommonNAT2 marks2014Two processors executing the same instruction set/program with relative differences in execution time and CPI are compared to compute an unknown processor metric (such as clock frequency or cycle time).
Formulas GATE uses
Cache Line Count
Determining total cache lines before calculating index bits or set counts.
Number of Sets in $k$-Way Set Associative Cache
Determining set index bits in set-associative cache mappings.
Address Field Partitioning
Calculating tag size or verifying total physical address width.
Tag Invariance with Block Size
Solving for tag width when block size is unknown or variable.
Total Tag Memory Overhead
Calculating the total hardware memory needed to store cache tags and status bits.
Hierarchical Two-Level AMAT
Calculating average access time when miss penalties are resolved hierarchically level-by-level.
CPI with Split Memory Stalls
Calculating processor stall overhead for separate instruction and data caches.
Hard Disk Capacity
Solving for disk geometry parameters from total formatted capacity.
Block Offset Bits
Determining word/byte offset bits within a cache block from block capacity.
Number of Sets and Set Index Bits
Finding set index width in a -way set associative cache.
Tag Bits Calculation
Finding address tag width in set-associative cache memory.
Tag Directory Entry and Total Directory Size
Computing total storage overhead of the tag array.
Set-Associative Line Index Range for Block $j$
Mapping main memory block to linear cache line indices in a -way set associative cache with sets.
Block Offset Bit-Width
Determining word/byte offset within a cache block for byte-addressable memories.
Number of Lines / Sets
Calculating number of index lines/sets for a -way set-associative cache ( for direct-mapped).
Tag Bit-Width
Determining the number of bits allocated to the tag field.
Total Metadata Size
Calculating the total storage overhead at the cache controller for write-back or write-through caches.
Address Value from Bit Positions
Used to compute the physical decimal/hex starting address when specific address bits are fixed by decoder selection lines and the internal chip address lines are set to zero.
Total Memory Chips Required
Determining the total number of basic RAM/ROM chips needed to build a target memory matrix (2013).
Decoder Tree Hierarchy Count
Used when a single first-level decoder enables second-level decoders to produce select lines (2013).
DRAM Refresh Overhead Time
Calculating the total time occupied by refreshing all memory rows within one refresh cycle period (2018).
Available Time Percentage for Memory R/W
Finding the percentage of operating time remaining for processor memory access after subtracting refresh overhead (2018).
Address Bits for $N$-Word Memory
Determining the decoder size () needed to uniquely address memory words or registers (2022).
Hierarchical AMAT (2-Level Cache + Main Memory)
Computing average memory access time when lower-level access times already subsume miss detection penalties from upper levels (2025).
Total Clock Cycles
Used to find total clock cycles when instruction count and CPI for each instruction type are given.
CPU Execution Time
Used to solve for clock period or frequency given overall runtime.
Block Offset Calculation
Determining the number of bits required to address a specific byte within a cache line.
Cache Index / Set Bits
Used in direct mapped and set-associative caches. For fully associative cache, Number of Sets = 1, so Index bits = 0.
Tag Bit Allocation
Finding the remaining bits in the memory address used for tag comparison.
Processor Time Ratio
Used when comparing execution time differences between two machines executing the same workload.
Examiner traps in Cache Memory and Hierarchy
- Confusing word addressability with byte addressability (e.g., assuming 1 address = 1 byte when word size is given as 2 or 4 bytes).
- Misinterpreting local miss rate vs. global miss rate in multi-level caches (e.g., using misses per 1000 instructions as local miss rate without dividing by L1 misses).
- Adding L1 access time twice when formula uses hierarchical format vs miss penalty format.
- Assuming Write-Through caches have dirty bits, or forgetting that dirty blocks in Write-Back are only written back upon eviction (not on the initial write hit).
- Forgetting that compulsory misses occur strictly on the first global reference to a distinct block, not on subsequent conflicts in a looped trace.
- Forgetting that increasing associativity k → 2k keeps Tag + Index constant, thus increasing tag bits by 1 bit and reducing index bits by 1 bit.
- Multiplying tag directory entry size by number of sets instead of total number of cache lines (blocks).
- Confusing number of sets v with associativity k in modulo mapping (j mod v vs j mod k).
- Overlooking extra status bits (multiple valid bits, dirty bits, replacement bits) when computing tag directory size.
- Assuming write-allocate must strictly be paired with write-through (in reality, write-allocate is standard for write-back).
- Forgetting that write-through caches never hold dirty lines, so evictions never trigger dirty writebacks.
- Confusing word length (e.g. 32-bit architecture) with the physical address size when main memory size is explicitly specified (e.g., 16 MB implies a 24-bit address, not 32-bit).
- Dividing cache size by set associativity before dividing by block size (or forgetting to divide total lines by P-way associativity to get set count).
- Misaligning hexadecimal digits when the set index or tag does not align on 4-bit nibble boundaries, requiring manual binary extraction of intermediate bits.
- Forgetting to multiply the metadata per line by the total number of lines (instead of number of sets) when calculating total tag directory size.
- Assuming the decoder is always connected to the Most Significant Bits (MSBs), which leads to standard contiguous block starting addresses like (0, 1024, 2048, 3072).
- Ignoring the weights of the specific bit positions connected to the decoder inputs (e.g., treating bit IA3 as weight 1 instead of weight 23 = 8).
- Confusing the order of decoder input selection lines (e.g., A1 vs A0 connections causing swapped outputs).
- Forgetting the top-level enable decoder in decoder trees (e.g., counting only the 4 second-level decoders instead of 1 + 4 = 5 decoders in 2013).
- Confusing the number of total chips with the number of row selection outputs when sizing the decoder tree.
- Multiplying DRAM refresh time by the total number of chips instead of the number of internal rows in a single chip refreshed simultaneously (2018).
- Misinterpreting given L2/Main Memory access times as incremental access times versus cumulative miss penalties (2025).
- Confusing multiplexers (k:1 data selector) with decoders (k:2k address line expander) when identifying datapath block diagrams (2022).
- Unit conversion errors between seconds, nanoseconds (10-9 s), and clock frequency (GHz/MHz)
- Failing to multiply individual instruction class counts by their specific CPIs before summing
- Confusing total instruction count with total cycle count
- Assuming index bits exist in a fully associative cache (forgetting that fully associative implies 0 index bits / 1 set).
- Confusing total cache lines with sets when dealing with different associativity levels.
- Incorrectly interpreting active-low (bubble) inputs on logic gates when computing fixed high-order address bits.
- Off-by-one errors in binary-to-hexadecimal grouping when converting the maximum address (all 1s in unconstrained lines).
- Inverting the frequency ratio: forgetting that execution time is inversely proportional to clock frequency (T 1/f).
- Miscalculating percentage decrease vs increase (e.g., taking 25\% less time as dividing by 1.25 instead of multiplying by 0.75).
- Assuming instruction count changes when identical ISAs and inputs are explicitly stated.
How questions are asked
- NAT: Calculate tag field bit width from cache/memory sizing parameters
- NAT: Compute multi-level AMAT or effective CPI with stall penalties
- MSQ: Trace hex memory references in a loop to identify hit/miss/eviction states
- MSQ: Identify correct/incorrect statements regarding Write-Back vs. Write-Through cache policies
- NAT: Reverse-engineer cache size or associativity from mapping constraints on given address values
- NAT: Multi-module interleaved memory initiation count in a given time window
- Address field bit width calculation
- Tag directory memory overhead calculation
- Algebraic formula selection for line/set mapping
- Multi-statement evaluation on write policies and multi-level cache behavior
- Calculate total tag/metadata memory overhead in bits/bytes
- Find Tag and Line Index values in hexadecimal for a given address
- Match given multiple hexadecimal addresses to identical or different cache sets
- Schematic diagram analysis with decoder and memory block connections
- Determining starting/ending decimal or hexadecimal addresses for memory modules
- Count component units (decoders, chips) to build a larger target memory
- Calculate time overhead or available bandwidth percentage (NAT)
- Block diagram component identification matching control word bits
- Multi-level AMAT calculation with hit rates and access times
- Table-based instruction mix NAT calculation
- Clock period derivation from program execution time
- Calculate Tag/Index/Offset bit counts from cache specifications
- Determine hexadecimal address range from a logic gate diagram
- Comparative parameter calculation from percentage differences (NAT)
Paper trends
Shift from straightforward 1-mark address splitting MCQs to multi-variable parameterized equations and MSQ-based address sequence tracing.
2026, 2025, 2024, 2023, 2022, 2021
Increased focus on non-trivial boundary analysis, such as inferring maximum cache size or indexing bounds directly from hex bit patterns.
2026
Consistent dominance of NAT and MSQ formats over standard 4-option MCQs for memory organization questions.
2026, 2025, 2024, 2022, 2021
Shift from linked numerical calculation questions (tag bit widths and directory overhead) to formal algebraic mapping properties and multi-statement conceptual evaluations of multi-level cache write hierarchies.
2021, 2013, 2012
Focus transitioned from direct-mapped total tag directory size calculations to set-associative multi-address bitwise extraction requiring hex-to-binary bit shifting.
2020, 2015, 2011
Memory interfacing appeared in recent years (2023) focusing on non-contiguous or intermediate address line selection (e.g., IA4 and IA3) driving the decoder rather than the traditional MSBs, testing deep binary address decoding rather than rote memorization.
2023
Shift from purely discrete combinational memory expansion design (2013) to numerical performance analysis involving DRAM refresh cycles (2018) and multi-level cache AMAT (2025).
2025, 2018, 2013
Adoption of block diagrams and system architectural figures to test component identification and data flow across registers/memory (2022, 2025).
2025, 2022
Even split between 2-mark conceptual MCQs and precise numerical NAT questions with tight tolerances.
2025, 2022, 2018
Recent examinations focus on exact numerical computation (NAT format) involving execution time, instruction mix tables, and unit conversions (seconds to nanoseconds).
2025
In 2019, questions tested both architectural mapping rules (fully associative cache bit allocations) and hardware interfacing logic (chip-select logic gates) at the 1-mark level.
2019
Questions on CPU performance use numerical percentage variations in execution time and CPI to evaluate exact clock frequencies via NAT format.
2014
Difficulty notes
Easy questions require direct formula application for field splitting (Tag/Index/Offset) or 1-level AMAT. Medium questions involve 2-level caches with separate I/D caches, quadratic AMAT equations, or tracing short 4-word address sequences across iterations. Hard questions involve reverse-engineering bit fields from hex addresses and block constraints (e.g., 2026 S2), virtual indexing aliasing with page coloring (e.g., 2013), or algebraic parameterizations of associativity changes.