Skip to main content

Reference Equations

All formulas used by the analysis engine. No derivations — only the equations applied, their inputs, and references.


Total gain

Gtotal=G1+G2++Gn(dB)G_{\text{total}} = G_1 + G_2 + \cdots + G_n \quad \text{(dB)}

All stage gains are summed in dB. Passive stages (filters, attenuators) contribute negative gain equal to their insertion loss.


Power propagation

Pout=Pin+G(dBm)P_{\text{out}} = P_{\text{in}} + G \quad \text{(dBm)}

Requires Input Power to be set in the system spec. Without it, absolute power levels are UNKNOWN.


Cascaded noise figure (Friis formula)

Convert each stage's Noise Figure and Gain from dB to linear:

Fi=10NFi/10,gi=10Gi/10F_i = 10^{NF_i / 10}, \qquad g_i = 10^{G_i / 10}

Cascade:

Fcas=F1+F21g1+F31g1g2++Fn1g1g2gn1F_{\text{cas}} = F_1 + \frac{F_2 - 1}{g_1} + \frac{F_3 - 1}{g_1 g_2} + \cdots + \frac{F_n - 1}{g_1 g_2 \cdots g_{n-1}}

Convert back to dB:

NFcas=10log10(Fcas)(dB)NF_{\text{cas}} = 10 \log_{10}(F_{\text{cas}}) \quad \text{(dB)}

Implication: Stages early in the chain dominate the cascaded NF. A high-NF first stage is almost impossible to recover from, regardless of later stages.

Reference: Friis, H.T. (1944). "Noise Figures of Radio Receivers." Proc. IRE, 32(7), 419–422.


Cascaded IP3

This example uses "Output-referred" IP3 (OIP3), as opposed to "Input-referred" IP3 (IP3). The relationship between IIP3 and OIP3 is:

OIP3dBm=IIP3dBm+GdBOIP3_{\text{dBm}} = IIP3_{\text{dBm}} + G_{\text{dB}}

Convert each stage's OIP3 and Gain from dB to linear:

oip3i=10OIP3i/10,gi=10Gi/10oip3_i = 10^{OIP3_i / 10}, \qquad g_i = 10^{G_i / 10}

Cascade:

1OIP3total=1OIP31+1OIP32G1+1OIP33G1G2++1OIP3NG1G2GN1\frac{1}{OIP3_{\text{total}}}= \frac{1}{OIP3_1} + \frac{1}{OIP3_2 \cdot G_1} + \frac{1}{OIP3_3 \cdot G_1 G_2} + \cdots + \frac{1}{OIP3_N \cdot G_1 G_2 \cdots G_{N-1}}

Convert to dBm:

OIP3dBm=10log10(oip3mW)(dBm)OIP3_{\text{dBm}} = 10 \log_{10}(oip3_{mW}) \quad \text{(dBm)}

Cascaded IIP3:

IIP3cas=OIP3casGtotal(dBm)IIP3_{\text{cas}} = OIP3_{\text{cas}} - G_{\text{total}} \quad \text{(dBm)}

Implication: Each stage's nonlinearity contribution is scaled by the gain before it, so later stages dominate the overall OIP3 and the final amplifier typically sets the linearity limit.

Reference: Razavi, B. (2012). RF Microelectronics, 2nd ed. Prentice Hall. Ch. 2.


Cascaded OIP2

Similar recursive structure as OIP3:

1oip2cas=1oip21g2+1oip22\sqrt{\frac{1}{oip2_{\text{cas}}}} = \sqrt{\frac{1}{oip2_{1} \cdot g_2}} + \sqrt{\frac{1}{oip2_2}}

Convert to dBm:

OIP2dBm=10log10(oip2mW)(dBm)OIP2_{\text{dBm}} = 10 \log_{10}(oip2_{mW}) \quad \text{(dBm)}

Cascaded IIP2:

IIP2cas=OIP2casGtotal(dBm)IIP2_{\text{cas}} = OIP2_{\text{cas}} - G_{\text{total}} \quad \text{(dBm)}

Image frequency (heterodyne chains)

When a mixer is present in the chain, the image frequency (an unwanted sideband from the frequency conversion) is computed as:

Image=2×LORF\text{Image} = 2 \times LO - RF

This formula is valid for both high-side and low-side LO injection. The result is mathematically equivalent to:

  • High-side: Image=RF+2×IF\text{Image} = RF + 2 \times IF
  • Low-side: Image=RF2×IF\text{Image} = RF - 2 \times IF

The image location is important for filter design and spur management. If the image falls within the RF band, image rejection filtering becomes critical to prevent interference.

Note: The image frequency is computed directly from LO and RF center frequencies and is independent of the explicit IF value.


Cascaded OP1dB

Calculations for cascaded P1dB are done using "Output-referred" P1dB. The relationship between "Output-referred" to "Input-referred" is:

OP1dBdBm=IP1dBdBm+(GdB1)OP1dB_{\text{dBm}} = IP1dB_{\text{dBm}} + (G_{\text{dB}} - 1)

First convert to linear:

op1dB=10OP1dB10op1dB = 10^{\frac{OP1dB}{10}} g=10G10g = 10^{\frac{G}{10}}

Cascade:

1op1dBtotal=1op1dB1+1op1dB2g1+1op1dB3g1g2++1op1dBng1g2gn1\frac{1}{op1dB_{\text{total}}}= \frac{1}{op1dB_1} + \frac{1}{op1dB_2 \cdot g_1} + \frac{1}{op1dB_3 \cdot g_1 g_2} + \cdots + \frac{1}{op1dB_n \cdot g_1 g_2 \cdots g_{n-1}}
Convert to dBm: OP1dBdBm=10log10(op1dBmW)(dBm)OP1dB_{\text{dBm}} = 10 \log_{10}(op1dB_{mW}) \quad \text{(dBm)}

