circuit envelope basics -凯发k8网页登录

main content

circuit envelope basics

introduction

the circuit envelope technique speeds up rf system simulation. in simulink®, simulating high-frequency signals requires a time step proportional to the highest frequency present in the rf system. however, the modulation frequency or envelope of the rf signals can be several orders of magnitude smaller than the highest frequency. the circuit envelope technique takes advantage of this condition to model rf signals accurately while reducing simulation time.

for example, the following figure shows the benefit of using circuit envelope with a signal x(t):

circuit envelope over a signal.

the signal consists of a time-varying modulating signal on a high-frequency carrier or center frequency. in many rf applications, the frequency of the modulating signal, a(t), is smaller than the frequency of the carrier, fc.

rf blockset™ software handles the carrier cos(2πfct) analytically, so only simulates the modulating signal. rf blockset uses two methods to handle this simulation, equivalent baseband and circuit envelope. in both methods, the simulation engine takes time steps on the scale of the modulating signal instead of the carrier.

compared to equivalent baseband simulation, circuit envelope allows including additional non-linear effects beyond in-band spectral regrowth and is suitable for multicarrier simulation.

using circuit envelope simulation, you can model:

  • even and odd order nonlinear effects, generating in-band, and out-of-band harmonics and spectral regrowth

  • multiport and wideband filtering (frequency selective) effects, like the effects introduced by s-parameters, including impedance mismatches

  • in-band and out-of-band interfering and spur signals, including mixing effects

  • dc conversion and dc offsets

  • arbitrary local oscillator signals, including phase noise

  • thermal noise generation

  • tunable rf elements controlled by simulink signals (vga, switches, rlc, attenuator, phase shifter, etc.)

assumptions for circuit envelope simulation

in circuit envelope simulation, you assume that the modulation envelope of the signal varies slowly with respect to the carrier. this type of simulation assumes the signal envelopes to be constant over a single cycle of the carrier (quasi-static assumption). you can assume that a signal envelope is narrowband when it has a frequency at least one order of magnitude smaller than the carrier frequency.

for real passband and wide-band modulated signals, circuit envelope provides correct results. however, the simulation can be slower than traditional time-domain (transient) simulation techniques, like the technique supported by simulink. if your input is an ultra-wideband signal, or if you deal with many modulated signals filling the simulation spectrum, use time-domain passband simulation.

when considering the quasi-static assumption, you need to consider the effect of the nonlinearities that increase the bandwidth of the signal envelope. signal envelopes, including in-band spectral regrowth, should be narrowband compared to the carrier frequency. therefore, circuit envelope is less suitable for simulating hard non-linearities, like nonlinearities resulting from clipping or saturating effects.

in multicarrier signals, overlapping envelopes are not recommended. overlapping envelopes occur when carrier frequencies are spaced at a distance smaller than the envelope bandwidth. in this case, you can reduce the simulation time step and accommodate the signal information within a single envelope. for more information, see .

what is circuit envelope?

circuit envelope is a time domain (transient) simulation superimposed on a harmonic balance analysis. the analysis is performed at discrete points in time.

harmonic balance is a frequency-domain method for calculating the steady-state response of non-linear circuits when excited with a finite number of harmonic tones. this analysis solves the system of equations in the frequency domain and is suitable for simulating frequency-defined components such as s-parameters or transmission lines.

harmonic balance is used by circuit envelope to analyze the system response at every time step. the simulation derives the analysis frequencies from the signal carriers. the harmonic tone coefficients are time varying and processed using transient simulation. this process provides the time-varying envelopes around the harmonic tones.

in the figure below, you see a schematic representation of a circuit envelope simulation. a modulated sinusoidal signal centered around is input to a nonlinear system. the output of the system has multiple harmonics, each with a time-varying envelope.

schematic representation of a circuit envelope simulation

in circuit envelope, the time step should be small enough to capture the bandwidth of the envelope and not the maximum frequency (carrier) of the signal. a smaller simulation time step corresponds to a larger simulation (envelope) bandwidth, and thus a slower simulation.

