main content

convert rf signal to baseband signal -凯发k8网页登录

convert rf signal to baseband signal

  • iq demodulator block

libraries:
rf blockset / circuit envelope / systems

description

the iq demodulator converts an rf signal to baseband signal. i stands for the in-phase component of the signal and q stands for the quadrature phase component of the signal. you can use the iq demodulator to design direct conversion receivers.

the iq demodulator block mask icons are dynamic and indicate the current state of the applied noise parameter. for more information, see iq demodulator icons.

parameters

main

source parameter of conversion gain, specified as one of the following:

  • available power gain — relates the ratio of the power of a single sideband (ssb) of the output i branch to the input power. if there is no gain mismatch, the gain at the q branch matches the gain at the i branch.

  • open circuit voltage gain — value of the open circuit voltage gain parameter as the linear voltage gain term of the polynomial voltage controlled voltage-source (vcvs).

  • polynomial coefficients — implements a nonlinear voltage gain according to the polynomial you specify.

ratio of power of ssb at output i branch to input power, specified as a scalar in db or a unitless ratio. for a unitless ratio, select none.

dependencies

to enable this parameter, set source of conversion gain to available power gain.

open circuit voltage gain, specified as a scalar in db.

dependencies

to enable this parameter, set source of conversion gain to open circuit voltage gain.

polynomial coefficients, specified as a vector.

the order of the polynomial must be less than or equal to 9. the coefficients must be ordered in ascending powers. if a vector has 10 coefficients, [a0,a1,a2, ... a9], the polynomial it represents is:

vout = a0   a1vin   a2vin2   ...    a9vin9

a1 represents the linear gain term, and higher-order terms are modeled according to [2].

for example, the vector [a0,a1,a2,a3] specifies the relation vout = a0   a1v1   a2v12   a3v13. trailing zeros are omitted. so [a0,a1,a2] defines the same polynomial as [a0,a1,a2, 0].

by default, the value is [0,1], corresponding to the linear relation vout = vin.

dependencies

to enable this parameter, set source of conversion gain to polynomial coefficients.

local oscillator (lo) frequency, specified as a scalar in hz, khz, mhz, or ghz.

input impedance of iq demodulator, specified as a scalar in ohms.

output impedance of iq demodulator, specified as a scalar in ohms.

select to add the ir filter parameter tab. clear to remove the tab.

select to add the cs filter parameter tab. clear to remove the tab.

select to internally ground and hide the negative terminals. clear to expose the negative terminals. when the terminals are exposed, you can connect them to other parts of your model.

use this button to break iq modulator links to the library. the internal variables are replaced by their values which are estimated using iq modulator parameters. the becomes a simple subsystem masked only to keep the icon.

use edit system to edit the internal variables without expanding the subsystem. use expand system to expand the subsystem in the simulink™ canvas and to edit the subsystem.

impairments

gain difference between i and q branches, specified as a scalar in db. gain mismatch is assumed to be forward-going, that is, the mismatch does not affect leakage from lo to rf.

if the gain mismatch is specified, the value (availablepowergain i/qgainmismatch) relates the ratio of power of the single-sideband (ssb) at output the q branch to the input power.

phase difference between i and q branches, specified as a scalar in degrees or radians. the phase mismatch affects the lo to input rf leakage.

ratio of magnitude between lo voltage to leaked rf voltage, specified as a scalar in db. phase accumulation in the path from lo input to the internal i and q mixers (after phase shift and phase mismatch) and then to the rf is assumed to be zero.

single-sideband noise figure of mixer, specified as a scalar.

to model noise in circuit envelope model with a noise, amplifier, or mixer, iq demodulator block, you must select the simulate noise check box in the block dialog box.

the following table summarizes the two competing definitions for specifying ssb noise, where the image frequency (im) is defined as ωim = ωlolo – ωrf).

noise conventionsignal at rf frequencysignal at im frequencyiq demodulator block supports this model?
single-sideband noise (ssb)s   n, signal with noisen, noise onlyyes
ieee definition of single-sideband noise (ssbieee)s   n, signal with noiseno signalno; you can create an equivalent model using an ideal filter created from an s-parameters block.

