Computer Architecture Expert
What does Moore's Law actually state conceptually, and is it still relevant today?
Select the correct answer
What does it mean for a processor to be '64-bit'? Specifically, what hardware resources are actually 64 bits wide?
Select the correct answer
What is the stored-program concept, and why was it a foundational idea in computer architecture?
Select the correct answer
What is an Instruction Set Architecture, and why is it described as the contract between hardware and software?
Select the correct answer
Give an overview of the memory hierarchy from registers to secondary storage and explain the latency/capacity/cost trade-offs at each level.
Select the correct answer
What is a word in computer architecture, and how does word size relate to the ALU, registers, and data bus width?
Select the correct answer
What is the primary difference between RISC and CISC? Why has the industry largely shifted toward RISC-like internals even for CISC ISAs like x86?
Select the correct answer
x86 adopted this to simplify its backward-compatible assembly.x86 chips now emulate them fully in a dedicated microcode ROM.x86 decodes complex instructions into simpler internal micro-ops.x86 shifted internally to reduce total transistor count and cost.Explain the von Neumann bottleneck. How do modern CPU features like caches and prefetching attempt to mitigate it?
Select the correct answer
Explain the difference between von Neumann and Harvard architectures. Why do modern high-performance CPUs often use a 'Modified Harvard' approach?
Select the correct answer
What is the conceptual difference between Instruction Set Architecture (ISA) and Microarchitecture (Organization)? Why can two different processors run the same software but have different performance?
Select the correct answer
Beyond just 'more memory,' what are the architectural advantages of a 64-bit ISA over a 32-bit ISA (e.g., register pressure, instruction capabilities)?
Select the correct answer
What are the fundamental philosophy differences between RISC (like ARM/RISC-V) and CISC (like x86), and why has the industry shifted toward RISC for mobile and increasingly for servers?
Select the correct answer
What are the main categories of instructions in a typical ISA (arithmetic/logic, data movement, control flow)?
Select the correct answer
What does it mean for an architecture to be 'Load-Store', and how does this differ from an architecture that allows memory operands in arithmetic instructions?
Select the correct answer
Explain the difference between a register-based architecture and a stack-based architecture. Which one do modern physical CPUs typically use and why?
Select the correct answer
How is an instruction encoded into fields like opcode and operands, and why does encoding design matter?
Select the correct answer
How does the hardware stack support procedure calls and returns, and what is a calling convention?
Select the correct answer
What are the trade-offs between fixed-length and variable-length instruction sets regarding decoding complexity and code density?
Select the correct answer
What is microcode, and why do modern x86 processors translate complex instructions into micro-operations?
Select the correct answer
What is VLIW architecture, and how does it differ from superscalar out-of-order execution in exploiting instruction-level parallelism?
Select the correct answer
Explain the difference between Big-Endian and Little-Endian. In what scenario would a software engineer need to be explicitly aware of the underlying hardware's endianness?
Select the correct answer
What is Two's Complement, and why is it preferred over Sign-Magnitude for representing signed integers in hardware?
Select the correct answer
What is integer overflow, and what happens at the hardware level when a signed integer addition overflows?
Select the correct answer
What is the difference between one's complement and two's complement representations?
Select the correct answer
Explain why 0.1 + 0.2 does not equal 0.3 in most systems. How does the IEEE-754 standard represent a floating-point number (sign, exponent, mantissa)?
Select the correct answer
How does hardware distinguish between signed and unsigned integers, and how does that affect comparison and arithmetic instructions?
Select the correct answer
How does IEEE-754 represent special values like NaN, positive/negative infinity, and denormalized (subnormal) numbers?
Select the correct answer
What is the exponent bias in IEEE-754, and why is a biased representation used for the exponent?
Select the correct answer
When would you use fixed-point arithmetic instead of floating-point, and what are the hardware-level trade-offs in terms of complexity and speed?
Select the correct answer
What are the different IEEE-754 rounding modes, and why does rounding matter for numerical accuracy?
Select the correct answer
What is the conceptual difference between throughput and latency, and why can optimizing one hurt the other?
Select the correct answer
What is the difference between combinational and sequential logic circuits?
Select the correct answer
What is a multiplexer, and how is it used in a CPU datapath?
Select the correct answer
What is an ALU, and what basic operations does it perform in the datapath?
Select the correct answer
What is a register file, and how is it accessed during instruction execution?
Select the correct answer
What is the difference between a latch and a flip-flop, and why do synchronous designs prefer flip-flops?
Select the correct answer
What is propagation delay, and how does it determine the maximum clock frequency of a circuit?
Select the correct answer
What role does the clock signal play in a synchronous processor, and what is clock skew?
Select the correct answer
What is the difference between a hardwired control unit and a microprogrammed (microcode) control unit?
Select the correct answer
What is the difference between a single-cycle and a multi-cycle datapath, and what are the trade-offs?
Select the correct answer
Walk through the classic 5-stage RISC pipeline (Fetch, Decode, Execute, Memory, Write-back). What happens at each stage?
Select the correct answer
What are the three types of pipeline hazards? Provide a specific example of a 'Data Hazard' and how the hardware resolves it using 'Forwarding' (Bypassing).
Select the correct answer
Explain the concept of instruction pipelining. How does it improve throughput without necessarily decreasing latency?
Select the correct answer
How does 'forwarding' (or bypassing) resolve a Read-After-Write (RAW) data hazard?
Select the correct answer
If you increase the number of pipeline stages, how does it typically affect instruction latency versus instruction throughput?
Select the correct answer
What is a 'Pipeline Bubble' (Stall), and what are the performance trade-offs of stalling versus using branch prediction?
Select the correct answer
What is the difference between a simple pipelined processor and a superscalar processor?
Select the correct answer
Explain the role of the Reorder Buffer (ROB) in an Out-of-Order processor. How does the CPU ensure that instructions commit in the correct program order even if they execute out of order?
Select the correct answer
Why do modern CPUs use Register Renaming? How does it help eliminate False Dependencies (WAR/WAW hazards)?
Select the correct answer
What is the difference between 'In-Order' and 'Out-of-Order' execution? What hardware structures (like the Reorder Buffer) are required for Out-of-Order execution?
Select the correct answer
What is the goal of Out-of-Order execution, and how does the CPU ensure that the final result is the same as if the instructions ran in order?
Select the correct answer
How does Tomasulo's algorithm (or a scoreboard) enable dynamic scheduling of instructions?
Select the correct answer
Explain the Principle of Locality. How do Temporal and Spatial locality influence the design of CPU caches?
Select the correct answer
What is a cache line, and why is it usually 64 bytes rather than just a single word?
Select the correct answer
What is the difference between a Write-Through and a Write-Back cache policy? When would you choose one over the other?
Select the correct answer
Compare Direct-Mapped, Fully-Associative, and Set-Associative caches. What are the trade-offs regarding hit time and miss rate?
Select the correct answer
Explain the '3 C's' of cache misses (Compulsory, Capacity, Conflict). How can a software engineer reduce conflict misses?
Select the correct answer
What is Average Memory Access Time (AMAT), and how do you compute it across a multi-level cache hierarchy?
Select the correct answer
AMAT = hit time + miss rate × miss penalty, where each level's miss penalty is the AMAT of the next lower levelAMAT = miss rate × (hit time + miss penalty), computed independently per level and then averaged across every levelAMAT = hit time + miss penalty − miss rate, where the miss penalty stays fixed as the main memory latency throughoutAMAT = hit time × miss rate + miss penalty, summed once over all levels using only the last level's global miss rateCompare cache replacement policies like LRU, FIFO, and random. What are the trade-offs of implementing true LRU in hardware?
Select the correct answer
What is the difference between write-allocate and no-write-allocate policies on a write miss?
Select the correct answer
What is the difference between a split cache and a unified cache, and why are L1 caches often split into instruction and data caches?
Select the correct answer
Explain how a physical address is broken into tag, index, and offset fields for a set-associative cache.
Select the correct answer
What are prefetching and hardware prefetchers, and how do they help hide memory latency?
Select the correct answer
What is the difference between an inclusive and an exclusive cache hierarchy?
Select the correct answer
What is the role of the TLB in the memory hierarchy? What happens during a TLB miss versus a Page Fault?
Select the correct answer
What is a Page Fault? Walk through what happens at the hardware level when one occurs.
Select the correct answer
How does the MMU use a Page Table to translate a virtual address to a physical address?
Select the correct answer
What is a TLB, and how does it interact with the L1 cache (e.g., VIPT vs. PIPT)?
Select the correct answer
When a TLB miss occurs, how does the hardware (MMU) find the correct physical address? Explain the concept of a multi-level page table.
Select the correct answer
Explain the difference between Virtually Indexed, Physically Tagged (VIPT) and Physically Indexed, Physically Tagged (PIPT) caches. Why does this matter for speed?
Select the correct answer
What are the differences between ROM, PROM, EPROM, EEPROM, and flash memory?
Select the correct answer
What is the 'Memory Wall,' and why is the gap between CPU speed and DRAM latency a major bottleneck in modern architecture?
Select the correct answer
What is memory alignment, and why do processors often require data to be aligned to specific byte boundaries? What is the performance penalty of an unaligned access?
Select the correct answer
Why do we use SRAM for caches but DRAM for main memory? Explain the physical/architectural difference (transistors vs. capacitors).
Select the correct answer
What is structure padding, and how does the compiler add padding to satisfy alignment requirements?
Select the correct answer
Why does DRAM require periodic refresh, and how does this affect memory performance and power?
Select the correct answer
What is memory interleaving, and how do multiple channels and banks improve memory bandwidth?
Select the correct answer
What is the system bus, and what are the roles of the address bus, data bus, and control bus?
Select the correct answer
What is DMA (Direct Memory Access)? Why is it more efficient than 'Programmed I/O' for transferring large blocks of data?
Select the correct answer
What are the trade-offs between using interrupts vs. polling for I/O operations, and in what specific hardware scenario would polling be more efficient?
Select the correct answer
What is the difference between Memory-Mapped I/O and Port-Mapped I/O? How does the CPU distinguish an I/O access from a memory access in MMIO?
Select the correct answer
load/store; a status flag tells the CPU each access targets a device.IN/OUT instructions; the opcode tells the CPU each access targets a device.load/store; a control line routes those ranges to devices.load/store; address decoding routes those ranges to devices.What is the difference between a Trap, an Interrupt, and an Exception from the perspective of the CPU?
Select the correct answer
What is bus arbitration, and why is it needed when multiple devices want to use a shared bus?
Select the correct answer
What is interrupt vectoring, and how does the CPU find the correct handler when an interrupt occurs?
Select the correct answer
Briefly explain the four classifications in Flynn's Taxonomy (SISD, SIMD, MISD, MIMD).
Select the correct answer
What is the difference between a multicore processor and a multiprocessor (multi-socket) system?
Select the correct answer
What is Simultaneous Multithreading (Hyper-threading)? How does it differ from having two physical CPU cores?
Select the correct answer
Explain Flynn’s Taxonomy. What is the difference between SIMD and MIMD, and where is each typically used?
Select the correct answer
Explain SIMD (Single Instruction, Multiple Data). How does it differ from standard multithreading, and what kind of software tasks benefit most from it?
Select the correct answer
What is the difference between shared-memory and distributed-memory parallel architectures?
Select the correct answer
How does a GPU achieve high throughput through massive parallelism, and how does its architecture differ from a CPU?
Select the correct answer
Explain the difference between UMA and NUMA architectures. How does NUMA affect software performance in large-scale server environments?
Select the correct answer
Explain the MESI protocol. Why is it necessary for maintaining cache coherence in multi-core processors?
Select the correct answer
What is 'False Sharing' in a multicore system? How does it occur at the hardware level and how can software be optimized to avoid it?
Select the correct answer
What is a memory barrier (or fence) at the hardware level, and why is it necessary for correct synchronization in weakly-ordered memory models?
Select the correct answer
What is the difference between snooping-based and directory-based cache coherence, and when is each appropriate?
Select the correct answer
How does the MOESI protocol extend MESI, and what does the 'Owned' state add?
Select the correct answer
How do hardware atomic operations like compare-and-swap work, and why are they needed for lock-free synchronization?
Select the correct answer
What is a hardware memory consistency model, and how does sequential consistency differ from relaxed/weak ordering?
Select the correct answer
What is the difference between privileged (kernel) mode and user mode at the CPU level, and how do protection rings enforce it?
Select the correct answer
What hardware state must be saved and restored during a context switch?
Select the correct answer
What hardware support enables efficient virtualization, such as Intel VT-x / AMD-V?
Select the correct answer
What is an IOMMU, and why is it important for device passthrough and DMA protection in virtualized systems?
Select the correct answer
Explain the role of the Program Counter and the Instruction Register during the fetch-decode-execute cycle.
Select the correct answer
PC holds the currently executing instruction, while the IR stores the address of the next instruction to be fetched from memoryPC holds the address of the next instruction to fetch, while the IR holds the fetched instruction while it is decodedPC stores the decoded control signals, while the IR increments automatically to point at the following instruction in the sequencePC counts elapsed clock cycles, while the IR temporarily buffers operands read from registers before the ALU executes themWhat are the mechanical and performance differences between an HDD and an SSD?
Select the correct answer
What is a parity bit, and how does it differ from a checksum for error detection?
Select the correct answer
State Amdahl's Law. If 10% of your code is strictly serial, what is the theoretical maximum speedup you can achieve by adding an infinite number of processor cores?
Select the correct answer
Why are branches (if/else) expensive for a pipelined processor? Explain how a branch predictor works and what a 'pipeline flush' is.
Select the correct answer
Explain the difference between 'Immediate', 'Register Indirect', and 'Displacement' addressing modes. Which one is most commonly used for accessing array elements?
Select the correct answer
Explain the CPU Performance Equation. If you decrease the CPI but increase the clock cycle time, under what conditions does the overall performance improve?
Select the correct answer
Explain PC-relative and indexed addressing modes and when each is useful.
Select the correct answer
Why can metrics like MIPS and FLOPS be misleading when comparing processor performance?
Select the correct answer
What is the difference between clock speed and IPC, and why can a processor with a lower clock frequency outperform one with a higher clock?
Select the correct answer
Explain the common RAID levels (0, 1, 5, 10) and their trade-offs in performance and redundancy.
Select the correct answer
Explain the 'Power Wall.' Why did CPU manufacturers stop aggressively increasing clock speeds around 2005 and move toward multicore designs instead?
Select the correct answer
Explain the concept of speculative execution. How can this architectural optimization lead to security vulnerabilities like Spectre or Meltdown?
Select the correct answer
How does the physical architecture of an SSD (NAND flash) lead to the 'Write Amplification' effect compared to an HDD?
Select the correct answer
In the context of modern AI workloads like LLMs, explain why a model might be 'Memory-Bandwidth Bound' rather than 'Compute Bound'.
Select the correct answer
What is Gustafson's Law, and how does it offer a more optimistic view of parallel scalability than Amdahl's Law?
Select the correct answer
How does ECC memory detect and correct errors, and what is the idea behind a Hamming code?
Select the correct answer
What is Dennard scaling, and how did its breakdown contribute to the end of clock-speed scaling?
Select the correct answer
How does a 2-bit saturating counter branch predictor work, and why is it better than a 1-bit predictor?
Select the correct answer
What is a Branch Target Buffer (BTB), and what problem does it solve in the fetch stage?
Select the correct answer