Skip to main content

Performance & Advanced Computer Architecture Interview Questions (Part 5)

Skip to content
Part 5 · CPI · Cache · Multicore · SIMD

Performance & Advanced Computer Architecture Interview Questions (Part 5)

The final and most senior-leaning part of the series — performance metrics (CPI, IPC, Amdahl's and Gustafson's Law, the roofline model) and advanced cross-cutting topics (memory hierarchy, cache coherence, out-of-order execution, SIMD, multicore, GPUs, and domain-specific architecture).

 58 Questions (Q146–Q203) ⌛ 32 min read  VLSI & Computer Architecture Interviews

Intro Why This Guide

Part 5 closes out the series with the topics that dominate mid-to-senior computer architecture interviews: performance metrics and modern processor design. This is where interviewers stop asking 'what is X' and start asking 'given this scenario, calculate Y' or 'why would a designer choose X over Y' — CPI and IPC calculations, Amdahl's and Gustafson's Law, the roofline model, and power-performance trade-offs.

The second half moves into advanced, cross-cutting territory: memory hierarchy and cache behavior, cache coherence in multiprocessor systems, out-of-order execution hardware (reorder buffers, precise exceptions), SIMD and Flynn's taxonomy, and how GPU architecture fundamentally differs from CPU design. These 58 questions are the ones most likely to come up in senior RTL, performance architecture, and ASIC design interviews.

If you've worked through Parts 1–4, this is the natural finish line — the questions here assume you already understand pipelining, hazards, and branch prediction, and build on top of that foundation.

Context Why These Questions Are Asked in Interviews

Performance metric questions test quantitative reasoning under pressure — interviewers want to see you can actually work through a CPI or speedup calculation, not just recite the formula.

The advanced topics (cache coherence, out-of-order hardware, GPU architecture) are asked at senior levels to gauge whether you understand how real, modern high-performance systems are built beyond the classroom model of a single in-order pipeline.

 How to use this list

Use the search box below to jump to a specific question, or expand every answer at once to read through the whole section. Tap any question to reveal its full answer.

58 questions

Q146–Q155 Throughput, MIPS, FLOPS & Benchmarks

Q146 What is MIPS (Million Instructions Per Second) and its limitations? ▸
MIPS (Million Instructions Per Second) = Instruction_Count / (Execution_Time × 10^6) = Clock_Rate / (CPI × 10^6). It measures raw instruction execution rate. Limitations: (1) MIPS varies between programs --- different workloads have different CPI. (2) MIPS doesn't account for instruction complexity --- a CISC machine may achieve lower MIPS but do more work per instruction than a RISC machine. (3) MIPS can be misleading when comparing different ISAs --- 100 MIPS on x86 may accomplish more than 200 MIPS on RISC because x86 instructions do more per instruction. (4) Native MIPS doesn't account for memory stalls. Due to these issues, MIPS is considered a poor performance metric; execution time on real benchmarks is preferred.
Q147 What is FLOPS and when is it used? ▸
FLOPS (Floating-Point Operations Per Second) measures the rate of floating-point computations. It is the standard metric for scientific computing and HPC (High Performance Computing) performance. Variants: MFLOPS (10^6), GFLOPS (10^9), TFLOPS (10^12), PFLOPS (10^15), EFLOPS (10^18). FLOPS = (FP operations in program) / Execution_time. It is more meaningful than MIPS for scientific workloads because it measures actual computational work. Limitations: (1) Depends on the mix of FP operations (adds vs. multiplies vs. divisions have different costs). (2) Peak FLOPS (theoretical maximum) is often much higher than sustained FLOPS on real applications. (3) Not meaningful for integer-dominated workloads. The Linpack benchmark (used for the TOP500 list) measures sustained FLOPS.
Q148 What are benchmark suites and why are they used? ▸
Benchmark suites are standardized collections of programs used to measure and compare computer performance objectively. They are used because: (1) Real-world performance depends on the workload --- no single metric captures all aspects. (2) Benchmarks provide reproducible, comparable measurements across different systems. Major benchmark suites: SPEC CPU (integer: SPECint, floating-point: SPECfp) --- the industry standard for general-purpose CPU performance. SPEC CPU 2017 includes C/C++/Fortran programs from real applications. Geekbench --- popular consumer benchmark. Linpack/HPL --- HPC floating-point performance. MLPerf --- AI/ML training and inference. Coremark --- embedded processors. Each suite targets specific workload types and provides a standardized way to compare systems.
Q149 What is the SPECratio and how is it calculated? ▸
SPECratio is the performance metric used by the SPEC CPU benchmark suite. It is calculated as: SPECratio = Reference_Time / Measured_Time, where Reference_Time is the execution time on a reference machine (a specific baseline system). A higher SPECratio indicates better performance. For a suite of N benchmarks, the overall score is the geometric mean of individual SPECratios: SPECmark = (∏ SPECratio_i)^(1/N). The geometric mean is used (rather than arithmetic mean) because: it normalizes the ratios (scores are relative), it is not biased by which machine is the reference, and it handles the combination of ratios more fairly. SPEC CPU 2017 has SPECspeed (latency-focused) and SPECrate (throughput-focused) metrics.
Q150 How does cache performance affect CPI? ▸
Cache performance is a major contributor to effective CPI through memory stalls: CPI_memory = Memory_accesses_per_instruction × Miss_rate × Miss_penalty. For a multi-level cache: CPI_memory = Accesses/Inst × (L1_miss_rate × L1_miss_penalty + L1_miss_rate × L2_miss_rate × L2_miss_penalty + ...). Example: if 30% of instructions are loads/stores, L1 miss rate is 5%, and L1 miss penalty is 10 cycles: CPI_memory = 0.30 × 0.05 × 10 = 0.15 cycles added to CPI. With an L2 miss rate of 20% given L1 miss (global miss rate 1%) and penalty of 100 cycles: adds 0.30 × 0.01 × 100 = 0.30. Total memory CPI = 0.45 --- significant. This is why cache design is critical for performance.
Q151 What is the iron law of processor performance? ▸
The Iron Law of Processor Performance states that CPU time is the product of three factors: Time/Program = (Instructions/Program) × (Cycles/Instruction) × (Time/Cycle). This is equivalent to the CPU performance equation: Time = IC × CPI × T_cycle. It is called the 'iron law' because it is a fundamental identity --- there is no way around it. Any performance improvement must reduce at least one factor. The three factors correspond to different design levels: Instructions/program depends on the ISA and compiler. CPI depends on the microarchitecture (pipeline, caches, branch prediction). Time/cycle depends on circuit design and process technology. Understanding this decomposition is essential for identifying where performance bottlenecks lie.
Q152 What is Amdahl's Law and how do you apply it? ▸
Amdahl's Law calculates the overall speedup when only a fraction of the workload benefits from an improvement: Speedup_overall = 1 / ((1 - F) + F/S), where F is the fraction of execution time affected by the improvement and S is the speedup of that fraction. Example: if 80% of the time is spent in computation (sped up 4x) and 20% in I/O (unchanged): Speedup = 1/(0.20 + 0.80/4) = 1/0.40 = 2.5x. Key insights: (1) The maximum possible speedup is 1/(1-F), regardless of how much you speed up the improved portion. (2) Make the common case fast --- improving the most time-consuming part yields the greatest overall benefit. (3) Even a perfect improvement (S = infinity) is limited by the unimproved fraction.
Q153 What is Gustafson's Law? ▸
Gustafson's Law (also called Gustafson-Barsis's Law) provides an alternative perspective to Amdahl's Law by considering scaled workloads. While Amdahl's Law assumes a fixed problem size (strong scaling), Gustafson's Law assumes the problem size grows with available parallelism (weak scaling). Gustafson's Speedup = N - α(N-1), where N is the number of processors and α is the serial fraction. For example, with 100 processors and 5% serial code: Speedup = 100 - 0.05 × 99 = 95.05x. The key insight is that as systems get faster, users solve larger problems rather than the same problem faster. This makes massive parallelism viable for many real-world workloads where problem sizes can scale, contradicting Amdahl's pessimistic limits.
Q154 What is the memory wall problem? ▸
The memory wall refers to the growing disparity between processor speed and memory access speed. CPU performance improved at ~60% per year (through the 2000s) while DRAM latency improved at only ~7% per year. This means the relative cost of a cache miss (in CPU cycles) has grown dramatically --- from ~10 cycles in the 1980s to ~200-300 cycles today. The memory wall makes CPI_memory the dominant component of effective CPI for many workloads. Mitigation strategies: (1) Multi-level cache hierarchies (L1/L2/L3). (2) Hardware prefetching. (3) Out-of-order execution to overlap computation with memory access. (4) Multithreading to use stalled cycles for other threads. (5) Near-memory computing and HBM (High Bandwidth Memory). (6) Non-volatile memory technologies.
Q155 How is throughput calculated for a pipelined processor? ▸
For a pipelined processor, throughput is calculated as: Throughput = Number_of_instructions_completed / Total_execution_time. In an ideal k-stage pipeline executing n instructions: Total_time = (k + n - 1) × cycle_time. Throughput = n / ((k + n - 1) × T_cycle). As n → infinity, Throughput → 1/T_cycle (one instruction per cycle). With stalls: if average CPI is C, then Throughput = 1/(C × T_cycle) = IPC/T_cycle = IPC × Frequency. For a superscalar processor with width W: Maximum throughput = W/T_cycle = W × Frequency. Actual throughput = IPC × Frequency where IPC ≤ W. Example: a 4 GHz processor with IPC of 2.5 has throughput of 10 billion instructions per second.

