1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./style.css" />
6 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./design.css" />
7 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"./print.css" />
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
13 <h1 class=
"sectionedit1" id=
"geda_gaf_rf_cascade_symbols_and_netlister">gEDA/gaf RF Cascade Symbols and Netlister
</h1>
21 This document is released under
<a href=
"http://www.gnu.org/copyleft/fdl.html" class=
"urlextern" title=
"http://www.gnu.org/copyleft/fdl.html" rel=
"nofollow">GFDL
</a>
29 <!-- EDIT1 SECTION "gEDA/gaf RF Cascade Symbols and Netlister" [1-173] -->
30 <h2 class=
"sectionedit2" id=
"overview">Overview
</h2>
34 This document describes the symbol library and gnetlist backend which support driving RF Cascade (
<a href=
"http://rfcascade.sourceforge.net" class=
"urlextern" title=
"http://rfcascade.sourceforge.net" rel=
"nofollow">http://rfcascade.sourceforge.net
</a>) simulations from the gEDA/gaf system. Cascade is a noise figure and distortion analysis tool geared towards radio receiver design.
<br/>
36 The basic steps involved with using gEDA as the frontend for Cascade simulations are:
39 <li class=
"level1"><div class=
"li"> Create schematics of the circuit.
</div>
41 <li class=
"level1"><div class=
"li"> Extract the netlist.
</div>
43 <li class=
"level1"><div class=
"li"> Run Cascade.
</div>
48 <!-- EDIT2 SECTION "Overview" [174-630] -->
49 <h2 class=
"sectionedit3" id=
"requirements">Requirements
</h2>
53 You will need the following programs to be installed:
56 <li class=
"level1"><div class=
"li"> A recent version of gEDA/gaf. To see if your version is recent enough, see if the directory
<strong><code>$prefix/share/gEDA/sym/cascade
</code></strong> exists.
<strong><code>$prefix
</code></strong> is the installation prefix for gEDA on your system.
</div>
58 <li class=
"level1"><div class=
"li"> RF Cascade. The executable is usually called cascade. If you do not have Cascade available on your system, you will need to get a copy from
<a href=
"http://rfcascade.sourceforge.net" class=
"urlextern" title=
"http://rfcascade.sourceforge.net" rel=
"nofollow">http://rfcascade.sourceforge.net
</a>.
</div>
63 <!-- EDIT3 SECTION "Requirements" [631-1103] -->
64 <h2 class=
"sectionedit4" id=
"creating_schematics">Creating Schematics
</h2>
68 When creating a block diagram in the gschem 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.
<br/>
70 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.
74 <!-- EDIT4 SECTION "Creating Schematics" [1104-1748] -->
75 <h2 class=
"sectionedit5" id=
"extracting_the_cascade_input_file">Extracting the Cascade Input File
</h2>
79 To extract the Cascade input file, run:
81 <pre class=
"code">gnetlist -g cascade -o test.cas file1.sch [file2.sch ...]
</pre>
84 For the example file contained in this archive, you can run:
86 <pre class=
"code">gnetlist -g cascade -o example.cas example.sch
</pre>
89 The netlist will be left in
<strong><code>example.cas
</code></strong>.
93 <!-- EDIT5 SECTION "Extracting the Cascade Input File" [1749-2078] -->
94 <h2 class=
"sectionedit6" id=
"running_cascade">Running Cascade
</h2>
98 Cascade is exceptionally simple to run. Just run:
100 <pre class=
"code">cascade example.cas
> example.out
</pre>
103 to run the analysis on the system contained in the file
<strong><code>example.cas
</code></strong> and write the results to the file
<strong><code>example.out
</code></strong>. Refer to the Cascade documentation for complete details.
107 <!-- EDIT6 SECTION "Running Cascade" [2079-2393] -->
108 <h2 class=
"sectionedit7" id=
"appendix_a_--_symbols_in_the_library">Appendix A -- Symbols in the Library
</h2>
112 Please note that all instances must have the
<strong><code>refdes=
</code></strong> attribute set.
116 <!-- EDIT7 SECTION "Appendix A -- Symbols in the Library" [2394-2519] -->
117 <h3 class=
"sectionedit8" id=
"sources_cascade-source">Sources (cascade-source)
</h3>
125 <li class=
"level1"><div class=
"li"> C=Carrier level in dBm. Optional.
</div>
127 <li class=
"level1"><div class=
"li"> CN0=Carrier to Noise Spectral Density Ratio in dBm/Hz. Optional.
</div>
129 <li class=
"level1"><div class=
"li"> CN=Carrier to Noise Ratio in dB. Optional.
</div>
131 <li class=
"level1"><div class=
"li"> BW=Signal Bandwidth in Hz. Optional, but requred if CN= is used.
</div>
136 <!-- EDIT8 SECTION "Sources (cascade-source)" [2520-2798] -->
137 <h3 class=
"sectionedit9" id=
"defaults_cascade-default">Defaults (cascade-default)
</h3>
141 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.
145 <li class=
"level1"><div class=
"li"> RIN=Default block input resistance in Ohms. Optional.
</div>
147 <li class=
"level1"><div class=
"li"> ROUT=Default block output resistance in Ohms. Optional.
</div>
149 <li class=
"level1"><div class=
"li"> RHO=Default third order distortion correlation coeffcient. Optional.
</div>
154 <!-- EDIT9 SECTION "Defaults (cascade-default)" [2799-3458] -->
155 <h3 class=
"sectionedit10" id=
"elements">Elements
</h3>
159 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 gEDA/gaf RF Cascade symbol library contains different symbols for clarity in the diagram
160 only. The currently available element symbols are: Attributes:
162 <div class=
"table sectionedit11"><table class=
"inline">
164 <td class=
"col0">cascade-amp
</td><td class=
"col1">Amplifier
</td>
167 <td class=
"col0">cascade-filter
</td><td class=
"col1">Filter
</td>
170 <td class=
"col0">cascade-mixer
</td><td class=
"col1">Mixer
</td>
173 <td class=
"col0">cascade-transformer
</td><td class=
"col1">Transformer
</td>
176 <td class=
"col0" colspan=
"2"> </td>
179 <td class=
"col0" colspan=
"2"> Table
1: Element Types
</td>
182 <!-- EDIT11 TABLE [3852-3988] --><ul>
183 <li class=
"level1 node"><div class=
"li"> Gain is specified by one of the following:
</div>
185 <li class=
"level2"><div class=
"li"> <strong>G
</strong>=Power gain in dB.
</div>
187 <li class=
"level2"><div class=
"li"> <strong>GP
</strong>=Power gain in dB.
</div>
189 <li class=
"level2"><div class=
"li"> <strong>GV
</strong>=Voltage gain in dB.
</div>
193 <li class=
"level1"><div class=
"li"> <strong>NF
</strong>=Noise Figure in dB. Optional.
</div>
195 <li class=
"level1"><div class=
"li"> <strong>IIP3
</strong>=Input Third Order Intercept Point in dBm. Optional.
</div>
197 <li class=
"level1"><div class=
"li"> <strong>RIN
</strong>=Block input resistance in Ohms. Optional.
</div>
199 <li class=
"level1"><div class=
"li"> <strong>ROUT
</strong>=Block output resistance in Ohms. Optional.
</div>
201 <li class=
"level1"><div class=
"li"> <strong>RHO
</strong>=Third order distortion correlation coeffcient. Optional.
</div>
206 <!-- EDIT10 SECTION "Elements" [3459-4416] -->
207 <h2 class=
"sectionedit12" id=
"example">Example
</h2>
211 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.
215 <!-- EDIT12 SECTION "Example" [4417-4605] -->
216 <h3 class=
"sectionedit13" id=
"example_schematics">Example Schematics
</h3>
220 Figure
1 shows the schematic of a simple receiver signal chain.
<br/>
222 Figure
2 shows the contents of the example.cas file.
224 <div class=
"table sectionedit14"><table class=
"inline">
226 <td class=
"col0"> <a href=
"media/geda/rf_cascade_figure1.jpg" class=
"media" target=
"_blank" title=
"geda:rf_cascade_figure1.jpg"><img src=
"media/geda/rf_cascade_figure1.jpg" class=
"media" alt=
"" /></a> </td>
229 <td class=
"col0"> <a href=
"media/geda/rf_cascade_figure2.jpg" class=
"media" target=
"_blank" title=
"geda:rf_cascade_figure2.jpg"><img src=
"media/geda/rf_cascade_figure2.jpg" class=
"media" alt=
"" /></a> </td>
232 <!-- EDIT14 TABLE [4755-4828] -->
234 <!-- EDIT13 SECTION "Example Schematics" [4606-4829] -->
235 <h3 class=
"sectionedit15" id=
"netlist_the_design">Netlist the Design
</h3>
239 To netlist the design, run:
241 <pre class=
"code">gnetlist -g cascade example.cas example.sch
</pre>
244 <!-- EDIT15 SECTION "Netlist the Design" [4830-4944] -->
245 <h3 class=
"sectionedit16" id=
"run_the_analysis">Run the Analysis
</h3>
249 Run the analysis with:
251 <pre class=
"code">cascade example.cas
</pre>
254 <!-- EDIT16 SECTION "Run the Analysis" [4945-5028] -->
255 <h2 class=
"sectionedit17" id=
"document_revision_history">Document Revision History
</h2>
257 <div class=
"table sectionedit18"><table class=
"inline">
259 <td class=
"col0">December
3rd,
2003</td><td class=
"col1">Created cascade.tex
</td>
262 <!-- EDIT18 TABLE [5068-5108] -->
264 <!-- EDIT17 SECTION "Document Revision History" [5029-] --></body>