Cascaded IP1dB:

IP1dBcas=OP1dBcas(GdB1)(dBm)IP1dB_{\text{cas}} = OP1dB_{\text{cas}} - (G_{\text{dB}} - 1) \quad \text{(dBm)}

Headroom

Headroom refers to the dB margin between a signal level and a specified nonlinearity or limit.

P1dB Headroom=P1dBcasPout\text{P1dB Headroom} = P1dB_{\text{cas}} - P_{\text{out}}

Warning triggered when calculated headroom < Headroom Margin (default: 3 dB). Color coding: green ≥ margin, yellow 0 to margin, red < 0.


Noise spectral density (NSD)

NSDin=10log10(kTsys)+30 dB+NFsrc(dBm/Hz)NSD_{\text{in}} = 10\log_{10}(kT_{\text{sys}}) + 30\ \text{dB} + NF_{\text{src}} \quad \text{(dBm/Hz)}

where:

  • kk = Boltzmann constant (1.38×10231.38 \times 10^{-23} J/K)
  • TsysT_{\text{sys}} = system noise temperature (K), default 290 K
  • NFsrcNF_{\text{src}} = source noise figure (dB), default 0 dB
  • +30 dB+30\ \text{dB} converts dBW/Hz to dBm/Hz
NSDout=NSDin+Gtotal+NFtotal(dBm/Hz)NSD_{\text{out}} = NSD_{\text{in}} + G_{\text{total}} + NF_{\text{total}} \quad \text{(dBm/Hz)}

where:

  • GtotalG_{\text{total}} = total cascaded gain (dB)
  • NFtotalNF_{\text{total}} = cascaded noise figure (dB)

Noise floor

Noise Floor=NSDout+10log10(BWRF)(dBm)\text{Noise Floor} = NSD_{\text{out}} + 10\log_{10}(BW_{\text{RF}}) \quad \text{(dBm)}

where BWRFBW_{\text{RF}} = RF signal bandwidth (Hz), from RF Bandwidth in the system spec.


SNR

SNR=PoutNoise Floor(dB)\text{SNR} = P_{\text{out}} - \text{Noise Floor} \quad \text{(dB)}

where PoutP_{\text{out}} = estimated output power (dBm).


Output voltage

VRMS=Pout,WR×1000(mV)V_{\text{RMS}} = \sqrt{P_{\text{out,W}} \cdot R} \times 1000 \quad \text{(mV)} VPP=VRMS×22(mVpp)V_{\text{PP}} = V_{\text{RMS}} \times 2\sqrt{2} \quad \text{(mVpp)}

where:

  • Pout,WP_{\text{out,W}} = output power in watts
  • RR = system impedance (Ω), default 50 Ω

IMD

IMD3=2(PoutOIP3cas)(dBc)IMD3 = 2(P_{\text{out}} - OIP3_{\text{cas}}) \quad \text{(dBc)} IMD2=PoutOIP2cas(dBc)IMD2 = P_{\text{out}} - OIP2_{\text{cas}} \quad \text{(dBc)}

where:

  • OIP3casOIP3_{\text{cas}} = cascaded output third-order intercept (dBm)
  • OIP2casOIP2_{\text{cas}} = cascaded output second-order intercept (dBm)

Results are negative — intermodulation products are below the carrier.


Harmonic estimates

H3=IMD39.54(dBc)H_3 = IMD3 - 9.54 \quad \text{(dBc)} H2=IMD26.0(dBc)H_2 = IMD2 - 6.0 \quad \text{(dBc)}

Device-class estimates derived from IMD levels.


SFDR

SFDR=23(OIP3casNSDin10log10(BWRF)NFtotalGtotal)(dB)\text{SFDR} = \frac{2}{3}\left(OIP3_{\text{cas}} - NSD_{\text{in}} - 10\log_{10}(BW_{\text{RF}}) - NF_{\text{total}} - G_{\text{total}}\right) \quad \text{(dB)}

where BWRFBW_{\text{RF}} = RF signal bandwidth (Hz).

Requires: cascaded OIP3, cascaded NF, total gain, and RF Bandwidth.


Sensitivity (RX)

Sensitivity=Noise Floor+SNRreq(dBm)\text{Sensitivity} = \text{Noise Floor} + \text{SNR}_{\text{req}} \quad \text{(dBm)}

where SNRreq\text{SNR}_{\text{req}} = required SNR (dB), defaults to 0 dB when not set in the system spec.

Requires: RF Bandwidth and cascaded NF.


Psat margin (TX)

Psat margin=PsatPout,stage(dB)\text{Psat margin} = P_{\text{sat}} - P_{\text{out,stage}} \quad \text{(dB)}

Shown per stage for blocks with Output Psat set (PA, driver). A positive margin means the stage is operating below saturation.


Unit conversions used internally

ConversionFormula
dBm → WPW=10(PdBm30)/10P_W = 10^{(P_{\text{dBm}} - 30) / 10}
W → dBmPdBm=10log10(PW)+30P_{\text{dBm}} = 10 \log_{10}(P_W) + 30
dB → linearx=10xdB/10x = 10^{x_{\text{dB}} / 10}
linear → dBxdB=10log10(x)x_{\text{dB}} = 10 \log_{10}(x)
MHz → Hzmultiply by 10610^6

References

  • Friis, H.T. (1944). "Noise Figures of Radio Receivers." Proc. IRE, 32(7), 419–422.
  • Razavi, B. (2012). RF Microelectronics, 2nd ed. Prentice Hall. Ch. 2.
  • Pozar, D.M. (2012). Microwave Engineering, 4th ed. Wiley. Ch. 10.