the circuit envelope simulation time step is set in the configuration block. the simulation time step must be sufficiently small to capture the signal modulation (bandwidth) and the in-band spectral regrowth caused by the system nonlinearity. at the same time, the simulation time step should be as large as possible to increase simulation speed. you can find a tradeoff between accuracy and simulation speed, by using a simulation time step within this range of values

  • use a simulation time step value less than 1/(2*bandwidth) to fulfill nyquist criterion and correctly sample your signal modulation.

  • use a simulation time step value greater than or equal to 1/(8*bandwidth) to have maximum accuracy at the envelope edges. you can use these ranges of values when simulating s-parameters blocks, filters, and frequency defined components. this time step value also captures the in-band spectral regrowth caused by odd order nonlinearity.

time domain simulation and frequency domain analysis

circuit envelope combines time-domain simulation with frequency-domain analysis, there are two edge cases of particular interest.

  • if the carrier frequency of all signal sources is 0, then the simulation is reduced to a purely transient (real-passband) simulation with fixed time step. no harmonic balance is performed. this configuration does not speed up the rf system simulation.

  • if the simulation stop time is equal to 0, then the simulation is reduced to a purely static nonlinear analysis (harmonic balance) of the system. no time-domain simulation is performed. this configuration is beneficial for the steady-state analysis of the rf system, for example to understand the resulting energy allocation from many signals, or for ac system analysis.

how circuit envelope simulation works in rf blockset

consider a rf blockset circuit. you can divide this circuit into three sections: input signal generation, rf subsystem, output signal visualization.

rf blockset model

input signal generation

you can use two kinds of input signal sources:

  • simulink signal source

  • rf blockset signal source

if you are using a simulink signal source, you need a gateway into the rf subsystem (inport block). the simulink input signal represents the modulation of your rf signal. the signal can be complex or real based on the information it carries. to model a constant modulation on a carrier in the circuit envelope simulation environment use block. you can also model noise using current or voltage noise source in rf systems using block.

if the input signal is a vector, each element of the vector represents the envelope signal to be modulated around a certain carrier frequency. you specify the carrier frequencies of the input signal in the block.

rf subsystem

the rf subsystem (highlighted in blue) consists of three main blocks: inport, configuration, and outport. you can include as many inport or outport blocks as you need in your rf subsystem.

  • inport: the inport block performs an ideal frequency shift of the input signal around the carrier frequency by implementing a complex frequency multiplication. if your input signal is a vector with each element representing a separate envelope, you can specify separate carrier frequencies for each of them.

    you can also specify a zero-carrier frequency corresponding to a real passband signal. in this case, the imaginary part of the input signal is neglected.

    for more information, see .

  • configuration: you use the configuration block to specify the following:

    • the simulation time step, which determines the bandwidth of the envelope simulation. all signal envelopes have the same bandwidth. to avoid resampling of the input signal and aliasing, use the same time step as the signal inputs from simulink for multiple inport systems. for single inport systems, use slower input signals with interpolation filter checkbox.

    • the harmonic order of simulation, which determines the total number of simulation frequencies used to perform the harmonic balance analysis. the auto option gives a conservative choice of harmonic frequencies. the simulation time is directly proportional to the total number of simulation frequencies. if your circuit operates in mildly nonlinear conditions, you can speed up the simulation by reducing the harmonic order.

    • normalization of the carrier power, used to scale the average signal power with respect to its root mean squared value. use this option to scale the average power of the signal envelope with respect to the root mean square power of its real passband representation.

    • the temperature and the seed used for generating thermal noise.

    for more information, see .

  • outport: the outport block is the return gateway from circuit envelope to the simulink environment. if you specify a carrier frequency other than zero, the block returns the complex envelope of the signal around the specified carrier. outport blocks are used to probe modulated signals on the specified carriers for viewing using the spectrum analyzer or for further signal processing.

    for more information see, .

output signal visualization

you can use simulink sinks to visualize the rf signals. to access circuit envelope signals in simulink, you need an outport block to act as a gateway out of the rf subsystem. the outport block probes the signal envelopes centered around the specified carrier frequencies.

by using a time scope, you can inspect the time-varying content of the modulated signals without plotting the respective carrier frequency.

by using a spectrum analyzer, you can inspect the spectral content of the modulated signals, which are implicitly centered around the different carrier frequencies.

related topics

    网站地图