Skip to main content

29 docs tagged with "cpu"

View all tags

Addressing Modes

How an effective address is computed from base, index, scale, displacement and PC, and why the same array access costs a different number of address calculations on x86-64, ARM64 and RISC-V.

Atomics and Fences

Read-modify-write instructions and ordering instructions: how C11 memory orders map onto lock prefixes, LDAXR/STLXR, LR/SC and the fences each ISA requires.

Branch Prediction

How direction and target predictors, BHT, BTB, TAGE, and the return-address stack keep the front end fed.

Branches and Jumps

How a program changes its control flow: flags versus compare-and-branch, PC-relative encodings, and the range limits of x86-64, AArch64 and RISC-V.

Datapath Building Blocks

The ALU, register file, shifter, multiplier and divider, their delay and area cost, and how they share one clocked path.

Dynamic Scheduling

How an out-of-order core uses scoreboards, reservation stations, and the wakeup-select loop to hide latency while preserving dataflow semantics.

Exceptions and Interrupts

Synchronous faults and asynchronous interrupts as one control-transfer mechanism: vector tables, privilege switch and the cost of handling an event.

Floating-Point

IEEE 754 fields, rounding, special values and the non-associativity that breaks naive comparisons, reductions and parallelism.

Hardware (Legacy)

Superseded by the Hardware domain; kept while its content moves into the new pages.

Hardwired and Microcoded Control

Two ways to turn opcodes into control signals: direct combinational decode and a microprogram in a control store, with the latency, area and patchability each buys.

Heterogeneous Cores

How performance and efficiency cores share one ISA and one coherent domain, what differs inside them, and why the scheduler rather than the silicon decides whether the mix pays off.

Integer and Fixed-Point

Two’s complement ranges, the three overflow semantics, and the Q-format arithmetic that replaces floats in DSP and embedded code.

ISA and Abstraction

The ISA as the binary contract between software and silicon: what it fixes, what it leaves to the microarchitecture, and how compatibility survives across generations.

Loop Transformations

How unrolling, software pipelining, tiling, and interchange expose ILP and locality, and when dependence analysis forbids them.

Metrics and CPI

The three-factor performance equation, how CPI decomposes into stalls, and which metric answers which question.

Multi-Cycle Processor

Splitting one instruction across several clock cycles: intermediate registers, a step sequencer, variable CPI, and the area-for-time trade.

Multicore Organization

How several cores share LLC slices, a ring or mesh fabric, memory controllers and I/O inside one socket, and how that topology sets the latency and bandwidth a parallel program actually sees.

Pipeline Basics

Overlapping instruction stages: the five-stage schedule, the clock period set by the slowest stage, and the speedup formula that governs every later page.

Pipeline Hazards and Exceptions

Structural, data and control hazards, the forwarding and stall rules that resolve them, and the in-order commit a precise exception requires.

Privilege and Virtualization

Privilege levels as a capability label and virtualization as one more layer under them: rings, exception levels, sensitive instructions and stage-2 translation.

Register Renaming and ROB

How register renaming removes false dependencies and the reorder buffer restores precise state at commit.

Registers and Operands

Architectural registers across x86-64, ARM64 and RISC-V, the four operand kinds an instruction can encode, and why constant materialisation and calling conventions follow from register width.

Simultaneous Multithreading

How one physical core interleaves several thread contexts to fill idle issue slots, which state is replicated, which resources stay shared, and why SMT buys throughput instead of latency.

Single-Cycle Processor

One instruction per clock cycle: the shared combinational path, the load-limited clock period, and why a CPI of one still loses on frequency.

Speculative Execution

How a core executes past unresolved branches and memory dependencies without exposing speculative state, and why Spectre broke that contract.

Superscalar

Issue width, parallel pipelines and the dependency limits that turn a four-wide machine into an IPC of two or three.

Uncore Organization

What sits around the cores inside a socket: LLC slices, the ring or mesh, home agents, memory controllers, the I/O complex and the power unit that binds their clocks.

VLIW and Static ILP

How VLIW and EPIC bundles move scheduling into the compiler, and what that trades away in compatibility and code size.