main content

analyze gain, noise figure, ip2, and ip3 of cascaded rf elements and export to rf blockset -凯发k8网页登录

analyze gain, noise figure, ip2, and ip3 of cascaded rf elements and export to rf blockset

description

the rf budget analyzer app analyzes the gain, noise figure, and nonlinearity of proposed rf system architecture.

using this app, you can:

  • build a cascade of rf elements.

  • calculate the 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 in rf budget analyzer app uses 290k as a reference temperature.

  • plot results 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 the measurement testbench option.

  • export the system design to system object.

  • visualize budget results, s-parameters over stages and frequencies.

  • visualize the amplifier power characteristics (since r2023a).

  • 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

  • mixer imt

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

  • mutual inductor

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 the apps tab, under signal processing and communications, click the app icon.

  • matlab command prompt: enter rfbudgetanalyzer.

examples

design and analyze an rf transmitter using the rf budget analyzer app.

enter rfbudgetanalyzer to open the app.

use the transmitter template to create a basic transmitter.

tx_default_template.png

the transmitter template is displayed as follows.

tx_template.png

in system parameters, specify the rf transmitter requirements:

  • input frequency815 mhz

  • available input power0 dbm

  • signal bandwidth100 mhz

tx1.png

click the ifamplifier in the design canvas and delete the element using the delete element button on the toolstrip.

add a generic element in the place of the ifamplifier using the toolstrip. in the element parameters pane, specify:

  • nameiffilter

  • available power gain — –3.6 db

  • select apply.

click the modulator element. in the element parameters pane, specify:

  • namemixer

  • available power gain — –6.5 db

  • oip311.5 dbm

  • lo frequency4.97 ghz

  • converter typeup

  • select apply.

delete the s-parameters element named bandpassfilter. add a generic element. in the element parameters pane, specify:

  • namerffilter1

  • available power gain — –1.4 db

  • select apply.

select the poweramplifier element and in the element parameters pane, specify:

  • namepoweramplifier1

  • available power gain20 db

  • oip343 dbm

  • select apply.

add another amplifier element using the toolstrip. in the element parameters pane, specify:

  • namepoweramplifier2

  • available power gain20 db

  • oip343 dbm

  • select apply.

add another generic element. in the element parameters pane, specify:

  • namerffilter2

  • available power gain — –1.4 db

  • select apply.

txpr34.png

save the system. the app saves the system in a mat file.

plot the output power of the transmitter using the 3d plot button. select 3d plot and choose output power - pout.

tx_result_update.png

select the poweramplifer1 element and from the element parameters pane, and then click the plot power characteristics button to plot amplifier power characteristics of the poweramplifer1 element. alternatively, to plot the amplifier power characteristics of the poweramplifer1 element, select the poweramplifer1 element and using the 2-d plot button, choose plot power characteristics.(since 2023a)

pachar.png

this example uses an rf transmitter design from the rf transmitter system analysis example.

follow the rf transmitter system analysis example to design an rf transmitter. select the antenna element from the elements section and add the element at end of this rf transmitter. in the element parameters pane, select antenna designer from the antenna source drop-down list.

click create antenna in the element parameters pane.

the antenna designer app opens. click new to explore the antenna library. this example uses a dipolefolded antenna element with a center frequency of 815 mhz. to do this, select folded element from the antenna gallery, set design frequency to 815 mhz, and click accept.

the updated antenna shows in the window.

click update element to update the antenna element in the rf budget analyzer app. click ok in the confirm update dialog box.

the antenna designer app window closes and the antenna element is updated in the rf budget analyzer app. the results pane is automatically updated for friis analysis with eirp and directivity of the antenna element.

design and analyze an rf receiver using the rf budget analyzer app.

enter rfbudgetanalyzer to open the app.

use the receiver template option to create a basic receiver.

tx_default_template2.png

the receiver template is displayed as follows:

rxpr1.png

in system parameters, specify the rf receiver requirements:

  • input frequency5.745 mhz

  • available input power — –65 dbm

  • signal bandwidth100 mhz

rx_toolstripupdate.png

click rffilter in the design canvas. this rffilter is an s-parameters element. it accepts a touchstone® file in the s2p file type. update the element parameters pane as follows:

  • name: bandpassfilter

  • s2p file: choose an s2p file by clicking the browse button.

  • select apply.

click the rfamplifier element. in the element parameters pane, specify the element requirements:

  • namelna1

  • available power gain12 db

  • oip320 dbm

  • select apply.

add another amplifier element using the toolstrip. in the element parameters pane, specify the element requirements:

  • namelna2

  • available power gain12 db

  • oip320 dbm

  • select apply.

add a generic element. in the element parameters pane, specify the element requirements:

  • nameirfilter

  • available power gain — –4.05 db

  • select apply.

click the demodulator element. in the element parameters pane, specify the element requirements:

  • namemixer

  • available power gain — –6.5 db

  • oip311.5 dbm

  • lo frequency4.93 ghz

  • converter typedown

  • select apply.

delete the iffilter, s-parameters element. add a generic element in its place. in the element parameters pane, specify the element requirements:

  • namecsfilter

  • available power gain — –9.55 db

  • select apply.

click the ifamplifier element. in the element parameters pane, specify the element requirements:

  • namepoweramp1

  • available power gain16 db

  • oip326 dbm

  • select apply.

add two more amplifier elements. for each element, in the element parameters panes specify the element requirements:

  • name poweramp2 | poweramp3

  • available power gain16 db | 20 db

  • oip326 dbm | 33 dbm

  • select apply.

rxpr2.png

save the system. the app saves the system in a mat file.

plot the output oip3 of the receiver using the 3d plot button. select the 3d plot button and choose output third-order intercept point - oip3.

