6.3.12Interconnects, Buses & SoC

Serial vs parallel signaling (SerDes)

2,917 words13 min readdifficulty · medium

What Are Parallel and Serial Signaling?

Why Did We Shift from Parallel to Serial?

The Parallel Bottleneck

In the 1980s-90s, parallel buses dominated (ISA, PCI, SCSI). But as clock speeds increased, three physics problems emerged:

1. Skew Accumulation

When you send 8 bits simultaneously on8 traces, small differences in trace length, PCB layer, or driver strength cause bits to arrive at different times. This timing difference is skew.

2. Crosstalk

3. Electromagnetic Interference (EMI)

Parallel buses with many traces switching together act as antennas. The radiated power scales with frequency and number of simultaneous edges:

Pradiatedf2nl2P_{radiated} \propto f^2 \cdot n \cdot l^2

where nn = number of traces, ll = trace length, ff = frequency. FCC limits force designers to add shielding/filtering, increasing cost.

The Serial Solution

Serial signaling with differential pairs solves all three:

  1. No skew: Only1 data lane (plus its complement), so no multi-wire alignment problem
  2. Differential immunity: Crosstalk appears as common-mode noise, rejected by the receiver
  3. Lower EMI: Differential currents cancel, reducing radiation

How SerDes Works

Serializer Architecture

Figure — Serial vs parallel signaling (SerDes)

Step-by-step operation:

  1. Parallel Load: At slow clock flowf_{low}, load nn bits into shift register
  2. Fast Clock Multiplication: PLL generates fhigh=nflowf_{high} = n \cdot f_{low}
  3. Shift Out: Each fhighf_{high} cycle, shift out 1 bit onto differential TX lines
  4. Differential Driver: Converts single-ended logic to differential voltage (e.g., ±400 mV)

Deserializer Architecture

The receiver must:

  1. Recover Clock: Incoming data has no separate clock wire. Use CDR to extract clock from data edges.
  2. Sample Data: Sample at mid-bit (not at transitions) for maximum margin.
  3. Align to Byte Boundary: Find the start of each nn-bit group using special patterns (comma characters in8b/10b).

When to Use Parallel vs. Serial

Criterion Parallel Serial (SerDes)
Frequency < 500 MHz > 1 GHz
Distance < 10 cm (on-chip, PCB) cm to meters
Pin count High (8, 16, 64 wires) Low (1 diff pair = 2 pins)
Cost Low (simple logic) High (PLL, CDR, analog)
Power Low at low speed Higher (high-speed analog)
Use cases DRAM interfaces (DDR), on-chip buses PCIe, USB, SATA, Ethernet, chiplet I/O

Common Mistakes

Active Recall Prompts

Recall Explain SerDes to a 12-year-old

Imagine you're moving a stack of 10 books from one room to another. You have two choices: Option 1 (Parallel): Carry all 10 books in one trip. Fast, right? But the stack is heavy and wobbly—you might drop them, and you need wide doorway.

Option 2 (Serial): Carry 1 book at a time, but run really fast. Yes, you make 10 trips, but you're so fast that you finish before the "carry all 10" person even gets through the door. Plus, you never drop anything because1 book is easy to control.

SerDes is Option 2. Computers used to send data like Option 1 (parallel wires, many bits at once), but wires are like narrow hallways—they interfere with each other, causing "dropped books" (errors). So now we send data one bit at a time (serial) on a single super-fast wire. The trick is the "serializer" packs the bits into a single stream, and the "deserializer" unpacks them on the other end. It's faster, fewer wires, and fewer mistakes!

Connections

  • Clock Domain Crossing (CDC): SerDes deserializer creates a new clock domain; needs FIFOs to cross into system clock.
  • PCIe Protocol: Uses SerDes with 128b/130b encoding; lanes can be ganged (x1, x4, x16).
  • Eye Diagrams: Visual tool to measure SerDes link quality (jitter, noise, ISI).
  • Equalization (CTLE, DFE): High-speed SerDes use equalization to combat ISI from PCB traces.
  • 8b/10b Encoding: Common SerDes encoding scheme; trades20% bandwidth for DC balance and comma symbols.
  • PLL and Clock Synthesis: Serializer needs PLL to multiply clock; deserializer CDR is a form of PLL.
  • Differential Signaling: SerDes almost always uses differential pairs (LVDS, CML).
  • DDR Memory Interface: Uses parallel signaling with source-synchronous clocking to manage skew.

