Main Content

RF Budget Analyzer

Analyze gain, noise figure, IP2, and IP3 of cascaded RF elements and export toRF Blockset

Description

TheRF Budget Analyzerapp analyzes the gain, noise figure, and nonlinearity of proposed RF system architecture.

Using this app, you can:

  • Build a cascade of RF elements.

  • 计算per-stage and cascade output power, gain, noise figure, SNR, and IP3 of the system.

  • Compute nonlinear effects such as output power, IP2, NF, and SNR using harmonic balance analysis.

    Note

    SNR calculation of an RF chain inRF Budget Analyzerapp uses 290K as a reference temperature.

  • Plotrfbudgetresults across bandwidths and over stages.

  • Plot S-parameters of the RF System on a Smith chart and a polar plot.

  • Plot magnitude, phase and real, and imaginary parts of S-parameters of the RF System and over stages.

  • Export per-stage and cascade values to the MATLAB®workspace.

  • Export the system design to RF Blockset™ for simulation.

    Note

    If you use a stripline element in your system, then the app does not support exporting your system to RF Blockset.

  • Export the system design to the RF Blockset Testbench as a device under test (DUT) subsystem and verify the results using simulation.

    Note

    If you use an antenna element, the app does not support exporting to a testbench in the RF Blockset using theMeasurement Testbenchoption.

  • Export the system design torfsystemsystem object.

  • Visualize budget results and S-parameters over stages and frequencies.

  • Compare Friis and harmonic balance budget results.

Available Blocks

The app toolstrip contains these nonlinear elements that you can use to create an RF system:

  • Amplifier

  • Modulator

  • Demodulator

  • Generic

The app toolstrip contains these linear elements that you can use to create an RF system:

  • S-Parameters

  • Filter

  • Transmission Line

  • Series RLC

  • Shunt RLC

  • Attenuator

  • Transmitter Antenna

  • Receiver Antenna

  • Transmit-Receive Antenna

  • LC Ladder

  • Phase Shift

Available Templates

The app toolstrip contains these templates that you can use to design a transmitter or a receiver system:

  • Receiver

  • Transmitter

Open the RF Budget Analyzer App

  • MATLAB Toolstrip: On theAppstab, underSignal Processing and Communications, click the app icon.

  • MATLAB command prompt: EnterrfBudgetAnalyzer.

Examples

expand all

Design and analyze an RF transmitter using theRF Budget Analyzerapp.

EnterrfBudgetAnalyzer打开应用程序。

Use theTransmittertemplate to create a basic transmitter.

发射机模板显示如下。

InSystem Parameters, specify the RF transmitter requirements:

  • Input Frequency815MHz

  • Available Input Power0dBm

  • Signal Bandwidth100MHz

Click theIFAmplifierin the design canvas. Delete it using theDelete Elementbutton on the toolstrip.

Add aGenericelement in the place of theIFAmplifierusing the toolstrip. In theElement Parameterspane, specify:

  • NameIFFilter

  • Available Power Gain-3.6dB

  • SelectApply.

Click theModulatorelement. In theElement Parameterspane, specify:

  • NameMixer

  • Available Power Gain-6.5dB

  • OIP311.5dBm

  • LO Frequency4.97GHz

  • Converter TypeUp

  • SelectApply.

Delete theS-Parameterselement namedBandpassFilter. Add aGenericelement. In theElement Parameterspane, specify:

  • NameRFFilter1

  • Available Power Gain-1.4dB

  • SelectApply.

Select thePowerAmplifierelement and in theElement Parameterspane, specify:

  • NamePowerAmplifier1

  • Available Power Gain20dB

  • OIP343dBm

  • SelectApply.

Add anotherAmplifierelement using the toolstrip. In theElement Parameterspane, specify:

  • NamePowerAmplifier2

  • Available Power Gain20dB

  • OIP343dBm

  • SelectApply.

Add anotherGenericelement. In theElement Parameterspane, specify:

  • NameRFFilter2

  • Available Power Gain-1.4dB

  • SelectApply.

Save the system. The app saves the system in a MAT file.

Plot the output power of the transmitter using the3D Plotbutton. Select3D Plotand chooseOutput Power - Pout.

This example uses an RF transmitter design from theRF Transmitter System Analysisexample.

Follow the RF Transmitter System Analysis example to design an RF transmitter. Select the antenna element from theElementssection and add the element at end of this RF transmitter. In theElement Parameterspane, selectAntenna Designerfrom theAntenna Sourcedrop-down list.

ClickCreate Antennain theElement Parameterspane.

TheAntenna Designerapp opens. ClickNewto explore the antenna library. This example uses adipoleFoldedantenna element with a center frequency of815MHz. To do this, selectFoldedelement from theAntenna Gallery, setDesign Frequencyto815MHz, and clickAccept.

The updated antenna shows in the window.

ClickUpdate Elementto update theAntennaelement in theRF Budget Analyzerapp. ClickOKin the Confirm Update dialog box.

TheAntenna Designerapp window closes and theAntennaelement is updated in theRF Budget Analyzerapp. TheResultspane is automatically updated for Friis analysis withEIRPandDirectivityof theAntennaelement.