rxpr4.png

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 an nport using passive.s2p.

n = nport('passive.s2p');

create an rf element with a gain of 10 db.

r = rfelement('gain',10);

calculate the rfbudget of 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 in rf budget analyzer app.

show(b)

fr1.png

set oip2 value of amplifier to 60 dbm using elements parameters pane and select apply. in system parameters section, set the available input power to 50 dbm and run harmonic balance analysis using hb-analyze button.

hbanalyze.png

the results are displayed as shown below.

fr2.png

select auto-analyze checkbox to automatically recompute the harmonic balance analysis calculations.

autoanalyze.png

set oip2 value of rfelement as 50 dbm using elements parameters pane and select apply.

select compare view checkbox in the results pane to compare the calculated friis and harmonic balance solver results. you can use select results drop-down from the results pane to filter the results and to compare between friis and harmonic balance solver.

fr3.png

design an input matching network for a two-stage amplifier using the transmission line element in the rf budget analyzer app.

enter rfbudgetanalyzer to open the app.

in system parameters, specify the requirements:

  • input frequency2.45 ghz

  • available input power0 dbm

  • signal bandwidth2 ghz

txline2.png

add two transmission line elements. in the element parameters pane, specify:

  • namemicrostrip1 | microstrip2

  • type microstrip | microstrip

  • width0.0034173 | 0.0034173 meters

  • height0.001524 | 0.001524 meters

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

  • epsilonr3.48 | 3.48

  • losstangent0.0037 | 0.0037 meters

  • sigmacond inf | inf s/m

  • linelength0.0089 | 0.0147 meters

  • stubmodeshunt | notastub

  • terminationopen

  • select apply.

add two s-parameters elements. in the element parameters pane, specify:

  • name sparams1 | sparams2

load the touchstone® file (f551432p.s2p) to the s-parameters elements provided in this example and select apply.

txlinepr2.png

plot the input reflection coefficient of the system using the 3d plot button. select the 3d plot button, choose s-parameters and select s11.

txlinepr3.png

design an rf system and plot s-parameters, output power, and transducer gain using rf budget analyzer app.

enter rfbudgetanalyzer to open the app.

in system parameters, specify the requirements:

  • input frequency2.1 ghz

  • available input power-30 dbm

  • signal bandwidth45 mhz

add a s-parameters element. in the element parameters, specify:

  • name rfbandpassfilter

load the touchstone® file (rfbudget_rf.s2p) to the s-parameters element provided in this example and select apply.

add an amplifier element. in the element parameters, specify:

  • namerfamplifier

  • available power gain11.53 db

  • nf1.53 db

  • oip335 dbm

  • select apply.

add the demodulator element. in the element parameters, specify:

  • namedemodulator

  • available power gain-6 db

  • nf — 4 db

  • oip350 dbm

  • lo frequency2.03 ghz

  • converter typedown

  • select apply.

add another s-parameters element. in the element parameters, specify:

  • name ifbandpassfilter

load the touchstone file (rfbudget_if.s2p) to the s-parameters element provided in this example and select apply.

add another amplifier element. in the element parameters, specify:

  • nameifamplifier

  • available power gain30 db

  • nf8 db

  • oip337 dbm

  • select apply.

sptg1.png

save the system. the app saves the system in a mat file.

select s-parameters plot button. 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.

sparameters1.png

set the plot bandwidth to 75 and resolution to 250 under plots section.

plotresolution2.png

the s-parameters data is displayed as follows.

sparameters.png

select phase (deg) from the drop-down menu of xy plot in s-parameters pane to plot the phase of the s21.

phase.png

the phase plot is displayed as shown.

phaseplot.png

plot the output power of the rf system using the 2d plot button. select 2d plot button and choose output power - pout.

2dplotoptions.png

2-d output power is displayed.

sptg2.png

plot the transducer gain of the rf system using the 2d plot button. select 2d plot button and choose transducer gain - gaint.

sptg3.png

design an rf receiver using the rfsystem system object. view the object in the the rf budget analyzer app 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 with 3 db and 5 db 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 of 4.93 ghz.

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 of 5 ghz, an available input power of – 30 dbm, and a bandwidth of 10 mhz.

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

create an rf system for the rf receiver using the rfbudget object.

rfs = rfsystem(rfb);

open an rf blockset model of the designed rf system using the open_system object function.

open_system(rfs)

type rfbudgetanalyzer(rfs) command at the matlab® command line to open this rf system in the rf budget analyzer app.

to conduct hb analysis in the app, click the hb-analyze button.

related examples

programmatic use

rfbudgetanalyzer opens the rf budget analyzer app 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 the rf budget analyzer app. rfbmat is a mat file.

rfbudgetanalyzer(rfb) opens an rf system saved using the object rfb in the rf budget analyzer app.

rfbudgetanalyzer(rfs) opens an rf system saved using the system object rfs in the rf budget analyzer app.

tips

  • the rf budget analyzer app accepts 0 hz as input frequency for a system. you can set the input frequency in the system parameters section.

  • the rf budget analyzer app does not accept 0 hz as lo frequency. this is applicable to modulator and demodulator elements.

  • the output frequencies from the rf budget analyzer app are always positive.

  • the filter element allows you to use only the 'transfer function' implementation when you set the filter type to 'inversechebyshev' in the element parameters pane.

  • to design an antenna element using the rf budget analyzer app, in the antenna element pane, set antenna source to isotropic radiator.you can also design an antenna element using the antenna designer app or an antenna object. to use the antenna designer app 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, 2 ghz or more.

references

[1] pozar, david m. microwave engineering. 4th ed. hoboken, nj: wiley, 2012.

version history

introduced in r2016a

see also

apps

topics

  • (rf blockset)
网站地图