#flashcards/hardware

What is the key advantage of serial signaling over parallel at high frequencies? :: Serial avoids skew accumulation across multiple wires, allowing much higher bit rates on a single differential pair.

What does SerDes stand for and what does it do?
Serializer-Deserializer; converts parallel data to high-speed serial for transmission and back to parallel at the receiver.
Why does parallel bus skew become unmanageable above ~1 GHz?
At 1 GHz, period = 1 ns. Even10 ps skew (1% of period) from trace length mismatch consumes setup/hold margin. At 10 GHz, 10 ps is 10% of the period—impractical.
What is Clock-Data Recovery (CDR) and why is it needed in SerDes?
CDR extracts the clock from the incoming serial data stream by detecting edges. Needed because serial links don't send a separate clock wire—reduces pin count and skew.
How does differential signaling help SerDes reduce crosstalk?
Crosstalk from nearby traces appears as common-mode noise on both wires of the differential pair. The receiver subtracts the two signals, canceling common-mode and preserving only the differential signal.
What is the data rate formula for a serial link with encoding overhead?
Rdata=RsηbR_{data} = R_s \cdot \eta \cdot b where RsR_s is symbol rate, η\eta is encoding efficiency (e.g., 128/130 for 128b/130b), and bb is bits per symbol (1 for NRZ, 2 for PAM-4).
Why does EMI radiated power scale as f2nl2f^2 \cdot n \cdot l^2 for parallel buses?
Higher frequency ff means faster current changes (more antenna efficiency), nn traces act as nn antennas, and longer trace length ll increases effective antenna aperture. Each factor multiplies together.
At what approximate frequency does the industry crossover from parallel to serial occur and why?
Around 500 MHz to 1 GHz. Below this, parallel is cheaper. Above, skew and crosstalk make parallel impractical compared to SerDes cost.

Concept Map

uses

causes

limits

forces shift to

uses

implemented by

performs

converts between

enables

avoids

Parallel Signaling

Serial Signaling

SerDes

Skew Accumulation

Many Data Wires

Single Differential Pair

Max Clock Frequency Limit

High-Speed Multi-Gbps

Serialize / Deserialize

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, yahan basic tradeoff yeh samajhna hai ki data bhejne ke do tareeke hain. Parallel matlab tum ek saath multiple bits alag-alag wires pe bhejte ho — jaise 8 pages ek saath photocopy karke dena. Serial matlab tum ek-ek bit ek hi wire (differential pair) pe bhejte ho, lekin bahut fast speed pe. Pehle zamane mein sabko laga ki parallel behtar hai kyunki ek saath zyada bits jaa rahe hain, lekin jab clock speeds badhne lage, tab physics ne problems create kar di.

Ab why-it-matters: parallel mein sabse bada issue hai skew. Jab 8 wires pe ek saath bits bhejte ho, toh chhoti-chhoti trace length ki differences ki wajah se bits alag-alag time pe pahunchte hain. Receiver toh sab bits ek hi clock edge pe sample karta hai, isliye jab tak saare bits stable na ho, sampling galat ho jaayegi. High speeds pe (jaise 5 GHz), yeh skew clock period ka 14% tak kha jaata hai — matlab bilkul unacceptable. Iske upar crosstalk ka problem bhi aata hai, jahan ek wire ka signal doosri wire pe voltage induce kar deta hai. In dono problems ko 8 wires pe manage karna bahut mushkil aur mehnga hai.

Isliye engineers ne serial ki taraf shift kiya, aur yahan SerDes (Serializer-Deserializer) chips ka kaam aata hai. Chip ke andar data parallel form mein hota hai, phir SerDes usse serial mein convert karke ek hi high-speed line pe bhejta hai, aur doosri taraf wapas parallel bana deta hai. Iska fayda yeh hai ki ek wire ko really fast chalana aasan hai — na skew ka jhamela, na 8 machines ko sync karne ki tension. Isliye aaj ke PCIe, USB, SATA, Ethernet — sab serial signaling use karte hain. Yeh concept modern hardware ki backbone hai, toh ise achhe se pakad lena.

Go deeper — visual, from zero

Test yourself — Interconnects, Buses & SoC

Connections