Design and analyze an RF receiver using theRF Budget Analyzerapp.

EnterrfBudgetAnalyzer打开应用程序。

Use theReceivertemplate option to create a basic receiver.

The receiver template is displayed as follows:

InSystem Parameters, specify the RF receiver requirements:

  • Input Frequency5.745MHz

  • Available Input Power-65dBm

  • Signal Bandwidth100MHz

ClickRFFilterin the design canvas. ThisRFFilteris anS-parameterselement. It accepts a Touchstone® file in the S2P file type. Update theElement parameterspane as follows:

  • Name:BandpassFilter

  • S2P file:Choose an S2P file by clicking theBrowsebutton.

  • SelectApply.

Click theRFAmplifierelement. In theElement Parameterspane, specify the element requirements:

  • NameLNA1

  • Available Power Gain12dB

  • OIP320dBm

  • SelectApply.

Add anotherAmplifierelement using the toolstrip. In theElement Parameterspane, specify the element requirements:

  • NameLNA2

  • Available Power Gain12dB

  • OIP320dBm

  • SelectApply.

Add aGenericelement. In theElement Parameterspane, specify the element requirements:

  • NameIRFilter

  • Available Power Gain-4.05dB

  • SelectApply.

Click theDemodulatorelement. In theElement Parameterspane, specify the element requirements:

  • NameMixer

  • Available Power Gain-6.5dB

  • OIP311.5dBm

  • LO Frequency4.93GHz

  • Converter TypeDown

  • SelectApply.

Delete theIFFilter,S-parameterselement. Add aGenericelement in its place. In theElement Parameterspane, specify the element requirements:

  • NameCSFilter

  • Available Power Gain-9.55dB

  • SelectApply.

Click theIFAmplifierelement. In theElement Parameterspane, specify the element requirements:

  • NamePowerAmp1

  • Available Power Gain16dB

  • OIP326dBm

  • SelectApply.

Add two moreAmplifierelements. For each element, in theElement Parameterspanes specify the element requirements:

  • NamePowerAmp2|PowerAmp3

  • Available Power Gain16dB |20dB

  • OIP326dBm |33dBm

  • SelectApply.

Save the system. The app saves the system in a MAT file.

Plot the output OIP3 of the receiver using the3D Plotbutton. Select the3D Plotbutton and chooseOutput Third-Order Intercept Point - OIP3.

Create an amplifier with a gain of 4 dB.

a = amplifier('Gain',4);

Create a modulator with an OIP3 of 13 dBm.

m = modulator('OIP3',13);

Create annportusingpassive.s2p.

n = nport('passive.s2p');

Create an RF element with a gain of 10 dB.

r = rfelement('Gain',10);

计算rfbudgetof a series of RF elements at an input frequency of 2.1 GHz, an available input power of -30 dBm, and a bandwidth of 10 MHz.

b = rfbudget([a m r n],2.1e9,-30,10e6);

Run this command in the command window, to open the system inRF Budget Analyzerapp.

show(b)

SetOIP2value ofAmplifierto60dBm usingElements Parameterspane and selectApply. InSystem Parameterssection, set theAvailable Input Powerto50dBm and run harmonic balance analysis usingHB-Analyzebutton.

The results are displayed as shown below.

SelectAuto-Analyzecheckbox to automatically recompute the harmonic balance analysis calculations.

SetOIP2value ofRFelementas50dBm usingElements Parameterspane and selectApply.

SelectCompare Viewcheckbox in theResultspane to compare the calculated Friis and harmonic balance solver results. You can useSelect Resultsdrop-down from theResultspane to filter the results and to compare between Friis and harmonic balance solver.

Design an input matching network for a two-stage amplifier using theTransmission Lineelement in theRF Budget Analyzerapp.

EnterrfBudgetAnalyzer打开应用程序。

InSystem Parameters, specify the requirements:

  • Input Frequency2.45GHz

  • Available Input Power0dBm

  • Signal Bandwidth2GHz

Add twoTransmission Lineelements. In theElement Parameterspane, specify:

  • NameMicrostrip1|Microstrip2

  • Typemicrostrip|microstrip

  • Width0.0034173|0.0034173meters

  • Height0.001524|0.001524meters

  • Thickness3.5e-06|3.5e-06meters

  • EpsilonR3.48|3.48

  • LossTangent0.0037|0.0037meters

  • SigmaCondInf|InfS/m

  • LineLength0.0089|0.0147meters

  • StubModeShunt|NotAStub

  • TerminationOpen

  • SelectApply.

Add twoS-Parameterselements. In theElement Parameterspane, specify:

  • NameSparams1|Sparams2

Load the Touchstone® file (f551432p.s2p) to theS-Parameterselements provided in this example and selectApply.

Plot the input reflection coefficient of the system using the3D Plotbutton. Select the3D Plotbutton, chooseS-Parametersand selectS11.

Design an RF system and plot S-parameters, output power, and transducer gain usingRF Budget Analyzerapp.

EnterrfBudgetAnalyzer打开应用程序。

