NIMCET & JEE 2026 test series updated with latest exam pattern

scholar247

NIMCET Computer Theory Crash Course: Memory Hierarchy, Cache Locality & CPU Registers

Master NIMCET Computer Theory. Learn memory hierarchy, cache locality of reference, SRAM vs DRAM, and CPU registers (PC, MAR, MBR, IR) with solved PYQ tricks.

S2

scholar 247

Updated 12 August 2026

7 min read

On this page

NIMCET Computer Theory Crash Course: Memory Hierarchy, Cache Locality & CPU Registers

The Computer Awareness section in NIMCET comprises 20 questions worth 120 marks (+6.0 marks per correct answer, -1.5 marks negative penalty under standard 1,000-mark paper scaling). While number system conversions (binary, 2's complement, signed hexadecimal) and Boolean logic require numerical steps, Computer Organization and Architecture (COA) theory questions can be answered in under 15 seconds each.

Theoretical items covering the Memory Hierarchy, Cache Locality of Reference, SRAM vs DRAM, and CPU Internal Registers (PC, MAR, MBR, IR, AC) appear consistently in past NIMCET papers. Mastering these core hardware definitions allows candidates to secure 36 to 48 marks in minutes without risking calculation errors.

In this crash course, we analyze the complete computer theory syllabus, present architectural comparison tables, explain Average Memory Access Time (AMAT) formulas, and solve authentic NIMCET Previous Year Questions (PYQs).


Memory Hierarchy Structure: Speed, Capacity & Cost Trade-Offs

Computer memory is organized hierarchically to bridge the performance gap between high-speed CPU execution units and slower secondary storage devices.

THE COMPUTER MEMORY HIERARCHY PYRAMID
                     /                     /   \       CPU Registers (Fastest, Smallest, Highest Cost)
                   /-----                  / Cache \     L1 / L2 / L3 Cache (SRAM - Fast, Volatile)
                 /---------                / Main Mem  \   Main Memory / RAM (DRAM - Medium Speed, Volatile)
               /-------------              / Secondary Mem \ Secondary Storage (SSD / HDD - Non-Volatile, Large)
             /-----------------            / Magnetic Tape/Disk\ Tertiary Storage (Slowest, Largest, Lowest Cost)
           -----------------------

Key Performance Characteristics

  1. Top-to-Bottom Traversal: As you move down the hierarchy from Registers to Secondary Storage:
    • Access Time / Latency: Increases significantly (Registers pprox 0.5 ext{ ns}, RAM pprox 50 ext{ ns}, SSD pprox 50,000 ext{ ns}).
    • Storage Capacity: Increases exponentially (Registers pprox ext{Bytes}, Cache pprox ext{MBs}, RAM pprox ext{GBs}, Disk pprox ext{TBs}).
    • Cost Per Bit: Decreases drastically.
  2. Bottom-to-Top Traversal: Moving up toward the CPU increases access speed and cost-per-bit while reducing total capacity.

SRAM (Static RAM) vs DRAM (Dynamic RAM) Comparison

NIMCET frequently tests the underlying technology differences between Static RAM (used in Cache) and Dynamic RAM (used in Main Memory).

ParameterStatic RAM (SRAM)Dynamic RAM (DRAM)
Primary ApplicationL1, L2, L3 Cache MemoryMain System Memory (RAM)
Basic Storage Cell6-Transistor (6T) Flip-Flop Circuit1 Transistor + 1 Capacitor Circuit
Refresh Cycle Needed?NO (Retains data as long as power is supplied)YES (Capacitors leak charge; requires periodic refreshing)
Access SpeedExtremely Fast (110extns1 - 10 ext{ ns})Moderate (3080extns30 - 80 ext{ ns})
Packing Density / CostLow Density, High Cost Per BitHigh Density, Low Cost Per Bit
Power ConsumptionHigher operational powerLower idle power

Cache Memory Locality of Reference & Access Calculations

Cache memory sits directly between the CPU registers and Main Memory to store frequently accessed instructions and data blocks.

CPU CACHE ACCESS FLOW
+---------+         +--------------+         +----------------+
|   CPU   | <-----> | Cache Memory | <-----> |  Main Memory   |
| (Regs)  |  Hit?   |   (SRAM)     |  Miss?  |     (DRAM)     |
+---------+         +--------------+         +----------------+

Principle of Locality of Reference

Cache efficiency relies on two fundamental principles of execution locality:

  1. Temporal Locality (Locality in Time): If a specific memory location is referenced once, it is highly likely to be referenced again in the near future (e.g., loop variables, subroutine calls, counter variables).
  2. Spatial Locality (Locality in Space): If a specific memory location is referenced, nearby adjacent memory locations are highly likely to be referenced soon (e.g., sequential array elements, instruction stream execution).

Average Memory Access Time (AMAT) Formula

When the CPU requests a word from memory:

  • Cache Hit (hh): The requested word is found in Cache.
  • Cache Miss (1h1 - h): The requested word is absent in Cache and must be fetched from Main Memory.

extAMAT=Textcache+(1h)imesTextmain_memory ext{AMAT} = T_{ ext{cache}} + (1 - h) imes T_{ ext{main\_memory}}

Where:

  • TextcacheT_{ ext{cache}} = Time required to access Cache Memory.
  • hh = Cache Hit Ratio (0h10 \le h \le 1).
  • (1h)(1 - h) = Cache Miss Ratio.
  • Textmain_memoryT_{ ext{main\_memory}} = Time required to access Main Memory upon a miss.

CPU Internal Architecture & Special-Purpose Registers

CPU registers are high-speed internal storage locations located directly inside the Processor Execution Unit. NIMCET regularly asks direct definition questions on register acronyms and operational functions.

CPU INTERNAL REGISTER ARCHITECTURE
+-----------------------------------------------------------------------------------+
| CONTROL UNIT (CU) & ARITHMETIC LOGIC UNIT (ALU)                                   |
|                                                                                   |
| +---------------------+  +---------------------+  +-----------------------------+ |
| | Program Counter     |  | Instruction Reg.    |  | Accumulator (AC)            | |
| | (PC): Next Addr     |  | (IR): Opcode Exec   |  | Intermediate ALU Results    | |
| +---------------------+  +---------------------+  +-----------------------------+ |
|            |                        |                           |                 |
|            v                        v                           v                 |
| +---------------------+  +---------------------+                                  |
| | Memory Address Reg  |  | Memory Buffer Reg   | <===================> DATA BUS    |
| | (MAR): Memory Addr  |  | (MBR / MDR): Data   |                                  |
| +---------------------+  +---------------------+                                  |
|            |                        |                                             |
+------------|------------------------|---------------------------------------------+
             v                        v
         ADDRESS BUS               DATA BUS

Detailed Functions of Core Registers

  1. Program Counter (PC):
    • Function: Holds the memory address of the NEXT instruction to be fetched and executed.
    • Behavior: Automatically increments after an instruction fetch, unless overwritten by a Branch/Jump instruction.
  2. Memory Address Register (MAR):
    • Function: Holds the actual memory address being currently accessed (read or written) on the System Address Bus.
  3. Memory Buffer Register (MBR) / Memory Data Register (MDR):
    • Function: Holds the data content or instruction word fetched from memory or waiting to be written to memory via the System Data Bus.
  4. Instruction Register (IR):
    • Function: Holds the current instruction word being decoded and executed by the Control Unit.
  5. Accumulator (AC):
    • Function: A general/special-purpose register inside the Arithmetic Logic Unit (ALU) that holds intermediate arithmetic and logical operands and results.

Solved NIMCET Computer Theory PYQs & High-Yield Quiz

Let us analyze three authentic NIMCET questions from past papers.

Question 1 (NIMCET PYQ - CPU Registers)

Which of the following registers holds the address of the next instruction to be executed?

  • (A) Memory Address Register (MAR)
  • (B) Instruction Register (IR)
  • (C) Program Counter (PC)
  • (D) Memory Buffer Register (MBR)
  • Analysis: According to standard CPU architecture definitions, the Program Counter (PC) holds the memory address of the next instruction to be fetched.
  • Correct Option: (C).

Question 2 (NIMCET PYQ - Memory Technology)

Cache memory is implemented using which of the following semiconductor technologies?

  • (A) Dynamic RAM (DRAM)
  • (B) Static RAM (SRAM)
  • (C) EEPROM
  • (D) Magnetic Core Memory
  • Analysis: Cache memory requires high-speed access without refresh cycles, making Static RAM (SRAM) the standard technology choice.
  • Correct Option: (B).

Question 3 (NIMCET PYQ - AMAT Calculation)

A computer system has a cache access time of 10extns10 ext{ ns} and a main memory access time of 100extns100 ext{ ns}. If the cache hit ratio is 0.900.90 (90%90\%), what is the Average Memory Access Time (AMAT)?

  • (A) 19extns19 ext{ ns}
  • (B) 20extns20 ext{ ns}
  • (C) 10extns10 ext{ ns}
  • (D) 90extns90 ext{ ns}
  • Analysis: Apply the AMAT formula: extAMAT=Textcache+(1h)imesTextmain_memory ext{AMAT} = T_{ ext{cache}} + (1 - h) imes T_{ ext{main\_memory}} extAMAT=10+(10.90)imes100=10+(0.10imes100)=10+10=20extns ext{AMAT} = 10 + (1 - 0.90) imes 100 = 10 + (0.10 imes 100) = 10 + 10 = \mathbf{20 ext{ ns}}
  • Correct Option: (B).

Frequently Asked Questions (FAQ)

Q1: What is the weightage of Computer Theory in NIMCET Computer Awareness?

Computer Awareness contains 20 questions carrying 120 total marks (+6.0 marks per correct attempt). Computer Theory (Memory Hierarchy, Cache Locality, CPU Registers, OS/COA basics) accounts for 4 to 6 questions (24 to 36 marks) alongside number conversions and Boolean logic.

Q2: What is the main difference between SRAM and DRAM in NIMCET questions?

Static RAM (SRAM) uses transistor flip-flops, requires NO refresh cycles, and is extremely fast—making it ideal for Cache Memory. Dynamic RAM (DRAM) stores data in capacitors, requires periodic refresh cycles, and is denser and cheaper—making it ideal for Main Memory (RAM).

Q3: How do you calculate Average Memory Access Time (AMAT) in NIMCET?

Average Memory Access Time is calculated using the formula: extAMAT=Textcache+(1h)imesTextmain_memory ext{AMAT} = T_{ ext{cache}} + (1 - h) imes T_{ ext{main\_memory}}, where TextcacheT_{ ext{cache}} is cache latency, hh is the cache hit ratio, (1h)(1 - h) is the miss ratio, and Textmain_memoryT_{ ext{main\_memory}} is main memory latency.

Q4: What is the difference between Program Counter (PC) and Memory Address Register (MAR)?

The Program Counter (PC) holds the address of the next instruction scheduled for execution. The Memory Address Register (MAR) holds the address currently connected to the address bus for an immediate memory read or write operation.