Q156–Q170 Power, Amdahl's/Gustafson's Law & CPI Stacks

Q156 What is the power-performance tradeoff? ▸
The power-performance tradeoff acknowledges that increasing performance often requires more power, and the relationship is not linear. Dynamic power: P = α × C × V² × f, where α is activity factor, C is capacitance, V is voltage, and f is frequency. Since frequency and voltage are related (higher frequency needs higher voltage), power scales roughly as V² × f ≈ f³ for voltage-frequency scaling. This means a 10% frequency increase costs ~33% more power. Performance-per-watt has become the key metric, especially in data centers (electricity cost) and mobile devices (battery life). Techniques to improve the tradeoff: dynamic voltage-frequency scaling (DVFS), power gating, clock gating, heterogeneous architectures (big.LITTLE), and architectural efficiency improvements.
Q157 What is performance per watt and why is it important? ▸
Performance per watt measures computational work accomplished per unit of power consumed. It is calculated as: Perf/Watt = Performance_metric / Power_consumption (e.g., GFLOPS/W, SPECint/W). Importance: (1) Data center economics --- electricity is a major operational cost; higher perf/watt reduces TCO. (2) Mobile devices --- limited battery capacity makes power efficiency critical for user experience. (3) Thermal constraints --- power dissipation limits performance in all form factors (the 'power wall'). (4) Environmental sustainability --- lower power means smaller carbon footprint. This metric has driven the shift from frequency scaling to parallelism (multicore), the rise of ARM in servers, custom accelerators (GPU, TPU), and heterogeneous computing. The Green500 list ranks supercomputers by FLOPS/W.
Q158 What is the roofline model? ▸
The roofline model is a visual performance model that bounds achievable performance based on compute capability and memory bandwidth. It plots performance (FLOPS) against operational intensity (FLOPS per byte of memory traffic). The 'roof' has two parts: (1) A flat ceiling = peak compute performance (GFLOPS). (2) A sloped ramp = peak memory bandwidth × operational intensity. Performance is limited by whichever is lower. Compute-bound applications (high operational intensity) hit the flat ceiling. Memory-bound applications (low operational intensity) hit the sloped bandwidth limit. The model helps identify whether a workload is compute-bound or memory-bound and quantifies how far actual performance is from the achievable peak. It guides optimization: memory-bound code needs better data reuse; compute-bound code needs algorithmic improvements.
Q159 What is the difference between peak performance and sustained performance? ▸
Peak performance is the theoretical maximum performance a processor can achieve under ideal conditions --- all functional units active, no stalls, perfect cache behavior. For a 4-wide superscalar at 4 GHz: peak = 16 billion operations/second. For a GPU with 5000 cores at 1.5 GHz: peak FLOPS = 5000 × 2 (FMA) × 1.5G = 15 TFLOPS. Sustained performance is what is actually achieved on real applications, which is always lower due to: instruction dependencies limiting ILP, cache misses, branch mispredictions, memory bandwidth limits, load imbalance (parallel), and synchronization overhead. Sustained is typically 10-60% of peak depending on the workload. The gap between peak and sustained is called the efficiency ratio.
Q160 How do you compare performance of two processors? ▸
Performance comparison should be done systematically: (1) Use execution time on the same benchmark programs: Speedup = Time_A / Time_B. If B is 1.5x faster, it completes work in 2/3 the time. (2) Use standardized benchmarks (SPEC CPU, Geekbench) for reproducibility. (3) Compare using geometric mean of speedups across multiple benchmarks for a fair aggregate. (4) Consider the workload --- a processor may be faster for integer but slower for floating-point. (5) Do not use MIPS for cross-ISA comparison (different work per instruction). (6) Consider total cost of ownership: performance/dollar, performance/watt. (7) Report confidence intervals and methodology. (8) Be aware of benchmark gaming --- ensure benchmarks reflect real workloads. The golden rule: performance = 1/execution time.
Q161 What is the impact of instruction mix on CPI? ▸
The instruction mix --- the percentage of each instruction type in a program --- directly affects average CPI because different instruction types have different cycle costs. Average CPI = Σ(CPI_i × Frequency_i) for all instruction types i. Example: if ALU instructions (CPI=1) are 40%, loads (CPI=1.5) are 30%, stores (CPI=1) are 10%, branches (CPI=1.2) are 20%: Average CPI = 0.40×1 + 0.30×1.5 + 0.10×1 + 0.20×1.2 = 0.40 + 0.45 + 0.10 + 0.24 = 1.19. Different programs have different instruction mixes, which is why CPI varies by workload. Compiler optimizations can change the instruction mix (e.g., strength reduction replaces multiplies with shifts, changing the mix and potentially the average CPI).
Q162 How does multithreading affect throughput and CPI? ▸
Multithreading allows a processor to execute instructions from multiple threads, improving throughput by utilizing cycles that would otherwise be wasted. Coarse-grained MT switches threads on long-latency events (cache misses), hiding latency. Fine-grained MT switches every cycle (e.g., barrel processor), hiding single-cycle stalls. Simultaneous MT (SMT/Hyperthreading) issues instructions from multiple threads every cycle, filling unused issue slots. Effect on throughput: SMT can improve throughput by 20-30% with two threads on the same core. Effect on CPI: per-thread CPI may increase (each thread runs slower due to shared resources) but aggregate throughput increases. The system-level throughput (instructions/second across all threads) improves because idle functional units and pipeline slots are utilized by other threads.
Q163 What is the concept of 'making the common case fast'? ▸
Making the common case fast is a fundamental design principle stating that optimization effort should focus on the operations that occur most frequently, even at the expense of making rare cases slower. This follows from Amdahl's Law --- improving the common case yields the greatest overall speedup. Examples: (1) RISC optimizes simple instructions that dominate program execution. (2) Caches optimize for temporal/spatial locality (the common pattern of memory access). (3) Branch predictors optimize for the common case of correct prediction. (4) Out-of-order processors optimize for the common case of having independent instructions. (5) Hardware is designed for the common 64-bit integer and single/double FP operations, not rare 128-bit or decimal FP. This principle permeates every level of computer design from transistors to system architecture.
Q164 Explain the relationship between clock frequency, CPI, and performance. ▸
Performance = 1 / (IC × CPI × T_cycle) = IC × IPC × Frequency / IC = IPC × Frequency (for the same program). Thus: performance ∝ IPC × Frequency. Doubling frequency doubles performance only if CPI stays constant. But deeper pipelines (needed for higher frequency) often increase CPI due to: more pipeline stages to flush on misprediction, more forwarding paths needed, and longer pipeline drainage time. Example: Pentium 4 (3.8 GHz, CPI≈1.5) vs. Core 2 (3.0 GHz, CPI≈0.7): P4 performance ∝ 3.8/1.5 ≈ 2.53; Core 2 performance ∝ 3.0/0.7 ≈ 4.29. Core 2 was ~70% faster despite lower clock speed, because its much better CPI more than compensated. This demonstrated that IPC improvements can outweigh frequency.
Q165 What is energy-delay product (EDP)? ▸
Energy-Delay Product (EDP) is a combined metric that captures both energy efficiency and performance: EDP = Energy × Delay = Power × Time². A lower EDP is better. EDP is preferred over performance/watt or energy alone because: (1) Simply minimizing energy might mean running very slowly (low voltage, low frequency). (2) Minimizing delay alone ignores energy cost. (3) EDP balances both by penalizing solutions that are slow (high delay) or power-hungry (high energy). Since dynamic energy ∝ V² and delay ∝ 1/V (approximately), EDP ∝ V² × (1/V)² = constant for simple voltage scaling, but improves with architectural innovations that reduce both energy and delay. The Energy-Delay Squared Product (ED²P) is sometimes used, which favors performance more heavily.
Q166 How is CPI affected by superscalar width? ▸
A superscalar processor with width W can ideally complete W instructions per cycle, giving CPI = 1/W (or IPC = W). A 4-wide superscalar has ideal CPI = 0.25. In practice, CPI is much higher due to: (1) Data dependencies limit the number of independent instructions available each cycle. (2) Branch mispredictions flush all W pipelines. (3) Cache misses stall the entire frontend. (4) Diminishing returns in ILP --- wider issue requires more ILP, but typical programs have limited ILP (average IPC of 2-4 even with 6-8 wide issue). (5) Increased hardware complexity (dependency checking grows as O(W²)). The marginal benefit of each additional issue slot decreases: going from 2-wide to 4-wide might improve IPC by 30%, but 4-wide to 8-wide might improve by only 10-15%.
Q167 What is Little's Law and how does it apply to processor performance? ▸
Little's Law states that in a stable system, the average number of items in the system (L) equals the arrival rate (λ) multiplied by the average time each item spends in the system (W): L = λ × W. In processor architecture, this applies to pipelines, buffers, and memory systems. For a pipeline: L (pipeline depth) = Throughput × Latency. If a memory system has a bandwidth of 10 GB/s and average latency of 100 ns, Little's Law says there must be L = 10 GB/s × 100 ns = 1000 bytes = ~15 cache lines in flight simultaneously to saturate the bandwidth. This reveals the required concurrency (MLP) to fully utilize memory bandwidth, which directly motivates deep out-of-order windows and prefetching.
Q168 What is the difference between benchmark-based and analytical performance evaluation? ▸
Benchmark-based evaluation runs real programs on the system and measures execution time, providing accurate, end-to-end performance numbers. Advantages: captures all interactions (ISA, microarchitecture, compiler, OS, memory). Disadvantages: expensive (requires working hardware or cycle-accurate simulators), benchmarks may not represent the target workload. Analytical evaluation uses mathematical models (queuing theory, CPI decomposition, roofline model) to estimate performance from architectural parameters. Advantages: fast, provides insight into bottlenecks, useful for design-space exploration. Disadvantages: models are simplified and may miss complex interactions. In practice, architects use both: analytical models for early design exploration and benchmarks (SPEC, Geekbench) for validation and final performance assessment.
Q169 What is the significance of the power wall? ▸
The power wall refers to the practical limit on increasing processor clock frequency due to excessive power consumption and heat dissipation. Dynamic power scales as V²f, and since voltage and frequency are coupled, power roughly scales as f³. By the mid-2000s, processor power densities approached 100 W/cm², making further frequency scaling impractical with air cooling. The power wall ended the era of single-core frequency scaling (the 'free lunch' of increasing single-thread performance) and drove the industry toward multicore processors, where the same power budget is spread across multiple slower, more efficient cores. Dennard scaling (voltage reduction with each process node) also ended around 45nm, eliminating the historical ability to increase frequency without increasing power density.
Q170 What is the CPI stack analysis? ▸
CPI stack analysis decomposes the total CPI into individual components to identify performance bottlenecks. The CPI stack shows how each cycle is spent: CPI = Base_CPI + Branch_misprediction_CPI + Cache_miss_CPI (L1, L2, L3, TLB) + Long_latency_ops_CPI + Resource_stall_CPI. By stacking these components, architects and performance engineers can see which components dominate and where optimization effort should focus. For example, if cache miss CPI dominates, improving the cache hierarchy or prefetching will help most. If branch misprediction CPI is large, better predictors are needed. CPI stack analysis is a standard methodology used by both hardware architects (for design optimization) and software developers (for performance tuning). Tools like Intel VTune and perf provide CPI stack breakdowns.

