6.3.12 · D4Interconnects, Buses & SoC

Exercises — Serial vs parallel signaling (SerDes)

3,098 words14 min readBack to topic

This page is a self-test ladder for SerDes. Every problem states its level — from just recognising a word (L1) to combining ideas end-to-end (L5). Solve it yourself first, then open the collapsible solution. After each level there is a [!mistake] callout showing the trap that feels right but isn't.

Every quantity is defined the first time it appears. Nothing is assumed from earlier notes.


Level 1 — Recognition

Can you name the pieces and read the units?

Exercise 1.1

In one sentence each, say what the Serializer does and what the Deserializer does, and state which one lives at the transmitter.

Recall Solution
  • Serializer (transmitter): takes parallel bits sitting side-by-side on wires inside the chip and pushes them out one at a time on a single line — like feeding a stack of cards through one slot.
  • Deserializer (receiver): watches that single stream of bits and rebuilds the original side-by-side group of bits.
  • The Serializer lives at the transmitter (it serializes = makes serial before sending). See Serial vs parallel signaling (SerDes) for the block diagram.

Exercise 1.2

A serial link sends symbols at a symbol rate Gbaud using NRZ — a scheme where each symbol is just one voltage (high = 1, low = 0), so it carries exactly 1 bit per symbol. What is the bit period , the time one bit occupies on the wire?

Recall Solution

The bit period is the reciprocal of the rate at which bits go by. Since each symbol is one bit here, the bit rate equals the symbol rate: bits per second. Why reciprocal? If 5 billion bits pass every second, each bit gets of a second — dividing one second fairly among all the bits.

Exercise 1.3

Match each problem to the parallel-bus physics effect it names: (a) bits on different wires arrive at slightly different times; (b) a switching wire pushes noise onto its neighbour; (c) many wires switching together radiate radio waves.

Recall Solution
  • (a) = Skew — a timing misalignment between wires.
  • (b) = Crosstalk — capacitive/inductive coupling between an aggressor and a victim wire.
  • (c) = EMI (electromagnetic interference) — the bus acting like an antenna. These are the three physics walls that pushed the industry from parallel to serial.

Level 2 — Application

Plug the numbers into the note's formulas.

Exercise 2.1

A PCB (printed circuit board) trace mismatch between the shortest and longest wire of a parallel bus is mm. Signals travel through the board at m/s (about times the speed of light, typical for FR-4 board material). Compute the skew — the extra travel time caused by that extra length.

Recall Solution

Skew is just extra distance divided by speed (time = distance / speed): Why this formula? A wire that is 8 mm longer forces the signal to spend extra time crossing that extra copper. That delayed bit arrives late relative to its siblings — exactly the skew the receiver must tolerate.

Exercise 2.2

Continue Exercise 2.1. The receiver needs a setup time ps (data must be stable before the sampling clock edge) and a hold time ps (data must stay stable after the edge). Let denote the clock period (the time between two consecutive sampling clock edges, as introduced in the intuition callout above). Using the parent note's rule find the maximum clock frequency of this parallel bus.

Recall Solution

First add up the minimum clock period. The clock cannot tick faster than the time needed for all bits to arrive (skew), settle (setup) and stay put (hold): The fastest clock is the reciprocal of the smallest allowed period: Why an upper limit? Speed the clock past this and its period shrinks below ps — the clock edge arrives before every bit has settled, so the receiver samples garbage.

Exercise 2.3

A serial lane runs at symbol rate GT/s (gigatransfers per second) and uses 128b/130b encoding — for every 128 real data bits, the wire actually carries 130 bits (2 extra bits mark block boundaries). NRZ means bit per symbol. Compute the usable data rate .

Recall Solution

Use the note's formula , where the efficiency is the fraction of transmitted bits that is real data: Why multiply by ? Not every bit on the wire is your payload — 2 of every 130 are "packaging." You only get to keep the fraction. This matches 8b/10b Encoding logic, just with a leaner overhead. This is the per-lane rate of a PCIe Protocol Gen3 link.


Level 3 — Analysis

Compare, judge, and explain the "why."

Exercise 3.1

Take the skew from Exercise 2.1 ( ps). Express skew as a percentage of the clock period at three clock speeds: MHz, GHz, and GHz. State at which speed skew becomes unmanageable (rule of thumb: above of the period).

The figure below plots exactly this. Its horizontal axis lists the three clock speeds ( MHz, GHz, GHz); its vertical axis is "skew as % of clock period." Each bar is the same ps skew measured against that speed's shrinking clock period. The dashed horizontal line marks the danger threshold. Two bars are black (safe); the red bar is the GHz case that punches above the danger line — that red bar is the "skew wall."

Figure — Serial vs parallel signaling (SerDes)
Recall Solution

Period , then percentage .

  • 133 MHz: ns ps → . Trivial.
  • 1 GHz: ps → . Getting noticeable.
  • 5 GHz: ps → . Unmanageable — over one-fifth of the clock is eaten by skew alone. Analysis: the same physical mismatch is harmless at low speed and fatal at high speed, because the clock period shrinks while the skew (set by fixed board geometry) does not. In the figure, the red GHz bar towers over the dashed line — that is the physics wall that killed wide parallel buses. Serial dodges it by having one data lane, so there is no wire-to-wire alignment to lose.

