measurement of gain and noise figure spectrum -凯发k8网页登录
this example shows how to use rf blockset to measure the gain and noise figure of an rf system over a given spectral range.
the example requires dsp system toolbox™.
introduction
in this example, a method for measuring the frequency-dependent gain and noise figure of an rf system is described. these spectral properties are measured for two rf systems; a single low noise amplifier and the same amplifier when matched. the model used for the measurement is shown below:
model = 'gainnoisemeasurementexample';
open_system(model);
the model has two measurement units, each connected to a different subsystem containing the dut. the upper measurement unit is connected to an unmatched lna in the dut subsystem with yellow background:
open_system([model '/dut unmatched']);
the lower measurement unit is connected to a matched lna in the dut subsystem with blue background:
open_system([model '/dut matched']);
each measurement unit outputs two vector signals representing the spectrums of the gain and noise figure of the corresponding dut and those are inputted into two (dsp system toolbox) blocks that plot the above properties versus frequency, comparing the unmatched and matched dut systems. in the following sections, the matching network design process is described, the simulation results are given and compared with these expected from lna and matching network properties. finally, the procedure used within the measurement units to obtain the spectral gain and noise results is explained.
design of the matching network
the matching network used in the matched dut subsystem comprises a single stage l-c network that is designed following the same procedure as the one described in the rf toolbox example . since the lna used here is different, the design is described below
initially, an object is created to represent an heterojunction bipolar transistor based low noise amplifier that is specified in the file, . then, the circle
method of the rfckt.amplifier
object is used to place the constant available gain and the constant noise figure circles on a smith chart, and select an appropriate source reflection coefficient, gammas, that provides a suitable compromise between gain and noise. the gammas value chosen yields an available gain of ga=21db, and a noise figure of nf=0.9db at the center frequency fc=5.5ghz:
unmatched_amp = read(rfckt.amplifier, 'rf_hbt_lna.s2p'); fc = 5.5e9; % center frequency (hz) circle(unmatched_amp,fc,'stab','in','stab','out','ga',15:2:25, ... 'nf',0.9:0.1:1.5); % choose gammas and show it on smith chart: hold on gammas = 0.411*exp(1j*106.7*pi/180); plot(gammas,'k.','markersize',16) text(real(gammas) 0.05,imag(gammas)-0.05,'\gamma_{s}','fontsize', 12, ... 'fontunits','normalized') hlegend = legend('location','southeast'); hlegend.string = hlegend.string(1:end-1); hold off
for the chosen gammas, the following properties can be obtained:
% normalized source impedance: zs = gamma2z(gammas,1); % matching |gammal| that is equal to the complex conjugate of % |gammaout| shown on the data tip: gammal = 0.595*exp(1j*135.0*pi/180); % normalized load impedance: zl = gamma2z(gammal,1);
the input matching network consists of one shunt capacitor, cin, and one series inductor, lin. the smith chart is used to find the component values. to do this, the constant conductance circle that crosses the center of the smith chart and the constant resistance circle that crosses gammas
are plotted and the intersection points (point ) is found:
[~, hsm] = circle(unmatched_amp,fc,'g',1,'r',real(zs)); hsm.type = 'yz'; % choose gammaa and show points of interest on smith chart: hold on plot(gammas,'k.','markersize',16) text(real(gammas) 0.05,imag(gammas)-0.05,'\gamma_{s}','fontsize', 12, ... 'fontunits','normalized') plot(0,0,'k.','markersize',16) gammaa = 0.384*exp(1j*(-112.6)*pi/180); plot(gammaa,'k.','markersize',16) text(real(gammaa) 0.05,imag(gammaa)-0.05,'\gamma_{a}','fontsize', 12, ... 'fontunits','normalized') hlegend = legend('location','southeast'); hlegend.string = hlegend.string(1:end-3); hold off
using the chosen gammaa, the input matching network components, cin and lin, are obtained:
% obtain admittance ya corresponding to gammaa: za = gamma2z(gammaa,1); ya = 1/za; % using ya, find cin and lin: cin = imag(ya)/50/2/pi/fc lin = (imag(zs) - imag(za))*50/2/pi/fc
cin = 4.8145e-13 lin = 1.5218e-09
in a similar manner, the output matching network components are obtained using the intersection points (point ) between a constant conductance circle that crosses the center of the smith chart and the constant resistance circle that crosses gammal
:
[hline, hsm] = circle(unmatched_amp,fc,'g',1,'r',real(zl)); hsm.type = 'yz'; % choose gammab and show points of interest on smith chart: hold on plot(gammal,'k.','markersize',16) text(real(gammal) 0.05,imag(gammal)-0.05,'\gamma_{l}','fontsize', 12, ... 'fontunits','normalized') plot(0,0,'k.','markersize',16) gammab = 0.612*exp(1j*(-127.8)*pi/180); plot(gammab,'k.','markersize',16) text(real(gammab) 0.05,imag(gammab)-0.05,'\gamma_{b}','fontsize', 12, ... 'fontunits','normalized') hlegend = legend('location','southeast'); hlegend.string = hlegend.string(1:end-3); hold off
using the chosen gammab, the input matching network components, cout and lout, are obtained:
% obtain admittance yb corresponding to gammab: zb = gamma2z(gammab, 1); yb = 1/zb; % using yb, find cout and lout: cout = imag(yb)/50/2/pi/fc
cout = 8.9651e-13
lout = (imag(zl) - imag(zb))*50/2/pi/fc
lout = 1.2131e-09
simulation results for gain and noise figure spectrum measurement model
the above input and output network component values are used in the simulation of the matched dut in the gain and noise figure spectrum measurement model described earlier. the spectral results displayed in the array plot blocks are given below:
open_system([model '/gain spectrum']); open_system([model '/noise figure spectrum']); sim(model, 1e-4);
next, the simulation results are compared with those expected analytically. to facilitate the comparison, the unmatched and matched amplifier networks are analyzed using rf toolbox. in addition, as finer details are required, the simulation is run for a longer time. the results of the longer simulation are given in the file .
% analyze unmatched amplifier bw_analysis = 2e9; % bandwidth of the analysis (hz) f_analysis = (-bw_analysis/2:1e6:bw_analysis/2) fc; analyze(unmatched_amp, f_analysis); % create and analyze an rf network for the matched amplifier input_match = rfckt.cascade('ckts', ... {rfckt.shuntrlc('c',cin),rfckt.seriesrlc('l',lin)}); output_match = rfckt.cascade('ckts', ... {rfckt.seriesrlc('l',lout),rfckt.shuntrlc('c',cout)}); matched_amp = rfckt.cascade('ckts', ... {input_match,unmatched_amp,output_match}); analyze(matched_amp,f_analysis); % load results of a longer simulation load 'gainnoiseresults.mat' f gainspectrum nfspectrum; % plot expected and simulated transducer gain stdblue = [0 0.45 0.74]; stdyellow = [0.93,0.69,0.13]; hlineum = plot(unmatched_amp, 'gt', 'db'); hlineum.color = stdyellow; hold on plot(f, gainspectrum(:,1), '.', 'color', stdyellow); hlinem = plot(matched_amp, 'gt', 'db'); hlinem.color = stdblue; plot(f, gainspectrum(:,2), '.', 'color', stdblue); legend({'g_t analysis - unmatched', ... 'g_t simulation - unmatched', ... 'g_t analysis - matched', ... 'g_t simulation - matched'}, 'location','southwest'); % plot expected and simulated noise figure hfig = figure; hlineum = plot(unmatched_amp, 'nf', 'db'); hlineum.color = stdyellow; legend('location','northwest') hold on plot(f, nfspectrum(:,1), '.', 'color', stdyellow); hlinem = plot(matched_amp, 'nf', 'db'); hlinem.color = stdblue; plot(f, nfspectrum(:,2), '.', 'color', stdblue); legend({'nf analysis - unmatched', ... 'nf simulation - unmatched', ... 'nf analysis - matched', ... 'nf simulation - matched'}, 'location','northwest');
operation of the measurement unit
the measurement unit produces an input signal, dut_in, that is composed of zero-mean white noise and zero-variance impulse response signal. the latter is used to determine the frequency response of the dut gain and together with the white noise determine the dut noise figure. the measurement unit collects the dut output signal, performs a windowed fft on it and then facilitates statistical calculations to obtain the gain and the noise figure of the dut.
open_system([model '/noise and gain measurement'], 'force');
the statistical calculations are done in the area marked in blue. the calculations use three inputs in the frequency domain; input noise only, input signal only, and output signal. the input signal only is compared with the mean of the output signal to determine the dut's gain, , at each frequency bin. the variance of the output signal, with mean signal removed, yields the output noise of the dut system, , together with the input noise fed to the dut, , calculated by taking the variance of the input noise only, the noise figure, , can be calculated using the following formula:
where, and in the above equation are the signal-to-noise ratios at the input and output of the dut. finally, after conversion to decibels, the spectral results are divided into bins and averaged within them to facilitate faster convergence. also, to improve the noise calculation convergence, the output noise variance is reset once the gain has reached convergence.
the properties affecting the operation of the measurement unit are specified in the as shown below:
these parameters are described below:
sample time - sample time of the signal created by the measurement unit. the sample time also governs the total simulation bandwidth captured by the measurement unit.
fft size - number of fft bins used to obtain the frequency domain representation of the signals within the measurement unit.
beta of kaiser window - the parameter of the kaiser window used in all fft calculations within the measurement unit. increasing widens the mainlobe and decreases the amplitude of the sidelobes of the frequency response of the window.
spectrum coverage ratio - value between 0 and 1, representing the part of total simulation bandwidth processed by the measurement unit.
number of bins - number of output frequency bins in the gain and nf signals created by the measurement unit. the fft bins within the covered spectrum are re-distributed into those output bins. multiple fft bins falling into the same output bin are averaged.
ratio of mean signal to rms noise - the ratio of the mean signal amplitude to the rms noise in the dut_in signal created by the measurement unit. a large value improves the convergence of the dut gain calculation, but reduces the accuracy of noise calculation due to numerical inaccuracies.
gain tolerance - the threshold of gain variation relative to its average. when the threshold is hit, the gain is considered as converged, triggering a reset for the output noise calculation.
close(hfig); bdclose(model); clear model hlegend hsm hline hlegend stdblue stdyellow hlineum hlinem hfig; clear gammas zs gammal zl gammaa za ya gammab zb yb; clear unmatched_amp bw_analysis f_analysis input_match output_match matched_amp;
see also
| | |