select this parameter to add phase noise to your iq demodulator system.

phase noise frequency offset, specified as a scalar, vector, or matrix with each element unit in hz.

if you specify a matrix, each column corresponds to a non-dc carrier frequency of the cw source. the frequency offset values bind the envelope bandwidth of the simulation. for more information, see .

dependencies

to enable this parameter, select add phase noise.

phase noise level, specified as a scalar, vector, or matrix with element unit in decibel per dbc/hz.

if you specify a matrix, each column corresponds to a non-dc carrier frequency of the cw source. the frequency offset values bind the envelope bandwidth of the simulation. for more information, see .

dependencies

to enable this parameter, select add phase noise.

select to automatically estimate impulse response for phase noise. clear to specify the impulse response duration using impulse response duration.

dependencies

to enable this parameter, select add phase noise.

impulse response duration used to simulate phase noise, specified as a scalar in s, ms, us, or ns.

note

the phase noise profile resolution in frequency is limited by the duration of the impulse response used to simulate it. increase this duration to improve the accuracy of the phase noise profile. a warning message appears if the phase noise frequency offset resolution is too high for a given impulse response duration. this message also specifies the minimum duration suitable for the required resolution.

dependencies

to set this parameter, clear automatically estimate impulse response duration.

the block plots the phase noise characteristics based in the parameters specified on the impairments tab and either the parameter in the configuration block when available or the value specified in the parameter.

dependencies

to enable this parameter, select add phase noise.

nonlinearity

selecting polynomial coefficients for source of conversion gain in the main tab removes the nonlinearity parameters.

polynomial nonlinearity, specified as one of the following:

  • even and odd order: the iq demodulator can produce second-order and third-order intermodulation frequencies, in addition to a linear term.

  • odd order: the iq demodulator generates only "odd- order" intermodulation frequencies.

    the linear gain determines the linear a1 term. the block calculates the remaining terms from the values specified in ip3, 1-db gain compression power, output saturation power, and gain compression at saturation. the number of constraints you specify determines the order of the model. the figure shows the graphical definition of the nonlinear iq demodulator parameters.

    output vs input power plot shows nonlinear iq demodulator parameters.

intercept points convention, specified as input (input-referred) or output (output-referred). use this specification for the intercept points ip2, ip3, the 1-db gain compression power, and the output saturation power.

second-order intercept point, specified as a scalar in dbm, w, mw, or dbw. the default value inf dbm corresponds to an unspecified point.

dependencies

to enable this parameter, set nonlinear polynomial type to even and odd order.

third-order intercept point, specified as a scalar in dbm, w, mw, or dbw. the default value inf dbm corresponds to an unspecified point.

dependencies

to enable this parameter, set nonlinear polynomial type to even and odd order.

1-db gain compression power, specified as a scalar in dbm, w, mw, or dbw. the 1-db gain compression point must be less than the output saturation power.

dependencies

to enable this parameter, set odd order in nonlinear polynomial type tab.

output saturation power, specified as a scalar. the block uses this value to calculate the voltage saturation point used in the nonlinear model. in this case, the first derivative of the polynomial is zero, and the second derivative is negative.

dependencies

to enable this parameter, set odd order in nonlinear polynomial type tab.

gain compression at saturation, specified as a scalar.

dependencies

to enable this parameter, first select odd order in nonlinear polynomial type tab. then change the default value of output saturation power.

ir filter

select add image reject filter in the main tab to see the ir filter parameters tab.

simulation type. simulates an ideal, butterworth, or chebyshev filter of the type specified in filter type and the model specified in implementation.

filter. simulates a lowpass, highpass, bandpass, or bandstop filter type of the design specified in design method

