Hertzon
Get started · Tutorial

13. A 2.4 GHz LNA: from the schematic to the board

Goal: a one-transistor low-noise amplifier for 2.4 to 2.5 GHz that can be built as drawn, with its bias, its stability, the parts on their footprints, the placed board, the 3D layout of that board and the board put back under the transistor. The finished project is examples/LNA_2G4.hzn (File > Open Example > LNA_2G4); this section builds it up in the order a designer would, and every step can be checked in the example. The parts, the values and the results are listed in CIRCUIT.md.

Who computes what: Hertzon draws the schematic, models the lines, junctions, vias and parts and reduces the whole linear circuit to the transistor pins; ngspice gives the bias point and the small-signal admittance of the transistor; circuitRF runs the harmonic balance. Install both (ngspice 43 or later) and put them on PATH, see CIRCUIT.md. The design LNA_Measured of the example needs neither: it has the transistor's measured S-parameters in place of the model.

13.1 The schematic

  1. File > New, Circuit, name LNA_2G4, Create. Drag a Substrate in and set it to the board: H 0.508mm, Er 3.66, TanD 0.0037, T 35um (RO4350B).
  2. Nonlinear > Nonlinear Device Q1: Kind Verilog-A, File models/nsvf4009sg4.va (onsemi's Gummel-Poon parameters of the NSVF4009SG4 with its package), Pins b c e1 e2 (the part has two emitter leads). Hertzon compiles the .va file with openvaf-r on the first analysis.
  3. The signal path, left to right: a Power Port RF_in, a 50 Ω Microstrip Line TL_in (W 1.1mm, L 5mm), the input match C1 and L1 in series (Lumped Elements > Series RLC with the parasitics of the 0402 parts: C1 = 3.6 pF with 0.3 nH and 0.15 Ω; L1 = 1.2 nH as a Parallel RLC with its loss and winding capacitance), a short trace TL_b (0.4 × 0.8 mm) to the base. From the collector a trace TL_c, the output DC block C2 (3.9 pF), TL_out and the Power Port RF_out.
  4. Emitter degeneration: from each emitter pin a trace TL_e1, TL_e2 (0.4 × 0.85 mm) to a Via to Ground with two vias of 0.3 mm. Their inductance sets the input match and keeps the stage stable; with the vias in the schematic, the analysis sees them as the board has them.
  5. Bias: Nonlinear > DC Voltage Source VCC (5 V), the collector resistor R1 (180 Ω) and the feedback resistor R2 (24 kΩ) from the collector to the base: VCE = 3 V and IC = 10 mA, and the current follows the current gain of the part. The collector is fed through L2 (6.8 nH, also the shunt element of the output match) and R3 (12 Ω), bypassed after R3 by C3 (68 pF) to a via, and C4 (1 µF) decouples the supply.
  6. Connect with wires (W) or with Net Labels of the same name.

The LNA schematic The schematic of LNA_2G4: the 50 Ω feed lines, C1/L1 and C2/L2 as the matching networks, the emitter traces with their vias, and the collector-feedback bias from VCC. Every line and via is a part, so the analysis sees the board.

13.2 Bias, gain and stability

  1. Simulation > Sweep: the setup SParameters_ngspice has two sweeps, Band (2 to 3 GHz) and Wide (10 MHz to 12 GHz) for the stability. Its Analysis is S-Parameters.
  2. Analyze (F5). ngspice solves the bias point first (the ports are their 50 Ω to ground, as on an instrument), then the small-signal admittance of Q1 about it; Hertzon adds it to the network. The bias is in operating_point.json of the results: VCE 3.01 V, supply current 10.3 mA.
  3. Results > Rectangular Plot dB(S(2,1)), dB(S(1,1)), dB(S(2,2)): 13.2 to 12.9 dB gain, S11 and S22 below −14 dB in the band.
  4. Stability: the report Stability (mu > 1) plots the two Edwards-Sinsky factors mu_load and mu_source, defined once under Output Variables... of the report dialog from the S-parameters. Both stay above 1 from 10 MHz to 12 GHz: the stage is unconditionally stable. R3 is what makes it so below the band (C3 bypasses there, so the collector sees R3 as a load).
  5. Compression: add an analysis (right-click Analysis > Add Analysis), Analysis Harmonic Balance, Fundamental 2.45GHz, Harmonics 5, Drive port RF_in, Available power -30:1:0. circuitRF runs it on Hertzon's network and writes harmonic_balance.csv with the power of every harmonic at every port: the output 1 dB compression point is 6.1 dBm (setup Compression_circuitRF of the example).

The same board with onsemi's measured transistor data (design LNA_Measured, Hertzon alone) gives 13.6 to 13.3 dB and S11, S22 below −13.9 dB, so the model and the measurement agree within a few tenths of a dB:

S-parameters with the measured transistor LNA_Measured: gain and match from 2 to 3 GHz with the measured S-parameters of the NSVF4009SG4 at VCE = 3 V, IC = 10 mA.

13.3 Footprints and the board

  1. Double-click Q1. Under Footprint choose SC-82FL_MCPH4 (built in, as onsemi recommends it) or a KiCad .kicad_mod file of the part; Pads says which pad belongs to which pin: b=3; c=1; e1=4; e2=2. The drawing colours each pad by its pin and lists a pin without a pad as an error.
  2. Give every R, L and C its package: C_0402, L_0402, R_0402.

The footprint of the transistor The dialog of Q1: the Verilog-A model with its pins, and the footprint with the pads coloured by pin.

  1. Simulation > Board Layout shows the board from the top. The first time, every part is placed as the schematic is drawn. Drag the parts where they belong, R turns them; connections the copper does not make yet are dashed (ratsnest), copper of two nets on each other is outlined in red, and the status line counts both. Track draws copper the schematic does not have, such as the DC line to VCC.

The placed board Board Layout of the LNA: the 50 Ω lines, the 0402 parts on their pads, Q1 in SC-82FL with its emitter traces and vias, the bias network folded up above the signal path. "All connections made" in the status line.

13.4 The 3D layout and the board under the transistor

  1. Create 3D Layout (on the board toolbar or Simulation > 3D Layout). Hertzon builds LNA_Layout as placed: the substrate and the ground plane, the copper of the lines and pads, the vias, every R, L and C as a Lumped RLC sheet between its pads, and a Lumped Port at every pad of Q1 (Q1_b_pad3, Q1_c_pad1, Q1_e1_pad4, Q1_e2_pad2) and at the supply (VCC_supply). The messages list what the board has and the schematic has not, for example the via in the ground pad of C4 and the DC track.
  2. Analyze LNA_Layout (F5). This is the board alone, full wave: lines, pads, vias and the coupling between them.
  3. Back in the schematic, Simulation > Board Circuit. It makes LNA_Board: the solved layout as one block, Q1 connected pad by pad to its ports by net labels, the power ports and VCC at theirs, with the setups of the schematic. It also makes LNA_BoardModel, the schematic without its devices, as the circuit model of the block: the bias point needs the DC paths of the board, which the full-wave data (above 0 Hz) do not have.
  4. Analyze LNA_Board: the S-parameters of the transistor on the full-wave board, with the bias from ngspice; the harmonic balance works the same.

The 3D layout of the board LNA_Layout, built from the placed board: the feed lines, the pads of the 0402 parts and of Q1, the vias of the emitters and of the bypass capacitor.

The board circuit LNA_Board: the 3D layout as a block with a port per pad, Q1 on its pads and VCC on its supply port. The block is grey (NO MODEL) until LNA_Layout is solved.

This chain is checked end to end: lines and a transistor laid out, solved in 3D and put back on their pad ports give the S-parameters of the schematic within 0.1 dB in S21 from 1 to 4 GHz (tests/test_circuit_layout.py).


View this page on GitHub