Timing & the Real World#

Everything up to this point treated logic as instantaneous and ideal: a gate’s output is its inputs’ function, a flip-flop captures at the clock edge. Real gates take time to switch, real clocks arrive at slightly different moments in different places, and real inputs sometimes change at exactly the wrong instant. This is where the digital abstraction leaks and where most puzzling hardware failures actually live.

The rule that ties this chapter together: as long as signals settle within the time the clock allows, the abstraction holds — the moment they don’t, behavior turns nondeterministic. Setup and hold windows, propagation delay, clock skew, and metastability are all statements about that margin.

Sections#

This chapter stays at the logic-device level. The board- and system-level physics that these effects bleed into — signal integrity, power integrity and decoupling, transmission-line / high-speed effects, and bus protocols — are covered in the sibling notebooks rather than duplicated here:

  • EE NotebookDigital Electronics → When Digital Breaks Down and Fundamentals (signal integrity, power integrity, high-speed effects).
  • Embedded SystemsDigital Interfaces & Peripheral Patterns (bus protocols and their firmware-side details).
Page last modified: July 13, 2026