implementation, specified as one of the following:

  • lc tee: model an analog filter with an lc lumped tee structure when the design method is butterworth or chebyshev.

  • lc pi: model an analog filter with an lc lumped pi structure when the design method is butterworth or chebyshev.

  • transfer function: model an analog filter using two-port s-parameters when the design method is butterworth or chebyshev.

  • constant per carrier: model a filter with either full transmission or full reflection set as constant throughout the entire envelope band around each carrier. the design method is specified as ideal.

  • filter domain: model a filter using convolution with an impulse response. the design method is specified as ideal. the impulse response is computed independently for each carrier frequency to capture the ideal filtering response. when a transition between full transmission and full reflection of the ideal filter occurs within the envelope band around a carrier, the frequency-domain implementation captures this transition correctly up to a frequency resolution specified in impulse response duration.

    note

    due to causality, a delay of half the impulse response duration is included for both reflected and transmitted signals. this delay impairs the filter performance when the source and load resistances differ from the values specified in filter parameters.

by default, the implementation is constant per carrier for an ideal filter and lc tee for butterworth or chebyshev.

passband edge frequency, specified as a scalar in hz, khz, mhz, or ghz.

dependencies

to enable this parameter, set design method to ideal and filter type to lowpass or highpass.

select this parameter to implement the filter order manually.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

filter order, specified as a scalar. for a filter type of lowpass or highpass, the filter order is the number of lumped storage elements. for a filter type of bandpass of bandstop, the number of lumped storage elements is twice the filter order.

note

for even order chebyshev filters, the resistance ratio rloadrsource>rratio for tee network implementation and rloadrsource<1rratio for pi network implementation.

rratio=1 ε2 ε1 ε2ε

where:

  • ε=10(0.1rp)1

  • rp is the passband ripple in db.

dependencies

to enable this parameter, select implement using filter order.

passband frequency for lowpass and highpass filters, specified as a scalar in hz, khz, mhz, or ghz. the default value is 1 ghz for lowpass filters and 2 ghz for highpass filters.

dependencies

to enable this parameter, set design method to butterworth or chebyshev and filter type to lowpass or highpass.

passband frequencies for bandpass filters, specified as a 2-tuple vector in hz, khz, mhz, or ghz. this option is not available for bandstop filters.

dependencies

to enable this parameter, set design method to butterworth or chebyshev and filter type to bandpass.

passband attenuation, specified as a scalar in db. for bandpass filters, this value is applied equally to both edges of the passband.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

stopband frequencies for bandstop filters, specified as a 2-tuple vector in hz, khz, mhz, or ghz. this option is not available for bandpass filters.

dependencies

to enable this parameter, set design method to butterworth or chebyshev and filter type to bandstop.

stopband edge frequencies for bandstop filters, specified as a 2-tuple vector in hz, khz, mhz, or ghz. this option is not available for ideal bandpass filters.

dependencies

to enable this parameter, set design method to ideal and filter type to bandstop.

stopband attenuation, specified as a scalar in db. for bandstop filters, this value is applied equally to both edges of the stopband.

dependencies

to enable this parameter, set design method to butterworth or chebyshev and filter type to bandstop.

input source resistance, specified as a scalar in ohms.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

output load resistance, specified as a scalar in ohms.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

select to automatically estimate impulse response for phase noise. clear to manually specify the impulse response duration using impulse response duration.

dependencies

to enable this parameter, set design method to ideal and implementation to frequency domain.

impulse response duration used to simulate phase noise, specified as a scalar in s, ms, us, or ns. you cannot specify impulse response if the amplifier is nonlinear.

note

the phase noise profile resolution in frequency is limited by the duration of the impulse response used to simulate it. increase this duration to improve the accuracy of the phase noise profile. a warning message appears if the phase noise frequency offset resolution is too high for a given impulse response duration. this message also specifies the minimum duration suitable for the required resolution

dependencies

to enable this parameter, clear automatically estimate impulse response duration.

use this button to save filter design to a file. valid file types are .mat and .txt.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

cs filter

select add channel select filters in the main tab to see the cs filter parameters.

simulation type. simulates an ideal, butterworth, or chebyshev filter of the type specified in filter type and the model specified in implementation.

filter. simulates a lowpass, highpass, bandpass, or bandstop filter type of the design specified in design method.

