This section is conceptually critical. At low frequency we describe two-port circuits with , , or parameters, all of which require either short-circuit or open-circuit terminations. At microwave, those terminations are either impossible to realize accurately (a short at 10 GHz has uncontrolled inductance) or they cause oscillation in active devices (open the gate of a HEMT and it will oscillate). We need a parameter set that uses only terminated (typically 50 Ω) ports. Enter scattering parameters.
12.1 The two-port S-parameter definition
Consider a two-port network. Define incident wave entering port 1, reflected wave leaving port 1, and similarly and at port 2. All waves are normalized so is power flowing into the port and is power flowing out. Then
The four parameters are:
- : input reflection with output terminated. Input return loss.
- : forward transmission. Gain or insertion loss.
- : reverse transmission. Reverse isolation.
- : output reflection with input terminated. Output return loss.
The "" condition is achieved by terminating the port in a matched load (50 Ω). No open or short required.
12.2 Why S-parameters are stable at GHz
Two reasons.
First, realizability. Every cable and connector at GHz approximates 50 Ω closely. So presenting a 50 Ω termination is a calibrated, achievable condition. A short circuit at 10 GHz, by contrast, has uncontrolled lead inductance that varies wildly with mounting; an "open" has uncontrolled stray capacitance. Z- and Y-parameter measurements that depend on shorts and opens are uncontrollable.
Second, stability. Active two-ports (like a HEMT) often oscillate when their input or output is presented with an open or short. Z- and Y-parameter measurement requires exactly that, so the measurement itself can break the device. S-parameters use 50 Ω terminations, which are passive and damping; the device under test stays stable during measurement.
12.3 Useful identities
- Reflection coefficient = when port 2 is matched. So return loss in dB is .
- Insertion loss = in dB (or gain = for amplifiers).
- Reciprocal networks (passive, no ferrites): .
- Lossless networks: matrix is unitary, .
- Symmetric networks (input and output identical): .
12.4 Multi-port S-parameters
For an -port network, is . A circulator has a 3-port matrix with and other entries near 0. A magic-T has the 4-port matrix described in Section 10.5. S-parameters generalize cleanly to any number of ports.
12.5 De-embedding
You measure a chip on a fixture and want chip-only S-parameters. De-embedding is the math that subtracts out the fixture. Measure the fixture alone (with a "thru" or "open" or "short"), characterize its matrix, then compute the chip's matrix from the cascaded measurement. Standard calibration techniques for this include TRL (Thru-Reflect-Line) and SOLT (Short-Open-Load-Thru). VNA software does this automatically once calibration standards are measured.
12.6 Working with S-parameters in Python
scikit-rf is the open-source Python library every modern RF engineer uses. A taste:
import skrf as rf
import numpy as np
# Load a Touchstone S2P file (the standard format for 2-port S-parameters)
amplifier = rf.Network('lna_data.s2p')
# Frequency vector and S-parameter magnitudes
f_ghz = amplifier.f / 1e9
gain_db = 20 * np.log10(np.abs(amplifier.s[:, 1, 0])) # |S21|
return_loss_db = -20 * np.log10(np.abs(amplifier.s[:, 0, 0])) # -|S11|
# Find peak gain frequency
peak_idx = np.argmax(gain_db)
print(f"Peak gain {gain_db[peak_idx]:.2f} dB at {f_ghz[peak_idx]:.2f} GHz")
# Cascade two networks (e.g. amp followed by attenuator)
attenuator = rf.Network('att_10dB.s2p')
chain = amplifier ** attenuator # ** is the cascade operator in skrf
chain.write_touchstone('chain_output')
# Plot Smith chart of input impedance
import matplotlib.pyplot as plt
amplifier.plot_s_smith(m=0, n=0) # S11 on Smith chart
plt.show()The .s2p Touchstone files are produced by every commercial VNA (Vector Network Analyzer). Format is simple text: a header with frequency units and reference impedance, then rows of frequency | S11mag S11phase | S21mag S21phase | S12mag S12phase | S22mag S22phase.
12.7 Two-port S-parameter network diagram
Each is a complex coefficient mapping incident wave at port into reflected wave at port .