Q171–Q183 Memory Hierarchy, Cache & Multithreading

Q171 What is the memory hierarchy and why does it exist? ▸
The memory hierarchy is a layered structure of storage technologies arranged by speed, capacity, and cost: Registers (fastest, smallest, most expensive per bit) → L1 Cache → L2 Cache → L3 Cache → Main Memory (DRAM) → SSD/Flash → Hard Disk (slowest, largest, cheapest). It exists because no single memory technology is simultaneously fast, large, and cheap. The hierarchy exploits the principle of locality: programs tend to access a small portion of memory repeatedly (temporal locality) and access nearby memory locations (spatial locality). By keeping frequently accessed data in faster, smaller memories, the hierarchy provides the illusion of a large, fast memory at reasonable cost. The effective access time approaches that of the fastest level when the hit rates are high.
Q172 What is cache memory and how does it improve performance? ▸
Cache memory is a small, fast SRAM memory placed between the CPU and main memory that stores copies of frequently accessed data and instructions. It improves performance by reducing the average memory access time: AMAT = Hit_time + Miss_rate × Miss_penalty. With a 1-cycle L1 hit time, 5% miss rate, and 100-cycle miss penalty: AMAT = 1 + 0.05 × 100 = 6 cycles, versus 100 cycles without cache. Modern processors have a hierarchy: L1 (split I/D, 32-64 KB, 1-4 cycles), L2 (unified, 256 KB-1 MB, 8-15 cycles), L3 (shared, 8-64 MB, 30-50 cycles). Cache exploits temporal and spatial locality through block-based storage. Hit rates of 95-99% for L1 make the processor perceive memory as nearly as fast as SRAM.
Q173 What are the types of cache misses (the Three Cs)? ▸
Cache misses are classified into three categories (the Three Cs): (1) Compulsory (Cold) misses --- the first access to a block that has never been in the cache. These occur regardless of cache size or organization. Reduced by prefetching and increasing block size. (2) Capacity misses --- the cache is too small to hold all the blocks needed by the program. The block was previously in cache but was evicted because the cache was full. Reduced by increasing cache size. (3) Conflict misses --- in set-associative or direct-mapped caches, a block is evicted because another block maps to the same set, even though other sets have space. Reduced by increasing associativity (set-associative or fully associative caches). A fourth C, Coherence misses, is sometimes added for multiprocessor systems.
Q174 What is virtual memory? ▸
Virtual memory is a memory management technique that provides each process with the illusion of a large, contiguous, private address space, regardless of the actual physical memory available. It maps virtual addresses (used by programs) to physical addresses (actual DRAM locations) using page tables. The Translation Lookaside Buffer (TLB) caches recent virtual-to-physical translations for speed. Virtual memory enables: (1) Memory protection --- each process has isolated address space. (2) Memory sharing --- multiple processes can share physical pages (shared libraries). (3) Demand paging --- only needed pages are loaded from disk. (4) Address space larger than physical memory --- rarely accessed pages swapped to disk. (5) Simplified memory allocation --- programs get contiguous virtual space even if physical memory is fragmented.
Q175 What is the TLB and why is it critical for performance? ▸
The Translation Lookaside Buffer (TLB) is a specialized, fully-associative cache that stores recent virtual-to-physical address translations (page table entries). Without a TLB, every memory access would require one or more page table lookups (each itself a memory access), making execution impossibly slow. The TLB provides translations in 1-2 cycles when it hits. Typical TLB configurations: L1 DTLB has 64-128 entries (covering 256 KB - 512 KB with 4 KB pages), L2 TLB has 1024-2048 entries. A TLB miss triggers a page table walk (hardware or software) costing 10-100 cycles. TLB reach (total memory covered by TLB entries) is critical: superpages (2 MB or 1 GB) increase TLB reach significantly, reducing TLB misses for data-intensive workloads.
Q176 What is cache coherence in multiprocessor systems? ▸
Cache coherence ensures that all processors in a multiprocessor system see a consistent view of shared memory. When multiple processors cache copies of the same memory location and one processor modifies its copy, the other copies become stale. Cache coherence protocols ensure that all processors see the updated value. Common protocols: (1) MESI (Modified, Exclusive, Shared, Invalid) --- each cache line is in one of four states. (2) MOESI (adds Owned state). (3) Dragon protocol (update-based). Coherence is maintained through snooping (bus-based, each cache monitors bus transactions) or directory-based protocols (a central directory tracks which caches have copies). Coherence adds overhead: invalidation traffic, false sharing (unrelated data in the same cache line causes unnecessary coherence traffic), and limits scalability.
Q177 What is simultaneous multithreading (SMT)? ▸
Simultaneous Multithreading (SMT), marketed by Intel as Hyper-Threading, allows a single physical processor core to execute instructions from multiple threads simultaneously by sharing the core's functional units. Each thread has its own architectural state (registers, PC) but shares the pipeline, caches, and functional units with other threads. When one thread stalls (cache miss, dependency), the other thread can use the idle resources. SMT typically improves throughput by 20-30% with two threads while adding only ~5% more die area. Tradeoffs: per-thread performance may decrease (shared resources cause more contention), and it introduces security concerns (side-channel attacks between threads sharing resources, as in Spectre variants). Most modern high-performance cores support 2-way SMT.
Q178 What is the difference between multicore and multiprocessor? ▸
A multicore processor has multiple independent processing cores on a single chip (die). Cores typically share the L3 cache, memory controller, and I/O interfaces. Examples: Intel Core i9 (8-24 cores), AMD Ryzen 9 (12-16 cores), Apple M2 Ultra (24 cores). A multiprocessor (or multi-socket) system has multiple separate processor chips on a motherboard, each with its own cores and memory controller. Communication between sockets uses inter-chip links (Intel UPI, AMD Infinity Fabric). Multicore advantages: lower inter-core communication latency (shared L3), lower power, lower cost. Multiprocessor advantages: more total cores, more memory channels, higher aggregate bandwidth. Modern servers commonly use 2-8 sockets, each with 64-128 cores.
Q179 What is SIMD (Single Instruction, Multiple Data)? ▸
SIMD is a parallel processing paradigm where a single instruction operates on multiple data elements simultaneously. A SIMD instruction performs the same operation (e.g., addition) on multiple pairs of data packed into wide registers. Examples: Intel SSE (128-bit, 4 floats), AVX2 (256-bit, 8 floats), AVX-512 (512-bit, 16 floats), ARM NEON (128-bit), SVE (scalable 128-2048 bits). Use cases: image/video processing, scientific computing, machine learning inference, signal processing. SIMD can provide 2-16x speedup for data-parallel workloads with no additional cores. Auto-vectorization by compilers converts scalar loops into SIMD code. Manual intrinsics or assembly provide maximum control. GPU architectures are essentially massive SIMD/SIMT engines.
Q180 What is Flynn's taxonomy? ▸
Flynn's taxonomy (1966) classifies computer architectures by the number of instruction and data streams they process: (1) SISD (Single Instruction, Single Data) --- a traditional sequential processor executing one instruction on one data element at a time. Classic Von Neumann machines. (2) SIMD (Single Instruction, Multiple Data) --- one instruction operates on multiple data elements. GPUs, vector processors, SIMD extensions. (3) MISD (Multiple Instruction, Single Data) --- multiple instructions on the same data. Rare; sometimes cited for systolic arrays or fault-tolerant redundant systems. (4) MIMD (Multiple Instruction, Multiple Data) --- multiple independent processors each executing different instructions on different data. Multicore processors, clusters, distributed systems. Most modern systems are MIMD at the system level with SIMD capabilities within each core.
Q181 What is a GPU and how does its architecture differ from a CPU? ▸
A GPU (Graphics Processing Unit) is a massively parallel processor designed for throughput-oriented workloads. Key architectural differences from a CPU: (1) Thousands of simple cores vs. a few complex cores. (2) SIMT (Single Instruction, Multiple Threads) execution model --- groups of threads (warps/wavefronts of 32/64) execute the same instruction. (3) Much higher memory bandwidth (HBM: 1-3 TB/s vs. DDR: 50-100 GB/s). (4) Hardware thread scheduling with thousands of concurrent threads to hide latency. (5) Minimal per-thread cache --- relies on massive parallelism instead of deep caches. (6) No branch prediction or speculative execution (handles divergent branches by masking). GPUs excel at data-parallel workloads: graphics, deep learning, scientific simulation. CPUs excel at latency-sensitive, complex control-flow workloads.
Q182 What is DMA (Direct Memory Access)? ▸
Direct Memory Access (DMA) is a hardware mechanism that allows peripheral devices to transfer data directly to/from main memory without involving the CPU for each byte transferred. A DMA controller handles the transfer: the CPU programs the DMA controller with source address, destination address, and transfer size, then the DMA controller autonomously performs the transfer while the CPU does other work. When the transfer completes, the DMA controller raises an interrupt. Benefits: (1) Frees the CPU from byte-by-byte I/O. (2) Higher transfer rates (dedicated hardware). (3) CPU can compute during transfers (overlap computation and I/O). DMA is essential for high-bandwidth devices: disk controllers, network interfaces, GPUs, and high-speed ADCs.
Q183 What is the difference between SRAM and DRAM? ▸
SRAM (Static RAM) stores each bit using 6 transistors in a cross-coupled inverter latch. It retains data as long as power is applied (no refresh needed). SRAM is fast (1-3 ns access), but expensive and low density (large cell size). Used for CPU caches (L1/L2/L3) and register files. DRAM (Dynamic RAM) stores each bit using 1 transistor and 1 capacitor. The capacitor charge leaks, requiring periodic refresh (every 64 ms). DRAM is slower (50-100 ns access) but much cheaper and higher density. Used for main memory. Comparison: SRAM is ~10x faster, ~5-10x more expensive per bit, ~5-10x less dense. DRAM dominates capacity; SRAM dominates speed. The cache hierarchy bridges their performance gap.

