Skip to content
Franco AlcarazWriting

IQ modulation in practice: carrier leakage and the image

A visual tour of IQ modulator impairments (offset, gains, quadrature, cross-coupling and delay) and of the single model that lets you compensate them.

Article10 min readLeer en español

On this page
  1. A real signal, two numbers per instant
  2. The real chain
  3. Five impairments, two symptoms
  4. DC offset: the circle shifts
  5. Gain imbalance: the ellipse is two circles
  6. Quadrature error: axes that are not perpendicular
  7. Cross-coupling between branches: it depends on the circuit
  8. Differential delay: the “bat wings”
  9. One model for everything
  10. Calibrating without fooling yourself
  11. In summary
  12. The full report
  13. References

You generate a clean baseband tone, convert it with two DACs, run it through an IQ modulator and look at the spectrum analyzer. You expected one line at f0+fmf_0+f_m, and three show up: yours, another one right at the local oscillator frequency f0f_0, and a third, smaller one mirrored at f0−fmf_0-f_m. The middle one is carrier leakage; the mirrored one is the image.

Neither is mysterious. Both can be read from a single picture: the complex-envelope vector seen from a frame that rotates with the local oscillator. In this article I go through that picture and what each hardware impairment does to it: DC offset, gain imbalance, quadrature error, cross-coupling between branches and differential delay. In the end, all of them fit into one model that can be inverted to predistort the signal.

The complete derivations, circuits and validity conditions are in the full report, which you can download at the end.

A real signal, two numbers per instant

An IQ modulator takes two real signals, I(t)I(t) and Q(t)Q(t), and produces1

s(t)=Re⁡{b(t)ej2πf0t}=I(t)cos⁡(2πf0t)−Q(t)sin⁡(2πf0t),b(t)=I(t)+jQ(t).s(t)=\operatorname{Re}\{b(t)\,e^{j2\pi f_0t}\}=I(t)\cos(2\pi f_0t)-Q(t)\sin(2\pi f_0t), \qquad b(t)=I(t)+jQ(t).

b(t)b(t) is the complex envelope: a vector in the plane whose coordinates are II and QQ. It is worth not confusing the orthogonality of the axes with a time relationship between the signals: II and QQ can be any two real functions. Sine and cosine only appear in a particular case, a tone [1].

That case is precisely the most instructive one. With b(t)=Amejωmtb(t)=A_me^{j\omega_mt}, the vector traces a circle of radius AmA_m rotating at ωm=2πfm\omega_m=2\pi f_m, and the output is a single tone at f0+fmf_0+f_m. With a negative fmf_m, the vector rotates the other way and the tone falls below the LO.

Two panels. On the left, a vector in the complex plane with its I and Q projections on the axes. On the right, two vectors rotating in opposite directions around the origin.

(a) The envelope vector and its I and Q coordinates. (b) In the frame rotating at f0f_0, a component at f0+fmf_0+f_m rotates at +ωm+\omega_m and one at f0−fmf_0-f_m rotates at −ωm-\omega_m.

That rotating frame is the key to reading everything that follows. If we “ride” on the local oscillator, every spectral line around f0f_0 becomes a vector:

  • a static vector is energy exactly at f0f_0 (carrier leakage);
  • a vector rotating counterclockwise at ωm\omega_m is a line at f0+fmf_0+f_m;
  • a vector rotating clockwise at ωm\omega_m is a line at f0−fmf_0-f_m (the image of our tone).

Ideal tone: a single rotating vector tracing a perfect circle. On the right, both coordinates over time.

In the figures, blue is the desired signal, red the image and gray the offset; the vectors are chained, so their sum traces the envelope trajectory, and the dashed circle is the ideal trajectory. In the animations, the middle inset magnifies the small vector, which is barely visible at scale, and the right panel shows II (blue) and QQ (red) over time.

The real chain

In practice, II and QQ come from memory or from a digital generator, go through two DACs with a common clock, are amplified and filtered, and reach two mixers fed by the LO through a 0°/90° splitter. The two branches are summed, and the RF is amplified and filtered again.

Block diagram: memory, two DACs with a common clock, filters and amplifiers on the I and Q branches, two mixers fed by a local oscillator through a 0 and 90 degree splitter, a summer and the RF stage.

Typical generation chain. Every block can introduce a difference between the I and Q branches.

Before reaching the mixer, the DAC itself already distorts the signal. The zero-order hold has a |sinc(f/fs)||\mathrm{sinc}(f/f_s)| response: it drops 3.923.92 dB at fs/2f_s/2 and leaves sampling images around every multiple of fsf_s. With fs=60f_s=60 MHz and a ±25\pm25 MHz band of interest, the band edge sits at −2.64-2.64 dB. You can pre-compensate within the band [2], but that gain eats headroom: to avoid saturation, the table must be normalized to the band-edge level. And pre-compensation does not remove the images; that is the job of the reconstruction filter, which in this example must transition between 25 and 35 MHz.

