Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Modern Processors

Overview

This section covers the major processor architectures in use today: x86-64 (Intel/AMD), ARM (mobile, server, Apple Silicon), and RISC-V (open-source). We also cover specific modern implementations: Apple Silicon, Intel Alder Lake, and AMD Zen. Understanding these architectures is essential for system design interviews.

The Modern Processor Landscape

graph TD
    MODERN[Modern Processors] --> X86[x86-64]
    MODERN --> ARM_ARCH[ARM]
    MODERN --> RISCV[RISC-V]
    X86 --> INTEL[Intel]
    X86 --> AMD[AMD]
    INTEL --> ALDER[Alder Lake / Raptor Lake]
    INTEL --> METEOR[Meteor Lake]
    AMD --> ZEN[Zen 4 / Zen 5]
    AMD --> EPYC[EPYC Server]
    ARM_ARCH --> APPLE[Apple Silicon]
    ARM_ARCH --> QUALCOMM[Qualcomm Snapdragon]
    ARM_ARCH --> NEON[ARM Neoverse]
    APPLE --> M3[M3 / M4]
    QUALCOMM --> X_ELITE[Snapdragon X Elite]
    NEON --> GRAVITON[AWS Graviton]
    NEON --> AMPERE[Ampere Altra]
    RISCV --> SIFIVE[SiFive]
    RISCV --> BOOM[BOOM Core]
    RISCV --> TENSTOR[Tenstorrent]

Architecture Comparison

Featurex86-64ARM (AArch64)RISC-V
ISA TypeCISC (internally RISC-like)RISCRISC
Instruction LengthVariable (1-15 bytes)Fixed (4 bytes)Fixed (4 bytes, compressed 2)
Registers16 GPRs31 GPRs31 GPRs (RV64I)
Memory ModelTSO (Total Store Order)Weakly orderedWeakly ordered
Privilege LevelsRing 0-3EL0-EL3U/S/M modes
LicenseProprietary (Intel/AMD cross-license)Licensed from ARM LtdOpen-source (RISC-V Foundation)
Primary MarketDesktop, ServerMobile, Server, LaptopEmbedded, Emerging
Key StrengthLegacy compatibility, high single-threadPower efficiency, scalableCustomizable, royalty-free

x86-64: The Legacy Powerhouse

Historical Evolution

8086 (1978) → 386 (1985) → Pentium (1993) → Core 2 (2006) → Skylake (2015) → Alder Lake (2021) → Arrow Lake (2024)
   16-bit        32-bit       Superscalar      Multi-core      Hybrid P+E        Chiplet design

x86-64 Key Features

  • Variable-length instructions: 1–15 bytes, complex decode
  • Micro-ops: Complex x86 instructions decoded into simpler micro-ops internally
  • TSO memory model: Relatively strong ordering, easier for programmers
  • Legacy support: Can run code from the 1980s (with mode switches)
  • SSE/AVX: SIMD extensions (128→256→512-bit vectors)

Modern x86 Implementations

ProcessorYearCoresProcessKey Innovation
Intel Skylake20154-1814nmLong-lived mainstream design
Intel Alder Lake202116 (8P+8E)Intel 7Hybrid P+E cores
Intel Meteor Lake202314 (6P+8E)Intel 4Chiplet/tile design
AMD Zen 4202216-965nm3D V-Cache, chiplet
AMD Zen 5202416-1924nm8-wide decode, larger µop cache, ~512 ROB

Intel Hybrid Architecture (P-cores + E-cores)

graph TB
    subgraph "Alder Lake / Raptor Lake"
        subgraph "Performance Cores (P)"
            P1[Golden Cove / Raptor Cove]
            P2[Wide: 6-wide decode, deep OoO]
            P3[High IPC, High Power]
        end
        subgraph "Efficiency Cores (E)"
            E1[Gracemont]
            E2[Compact: 3-wide decode]
            E3[Lower IPC, Much Lower Power]
        end
        SCHED[Thread Director] --> P1
        SCHED --> E1
    end

Thread Director: Hardware-based scheduler that guides the OS on which threads go to P-cores vs E-cores based on workload characteristics.

ARM: The Efficiency King

ARM Architecture Generations

VersionYearKey Feature
ARMv7200432-bit, Thumb-2
ARMv8-A201164-bit (AArch64), 31 GPRs
ARMv9-A2021SVE2, RME (security), PAC
ARMv9.22023SME (Scalable Matrix Extension)

ARM Design Philosophy

  • Fixed-length instructions: 4 bytes (AArch64), simpler decode
  • Load/Store architecture: Only load/store instructions access memory
  • Conditional execution: Many instructions can be predicated
  • Weak memory model: Allows more hardware optimization
  • Scalable: Same ISA from microcontrollers to supercomputers

ARM Implementations

graph LR
    subgraph "Cortex Series (ARM-designed)"
        A510[Cortex-A510<br/>Efficiency]
        A715[Cortex-A715<br/>Performance]
        X4[Cortex-X4<br/>Prime]
    end
    subgraph "Custom (ARM Licensees)"
        APPLE_CORE[Apple Firestorm/Icestorm]
        QUALCOMM_CORE[Qualcomm Oryon]
        NESS[Neoverse N2/V2]
    end
CoreTypeTargetIPC (relative)
Cortex-A510In-order, efficiencyMobile little cores1.0×
Cortex-A715OoO, performanceMobile big cores2.5×
Cortex-X4OoO, primeMobile prime cores3.5×
Apple M3 P-coreWide OoOLaptop/Desktop4.0×
Neoverse V2Wide OoOServer (Graviton 3)3.8×

Apple Silicon: ARM’s Showcase

