229-A1.2
- Activity: Passive Matching Networks
- Instructions: Each activity is structured as a tutorial, and you are expected to download the netlists, run the simulation, and make sure you understand the concepts and ideas presented. Should you have any questions, clarifications, or issues, please contact your instructor as soon as possible.
- If you are new to ngspice, please visit the ngspice Tutorial page.
- At the end of this activity, the student should be able to:
- Design and verify the performance of passive impedance matching circuits using ngspice.
Contents
Case 1:
Let's design a single L-section circuit between a voltage source with output resistance, and an amplifier with input resistance, .
- Calculate the matching factor, ,and the quality factor, .
-
(1)
-
-
(2)
-
- Calculate the value of the reactance parallel to the larger resistance. In this case, the larger resistance is .
-
(3)
-
- Calculate the second reactance, , used to cancel .
-
(4)
-
- If we want a lowpass matching circuit, we need to use a capacitor for , and an inductor for . We can then calculate the capacitor and inductor values for .
-
(5)
-
-
(6)
-
We can then create a SPICE netlist so we can verify the performance of our matching network. For circuits that you will reuse often, it is more often convenient to create a sub-circuit. In this case, a sub-circuit for our lowpass L-section, which we can save in a separate file, (such as matching_subckts.sp).
1 * Passive Matching Circuits
2 * LPA 05 Aug 2020
3 .subckt l_match_lp hiR loR C=1p L=1n
4
5 V1 hiR z dc=0 ac=0
6 C1 z y {C}
7 VC1 y 0 dc=0 ac=0
8 L1 loR x {L}
9 VL1 x z dc=0 ac=0
10
11 .ends l_match_lp
Note that the two voltage sources, VC1, VL1 and V1, do not affect the circuit since they are set to zero volts. These dummy voltage sources are just there so we can measure the currents in all the branches of the L-section.
We can then instantiate this sub-circuit, as instance X1, in our main SPICE file:
1 * Passive Matching Circuits
2 * LPA 05 Aug 2020
3
4 .options savecurrents seed=random
5 .include matching_subckts.sp
6
7 X1 hir lor l_match_lp C=636.62f L=795.77p
8 Rs hir vin 50
9 Rl lor 0 25
10
11 Vs vin 0 dc=0 ac=1
12
13 .control
14 ac dec 1000 100meg 100G
15
16 let pin = abs(v(hir)*i(vs))
17 let pout = abs(v(lor)*i(v.x1.vl1))
18 let zin = abs(v(hir)/i(vs))
19 let zout = abs(v(lor)/i(v.x1.vl1))
20
21 meas ac poutmax max pout from=100meg to=100G
22 meas ac zinf0 find zin at=5G
23 meas ac zoutf0 find zout at=5G
24 .endc
25
26 .end
We can also include simple expressions to calculate the power entering the matching network, the power delivered to , the input and output impedances, as well as the value of the maximum power delivered to the load, and the impedances at .