Next: Forward/backward annotation between Lepton and PADS PowerPCB, Previous: BOM netlister backend, Up: Netlister [Contents][Index]
by: Dan McMahill
This document is released under GFDL
December 3rd, 2003
This document describes the symbol library and lepton-netlist
backend
which support driving RF Cascade
(http://rfcascade.sourceforge.net) simulations from the Lepton
system. Cascade is a noise figure and distortion analysis tool geared
towards radio receiver design.
The basic steps involved with using Lepton as the frontend for Cascade simulations are:
You will need the following programs to be installed:
cascade
. If you do not
have Cascade available on your system, you will need to get a copy
from http://rfcascade.sourceforge.net.
When creating a block diagram in the lepton-schematic
editor, use only the
symbols from the cascade library. Every block diagram must have a
‘cascadesource’ element. In addition, the block diagram must be a
simple cascade. No parallel paths or branches are allowed.
All instances must have a unique reference designator. For a receiver block diagram, this is often times best achieved by manually entering them. The only restriction on reference designator names is that they contain no spaces. A descriptive name such as ‘RF Filter’ or ‘First Mixer’ is useful as it will show up in the cascade output report.
To extract the Cascade input file, run:
lepton-netlist -g cascade -o test.cas file1.sch [file2.sch ...]
For the example file contained in this archive, you can run:
lepton-netlist -g cascade -o example.cas example.sch
The netlist will be left in example.cas.
Cascade is exceptionally simple to run. Just run:
cascade example.cas > example.out
to run the analysis on the system contained in the file example.cas and write the results to the file example.out. Refer to the Cascade documentation for complete details.
Please note that all instances must have the ‘refdes=’ attribute set.
Source.
Attributes:
This symbol sets the default impedance levels as well as the correlation coeffcient used for third order distortion calculations. There are two versions of this symbol. One is used to set the defaults at the beginnng of the definition. The other can be placed in series with the cascade to change the defaults part way through. This is useful if you wish to change impedance levels in the middle of the receiver chain. Attributes:
Cascade characterizes each block in a system by its gain and optionally noise figure and third order intercept point. As such, there is no distinction between various elements such as amplifiers, filters, and mixers. The Lepton RF Cascade symbol library contains different symbols for clarity in the diagram only. The currently available element symbols are:
Attributes:
Table 1: Element Types
cascade-amp
Amplifier
cascade-filter
Filter
cascade-mixer
Mixer
cascade-transformer
Transformer
G
=Power gain in dB.
GP
=Power gain in dB.
GV
=Voltage gain in dB.
NF
=Noise Figure in dB. Optional.
IIP3
=Input Third Order Intercept Point in dBm. Optional.
RIN
=Block input resistance in Ohms. Optional.
ROUT
=Block output resistance in Ohms. Optional.
RHO
=Third order distortion correlation coeffcient. Optional.
This appendix provides a simple example of the entire process of generating a schematic, producing a Cascade input file, running an analysis and looking at the result.
Figure 6.1 shows the schematic of a simple receiver signal chain.
Figure 6.2 shows the contents of the example.cas file.
# Cascade (http://rfcascade.sourceforge.net) # Created with Lepton EDA netlister # Initial global defaults defaults RIN=75 ROUT=75 RHO=0 # Source definition source C=-35 CN0=78 CN=0 BW=1 # Cascaded system RF_FILTER1 G=-2.5 NF=2.5 LNA G=12 NF=2.7 IIP3=0 RF_FILTER2 G=-2.5 NF=2.5 MIXER G=-7 NF=7 IIP3=-3 IF_FILTER G=-6 NF=6 T1 G=0 NF=0 RIN=75 ROUT=50 defaults RIN=75 ROUT=50 RHO=0 IF_AMP G=12 NF=6 IIP3=7 # End of netlist created by Lepton EDA netlister
To netlist the design, run:
lepton-netlist -g cascade example.cas example.sch
Run the analysis with:
cascade example.cas
December 3rd, 2003
Created cascade.tex
Next: Forward/backward annotation between Lepton and PADS PowerPCB, Previous: BOM netlister backend, Up: Netlister [Contents][Index]