Exercise 3.2

Two designs move data between chips:

  • Design A: a 32-bit parallel bus clocked at MHz, 1 bit per wire per cycle.
  • Design B: a single serial lane at GT/s NRZ with (64b/66b encoding).

Which delivers more raw throughput, and — arguing from skew — which one scales to higher speeds?

Recall Solution

Throughput now:

  • Design A: Gbps.
  • Design B: Gbps.

Design B already wins ( Gbps) on one lane vs 32 wires.

Scaling argument: To beat B, Design A must raise its 400 MHz clock. But its 32 wires each carry skew; as shown in 3.1, once the period drops near the skew, sampling fails. Design A hits the skew wall around a few GHz and pays with 32 pins of crosstalk and EMI. Design B has no wire-to-wire skew (one lane) and rejects noise as common-mode via Differential Signaling — so it keeps climbing (Gen4, Gen5...). Serial scales; wide parallel does not.


Level 4 — Synthesis

Combine several ideas into one end-to-end result.

Exercise 4.1

An 8:1 serializer loads 8 parallel bits at a slow clock GHz and shifts them out on one serial line. (a) What fast clock does the internal PLL need? (b) What is the serial bit period ? (c) If the input byte is 0xB4 = 10110100 (MSB first), list the output high/low intervals over the full byte.

Recall Solution

(a) A serializer sends all 8 bits during one slow-clock period, so it must shift 8 times as fast: (b) One bit per fast-clock cycle: Check: 8 bits 100 ps ps — exactly one slow period. ✓ (c) 10110100, 100 ps per bit, MSB first, listed as (interval → bit → level):

  • ps → bit High
  • ps → bit Low
  • ps → bit High
  • ps → bit High
  • ps → bit Low
  • ps → bit High
  • ps → bit Low
  • ps → bit Low

Why the PLL? The chip's logic is comfortable at 1.25 GHz, but the wire must carry bits 8× faster. The PLL manufactures that 10 GHz clock by multiplying the slow one — it is the engine that lets one wire do the work of eight.

Exercise 4.2

The receiver's equalizer cleans up the signal, and an eye diagram shows the "eye" — the open region where the signal is safely high or low — is ps wide at the 10 GHz link of 4.1. The CDR (clock-data recovery) must sample inside that eye. What is the maximum allowed sampling phase error , and does a CDR that locks to ps succeed?

Recall Solution

The safe window is the eye. To stay inside it, the sampling point may wander at most half the eye width from centre (drift left or right): A CDR locking to ps stays well inside: . ✓ Succeeds with ps of margin. Why half the eye? Centre the sample in the eye for maximum safety. If it drifts more than half-way to either edge, it slips out of the open region and samples during a transition — a coin-flip bit. The parent note's rule is the idealised case (full-width eye); the eye diagram gives the real narrower budget after channel loss.


Level 5 — Mastery

Full end-to-end system reasoning under constraints.

Exercise 5.1

You must deliver 100 Gbps of usable data between two chips. Compare two builds:

  • Serial build: identical PCIe-style lanes, each GT/s NRZ with (i.e. Gbps usable, from Exercise 2.3). Two wires per lane (differential pair).
  • Parallel build: a single-ended wide bus at GHz, 1 bit per wire, one wire each. (a) How many serial lanes are needed? (b) How many parallel wires would match 100 Gbps? (c) Which uses fewer physical wires, and name the deciding physics.
Recall Solution

(a) Divide target by per-lane rate, round up (you cannot buy a fraction of a lane): Since PCIe link widths come in powers of two, you'd deploy an x16 link (16 lanes) in practice. (b) Each parallel wire gives Gbps: (c) Physical wire count:

  • Serial: lanes wires wires.
  • Parallel: wires.

Serial wins (), and it isn't even close once you add the parallel bus's clock/strobe wires. Deciding physics: each serial lane runs at GT/s cleanly because it's a lone differential pair with no wire-to-wire skew, low crosstalk, and cancelling EMI. The parallel bus is stuck at GHz precisely because 50 skewed, crosstalking, radiating wires cannot share a faster clock. Speed-per-wire, not wire-count, is what wins — the same lesson as DDR pushing per-pin rates rather than adding pins forever.

Exercise 5.2

Take one lane from 5.1 at GT/s NRZ. The transmit crystal and receive crystal differ by ppm (parts per million — Hz drift per million Hz). (a) By how many bits per second do the two ends drift apart in raw symbol count? (b) Explain in one paragraph why the CDR must continuously adjust rather than lock once.

Recall Solution

(a) A drift of ppm means the receiver's idea of the rate is off by a fraction : The receiver's clock counts million symbols per second more (or fewer) than the transmitter actually sends. (b) Because the two crystals never run at exactly the same frequency, a sampling point that is perfectly centred now will slide by million bit-widths every second if left alone — it would exit the eye in microseconds and every bit after that is wrong. So the CDR watches each incoming data edge, sees the phase creeping early or late, and nudges its local clock the opposite way, over and over. It is not a one-time alignment but a servo loop that tracks the transmitter's frequency for as long as the link is up — the exact behaviour the parent note describes for USB CDR.