InSystem Parameters, specify the requirements:

  • Input Frequency2.1GHz

  • Available Input Power-30dBm

  • Signal Bandwidth45MHz

Add aS-Parameterselement. In theElement Parameters, specify:

  • NameRFBandpassFilter

Load the Touchstone® file (RFBudget_RF.s2p) to theS-Parameterselement provided in this example and selectApply.

Add anAmplifierelement. In theElement Parameters, specify:

  • NameRFAmplifier

  • Available Power Gain11.53dB

  • NF1.53dB

  • OIP335dBm

  • SelectApply.

Add theDemodulatorelement. In theElement Parameters, specify:

  • NameDemodulator

  • Available Power Gain-6dB

  • NF —4dB

  • OIP350dBm

  • LO Frequency2.03GHz

  • Converter TypeDown

  • SelectApply.

Add anotherS-Parameterselement. In theElement Parameters, specify:

  • NameIFBandpassFilter

Load the Touchstone file (RFBudget_IF.s2p) to theS-Parameterselement provided in this example and selectApply.

Add anotherAmplifierelement. In theElement Parameters, specify:

  • NameIFAmplifier

  • Available Power Gain30dB

  • NF8dB

  • OIP337dBm

  • SelectApply.

Save the system. The app saves the system in a MAT file.

SelectS-Parameters Plotbutton. This allows you to plot Smith® chart, polar plot, magnitude, phase and real, and imaginary parts of S-parameters of the RF System and over stages.

Set thePlot Bandwidthto75andResolutionto250underPlotssection.

The S-parameters data is displayed as follows.

SelectPhase (deg)from the drop-down menu of XY Plot inS-Parameterspane to plot the phase of the S21.

The phase plot is displayed as shown.

Plot the output power of the RF system using the2D Plotbutton. Select2D Plotbutton and chooseOutput Power - Pout.

2-D output power is displayed.

Plot the transducer gain of the RF system using the2D Plotbutton. Select2D Plotbutton and chooseTransducer Gain - GainT.

Design an RF receiver using therfsystemsystem object. View the object in the theRF Budget Analyzerapp to perform harmonic balance (HB) analysis.

Create fifth- and seventh-order bandpass RF filters.

f1 = rffilter('ResponseType','Bandpass','FilterOrder',5,...'PassbandFrequency',[4.85 5.15]*1e9); f2 = rffilter('ResponseType','Bandpass','FilterOrder'7...'PassbandFrequency',[10 130]*1e6);

Create two amplifier objects with3dB and5dB gain, respectively.

a1 = amplifier('Gain',3,'NF',1.53,'OIP3',35); a2 = amplifier('Gain',5,'NF',8,'OIP3',37);

Create a modulator with a local frequency of4.93GHz.

d = modulator('Gain',0,'NF',4,'OIP3',50,'LO',4.93e9,...'ConverterType','Down');

Design an RF receiver with the budget elements at an input frequency of5GHz, an available input power of –30dBm, and a bandwidth of10MHz.

rfb = rfbudget([f1 a1 d f2 a2],5e9,-30,10e6);

Create an RF system for the RF receiver using therfbudgetobject.

rfs = rfsystem(rfb);

Open an RF Blockset model of the designed RF system using theopen_systemobject function.

open_system(rfs)

Type rfBudgetAnalyzer(rfs) command at the MATLAB® command line to open this RF system in theRF Budget Analyzerapp.

To conduct HB analysis in the app, click theHB-Analyzebutton.

Related Examples

Programmatic Use

expand all

rfBudgetAnalyzeropens theRF Budget Analyzerapp to analyze the stage-wise and total gain, noise figure, and nonlinearity (IP3) of an RF system.

rfBudgetAnalyzer(rfbmat)opens an RF system saved using theRF Budget Analyzerapp.rfbmatis a MAT file.

rfBudgetAnalyzer(rfb)opens an RF system saved using therfbudgetobjectrfbin theRF Budget Analyzerapp.

rfBudgetAnalyzer(rfs)opens an RF system saved using therfsystemsystem objectrfsin theRF Budget Analyzerapp.

Tips

  • TheRF Budget Analyzerapp accepts0Hz asInput Frequencyfor a system. You can set theInput Frequencyin theSystem Parameterssection.

  • TheRF Budget Analyzerapp does not accept0Hz asLO Frequency. This is applicable to Modulator and Demodulator elements.

  • The output frequencies from theRF Budget Analyzerapp are always positive.

  • The Filter element allows you to use only the'Transfer function'implementation when you set theFilter Typeto'InverseChebyshev'in theElement Parameterspane.

  • To design an antenna element using theRF Budget Analyzerapp, in the Antenna Element pane, setAntenna SourcetoIsotropic radiator.You can also design an antenna element using theAntenna Designerapp or an antenna object. To use theAntenna Designerapp or the antenna object, you need Antenna Toolbox™ license.

  • Antenna elements designed using a default antenna object require larger memory. To speed up the simulation, design your antenna element at a high frequency,2GHz or more.

References

[1] Pozar, David M.Microwave Engineering. 4th ed. Hoboken, NJ: Wiley, 2012.

版本;n History

Introduced in R2016a

See Also

Apps

Topics