design broadband matching networks for amplifier -凯发k8网页登录
this example shows how to design broadband matching networks for a low noise amplifier (lna) with ideal and real-world lumped lc elements. the real-world lumped lc elements are obtained from the modelithics select library™. the lna is designed to the target gain and noise figure specifications over a specified bandwidth. a direct-search based approach is used to arrive at the optimum element values in the input and output matching networks.
in an rf receiver front end, the lna is commonly found immediately after the antenna or after the first bandpass filter that follows the antenna. its position in the receiver chain ensures that it deals with weak signals that have significant noise content. as a result the lna has to not only provide amplification to such signals but also minimize its own noise footprint on the amplified signal.
figure 1: impedance matching of an amplifier
set design parameters
the design specifications are as follows.
amplifier is an lna amplifier
center frequency = 250 mhz
bandwidth = 100 mhz
transducer gain greater than or equal to 10 db
noise figure less than or equal to 2.0 db
operating between 50-ohm terminations
specify design parameters
you are building the matching network for an lna with a bandpass response, so specify the bandwidth of match, center frequency, gain, and noise figure targets.
bw = 100e6; % bandwidth of matching network (hz) fc = 250e6; % center frequency (hz) gt_target = 10; % transducer gain target (db) nftarget = 2; % max noise figure target (db)
specify the source impedance, reference impedance, and the load impedance.
zs = 50; % source impedance (ohm) z0 = 50; % reference impedance (ohm) zl = 50; % load impedance (ohm)
create amplifier object and perform analysis
create an amplifier
object from .
mismatched_amp = amplifier(filename='lnadata.s2p');
define the number of frequency points to use for analysis and set up the frequency vector.
npts = 32; % no. of analysis frequency points flower = fc - (bw/2); % lower band edge fupper = fc (bw/2); % upper band edge freq = linspace(flower,fupper,npts); % frequency array for analysis
perform frequency domain analysis on the mismatched amplifier.
sparam = sparameters(mismatched_amp,freq);
bmismatched = rfbudget(mismatched_amp,freq',-30,bw);
[k,~,~,delta] = stabilityk(sparam);
ga = powergain(sparam,'ga');
examine stability, power gain, and noise figure
plot the lna stability parameters and examine stability, power gain and noise figure.
figure plot(freq*1e-6,abs(delta)) hold on plot(freq*1e-6,k) legend('delta','k','location','best') title('device stability parameters') xlabel('frequency [mhz]') ylabel('magnitude') grid on hold off
as the plot shows, and for all frequencies in the bandwidth of interest. this means that the device is unconditionally stable. it is also important to view the power gain and noise figure behavior across the same bandwidth. together with the stability information this data allows you to determine if the gain and noise figure targets can be met.
figure plot(freq*1e-6,10*log10(ga)) hold on plot(freq*1e-6,bmismatched.transducergain) legend('ga','gt','location','east') xlabel('frequency [mhz]') ylabel('magnitude [db]') hold off grid on
this plot, shows the power gain across the 100-mhz bandwidth. it indicates that the transducer gain varies linearly between 5.5 db to about 3.1 db and achieves only 4.3 db at band center. it also suggests there is sufficient headroom between the transducer gain gt
and the available gain ga to achieve our target gt
of 10 db.
figure plot(mismatched_amp.noisedata.frequencies*1e-6,mismatched_amp.noisedata.fmin) hold on plot(freq*1e-6,bmismatched.nf) hold off axis([200 300 0 2]) legend('fmin','nf','location','northeast') xlabel('frequency [mhz]') ylabel('magnitude [db]') grid on
this plot shows the variation of the noise figure with frequency. the unmatched amplifier clearly meets the target noise figure requirement. however this would change once the input and output matching networks are included. most likely, the noise figure of the lna would exceed the requirement.
design input and output matching networks
the region of operation is between 200 — 300 mhz. therefore, choose a bandpass topology for the matching networks which is shown here.
figure 2: matching network topology
the topology chosen, as seen in figure 2, is a direct-coupled prototype bandpass network of parallel resonator type with top coupling [2], that is initially tuned to the geometric mean frequency with respect to the bandwidth of operation.
n = 3; % order of input/output matching network wu = 2*pi*fupper; % upper band edge wl = 2*pi*flower; % lower band edge w0 = sqrt(wl*wu); % geometric mean
for the initial design all the inductors are assigned the same value on the basis of the first series inductor. as mentioned in [3], choose the prototype value to be unity and use standard impedance and frequency transformations to obtain denormalized values [1]. the value for the capacitor in the parallel trap is set using this inductor value to make it resonate at the geometric mean frequency. note that there are many ways of designing the initial matching network. this example shows one possible approach.
lvaluesin = (zs/(wu-wl))*ones(n,1); % series and shunt l's [h] cvaluesin = 1 / ( (w0^2)*lvaluesin(2)); % shunt c [f] lvaluesout = lvaluesin; cvaluesout = cvaluesin;
build matching networks
build each branch of the matching network and then define the circuit as a two-port network. this example uses identical input and output matching networks.
inputmatchingnw = circuit; add(inputmatchingnw,[1 2],inductor(lvaluesin(1))); add(inputmatchingnw,[2 0],inductor(lvaluesin(2))); add(inputmatchingnw,[2 0],capacitor(cvaluesin)); add(inputmatchingnw,[2 3],inductor(lvaluesin(3))); setports(inputmatchingnw,[1 0],[3 0]); outputmatchingnw = circuit; add(outputmatchingnw,[1 2],inductor(lvaluesout(1))); add(outputmatchingnw,[2 0],inductor(lvaluesout(2))); add(outputmatchingnw,[2 0],capacitor(cvaluesout)); add(outputmatchingnw,[2 3],inductor(lvaluesout(3))); setports(outputmatchingnw,[1 0],[3 0]);
optimize input & output matching network
there are several points to consider prior to the optimization.
objective function: the objective function can be built in different ways depending on the problem at hand. for this example, the objective function is shown in the file below.
choice of cost function: the cost function is the function you would like to minimize (maximize) to achieve near optimal performance. there could be several ways to choose the cost function. for this example you have two requirements to satisfy simultaneously, i.e. gain and noise figure. to create the cost function you first, find the difference, between the most current optimized network and the target value for each requirement at each frequency. the cost function is the l2-norm of the vector of gain and noise figure error values.
optimization variables: in this case it is a vector of values, for the specific elements to optimize in the matching network.
optimization method: a direct search based technique, the matlab® function , is used in this example to perform the optimization.
number of iterations/function evaluations: set the maximum no. of iterations and function evaluations to perform, so as to tradeoff between speed and quality of match.
tolerance value: specify the variation in objective function value at which the optimization process should terminate.
the objective function used during the optimization process by fminsearch
is shown here.
type('broadband_match_amplifier_objective_function.m')
function output = broadband_match_amplifier_objective_function(amp,inmnw,outmnw,lc_optim,freq,gt_target,nf) %broadband_match_amplifier_objective_function is the objective function. % output = broadband_match_amplifier_objective_function(amp,inmnw,outmnw,lc_optim,freq,gt_target,nf) % returns the current value of the objective function stored in output % evaluated after updating the element values in the object, inmnw and % outmnw. the inductor and capacitor values are stored in the variable % lc_optim. % % broadband_match_amplifier_objective_function is an objective function of rf toolbox demo: % designing broadband matching networks (part ii: amplifier) % 凯发官网入口首页 copyright 2023 the mathworks, inc. % ensure positive element values if any(lc_optim<=0) output = inf; return; end % update matching network elements - the object inmnw and outmnw have % several properties among which the cell array 'elements' consists of all % lc elements in the circuit. inmnw.elements(1).inductance = lc_optim(1); inmnw.elements(2).inductance = lc_optim(2); inmnw.elements(4).inductance = lc_optim(3); inmnw.elements(3).capacitance = lc_optim(4); outmnw.elements(1).inductance = lc_optim(5); outmnw.elements(2).inductance = lc_optim(6); outmnw.elements(4).inductance = lc_optim(7); outmnw.elements(3).capacitance = lc_optim(8); % perform analysis on tuned matching network npts = length(freq); bw = max(freq) - min(freq); np1 = nport(sparameters(inmnw,freq)); np2 = nport(sparameters(outmnw,freq)); b = rfbudget([np1 clone(amp) np2],freq',-30,bw); % calculate transducer power gains and noise figures of the amplifier gt = b.transducergain(:,end); nf_amp = b.nf(:,end); % calculate target gain and noise figure error errgt = (gt - gt_target); errnf = (nf_amp - nf); % check to see if gain and noise figure target are achieved by specifying % bounds for variation. deltag = 0.40; deltanf = -0.05; errgt(abs(errgt)<=deltag) = 0; errnf(errnf
the optimization variables are all the elements (inductors and capacitors) of the input and output matching networks.
niter = 125; % max no of iterations options = optimset('display','iter','tolfun',1e-2,'maxiter',niter); % set options structure lc_optimized = [lvaluesin;cvaluesin;lvaluesout;cvaluesout]; lc_optimized = fminsearch(@(lc_optimized) broadband_match_amplifier_objective_function(mismatched_amp,inputmatchingnw,... outputmatchingnw,lc_optimized,freq,gt_target,nftarget),lc_optimized,options);
iteration func-count f(x) procedure 0 1 30.4869 1 9 28.3549 initial simplex 2 11 25.5302 expand 3 12 25.5302 reflect 4 13 25.5302 reflect 5 14 25.5302 reflect 6 16 22.8228 expand 7 17 22.8228 reflect 8 19 19.0289 expand 9 20 19.0289 reflect 10 21 19.0289 reflect 11 22 19.0289 reflect 12 24 14.8785 expand 13 25 14.8785 reflect 14 27 10.721 expand 15 28 10.721 reflect 16 29 10.721 reflect 17 31 9.84796 expand 18 32 9.84796 reflect 19 33 9.84796 reflect 20 34 9.84796 reflect 21 35 9.84796 reflect 22 37 9.84796 contract outside 23 39 9.84796 contract outside 24 41 9.84796 contract inside 25 43 9.64666 reflect 26 45 9.64666 contract inside 27 46 9.64666 reflect 28 48 9.64666 contract inside 29 49 9.64666 reflect 30 51 9.64666 contract inside 31 53 7.9372 expand 32 55 7.9372 contract outside 33 56 7.9372 reflect 34 57 7.9372 reflect 35 58 7.9372 reflect 36 59 7.9372 reflect 37 60 7.9372 reflect 38 62 5.98211 expand 39 63 5.98211 reflect 40 64 5.98211 reflect 41 65 5.98211 reflect 42 66 5.98211 reflect 43 68 4.31973 expand 44 70 4.31973 contract inside 45 71 4.31973 reflect 46 72 4.31973 reflect 47 73 4.31973 reflect 48 74 4.31973 reflect 49 75 4.31973 reflect 50 77 2.83135 expand 51 79 1.17624 expand 52 80 1.17624 reflect 53 81 1.17624 reflect 54 82 1.17624 reflect 55 84 0.691645 reflect 56 85 0.691645 reflect 57 86 0.691645 reflect 58 88 0.691645 contract inside 59 90 0.691645 contract outside 60 91 0.691645 reflect 61 93 0.691645 contract inside 62 95 0.691645 contract inside 63 96 0.691645 reflect 64 97 0.691645 reflect 65 98 0.691645 reflect 66 100 0.691645 contract inside 67 102 0.691645 contract outside 68 103 0.691645 reflect 69 105 0.691645 contract inside 70 107 0.497434 reflect 71 109 0.497434 contract inside 72 111 0.497434 contract inside 73 112 0.497434 reflect 74 114 0.497434 contract inside 75 116 0.497434 contract inside 76 118 0.444957 reflect 77 120 0.402851 expand 78 122 0 reflect 79 123 0 reflect 80 125 0 contract inside 81 127 0 contract inside 82 128 0 reflect 83 129 0 reflect 84 130 0 reflect 85 131 0 reflect 86 132 0 reflect 87 133 0 reflect 88 134 0 reflect 89 135 0 reflect 90 137 0 contract inside
91 139 0 contract outside optimization terminated: the current x satisfies the termination criteria using options.tolx of 1.000000e-04 and f(x) satisfies the convergence criteria using options.tolfun of 1.000000e-02
update matching network and analyze lna
update the input and output matching networks with optimized element values, lc_optimized
.
inputmatchingnw.elements(1).inductance = lc_optimized(1); inputmatchingnw.elements(2).inductance = lc_optimized(2); inputmatchingnw.elements(4).inductance = lc_optimized(3); inputmatchingnw.elements(3).capacitance = lc_optimized(4); outputmatchingnw.elements(1).inductance = lc_optimized(5); outputmatchingnw.elements(2).inductance = lc_optimized(6); outputmatchingnw.elements(4).inductance = lc_optimized(7); outputmatchingnw.elements(3).capacitance = lc_optimized(8);
analyze the s-parameters of input and output matching networks and then convert the s-parameter data into an nport
object.
s1 = sparameters(inputmatchingnw,freq); np1 = nport(s1); s2 = sparameters(outputmatchingnw,freq); np2 = nport(s2);
use the rfbudget
object to calculate the transducer gain and the noise figure across the bandwidth. compute rf budget of the lna network. the lna network comprises of matching network and low noise amplifier.
bmatched = rfbudget([np1 clone(mismatched_amp) np2],freq',-30,bw);
verify design
plot the transducer gain and the noise figure and then compare the optimization results with the mismatched network.
plot(freq*1e-6,bmatched.transducergain(:,end)) hold all plot(freq*1e-6,bmismatched.transducergain(:,end)) plot(freq*1e-6,bmatched.nf(:,end)) plot(freq*1e-6,bmismatched.nf(:,end)) legend('g_t - matched','g_t - mismatched','nf - matched',... 'nf - mismatched','location','east') xlabel('frequency [mhz]') ylabel('magnitude [db]') axis([freq(1)*1e-6 freq(end)*1e-6 0 12]) grid on hold off
the plot shows that the target requirement for both gain and noise figure have been met. to understand the effect of optimizing with respect to only the transducer gain, use the first choice for the cost function. the cost function involves only the gain term within the objective function.
display optimized element values
display the optimized inductor and capacitor values for the input matching network.
lin_optimized = lc_optimized(1:3)
lin_optimized = 3×1
10-7 ×
0.5722
0.9272
0.3546
cin_optimized = lc_optimized(4)
cin_optimized = 6.8526e-12
display the optimized inductor and capacitor values for the output matching network
lout_optimized = lc_optimized(5:7)
lout_optimized = 3×1
10-6 ×
0.0517
0.1275
0.0581
cout_optimized = lc_optimized(8)
cout_optimized = 5.4408e-12
matching network with real-world lumped component models
the real-world lumped components are selected from the modelithics select library [5]. you must have the modelithics select library license to run the following codes. note that the modelithics® lc elements are scaled with respect to the substrate characteristics. this example shows one possible approach using a 59 mil fr4 substrate.
create rf component from modelithics select library
set up the modelithics select library by specifying the full path to the library.
mdlxsetup('c:\mdlx_library\select')
create the modelithics® library object.
mdlx = mdlxlibrary;
search the library for inductors with the optimized value for the input matching network.
search(mdlx,'fr4standard59mil',type='inductors',value=lin_optimized(1))
search the library for capacitors with the optimized value for the input matching network.
search(mdlx,'fr4standard59mil',type='capacitors',value=cin_optimized)
create an array of modelithics® lc elements for the input and output matching networks.
lin1_mdlx = search(mdlx,'fr4standard59mil',type='inductors',value=lin_optimized(1)); lin2_mdlx = search(mdlx,'fr4standard59mil',type='inductors',value=lin_optimized(2)); lin3_mdlx = search(mdlx,'fr4standard59mil',type='inductors',value=lin_optimized(3)); cin_mdlx = search(mdlx,'fr4standard59mil',type='capacitors',value=cin_optimized); lout1_mdlx = search(mdlx,'fr4standard59mil',type='inductors',value=lout_optimized(1)); lout2_mdlx = search(mdlx,'fr4standard59mil',type='inductors',value=lout_optimized(2)); lout3_mdlx = search(mdlx,'fr4standard59mil',type='inductors',value=lout_optimized(3)); cout_mdlx = search(mdlx,'fr4standard59mil',type='capacitors',value=cout_optimized);
create and anlyze matching networks
create the input and output matching networks with modelithics® capacitors and inductors. note that most of the modelithics® lumped components have two ports. use the setports
function to define the circuit as a 2-port network.
inputmatchingnwmdlx = circuit; add(inputmatchingnwmdlx,[1 2 0 0],lin1_mdlx(1)); add(inputmatchingnwmdlx,[2 0 0 0],lin2_mdlx(1)); add(inputmatchingnwmdlx,[2 0 0 0],cin_mdlx(1)); add(inputmatchingnwmdlx,[2 3 0 0],lin3_mdlx(1)); setports(inputmatchingnwmdlx,[1 0],[3 0]); outputmatchingnwmdlx = circuit; add(outputmatchingnwmdlx,[1 2 0 0],lout1_mdlx(1)); add(outputmatchingnwmdlx,[2 0 0 0],lout2_mdlx(1)); add(outputmatchingnwmdlx,[2 0 0 0],cout_mdlx(1)); add(outputmatchingnwmdlx,[2 3 0 0],lout3_mdlx(1)); setports(outputmatchingnwmdlx,[1 0],[3 0]);
analyze the s-parameters of input and output matching networks and then convert the s-parameter data into an nport
object.
sm1 = sparameters(inputmatchingnwmdlx,freq); npm1 = nport(sm1); sm2 = sparameters(outputmatchingnwmdlx,freq); npm2 = nport(sm2);
use the rfbudget
object to calculate the transducer gain and the noise figure across the bandwidth. compute rf budget of the lna network. the lna network comprises of matching network and low noise amplifier.
bmatchedmdlx = rfbudget([npm1 clone(mismatched_amp) npm2],freq',-30,bw);
verify design
plot the transducer gain and the noise figure of the real-world matching network and then compare the optimization results with the mismatched network.
figure plot(freq*1e-6,bmatchedmdlx.transducergain(:,end)) hold all plot(freq*1e-6,bmatched.transducergain(:,end)) plot(freq*1e-6,bmismatched.transducergain(:,end)) plot(freq*1e-6,bmatchedmdlx.nf(:,end)) plot(freq*1e-6,bmatched.nf(:,end)) plot(freq*1e-6,bmismatched.nf(:,end)) axis([freq(1)*1e-6 freq(end)*1e-6 0 12]) legend('g_t - matched w/ modelithics®','g_t - matched w/ ideal',... 'g_t - mismatched','nf - matched w/ modelithics®','nf - matched w/ ideal',... 'nf - mismatched','position', [0.22643,0.47762,0.49643,0.25119]) xlabel('frequency [mhz]') ylabel('magnitude [db]') grid on hold off
the most noticeable aspect of the matching performance when using the modelithics® library is the large deviation in transducer gain especially beyond 275 mhz. the noise figure performance has also worsened by approximately 0.25 db. this can be explained by the fact that the inductor and capacitor models now represent real-world parasitic effects such as those due to the presence of a substrate, pads and orientation. this analysis highlights the importance of being able to predict such behaviors prior to realization of the design in hardware.
references
[1] ludwig, reinhold, and gene bogdanov. rf circuit design: theory and applications. upper saddle river, nj: prentice-hall, 2009.
[2] cuthbert, thomas r. broadband direct-coupled and matching rf networks. greenwood, ark.: t.r. cuthbert, 1999.
[3] cuthbert, t.r. “a real frequency technique optimizing broadband equalizer elements.” in 2000 ieee international symposium on circuits and systems. emerging technologies for the 21st century. proceedings (ieee cat no.00ch36353), 5:401–4. geneva, switzerland: presses polytech. univ. romandes, 2000. https://doi.org/10.1109/iscas.2000.857453.
[4] pozar, david m. microwave engineering. 4th ed. hoboken, nj: wiley, 2012.
[5]