Q184–Q193 Out-of-Order Execution & Power Management

Q184 What is instruction prefetching? ▸
Instruction prefetching is a technique where the processor fetches instructions from memory before they are needed, reducing instruction cache misses and fetch stalls. Types: (1) Sequential prefetch --- fetches the next cache line after the current one, exploiting spatial locality. Nearly universal in modern processors. (2) Stream buffers --- small FIFO buffers that store prefetched instruction blocks. (3) Target prefetch --- prefetches branch target instructions to reduce branch penalty. (4) Instruction cache line size --- larger lines implicitly prefetch more sequential instructions. Advanced prefetching also applies to data: hardware stride prefetchers detect sequential or strided access patterns and initiate memory reads ahead of demand. Software prefetch instructions (e.g., PREFETCH in x86) hint the hardware to load specific addresses into cache.
Q185 What is write-back vs write-through cache policy? ▸
Write-through: every write to cache is simultaneously written to the next level of memory (or main memory). Advantages: memory is always up-to-date, simpler coherence (other caches can always read correct data from memory), simpler recovery from cache failures. Disadvantages: every write generates memory traffic, consuming bandwidth. Write buffers can partially mitigate this. Write-back: writes update only the cache; the modified block is written to memory only when evicted (dirty bit indicates modification). Advantages: dramatically reduces memory write traffic (multiple writes to the same block are absorbed), lower bandwidth requirement. Disadvantages: more complex coherence protocols, memory is stale (problematic for I/O), and eviction of dirty blocks causes extra memory writes. Modern processors overwhelmingly use write-back for performance.
Q186 What is out-of-order execution and what hardware structures does it require? ▸
Out-of-order (OoO) execution allows instructions to execute as soon as their operands are ready, regardless of program order, maximizing utilization of functional units. Required hardware structures: (1) Reorder Buffer (ROB) --- tracks instructions in program order, enables in-order commit for precise exceptions. (2) Reservation Stations --- hold instructions waiting for operands, distributed among functional units. (3) Physical Register File --- larger than the architectural register file, enables register renaming. (4) Register Alias Table (RAT) --- maps architectural to physical registers. (5) Common Data Bus --- broadcasts results to waiting instructions. (6) Load/Store Queue --- maintains memory ordering. (7) Issue Queue --- holds decoded instructions waiting to be dispatched. OoO significantly improves IPC (typically 2-4x over in-order) but at considerable power and area cost.
Q187 What is the reorder buffer (ROB)? ▸
The Reorder Buffer (ROB) is a circular buffer that maintains instructions in program order even though they may execute out of order. Each entry holds: instruction type, destination register, result value, completed/exception status, and the old physical register mapping. When an instruction is decoded, it is allocated an ROB entry (in program order). When it executes, its result is stored in the ROB entry (marked complete). Instructions retire (commit) from the head of the ROB in order --- the head entry commits only if it is complete and no prior instruction has an exception. If a misprediction or exception occurs, all instructions after the offending one are flushed by rolling back the ROB. The ROB provides precise exceptions and enables speculative execution recovery. Typical ROB size: 200-500 entries.
Q188 What is power gating and clock gating? ▸
Clock gating stops the clock signal to unused portions of the processor, eliminating dynamic power consumption (switching activity) in those regions while maintaining state (registers retain values). It is fine-grained and can be applied per-cycle: unused functional units, idle pipeline stages, or inactive cache banks have their clocks gated. Nearly all modern processors use extensive clock gating, reducing dynamic power by 20-40%. Power gating cuts off the supply voltage to unused regions entirely, eliminating both dynamic and static (leakage) power. This saves more power but loses state (contents must be saved/restored) and has a latency cost for power-up. Power gating is used for coarser granularity: inactive cores, unused accelerators, sleep states. Together, they are essential for managing power in modern processors.
Q189 What is dynamic voltage and frequency scaling (DVFS)? ▸
Dynamic Voltage and Frequency Scaling (DVFS) adjusts the processor's operating voltage and clock frequency at runtime based on workload demands. Since dynamic power P ∝ V²f, reducing voltage and frequency dramatically reduces power (cubic relationship approximately). When full performance is not needed (light workload, thermal throttling), DVFS lowers V and f to save power. When maximum performance is needed, DVFS raises them. Modern processors implement DVFS through P-states (performance states) defined by ACPI: P0 is maximum performance, higher P-states reduce performance and power. Intel Turbo Boost and AMD Precision Boost dynamically increase frequency beyond base clock when thermal and power budgets allow. DVFS is managed by the OS power governor and/or hardware firmware.
Q190 What is a hardware prefetcher and how does it work? ▸
A hardware prefetcher is logic that monitors memory access patterns and proactively fetches data into the cache before the processor needs it, hiding memory latency. Types: (1) Next-line prefetcher --- fetches the next sequential cache line. Simple but effective for sequential access. (2) Stride prefetcher --- detects constant-stride access patterns (e.g., stepping through an array by 16 bytes) and prefetches ahead along the detected stride. (3) Spatial prefetcher --- identifies spatial patterns within memory regions. (4) Temporal prefetcher --- records sequences of misses and replays them. Modern processors have multiple prefetchers operating at different cache levels (L1, L2). Prefetching must be accurate (wrong prefetches waste bandwidth and evict useful data --- cache pollution) and timely (too early is evicted before use; too late doesn't help).
Q191 What is the difference between CISC-style and RISC-style interrupt handling? ▸
CISC-style interrupt handling (x86) has the hardware automatically saving significant state: the processor pushes flags, CS, and IP (and sometimes more with IST/TSS) onto the stack, switches to the interrupt handler, and the IRET instruction restores everything. Variable-length instructions and complex state make precise interrupt points harder to implement. RISC-style interrupt handling is minimal: the hardware saves the PC (and perhaps a status register) to a special register and jumps to a fixed handler address. Software is responsible for saving and restoring any other registers it uses. This keeps the hardware simple. MIPS uses EPC and Cause registers; ARM uses banked registers per exception mode (AArch32) or dedicated exception registers (AArch64). RISC's simplicity makes precise exceptions more straightforward to implement in deep pipelines.
Q192 What is the concept of precise exceptions? ▸
Precise exceptions guarantee that when an exception occurs at instruction N: (1) All instructions before N (in program order) have completed and their results are committed. (2) Instruction N and all subsequent instructions have no committed effects --- it is as if they never executed. This means the machine state at the exception point exactly reflects sequential execution up to instruction N. Precise exceptions are essential for correct exception handling, debuggable software, and restartable instructions (e.g., page faults). In in-order pipelines, precise exceptions are straightforward. In out-of-order processors, the Reorder Buffer enables precise exceptions by committing results in order --- if instruction N takes an exception, all younger instructions in the ROB are flushed, and the ROB head state is the precise state.
Q193 What is speculative execution and how does the processor recover from misspeculation? ▸
Speculative execution is performing work before knowing if it should be done --- primarily executing instructions past unresolved branches. Recovery from misspeculation involves: (1) Detection: the branch resolves (in the execute stage) and the actual outcome differs from the prediction. (2) ROB flush: all instructions younger than the branch in the Reorder Buffer are marked invalid and their results discarded. (3) Register restoration: the Register Alias Table is restored to the state at the branch point (using a checkpoint saved when the branch was issued, or by walking back through the ROB). (4) Pipeline restart: the fetch unit is redirected to the correct target. (5) Physical register reclamation: physical registers allocated to squashed instructions are freed. This recovery takes several cycles but is necessary for correctness.

Q194–Q203 GPUs, NUMA, Systolic Arrays & Modern Design

Q194 How does branch prediction accuracy relate to pipeline depth? ▸
Pipeline depth directly amplifies the cost of mispredictions: Misprediction_penalty ≈ Pipeline_stages_to_branch_resolution. In a 5-stage pipeline, penalty ≈ 2 cycles. In a 20-stage pipeline, penalty ≈ 15 cycles. The CPI impact is: CPI_branch = Branch_frequency × (1 - Accuracy) × Penalty. For 20% branches and 15-cycle penalty: at 95% accuracy, CPI_branch = 0.20 × 0.05 × 15 = 0.15; at 99% accuracy, CPI_branch = 0.20 × 0.01 × 15 = 0.03. Deeper pipelines demand higher prediction accuracy to maintain performance. This is why the Pentium 4 (31 stages) invested heavily in branch prediction and why the industry moved away from ultra-deep pipelines --- the accuracy requirements become impractical. The optimal pipeline depth balances frequency gains against misprediction losses.
Q195 What is the difference between Harvard and Modified Harvard architecture? ▸
Harvard architecture has completely separate physical memories and buses for instructions and data --- the CPU can fetch an instruction and access data simultaneously. Modified Harvard architecture uses separate L1 instruction and data caches (Harvard-style) but a unified L2/L3 cache and main memory (Von Neumann-style). Nearly all modern processors use modified Harvard. This provides the performance benefit of simultaneous instruction/data access at L1 while maintaining the flexibility and simplicity of a unified memory at higher levels (self-modifying code works because data writes eventually propagate to the instruction cache through coherence). The Harvard split at L1 eliminates the structural hazard of simultaneous fetch and data access without requiring completely separate memory systems.
Q196 What is the role of the memory controller in modern CPUs? ▸
The memory controller manages all communication between the CPU and main memory (DRAM). In modern processors, the memory controller is integrated on the CPU die (Integrated Memory Controller / IMC), reducing latency compared to older designs where it was on a separate chip (northbridge). Functions: (1) Translating read/write requests into DRAM commands (activate, read, precharge). (2) Managing DRAM timing constraints (tCAS, tRAS, tRP, tRCD). (3) Scheduling DRAM commands to maximize bandwidth (command reordering). (4) Refresh management. (5) Error detection/correction (ECC). (6) Managing multiple channels and ranks for parallelism. Modern CPUs have 2-8 memory channels (each 64 bits wide), and the controller interleaves requests across channels to maximize bandwidth. Memory controller efficiency significantly impacts effective memory bandwidth and latency.
Q197 What is the difference between NUMA and UMA memory architectures? ▸
UMA (Uniform Memory Access): all processors have equal access time to all of main memory. Used in small-scale SMP (Symmetric MultiProcessing) systems. Simple programming model but limited scalability because all processors compete for the same memory bus. NUMA (Non-Uniform Memory Access): memory is physically distributed, with each processor (or group of processors) having local memory that it can access faster and remote memory (attached to other processors) that has higher latency. NUMA is used in multi-socket servers where each socket has its own memory controller and DDR channels. Local access might take 80 ns; remote access via interconnect might take 140 ns. NUMA-aware software and OS scheduling places data and threads to maximize local memory access, which is critical for performance at scale.
Q198 How do modern processors achieve high IPC? ▸
Modern high-performance processors achieve IPC of 3-6 through a combination of techniques: (1) Wide superscalar: 6-8 instruction decode and issue width. (2) Deep out-of-order execution: ROB of 300-500 entries enables finding more ILP. (3) Advanced branch prediction: TAGE-based predictors with >97% accuracy keep the pipeline full. (4) Large, fast caches: L1 32-64KB, L2 256KB-1MB, L3 32-64MB minimize memory stalls. (5) Register renaming: 200+ physical registers eliminate name dependencies. (6) Memory disambiguation: load/store reordering with forwarding. (7) Micro-op fusion and macro-op fusion reduce work. (8) Micro-op cache: bypasses the complex decoder. (9) Hardware prefetching at multiple levels. (10) Loop buffers and branch target buffers. Each technique addresses a specific bottleneck, and the cumulative effect enables sustained high IPC across diverse workloads.
Q199 What is a systolic array? ▸
A systolic array is a regular network of tightly coupled processing elements (PEs) arranged in a grid pattern where data flows rhythmically through the array, like blood being pumped through the circulatory system. Each PE performs a simple operation (multiply-add) and passes results to its neighbor. Data enters from the edges and is processed as it flows through. Systolic arrays excel at regular, matrix-like computations such as matrix multiplication, convolution, and signal processing. Google's TPU (Tensor Processing Unit) uses a large systolic array (128×128 or 256×256) for the matrix multiplications central to neural network inference and training. Systolic arrays achieve high throughput with simple control and high PE utilization.
Q200 What is domain-specific architecture (DSA)? ▸
Domain-specific architectures are processors designed and optimized for a particular application domain rather than general-purpose computing. Instead of trying to be good at everything (like a CPU), DSAs achieve orders-of-magnitude better performance and efficiency for their target domain. Examples: GPU (graphics and parallel computing), Google TPU (deep learning), Apple Neural Engine (on-device ML inference), video encoders/decoders, network processors, cryptographic accelerators. The shift toward DSAs is driven by the end of Dennard scaling and Moore's Law slowdown --- since general-purpose improvements are diminishing, specialization is needed to continue performance gains. Modern SoCs integrate multiple DSAs alongside general-purpose CPU cores.
Q201 What is the concept of memory consistency models? ▸
A memory consistency model defines the ordering guarantees for memory operations across multiple processors or threads. It specifies what values a read can return when multiple processors are writing to shared memory. Sequential consistency (SC) is the strongest model --- all processors see operations in the same total order, consistent with each processor's program order. TSO (Total Store Order, used by x86) allows stores to be reordered after loads from different addresses but maintains store-store and load-load ordering. Weak/relaxed models (ARM, RISC-V, POWER) allow more reordering for performance, requiring explicit memory barriers (fences) to enforce ordering when needed. Stronger models are easier to program but limit hardware optimization; weaker models enable more aggressive reordering but are harder to reason about.
Q202 What is the fetch width and its impact on performance? ▸
Fetch width is the number of instructions the processor can fetch from the instruction cache per cycle. It must be at least as wide as the decode and issue width to avoid starving the pipeline. A 4-wide superscalar needs to fetch at least 4 instructions per cycle. Challenges: (1) Instructions may span cache line boundaries, requiring fetching from two lines. (2) Branches within the fetch group may redirect to non-sequential addresses, wasting fetch slots. (3) The instruction cache must deliver multiple instructions per cycle (wide read port). Techniques to improve fetch bandwidth include: trace cache (storing decoded instruction sequences), loop buffers (replaying fetched loop bodies), micro-op cache (bypassing fetch and decode entirely for previously decoded instructions), and branch-free fetch regions.
Q203 What is the difference between latency-oriented and throughput-oriented architectures? ▸
Latency-oriented architectures (CPUs) are designed to minimize the time to complete a single task. They use deep caches, out-of-order execution, branch prediction, and prefetching to reduce the latency of individual operations. They have few powerful cores with complex control logic. Throughput-oriented architectures (GPUs) are designed to maximize the total work completed per unit time, tolerating high latency for individual operations. They use many simple cores, massive parallelism, and hardware multithreading to hide latency instead of reducing it. A CPU might complete one task in 10 ns; a GPU might take 1000 ns per task but process 1000 tasks simultaneously, achieving 1 task/ns throughput versus the CPU's 0.1 task/ns. The choice depends on whether the workload is latency-sensitive (interactive, serial) or throughput-sensitive (batch, parallel).

Prep Tips for Freshers & Experienced Engineers

 For Freshers

  • Practice the CPU performance equation (Execution Time = Instructions × CPI × Clock Period) with numbers until you can solve it without hesitation — it's the single most reused formula across this section.
  • Understand Amdahl's Law conceptually before memorizing the formula: it's about the limit imposed by the non-parallelizable portion of a task.
  • Know the basic memory hierarchy (registers → L1/L2/L3 cache → main memory → disk) and be able to explain why it exists in terms of cost, speed, and size trade-offs.

 For Experienced Engineers

  • Be ready to walk through a CPI stack analysis (Q170) — breaking down cycles lost to different stall sources is a favorite senior-level question because it mirrors real performance debugging.
  • Have a clear answer for cache coherence protocols and why they matter in multicore systems — this is one of the most common senior architecture questions.
  • Be prepared to discuss GPU vs CPU architecture (Q181, Q203) in terms of latency-oriented vs throughput-oriented design — this comes up often given the current focus on AI accelerator design.

Avoid Common Mistakes

  • Quoting Amdahl's Law without being able to explain what happens to speedup as the parallel portion approaches 100% — the diminishing-returns intuition matters more than the formula.
  • Confusing MIPS/FLOPS (raw throughput metrics) with CPI/IPC (per-instruction efficiency metrics) — they measure different things and aren't directly comparable across ISAs.
  • Describing cache misses without distinguishing the three Cs (compulsory, capacity, conflict) — a very common follow-up question.
  • Explaining out-of-order execution without mentioning the reorder buffer and precise exceptions — these are what make OOO execution safe to expose to software.

FAQ Frequently Asked Questions

Is Part 5 only relevant for senior candidates?
Most of it is applicable at any level — CPI, IPC, and memory hierarchy basics are asked of freshers too. The deeper topics (CPI stack analysis, cache coherence protocols, out-of-order hardware) are more common in senior and performance-architecture interviews.
Do ASIC and VLIW design interviews really go this deep into performance metrics?
Yes, especially for roles touching performance verification, physical design trade-offs, or accelerator architecture — understanding CPI, memory bottlenecks, and power trade-offs is directly relevant to the design decisions those roles make.
What's the difference between Amdahl's Law and Gustafson's Law, in one line?
Amdahl's Law assumes a fixed problem size and shows diminishing returns from parallelizing it; Gustafson's Law assumes the problem size grows with the number of processors, giving a more optimistic view of scalability.
Why does this article cover GPUs if the series is about CPU architecture?
GPU vs CPU comparisons (Q181, Q203) are now a standard part of computer architecture interviews, especially with the current demand for AI accelerator and domain-specific architecture (DSA) design skills.
I've finished all five parts — what should I study next?
Move on to applying these concepts to a specific ISA (ARM, RISC-V, or x86) in depth, and practice writing RTL or testbenches for the mechanisms covered here — pipelines, hazard detection units, and branch predictors are common RTL/DV assignment topics.

Wrap-up Conclusion

That's the full series — from ISA fundamentals and RISC vs CISC in Part 1, through pipelining, hazards, and branch prediction, to performance metrics and advanced modern architecture here in Part 5. Together these 203 questions cover the range of what computer architecture interviews actually test, from campus placements to senior ASIC and performance architecture roles.

Keep going
Back to Part 1 for revision
Part 1 →

Ready for the next round?

Keep the momentum going — work through all five parts back to back, or jump straight to the topic your next interview is focused on.

Part 1: Continue Learning

Comments

Popular posts from this blog

Module 1 — SystemVerilog Basics

VLSI Verification  •  SystemVerilog Series Module 1 — SystemVerilog Basics A complete, example-driven walkthrough of SystemVerilog fundamentals: data types, variables vs nets, arrays of every flavor, strings, enums, structs, unions, and typedef — the building blocks every verification engineer needs before UVM. 🧩 Beginner → Intermediate ⏱ ~25 min read 💻 Code Examples Included 📑 Table of Contents Introduction to SystemVerilog Verilog vs SystemVerilog Data Types: 2-State vs 4-State Logic Variables and Nets Arrays: Packed vs Unpacked Dynamic Arrays Queues Associative Arrays Strings Enumerations Structures Unions Typedef 1 Introduction to SystemVerilog SystemVerilog (IEEE 1800) is a unified hardware description and verification language (HDVL). It extends Verilog (IEEE 1364) with powerful constructs for design (interfaces, always_comb/always_ff, enhanced d...

Clock Domain Crossing (CDC): A Complete Beginner's Guide to Metastability, Synchronizers & Safe Data Transfer

Clock Domain Crossing (CDC): A Complete Beginner's Guide to Metastability, Synchronizers & Safe Data Transfer Modern System-on-Chip (SoC) designs rarely operate with a single clock. Instead, different modules such as CPUs, GPUs, memory controllers, communication interfaces, and peripherals often run at different clock frequencies or even use completely independent clock sources . When data moves from one clock domain to another, timing uncertainty can cause serious problems such as metastability , data corruption , and unpredictable system behaviour . This challenge is known as Clock Domain Crossing (CDC) . CDC is one of the most important topics in ASIC Design , RTL Design , ASIC Verification , FPGA Design , and SoC Architecture . Every modern chip—from smartphones to automotive processors—uses CDC techniques to ensure reliable communication between multiple clock domains. In this article, we'll explore CDC fundamentals, metastability, synchronization techniques, asynchro...

GPU Memory System & Interconnect: How Data Travels Inside a Modern GPU

GPU Memory System & Interconnect: How Data Travels Inside a Modern GPU Modern GPUs deliver incredible computing power by processing thousands of operations simultaneously. While compute cores often receive the spotlight, the real performance of a GPU depends heavily on how efficiently data moves between memory and compute units. A GPU memory system is designed to provide extremely high bandwidth while keeping latency as low as possible. This is achieved through a collection of specialized hardware components working together, including the Memory Controller, HBM/GDDR memory, Crossbar, Network-on-Chip (NoC), DMA Engine, PCIe Interface, and NVLink. In this article, we'll explore each component in detail and understand how they collectively enable high-performance parallel computing. Why Does GPU Memory Matter? Every GPU application—from gaming and graphics rendering to AI model training and scientific simulations—requires continuous movement of enormous amounts of data. For examp...

AXI Verification Interview Questions and Real-World Debugging

AMBA Protocol Series · Part 10 of 10 AXI Verification Interview Questions and Real-World Debugging Common protocol violations, how to read them off a waveform, and a curated set of interview questions with concise, correct answers — the capstone of the core 10-day series. AMBA Protocol Series: From APB & AHB to AXI — A Complete Guide for VLSI Engineers This wraps up the core 10-day series. Everything here draws directly on Days 1–9 — if any answer below feels unfamiliar, that's a good signal for which earlier post to revisit. (If you want to go further, see the 20-day extended list at the end of this post.) In This Article Common Protocol Violations Debugging From a Waveform Interview Questions and Answers Series Recap Extending the Series 1. Common Protocol Violations VALID deasserted before handshake — a source drops VALID before READY ever went high (violates the Day 8 stabi...

Timing Basics in Static Timing Analysis (STA): Delay Models, Sequential Timing, and Wire Delays

Timing Basics in Static Timing Analysis (STA) Static Timing Analysis (STA) is one of the most important verification techniques used in modern VLSI design. Before a chip is manufactured, engineers must verify that every signal reaches its destination within the required clock period. Even if a design passes functional simulation, it may still fail after fabrication because of timing violations. Unlike simulation, Static Timing Analysis mathematically analyzes every timing path without applying input test vectors. This makes STA significantly faster and capable of analyzing millions of timing paths efficiently. Table of Contents What is Static Timing Analysis? Why STA is Required Propagation Delay Contamination Delay Cell Delay Models Combinational Gate Delay Sequential Timing Setup Time Hold Time Wire Delay RC Delay Model PVT Corners Worked Examples Interview Questions Key Takeaways What is Static Timing Analysis? Static Ti...

Cache Basics and Cache Mapping Techniques

  Cache Basics and Cache Mapping Techniques  Modern processors execute billions of instructions every second. However, processor speed has increased much faster than main memory (RAM) speed. This difference, known as the memory wall , creates a performance bottleneck because the CPU often has to wait for data from slower memory. To solve this problem, computer systems use cache memory —a small, high-speed memory located between the CPU and the main memory. In this article, we will understand the fundamentals of cache memory, the principle of locality, cache organization, and the three major cache mapping techniques. What is Cache Memory? Cache memory is a small, high-speed memory that stores copies of frequently accessed data from the main memory. Since accessing cache is much faster than accessing RAM, the CPU first checks whether the required data is available in the cache. If the data is found in the cache, it is called a cache hit . Otherwise, the CPU fetches the dat...

CMOS Power & Scaling Explained: Dynamic Power, Leakage Power, Short-Circuit Power & Technology Scaling

  CMOS Power & Scaling Explained: Dynamic Power, Leakage Power, Short-Circuit Power & Technology Scaling Day 6 | CMOS Design Fundamentals | The Silicon Stack As integrated circuits continue to become smaller, faster, and more powerful, power consumption has emerged as one of the biggest challenges in modern VLSI design. While early digital circuits primarily focused on functionality and speed, today's processors, AI accelerators, smartphones, and IoT devices must deliver high performance while operating within strict power and thermal limits. A modern System-on-Chip (SoC) may contain billions of CMOS transistors , each switching billions of times per second. Even a tiny amount of power consumed by each transistor adds up to significant energy consumption across the entire chip. Excessive power not only drains batteries but also generates heat, reduces reliability, and limits performance. Understanding where CMOS power comes from and how it can be reduced is therefore ...