Apple M1 (2020):  8 cores (4P+4E), 5nm, unified memory
Apple M2 (2022):  8 cores (4P+4E), 5nm, 20B transistors
Apple M3 (2023):  8 cores (4P+4E), 3nm, 25B transistors
Apple M4 (2024):  10 cores (4P+6E), 3nm, enhanced Neural Engine

Key innovations:

  • Unified Memory Architecture (UMA): CPU, GPU, Neural Engine share same memory
  • Wide decode: 8-wide decode (among the widest in the industry)
  • High single-thread: Competitive with desktop x86 at lower power
  • Custom GPU: Designed in-house, not using ARM Mali

RISC-V: The Open-Source ISA

What Makes RISC-V Special

  • Open standard: No licensing fees, anyone can implement
  • Modular: Base ISA + optional extensions
  • Clean slate: No legacy baggage, designed for modern workloads
  • Growing ecosystem: From embedded to HPC

RISC-V ISA Structure

RV32I / RV64I / RV128I    ← Base Integer ISA (required)
    ├── M: Multiply/Divide
    ├── A: Atomic operations
    ├── F: Single-precision FP
    ├── D: Double-precision FP
    ├── C: Compressed instructions (16-bit)
    ├── V: Vector extension
    ├── B: Bit manipulation
    └── Custom extensions (manufacturer-defined)

RISC-V Implementations

ProcessorTypeTargetNotes
SiFive P670OoO, high-perfEmbedded/AutomotiveARM A75 competitor
SiFive P870OoO, serverData centerARM Neoverse competitor
BOOM v3OoO, academicResearch/ASICBerkeley Out-of-Order Machine
Tenstorrent AscalonOoO, AIAI/HPCJim Keller’s company
StarFive JH7110In-orderSBC/EmbeddedRaspberry Pi competitor

RISC-V vs ARM vs x86: Market Positioning

graph TB
    subgraph "Embedded / IoT"
        RV_E[RISC-V]
        ARM_E[ARM Cortex-M]
    end
    subgraph "Mobile / Laptop"
        ARM_M[ARM Cortex-A]
        APPLE[Apple Silicon]
    end
    subgraph "Desktop / Gaming"
        X86_D[x86-64]
    end
    subgraph "Data Center / Cloud"
        X86_S["x86-64 (Xeon/EPYC)"]
        ARM_S["ARM Neoverse (Graviton)"]
        RV_S["RISC-V (emerging)"]
    end
    subgraph "AI / HPC"
        X86_AI[x86 + GPU]
        ARM_AI[ARM + Custom]
        RV_AI["RISC-V (Tenstorrent)"]
    end

1. Chiplet Design

Instead of one large monolithic die, modern CPUs use multiple smaller chiplets:

Monolithic (traditional):
┌─────────────────────────────────────┐
│  Single die: cores + cache + I/O   │
│  Yield issues on large dies        │
└─────────────────────────────────────┘

Chiplet (modern):
┌──────────┐  ┌──────────┐  ┌──────────┐
│ Core Die │  │ Core Die │  │ I/O Die  │
│  (CCD)   │  │  (CCD)   │  │  (IOD)   │
└──────────┘  └──────────┘  └──────────┘
     └────────────┬────────────┘
           Interconnect (Infinity Fabric / UCIe)

Benefits: Better yields, mix process nodes, modular scaling

2. Specialized Accelerators

AcceleratorPurposeExamples
GPUParallel compute, graphicsNVIDIA, AMD, Apple
NPU/TPUNeural network inferenceApple Neural Engine, Google TPU
Media EngineVideo encode/decodeApple ProRes, Intel QuickSync
SecurityEncryption, attestationARM TrustZone, Intel SGX

3. Memory Architecture Evolution

ApproachDescriptionExample
DiscreteSeparate CPU and DRAM packagesTraditional desktop
HBMStacked memory on packageAMD EPYC, Intel Xeon
Unified MemoryShared memory poolApple M-series
CXLCache-coherent interconnect for memory poolingServer expansion

Interview Questions

Q: Compare x86, ARM, and RISC-V at a high level.

A: x86 is CISC-based with variable-length instructions and a strong memory model (TSO), dominant in desktop/server but power-hungry. ARM is RISC-based with fixed-length instructions and a weak memory model, dominant in mobile and growing in servers (Graviton, Apple Silicon). RISC-V is an open-source RISC ISA that’s modular and royalty-free, currently strong in embedded and emerging in servers. Modern x86 internally converts to micro-ops, so the CISC/RISC distinction matters less for performance than for decode complexity and power.

Q: What is Intel’s hybrid architecture and why was it introduced?

A: Alder Lake (2021) introduced Performance cores (P-cores, Golden Cove) for high single-thread performance and Efficiency cores (E-cores, Gracemont) for multi-threaded throughput at lower power. The Thread Director hardware guides the OS scheduler. This mirrors ARM’s big.LITTLE approach. The benefit is better performance per watt: background tasks run on E-cores, demanding tasks get P-cores.

Q: Why is RISC-V gaining traction despite ARM and x86 dominance?

A: RISC-V is open-source (no licensing fees), modular (add custom extensions), and has a clean design without legacy baggage. It’s attractive for: 1) embedded systems where cost matters, 2) companies wanting custom accelerators integrated into the ISA, 3) academic research, 4) countries/companies wanting ISA independence (China, India). The ecosystem is still maturing for high-performance computing.

Q: What is Apple Silicon’s key advantage?

A: Apple’s M-series chips use ARM architecture with a very wide decode (8-wide), unified memory architecture (CPU/GPU/Neural Engine share memory), and tight hardware-software integration. The unified memory eliminates CPU-GPU data copies. Apple’s vertical integration (designing both chip and OS) allows optimization that’s impossible for Intel/AMD with Windows/Linux.

Cross-References