implementation, specified as one of the following:

  • lc tee: model an analog filter with an lc lumped tee structure when the design method is butterworth or chebyshev.

  • lc pi: model an analog filter with an lc lumped pi structure when the design method is butterworth or chebyshev.

  • transfer function: model an analog filter using two-port s-parameters when the design method is butterworth or chebyshev.

  • constant per carrier: model a filter with either full transmission or full reflection set as constant throughout the entire envelope band around each carrier. the design method is specified as ideal.

  • filter domain: model a filter using convolution with an impulse response. the design method is specified as ideal. the impulse response is computed independently for each carrier frequency to capture the ideal filtering response. when a transition between full transmission and full reflection of the ideal filter occurs within the envelope band around a carrier, the frequency-domain implementation captures this transition correctly up to a frequency resolution specified in impulse response duration.

    note

    due to causality, a delay of half the impulse response duration is included for both reflected and transmitted signals. this delay impairs the filter performance when the source and load resistances differ from the values specified in filter parameters.

by default, the implementation is constant per carrier for an ideal filter and lc tee for butterworth or chebyshev.

passband edge frequency, specified as a scalar in hz, khz, mhz, or ghz.

dependencies

to enable this parameter, set design method to ideal.

select this parameter to implement the filter order manually.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

filter order, specified as a scalar. this order is the number of lumped storage elements in lowpass or highpass. in bandpass or bandstop, the number of lumped storage elements are twice the value.

note

for even order chebyshev filters, the resistance ratio rloadrsource>rratio for tee network implementation and rloadrsource<1rratio for pi network implementation.

rratio=1 ε2 ε1 ε2ε

where:

  • ε=10(0.1rp)1

  • rp is the passband ripple in db.

dependencies

to enable this parameter, select implement using filter order.

passband frequency for lowpass and highpass filters, specified as a scalar in hz, khz, mhz, or ghz. by default, the passband frequency is 1 ghz for lowpass filters and 2 ghz for highpass filters.

dependencies

to enable this parameter, set design method to butterworth or chebyshev and filter type to lowpass or highpass.

passband frequencies for bandpass filters, specified as a 2-tuple vector in hz, khz, mhz, or ghz. this option is not available for bandstop filters.

dependencies

to enable this parameter, set design method to butterworth or chebyshev and filter type to bandpass.

passband attenuation, specified as a scalar in db. for bandpass filters, this value is applied equally to both edges of the passband.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

stopband frequencies for bandstop filters, specified as a 2-tuple vector in hz, khz, mhz, or ghz. this option is not available for bandpass filters.

dependencies

to enable this parameter, set design method to butterworth or chebyshev and filter type to bandstop.

stopband edge frequencies for bandstop filters, specified as a 2-tuple vector in hz, khz, mhz, or ghz. this option is not available for ideal bandpass filters.

dependencies

to enable this parameter, set design method to ideal and filter type to bandstop.

stopband attenuation, specified as a scalar in db. for bandstop filters, this value is applied equally to both edges of the stopband.

dependencies

to enable this parameter, set design method to butterworth or chebyshev and filter type to bandstop.

input source resistance, specified as a scalar in ohms.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

output load resistance, specified as a scalar in ohms.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

select to automatically estimate impulse response for phase noise. clear to specify the impulse response duration using impulse response duration.

dependencies

set design method to ideal and implementation to frequency domain.

impulse response duration used to simulate phase noise, specified as a scalar in seconds. you cannot specify impulse response if the amplifier is nonlinear.

note

the phase noise profile resolution in frequency is limited by the duration of the impulse response used to simulate it. increase this duration to improve the accuracy of the phase noise profile. a warning message appears if the phase noise frequency offset resolution is too high for a given impulse response duration. this message also specifies the minimum duration suitable for the required resolution

dependencies

to enable this parameter, clear automatically estimate impulse response duration.

use this button to save filter design to a file. valid file types are .mat and .txt.

dependencies

to enable this parameter, set design method to butterworth or chebyshev.

algorithms

references

[1] razavi, behzad. rf microelectronics. upper saddle river, nj: prentice hall, 2011.

[2] grob, siegfried and lindner, jurgen, “polynomial model derivation of nonlinear amplifiers”, department of information technology, university of ulm, germany.

version history

introduced in r2017a

see also

|

网站地图