Two spectra under the DAC's sinc envelope: three tones in the band of interest and their sampling images around 60 and 120 megahertz, without and with pre-compensation.

Output of a 60 MS/s DAC for three tones: (a) uncompensated; (b) with pre-compensation limited to the band of interest and normalized to the band-edge level.

A correction common to I and Q compensates a common response. What is interesting, and what produces leakage and image, are the differences between branches.

Five impairments, two symptoms

All the impairments below produce one of two symptoms: a static vector appears (LO leakage) or a vector rotating the other way appears (image) [3]. To quantify the image I always use the same convention:

Limg=20log10⁡|ED| [dBc],IRR=−Limg [dB],L_{\rm img}=20\log_{10}\left|\frac{E}{D}\right|\ \text{[dBc]},\qquad \mathrm{IRR}=-L_{\rm img}\ \text{[dB]},

where DD and EE are the complex amplitudes of the desired component and of the image. An image level of −40-40 dBc is an image rejection of 40 dB.

DC offset: the circle shifts

An offset in each branch adds a constant to the envelope: bO(t)=b(t)+OI+jOQb_O(t)=b(t)+O_I+jO_Q. In the LO frame it is a fixed vector, so the circle shifts and a line appears in the RF exactly at f0f_0:

LLO=20log10⁡OAm [dBc],O=OI2+OQ2.L_{\rm LO}=20\log_{10}\frac{O}{A_m}\ \text{[dBc]},\qquad O=\sqrt{O_I^2+O_Q^2}.

An offset of 5 % of the desired amplitude leaves the leakage at −26-26 dBc.

Offset of OI=0.04O_I=0.04 and OQ=0.03O_Q=0.03 (5 % of the amplitude): the gray vector is static and shifts the center of the trajectory. The inset magnifies the offset, which is barely visible on the main scale.

The correction is to subtract the offset, either digitally before the DACs (which costs range) or with auxiliary DACs afterwards (which preserves the range of the signal DACs). In practice a single pass is not enough: the real leakage is the vector sum of the converted offset and the direct LO feedthrough to the output, and the two adjustment directions are usually not orthogonal. You have to alternate I and Q adjustments until the minimum stops improving.

Gain imbalance: the ellipse is two circles

If the branches have different gains GIG_I and GQG_Q, the circle becomes an ellipse. The revealing step is to rewrite it as:

GII(t)+jGQQ(t)=αb(t)+βb∗(t),α=GI+GQ2,β=GI−GQ2.G_II(t)+jG_QQ(t)=\alpha\,b(t)+\beta\,b^*(t),\qquad \alpha=\frac{G_I+G_Q}{2},\quad \beta=\frac{G_I-G_Q}{2}.

The b∗(t)b^*(t) term is the image: for a tone it rotates the other way. The ellipse is nothing but the sum of two vectors rotating in opposite directions.

Two panels. On the left, a flattened ellipse instead of the ideal circle. On the right, the same ellipse split into a large blue vector and a small red one chained at its tip.

With GI=1.2G_I=1.2 and GQ=0.7G_Q=0.7: (a) elliptical trajectory; (b) the same trajectory as the sum of a desired component (+ωm+\omega_m) and an image (−ωm-\omega_m).

The image level is 20log10⁡|(GI−GQ)/(GI+GQ)|20\log_{10}|(G_I-G_Q)/(G_I+G_Q)|. A ±5 % imbalance (GI=1.05G_I=1.05, GQ=0.95G_Q=0.95) leaves the image at −26-26 dBc; reaching 40 dB of rejection requires an imbalance of ±1 % or less, and that is with no other error present. Note that these are two different metrics: equalizing the gains cancels the image, but the desired amplitude also depends on their average.

A ±5 % imbalance: the red vector, chained to the blue one, rotates backwards. It is little more than a correction to the trajectory, yet it already leaves the image at −26-26 dBc.

Quadrature error: axes that are not perpendicular

If the two carriers are not exactly 90° apart, with phase errors ϕI\phi_I and ϕQ\phi_Q, the effective axes of the plane are no longer orthogonal. With Δϕ=ϕI−ϕQ\Delta\phi=\phi_I-\phi_Q and ϕ‾=(ϕI+ϕQ)/2\bar\phi=(\phi_I+\phi_Q)/2, the model takes the same form again:

α=ejϕ‾cos⁡Δϕ2,β=jejϕ‾sin⁡Δϕ2,|ED|=tan⁡|Δϕ|2.\alpha=e^{j\bar\phi}\cos\frac{\Delta\phi}{2},\qquad \beta=je^{j\bar\phi}\sin\frac{\Delta\phi}{2},\qquad \left|\frac{E}{D}\right|=\tan\frac{|\Delta\phi|}{2}.

The common phase ϕ‾\bar\phi only rotates everything; the difference Δϕ\Delta\phi is what creates the image and tilts the ellipse. A quadrature error of 1° leaves the image at −41-41 dBc.

Phase errors of 27° and 9° (exaggerated so they show): the ellipse is tilted and the image, in the inset, rotates opposite to the desired signal.

Gain and phase combine coherently:

PimgPdes=GI2+GQ2−2GIGQcos⁡ΔϕGI2+GQ2+2GIGQcos⁡Δϕ.\frac{P_{\rm img}}{P_{\rm des}}= \frac{G_I^2+G_Q^2-2G_IG_Q\cos\Delta\phi}{G_I^2+G_Q^2+2G_IG_Q\cos\Delta\phi}.

You cannot add the dB levels of each error as if they were independent powers. Improving the phase may go unnoticed if the gain dominates, and vice versa.

Cross-coupling between branches: it depends on the circuit

Both branches live on the same board: parasitic capacitances, shared supplies, return paths. In general, the output is a 2×22\times2 transfer matrix that mixes II and QQ, and its frequency dependence cannot be inferred by naming the mechanism (“it’s capacitive”, “it’s inductive”): it is set by the source and load impedances.

A concrete example: two sources with series resistance RSR_S, loads RLR_L and a capacitance CMC_M between branches.

Circuit: two sources, I and Q, each with its series resistance and its load to ground, joined by a coupling capacitor.

Lumped model of capacitive coupling between symmetric branches.

Solving the circuit, with x=ωmRCMx=\omega_m R C_M and R=RS∥RLR=R_S\parallel R_L, the image-to-desired ratio is x/1+x2x/\sqrt{1+x^2}: −20-20 dBc for x=0.1x=0.1, −7-7 dBc for x=0.5x=0.5, and 0 dBc when the coupling is very strong. In that limit the trajectory collapses into a line at 45°: desired component and image have the same magnitude, and no finite predistortion can recover the signal, because two degrees of freedom go through a single direction.

Capacitive coupling with RS=RL=50 ΩR_S=R_L=50\ \Omega and CM=5C_M=5 nF for a 125 kHz tone (x≈0.1x\approx0.1): image at −20-20 dBc.

Three IQ planes. With weak coupling the trajectory is almost a circle; with moderate coupling, an ellipse; with strong coupling, almost a line at 45 degrees.

Desired and image components of the capacitive circuit for x=0.05x=0.05, 0.50.5 and 55.

Moreover, unlike quadrature error, the image grows with the tone frequency: two tones of equal amplitude have different images.

Differential delay: the “bat wings”

If one branch arrives earlier than the other, because of traces of different length or different filters, each tone sees a phase shift that grows with its frequency. For a differential delay Δτ=τI−τQ\Delta\tau=\tau_I-\tau_Q:

|ED|=|tan⁡(πfmΔτ)|≃π|fmΔτ|.\left|\frac{E}{D}\right|=|\tan(\pi f_m\Delta\tau)|\simeq\pi|f_m\Delta\tau|.

A 0.5 µs differential delay with a 125 kHz tone: for a single tone it looks like a quadrature error, and the image sits at −14-14 dBc.

For a single tone, a delay cannot be told apart from a phase error. The difference shows up when the tone changes: the image is zero at fm=0f_m=0 and grows at 20 dB per decade; plotted in dB around zero, it looks like a pair of bat wings. The number worth remembering: for 40 dB of rejection up to 25 MHz, the differential delay must be below about 127 ps, and that is with no other errors.

Two plots. On a linear scale, the desired signal drops slightly and the image rises from zero away from f_m equal to zero. In decibels, the image draws a V shaped like bat wings.

Desired signal and image versus fmΔτf_m\Delta\tau, on linear and logarithmic scales.

The most useful diagnostic appears when delay and quadrature error combine: the image null is no longer at f0f_0 and moves to

fm,min⁡=−Δϕ2πΔτ.f_{m,\min}=-\frac{\Delta\phi}{2\pi\,\Delta\tau}.

If, when sweeping tones, the image minimum is not at the center, you have both at the same time. Correcting the LO phase brings the minimum back to f0f_0, but the delay is still there.

