Mixer Gain
Simulation in WinSPICE3.
In this note we show how we at Silicon
Devices simulate mixer gain using WinSPICE3, a generic netlist driven linear and
non-linear SPICE simulator. The netlists accompanying this note
(available from our website) may be modified
for use in other SPICE simulators however, some of the scripting used
may not translate.
By
definition, it is not possible to calculate mixer gain using an AC
(steady-state frequency domain) simulation as this is at one frequency
only, whereas a mixer generates multiple frequencies. It is
possible to use a TRAN (time domain) simulation followed by a fast
fourier transform to find the frequency components generated, but the
technique is very limited due to the relatively long time taken for the
fourier transform to run when compared to the time taken for the
transient simulation; also the technique tends to only be useful for
steady state cases and can be problematic for high power mixers where
the RF signal represents a significant part of the bias voltages
present.
Here, we show how by implementing the geometric identity Vpk=((cos(Vac))2+(sin(Vac))2)0.5 in the time domain, we remove the frequency dependence of the input and output power flow by "recovering" the waveform' s envelope at each port, allowing rapid calculation of input and output power; so allowing us to evaluate conversion gain, compression points etc in a manner more realistic than simple AC simulations and in a way consistent with pulsed RF signals used in digital data modulation schemes.
[return to
SDL design resources]
The SIN(...) source in
WinSPICE (and most other SPICE simulators) becomes a "cosine" source if
a delayed
by 3.PI/2. A sine and a cosine source can be used to generate
the complex input signals necessary to carry out the calculation,
however, it is more convenient to
use a transmission line with a delay of PI/4, then relabel the (real)
input as the cosine input and the transmission line output as the sine
input (representing the "imaginary" part of the input
signal) as this will allow us to calculate the output levels from the Device Under Test. Such a structure is also
useful for extracting the real
and imaginary part of the output time-domain waveform, particularly if
the DUT is an
output from an amplifier or mixer. The finite time delay does require
that we restrict the signal
at each port of the device under test to predominantly one frequency;
then we can
directly calculate the envelope of the signal at each of those ports
using Vpk=((cos(x))2+(sin(x))2)0.5.
By applying the time
delay to both input ports of the mixer,
each set to a delay of PI/2 of the predominant frequency at that
port,
plus a third delay of PI/2 of the expected output
frequency (either USB or LSB) at the output port, we can then
carry out the appropriate
calculation of power
gain (or conversion loss) of the mixer. Notice that generally, we
can only set this delay to one value. The schematic below
illustrates just one input port for the DUT, plus the output port:
[the real interesting part (an actual
circuit) is coming soon
... please email if you would
like an early copy, otherwise check back occasionally to see it when it
is available!]
In this note, we have discussed using a time delay to extract
the complex values for a single frequency at a node of interest,
enabled us to calculate the instantaneous power levels at that node,
which
then may be applied to the calculation of input reflection coefficient,
input
compression point and instantaneous power gain for a mixer.
We have shown the technique to be perfect once the
"initial
conditions" (ie delays
through the transmission lines) have passed. The
time-domain simulation
techniques presented here may usefully be extended to pulsed power
amplifiers and investigation of mixer compression points.
The test-bench used in the above examples maybe downloaded at MixerTest.zip. You may also wish to contact Technical@SiliconDevices.com for an updated copy of the testbench which is subject to continuous development when simulating our IPcells throughout their design cycle. If you wish to explore time domain simulation of mixers (or power amplifiers) further please contact the author.