p14m

Learn

Short, precise explanations of the ideas behind the tools: logic, arithmetic, timing, memory, floating point and order matching.

Building Blocks

The fundamental components and conventions used throughout these topics. Start here if terms like "full adder", "gate delay", or "FA-eq" are unfamiliar.

Timing & Performance

Hardware speed is limited by how fast signals propagate through gates and wires. Understanding critical paths, setup/hold constraints, and the area-speed tradeoff is essential for designing circuits that meet timing at a target clock frequency.

Multiplier Architectures

Binary multiplication in hardware has three stages: partial product generation (AND gates), partial product reduction (the core architectural choice), and final addition (carry-propagate adder). Architectures differ in how they organize reduction: sequentially reusing one adder, or in parallel across a 2D array or tree. The fundamental tradeoff: more combinational hardware buys less delay.

Final-stage Adders

The final stage of any parallel multiplier is a carry-propagate addition of two rows. The choice of adder directly impacts total delay. These architectures also stand alone as general-purpose binary adders.

Number Systems

How hardware encodes different kinds of numbers: signed integers, fractions, and real numbers with wide dynamic range. The representation determines what arithmetic the hardware can do and how much it costs.

  • IEEE 754 Floating Point

    How hardware represents real numbers with wide dynamic range.

    Concept
  • Endianness

    Big-endian vs little-endian: how multi-byte values map to memory addresses.

    Concept

Order Book & Matching

How electronic exchanges organize buy and sell orders, match them, and execute trades. These data structures and algorithms are implemented in FPGA-based matching engines at trading firms, where nanosecond-level latency matters: making this a direct application of hardware engineering.

  • Order Book Mechanics

    How limit order books organize bids, asks, and the spread: the core data structure of every electronic exchange.

    Concept
  • Matching Engines & Hardware

    How orders are matched, why FPGA implementations dominate, and why this matters for hardware engineers.

    Concept
  • Market Data Infrastructure

    How market data travels from exchanges to trading firms: UDP feeds, co-location, and FPGA network cards.

    Concept

Memory Hierarchy

Processors are fast; main memory is slow. Caches bridge this gap by keeping recently and nearby data close to the CPU. Understanding how addresses map to cache locations, why some access patterns thrash, and how associativity and block size affect hit rate is fundamental to writing fast software and designing efficient hardware.

  • Cache Memory

    How CPU caches map addresses to fast local storage using tag, index, and offset bits.

    Concept
  • Write Policies

    Write-through vs write-back: when and how cached writes reach main memory.

    Concept
  • Cache Replacement Policies

    LRU, FIFO, and Random: how caches decide which line to evict.

    Concept