create complex baseband-equivalent model
baseband-equivalent modeling
rf blockset™ equivalent baseband software simulates the physical system in the time domain using a complex baseband-equivalent model that it creates from the passband frequency-domain parameters of the physical blocks. this type of modeling is also known as lowpass equivalent (lpe), complex envelope, or envelope modeling.
to create a complex baseband-equivalent model in the time domain based on the network parameters of the physical system, the blockset performs a mathematical transformation that consists of the following three steps:
calculate the passband transfer function
the blockset calculates the passband transfer function from the physical block parameters at the modeling frequencies by calculating the transfer function of the physical subsystem and then applying the tukey window to obtain the passband transfer function.
note
to learn how the blockset uses the specified network parameters to compute the network parameters at the modeling frequencies, see .
the transfer function of the physical subsystem is defined as:
where vs and vl are the source and load voltages shown in the following figure, and f represents the modeling frequencies.
more specifically,
where
and
zs is the source impedance.
zl is the load impedance.
sij are the s-parameters of a two-port network.
the blockset derives the transfer function of the physical subsystem from the input port block parameters as shown in the following figure.
the blockset then applies the tukey window to obtain the passband transfer function:
where tukeywin
is the signal processing toolbox™
(signal processing toolbox) function.
calculate the baseband-equivalent transfer function
the blockset calculates the baseband transfer function, , by translating the passband transfer function to its equivalent baseband transfer function:
where fc is the specified center frequency.
the resulting baseband-equivalent spectrum is centered at zero, so the blockset can simulate the system using a much larger time step than simulink® can use for the same system. for information on why this translation allows for a larger time step, see simulation efficiency of a baseband-equivalent model.
the baseband transfer function is shown in the following figure.
calculate the baseband-equivalent impulse response
the blockset calculates the baseband-equivalent impulse response by performing the following steps:
calculate the inverse fft of the baseband transfer function. for faster simulation, the block calculates the ifft using the next power of 2 greater than the specified finite impulse response filter length. then, it truncates the impulse response to a length equal to the filter length specified. when the finite impulse response is truncated to the length specified by the user, the effect of the truncation is similar to windowing with a rectangular window.
apply the delay specified by the modeling delay (samples) parameter in the input port block dialog box. selecting an appropriate value for this delay ensures that the baseband-equivalent model has a causal response by moving the time window such that the model energy is concentrated at the center of the window, as shown in the following figure:
simulation efficiency of a baseband-equivalent model
the baseband-equivalent modeling technique improves simulation speed by allowing the simulator to take larger time steps. to simulate a system in the time domain, simulink would require a step size of:
using the baseband-equivalent model of the same system, whose spectrum has been shifted down by fc, allows for a much larger time step of:
example — select parameter values for a baseband-equivalent model
baseband-equivalent modeling example overview
in this example, you model an rf transmission line stimulated by a pulse and plot the baseband-equivalent model that the blockset uses to simulate the transmission line in the time domain. you compare the effects of using different parameter values for the baseband-equivalent model. this example helps you understand how to use these parameters to best apply the baseband-equivalent modeling paradigm of performing time-domain simulation using a limited band of frequency data.
create the model
in this part of the example, you perform the following tasks:
select blocks to represent system components. in this part of the example, you select the blocks to represent:
the input signal
the rf transmission line
the baseband-equivalent model display
the following table lists the blocks that represent the system components and a description of the role of each block.
block | description |
---|---|
discrete impulse | generates a frame-based pulse input signal. |
real-imag to complex | converts the real pulse signal into a complex pulse signal. |
input port | establishes parameters that are common to all blocks in the rf transmission line subsystem, including the source impedance of the subsystem that is used to convert simulink signals to the physical modeling environment. |
rlcg transmission line | models the signal attenuation caused by an rf transmission line. |
output port | establishes parameters that are common to all blocks in the rf transmission line subsystem. these parameters include the load impedance of the subsystem, which is used to convert rf signals to simulink signals. |
complex to magnitude-angle | converts the complex signal from the output port block into magnitude-angle format. |
build the model. in this part of the example, you create a simulink model, add blocks to the model, and connect the blocks.
create a model.
add to the model the blocks shown in the following table. the library path column of the table specifies the hierarchical path to each block.
block
library path
quantity
discrete impulse dsp system toolbox > sources 1
real-imag to complex simulink > math operations 1
input port rf blockset > equivalent baseband > input/output ports 1
rlcg transmission line rf blockset > equivalent baseband > transmission lines 1
output port rf blockset > equivalent baseband > input/output ports 1
complex to magnitude-angle simulink > math operations 1
connect the blocks as shown in the following figure.
now you are ready to specify model variables.
specify model variables. type the following at the matlab® prompt to set up workspace variables for the model:
t_s = 5e-10; % sample time f_c = 3e9; % center frequency taps = 64; % filter length
now you are ready to specify the block parameters.
specify model parameters
in this part of the example, you specify the following parameters to represent the behavior of the system components:
input signal parameters. you generate the frame-based complex pulse source signal using two blocks:
the (dsp system toolbox) block generates a real pulse signal.
the block converts the real signal to a complex signal.
note
all signals in the rf model must be complex to match the signals in the physical subsystem, so you create a complex input signal.
in the discrete impulse block parameters dialog box:
set sample time to
t_s
.set samples per frame to
2*taps
.
set the real-imag to complex block input parameter to
real
. changing this parameter changes the number of block inputs from two to one, making the block fully connected.
transmission line subsystem parameters. in this part of the example, you configure the blocks that model the rf filter subsystem—the , , and blocks.
in the input port block parameters dialog box:
set treat input simulink signal as to
incident power wave
.this option tells the blockset to interpret the input signal as the incident power wave to the rf subsystem, and not the source voltage of the rf subsystem.
note
if you use the default value for this parameter, the software interprets the input simulink signal as the source voltage. as a result, the source and the load that model the input port and output port blocks, respectively, introduce 6 db of loss into the physical system at all frequencies. for more information on why this loss occurs, see the note in .
set finite impulse response filter length to
taps
.set center frequency to
f_c
.set sample time (s) to
t_s
.this sample time is equivalent to a modeling bandwidth of 1/
t_s
seconds.set input processing to
columns as channels (frame based)
.
in the rlcg transmission line block parameters dialog box:
set inductance per length (h/m) to
50
.set capacitance per length (f/m) to
.02
.set frequency (hz) to
f_c
.set transmission line length (m) to
0.5*t_s
.
accept the default parameters for the output port block to use a load impedance of 50 ohms.
signal display parameters. in this part of the example, you specify the parameters that set up the baseband-equivalent model display. you use the block to convert the rf subsystem output to magnitude format.
set the complex to magnitude-angle block output parameter to
magnitude
. changing this parameter changes the number of block outputs from two to one, making the block fully connected.
run the simulation and analyze the results
before you run the simulation, set the stop time. click
simulation in the prepare, click model settings in
configuration and simulation. enter
2*t_s*(taps-1)
for the stop time
parameter.
to run the simulation, click run in the model window.
this window appears automatically when you start the simulation. the following plot shows the baseband-equivalent model, which contains a significant amount of acausal energy because of the limited bandwidth of the model.
baseband-equivalent model
the next part of the example shows you how to reduce this acausal response.
reducing acausal response in the baseband-equivalent model
in this part of the example, you adjust the fractional bandwidth of guard bands parameter. this parameter controls the shaping of the filter that the blockset applies to create the baseband-equivalent model.
set the input port fractional bandwidth of guard bands parameter to
0.2
.rerun the simulation.
you can see that the acausal response is lower than it was for the previous simulation, but there is still some energy wrapping around the end of the model because it is periodic.
baseband-equivalent model with filter shaping
note
you can further reduce the acausal response in the baseband-equivalent model by increasing the value of the fractional bandwidth of guard bands parameter above 0.2, but if you use a high value, you compromise the fidelity of the gain of the transmission line.
the next section shows you how to shift the response to avoid this wrapping.
introduce delay into the baseband-equivalent model
in this part of the example, you adjust the modeling delay (samples) parameter. this parameter controls the delay the blockset applies to create the baseband-equivalent model.
set the input port modeling delay (samples) parameter to
12
.rerun the simulation.
the response of the baseband-equivalent model is concentrated in a small time window. this model provides the most accurate time-domain simulation of the specified band of frequency data.
baseband-equivalent model with filter shaping and delay
see also
| |