P10.8.1 Terminate the Line

EasyImplementngspice 42 · serverReview the topic

Choose the termination at the end of an 85 Ω line. The reflection at the sending end must stay within 2% of the step.

Circuit context: The digital blocks of a serializer/deserializer: line encoder and decoder, scrambler, CRC and error-correcting code. Keep the line balanced and busy, and detect or correct the errors a fast serial link makes.

A transmitter with an 85 Ω source drives a 1 V step into an 85 Ω line, 200 ps long. At the far end, the receiver pin has 0.2 pF and your termination resistor to ground.

A wrong termination sends part of every edge back. Set the resistor in the subcircuit term so that the sending end settles within 10 mV of 0.5 V.

The pin capacitance still causes a short dip as each edge arrives. The grader does not score that dip; P10.8 explains it.

What the Grader Measures

Your subcircuit term (ports rx) under the grader's own bench:

CheckRule
Sending end, settled490 mV to 510 mV
Far end, settled490 mV to 510 mV
Full specification
The subcircuit the grader tests (keep the name and the port)
.subckt term rx
Rt rx 0 50
.ends
CheckRuleHow the grader measures it
Sending end, settled0.49 V to 0.51 Vtran: v(in) at 1.4 ns, long after the reflection has returned
Far end, settled0.49 V to 0.51 Vtran: v(rx) at 1.4 ns

The line is lossless and the source ideal. The 85 Ω matches the reference USB 3.2 uses for return loss (§E.6.4.5); the rest are bench values.

Examples

Example 1

A 50 Ω Termination
Design
.subckt term rx
* the termination at the receiver pin, to ground
Rt rx 0 50
.ends
Measured by the grader
Sending end, settled: 370.4 mV (needs 490 mV to 510 mV)
Far end, settled: 370.4 mV (needs 490 mV to 510 mV)

Γ = (50 − 85) / 135 = −0.26. The sending end settles at 0.37 V, not 0.5 V.

Example 2

No Termination
Design
.subckt term rx
* the termination at the receiver pin, to ground
Rt rx 0 1e9
.ends
Measured by the grader
Sending end, settled: 1 V (needs 490 mV to 510 mV)
Far end, settled: 1 V (needs 490 mV to 510 mV)

The open end reflects the whole step: the sending end doubles to 1 V.

Example 3

Matched: 85 Ω
Design
.subckt term rx
* the termination at the receiver pin, to ground
Rt rx 0 85
.ends
Measured by the grader
Sending end, settled: 500 mV (needs 490 mV to 510 mV)
Far end, settled: 500 mV (needs 490 mV to 510 mV)

Nothing reflects once the edge has passed: both ends sit at half the step.

Constraints and Contract

  • The netlist defines .subckt term rx ... .ends exactly once.
  • Inside term: resistors only.
  • Everything outside term is yours: the grader uses its own bench.

Hints

Hint 1

After the reflection returns, the sending end sits at 0.5 × (1 + Γ).

Hint 2

Γ = (R − 85) / (R + 85). For 10 mV either way, |Γ| must stay under 0.02.

Hint 3

A value from another standard, such as 50 Ω, is the commonest mistake.

What the grader checks: The grader runs your termination on its lossless 85 Ω line and reads both ends after the reflections settle (ngspice 42). It does not judge the edge dip, a real lossy trace or differential signalling.

Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit term and makes 1 ngspice run. The numbers come from ngspice and the SKY130 models the site pins; they prove the measured cases, not every condition a chip meets.

See all 1 steps and the final capstone

Report a problem with this page

Your netlist SPICESaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs
Not run yet
Run your netlist to see its measurements and the ngspice log here.
ngspice 42 · server