Three line spectra with three tones and their images: without errors, with delay and quadrature error (one of the images disappears), and with the quadrature corrected (the images grow with frequency).

With Δτ=0.5\Delta\tau=0.5 µs and Δϕ=−9°\Delta\phi=-9°, the image of the 50 kHz tone vanishes (b). After correcting the quadrature, the null returns to f0f_0 and the images grow with frequency (c).

One model for everything

Offset, gain, phase, symmetric coupling and delay (at a given frequency) all end up in the same form:

z(t)=αb(t)+βb∗(t)+c.z(t)=\alpha\,b(t)+\beta\,b^*(t)+c.

α\alpha is the gain and phase of the desired signal, β\beta produces the image and cc is the leakage referred to the LO frame.2

Two practical consequences:

  • Errors do not add up. When two blocks are chained, α=α2α1+β2β1∗\alpha=\alpha_2\alpha_1+\beta_2\beta_1^* and β=α2β1+β2α1∗\beta=\alpha_2\beta_1+\beta_2\alpha_1^*. The order matters, and so does the physical point where each correction is injected.
  • The model can be inverted. To obtain the desired envelope zdz_d at the output, you generate
bpre=α∗(zd−c)−β(zd−c)∗|α|2−|β|2.b_{\rm pre}=\frac{\alpha^*(z_d-c)-\beta\,(z_d-c)^*}{|\alpha|^2-|\beta|^2}.

That formula corrects gain, phase, cross-mixing and offset at once [4]. Near |α|=|β||\alpha|=|\beta| the denominator vanishes: that is the strong-coupling case, where the inverse amplifies noise and estimation errors.

When the errors depend on frequency, the coefficients become responses: Z(f)=A(f)B(f)+C(f)B∗(−f)Z(f)=A(f)B(f)+C(f)B^*(-f). That couples each frequency with its mirror, and the correction becomes a matrix of filters. A scalar correction tuned with a single tone does not prove that the whole band is compensated: a delay, for example, needs a phase proportional to frequency (a fractional-delay filter).

Calibrating without fooling yourself

A reasonable sequence, with a test tone that separates the signal, the LO and the image in the spectrum [5, 3]:

  1. Check that nothing saturates and measure the uncorrected state.
  2. Minimize LO leakage by alternating the I and Q DC adjustments.
  3. With a tone, adjust differential gain and quadrature, alternating, and keep an eye on the desired amplitude.
  4. Repeat with tones spread across the band, positive and negative, including some near zero (but not at zero, where signal and image coincide).
  5. If the image changes systematically with frequency, adjust a differential delay or estimate the full matrix, and check the conditioning.
  6. Measure everything again with all corrections applied together.
  7. Validate with a representative signal, such as a chirp or a multitone.

In summary

  • In the LO frame, carrier leakage is a still vector and the image is a vector rotating backwards. With that mental picture you can diagnose almost everything.
  • Gain, phase, coupling and delay are different paths to the same conjugate term βb∗\beta\,b^*; what changes is how it depends on frequency, and that dependence is the best clue to which one dominates.
  • Minimizing the image is necessary but not sufficient: you also have to preserve the amplitude and phase of the desired signal, and verify across the whole band.

The full report

This article summarizes a longer report that develops everything in detail: the modulation and Fourier conventions, the finite-duration linear chirp, the DAC response, the nodal solution of the coupling circuit, the inversion of the frequency-dependent model and the calibration procedure.

IQ Modulation: Fundamentals, Analysis of Non-Idealities and Compensation Techniques53 pages · 1.3 MBOpenDownload

The first version of these notes dates from 2015. This is a rewrite: all figures and animations were computed from the model equations; they are simulations, not measurements of real hardware.

Notes

  1. Some implementations add Qsin⁡Q\sin instead of subtracting it. That is a different convention: to carry the formulas over, flip the sign of QQ. What you should not do is mix both in the same derivation.↩

  2. It is called a widely linear model because it contains both the complex variable and its conjugate.↩

References

  1. Lyons, R. (2000). Quadrature Signals: Complex, But Not Complicated. DSP Training. ↩
  2. Integrated, M. (2012). Equalizing Techniques Flatten DAC Frequency Response. Application note 3853. ↩
  3. Nash, E. (2009). AN-1039: Correcting Imperfections in IQ Modulators to Improve RF Signal Fidelity. Analog Devices. ↩
  4. Xu, X., & Wen, K. (2007). Modeling and Compensation of a Non-Ideal I/Q-Modulator. Master's thesis, Chalmers University of Technology (report EX083/2007). ↩
  5. Hansen, J. (2013). Vector Modulation and Frequency Conversion Fundamentals. Agilent Technologies. ↩

Search