convert rf signal to baseband signal -凯发k8网页登录
convert rf signal to baseband signal
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.
examples
parameters
main
source of conversion gain — source parameter of conversion gain
available power gain
(default) | open circuit voltage gain
| polynomial coefficients
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 outputi
branch to the input power. if there is no gain mismatch, the gain at theq
branch matches the gain at thei
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.
available power gain — ratio of power of ssb at output i
branch to input power
0 db
(default) | scalar in db or a unitless ratio
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 — open circuit voltage gain
0 db
(default) | scalar
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 — coefficients of polynomial specifying voltage gain
[0 1]
(default) | vector
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,
[
,
the polynomial it represents is:a
0,a
1,a
2,
... a
9]
vout = a0 a1vin a2vin2 ...
a9vin9
a1
represents the linear gain term, and higher-order terms are modeled
according to [2].
for example, the vector
[
specifies the relation vout = a0 a1v1 a2v12 a3v13. trailing zeros are omitted. so
a
0,a
1,a
2,a
3][
defines the same polynomial as
a
0,a
1,a
2][
.a
0,a
1,a
2,
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 frequency — local oscillator (lo) frequency
0
hz
(default) | scalar
local oscillator (lo) frequency, specified as a scalar in
hz
, khz
,
mhz
, or ghz
.
input impedance (ohm) — input impedance of iq demodulator
50
(default) | scalar
input impedance of iq demodulator, specified as a scalar in ohms.
output impedance (ohm) — output impedance of iq demodulator
50
(default) | scalar
output impedance of iq demodulator, specified as a scalar in ohms.
add image reject filter — image reject (ir) filter parameters
off
(default) | on
select to add the ir filter parameter tab. clear to remove the tab.
add channel select filters — channel select (cs) filter parameters
off
(default) | on
select to add the cs filter parameter tab. clear to remove the tab.
ground and hide negative terminals — ground and hide circuit terminals
on
(default) | off
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.
edit system — break iq demodulator block links and replace internal variables by appropriate values
button
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
i/q gain mismatch — gain difference between i
and q
branches
0
db
(default) | scalar
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 relates the ratio of power of the single-sideband
(ssb) at output the q
branch to the input
power.
i/q phase mismatch — phase difference between i
and q
branches
0
degrees
(default) | scalar in degrees or radians
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.
lo to rf isolation — ratio of magnitude between lo voltage to leaked rf voltage
inf db
(default) | scalar
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.
noise figure (db) — signal-to-noise ratio (snr) between outputs and input
0
(default) | scalar
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 = ωlo (ωlo – ωrf).
noise convention | signal at rf frequency | signal at im frequency | iq demodulator block supports this model? |
---|---|---|---|
single-sideband noise (ssb) | s n, signal with noise | n, noise only | yes |
ieee definition of single-sideband noise (ssbieee) | s n, signal with noise | no signal | no; you can create an equivalent model using an ideal filter created from an s-parameters block. |
add phase noise — add phase noise
off
(default) | on
select this parameter to add phase noise to your iq demodulator system.
phase noise frequency offset (hz) — phase noise frequency offset
1
(default) | scalar | vector | matrix
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 (dbc/hz) — phase noise level
-inf
(default) | scalar | vector | matrix
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.
automatically estimate impulse response duration — automatically estimate impulse response duration
on
(default) | off
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 — impulse response duration
1e-10
s
(default) | scalar
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.
plot phase noise characteristics — phase noise magnitude response
button
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.
nonlinear polynomial type — polynomial nonlinearity
even and odd order
(default) | odd order
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.
intercept points convention — intercept points convention
input
(default) | output
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.
ip2 — second-order intercept point
inf
dbm
(default) | scalar
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
.
ip3 — third-order intercept point
inf
dbm
(default) | scalar
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 — 1-db gain compression power
inf
dbm
(default) | scalar
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 — output saturation power
inf
dbm
(default) | scalar
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 — gain compression at saturation
inf
dbm
(default) | scalar
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.
design method — simulation type
ideal
(default) | butterworth
| chebyshev
simulation type. simulates an ideal, butterworth, or chebyshev filter of the type specified in filter type and the model specified in implementation.
filter type — filter type
lowpass
(default) | highpass
| bandpass
| bandstop
filter. simulates a lowpass, highpass, bandpass, or bandstop filter type of the design specified in design method
implementation — implementation
lc tee
| lc pi
| transfer function
| constant per carrier
| frequency domain
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 — passband edge frequency
2 ghz
(default) | scalar
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
.
implement using filter order — implement using filter order
on
(default) | off
select this parameter to implement the filter order manually.
dependencies
to enable this parameter, set design method
to butterworth
or
chebyshev
.
filter order — filter order
3
(default) | scalar
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 for tee network implementation and for pi network implementation.
where:
rp is the passband ripple in db.
dependencies
to enable this parameter, select implement using filter order.
passband frequency — passband frequency for lowpass and highpass filters
scalar
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 — passband frequencies for bandpass filters
[2 3] ghz
(default) | 2-tuple vector
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 (db) — passband attenuation
10*log10(2)
(default) | scalar
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 — stopband frequencies for bandstop filters
[2.1 2.9] ghz
(default) | 2-tuple vector
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 — stopband edge frequencies for ideal bandstop filters
[2.1 2.9] ghz
(default) | 2-tuple vector
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 (db) — stopband attenuation
40
(default) | scalar
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
.
source impedance (ohm) — input source resistance
50
(default) | scalar
input source resistance, specified as a scalar in ohms.
dependencies
to enable this parameter, set design method
to butterworth
or
chebyshev
.
load impedance (ohm) — output load resistance
50
(default) | scalar
output load resistance, specified as a scalar in ohms.
dependencies
to enable this parameter, set design method
to butterworth
or
chebyshev
.
automatically estimate impulse response duration — automatically estimate impulse response duration
on
(default) | off
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 — impulse response duration
1e-10
s
(default) | scalar
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.
export — save filter design to a file
button
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.
design method — simulation type
ideal
(default) | butterworth
| chebyshev
simulation type. simulates an ideal, butterworth, or chebyshev filter of the type specified in filter type and the model specified in implementation.
filter type — filter type
lowpass
(default) | highpass
| bandpass
| bandstop
filter. simulates a lowpass, highpass, bandpass, or bandstop filter type of the design specified in design method.
implementation — implementation
lc tee
| lc pi
| transfer function
| constant per carrier
| frequency domain
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 — passband edge frequency
2 ghz
(default) | scalar
passband edge frequency, specified as a scalar in hz, khz, mhz, or ghz.
dependencies
to enable this parameter, set design method
to ideal
.
implement using filter order — implement using filter order
on
(default) | off
select this parameter to implement the filter order manually.
dependencies
to enable this parameter, set design method
to butterworth
or
chebyshev
.
filter order — filter order
3
(default) | scalar
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 for tee network implementation and for pi network implementation.
where:
rp is the passband ripple in db.
dependencies
to enable this parameter, select implement using filter order.
passband frequency — passband frequency for lowpass and highpass filters
scalar
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 — passband frequencies for bandpass filters
[2 3] ghz
(default) | 2-tuple vector
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 (db) — passband attenuation
10*log10(2)
(default) | scalar
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 — stopband frequencies for bandstop filters
[2.1 2.9] ghz
(default) | 2-tuple vector
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 — stopband edge frequencies for ideal bandstop filters
[2.1 2.9] ghz
(default) | 2-tuple vector
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 (db) — stopband attenuation
40
(default) | scalar
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
.
source impedance (ohm) — input source resistance
50
(default) | scalar
input source resistance, specified as a scalar in ohms.
dependencies
to enable this parameter, set design method
to butterworth
or
chebyshev
.
load impedance (ohm) — output load resistance
50
(default) | scalar
output load resistance, specified as a scalar in ohms.
dependencies
to enable this parameter, set design method
to butterworth
or
chebyshev
.
automatically estimate impulse response duration — automatically estimate impulse response duration
on
(default) | off
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 — impulse response duration
1e-10
s
(default) | scalar
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.
export — save filter design to a file
button
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
iq demodulator icons
this table shows you how the icons on this block will vary based on how you set the noise figure (db) and add lo phase noise parameters on the block.
noise figure (db) | add lo phase noise: off | add lo phase noise: on |
---|---|---|
0 |
|
|
10 |
|
|
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 r2017ar2022b: estimate impulse response duration using phase noise offset frequencies
the iq demodualtor block estimates the impulse response duration using the phase noise frequency offset (hz) parameter and visualizes the phase noise characteristics when you click the plot phase noise characteristics button.
r2021b: iq demodulator block icon updated
starting in r2021b, the iq demodulator block icon has updated. the block icons are now dynamic and show the current state of the noise parameter.
when you open a model created before r2021b containing a iq demodualtor block, the software replaces the block icon with the r2021b version.
see also
| mixer
matlab 命令
您点击的链接对应于以下 matlab 命令:
请在 matlab 命令行窗口中直接输入以执行命令。web 浏览器不支持 matlab 命令。
select a web site
choose a web site to get translated content where available and see local events and offers. based on your location, we recommend that you select: .
you can also select a web site from the following list:
how to get best site performance
select the china site (in chinese or english) for best site performance. other mathworks country sites are not optimized for visits from your location.
americas
- (español)
- (english)
- (english)
europe
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
asia pacific
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)