This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
geda:example_hsm [2012/03/06 04:18] vzh Fixed example path |
geda:example_hsm [2014/04/18 11:50] (current) vzh Add link to Russian translation |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | //Translations of this page are also available in the following languages:// [[example_hsm.ru|Русский]]. | ||
+ | |||
====== Hierarchical SPICE model ====== | ====== Hierarchical SPICE model ====== | ||
Example of a hierarchical analog RF SPICE model in the:\\ | Example of a hierarchical analog RF SPICE model in the:\\ | ||
Line 17: | Line 19: | ||
MSA-2643.sch -- schematic of stuff inside device package (as shown in | MSA-2643.sch -- schematic of stuff inside device package (as shown in | ||
- | p. 7 of datasheet. Note that I have not included the transmission | + | p. 7 of datasheet. Note that I have not included the transmission |
lines in this schematic because no value of Z was included in the data | lines in this schematic because no value of Z was included in the data | ||
sheet. (Yes, it's probably 50 ohms, but including them was a | sheet. (Yes, it's probably 50 ohms, but including them was a | ||
Line 33: | Line 35: | ||
Simulation.cmd -- a file holding SPICE analysis commands which is read | Simulation.cmd -- a file holding SPICE analysis commands which is read | ||
- | at simulation time by the SPICE simulator. | + | at simulation time by the SPICE simulator. |
5980-2396E.pdf -- Agilent datasheet about the MSA-2643. | 5980-2396E.pdf -- Agilent datasheet about the MSA-2643. | ||
Line 60: | Line 62: | ||
1. Use a text editor to create .mod files containing SPICE models of | 1. Use a text editor to create .mod files containing SPICE models of | ||
- | the transistors and diodes on p. 8 of the datasheet. | + | the transistors and diodes on p. 8 of the datasheet. |
2. Create Q1 and Q2 transistor model schematics using gschem. Place | 2. Create Q1 and Q2 transistor model schematics using gschem. Place | ||
Line 80: | Line 82: | ||
line for the component. Make sure that the "REFDES" attribute is X? | line for the component. Make sure that the "REFDES" attribute is X? | ||
and not Q? -- this enables the .SUBCKT file to be attached to the | and not Q? -- this enables the .SUBCKT file to be attached to the | ||
- | device. | + | device. |
5. Create the higher layer schematic MSA-2643.sch. Place | 5. Create the higher layer schematic MSA-2643.sch. Place | ||
two copies of Q_Model.sym onto the schematic, corresponding to Q1 and | two copies of Q_Model.sym onto the schematic, corresponding to Q1 and | ||
- | Q2. Make Q1 point to its model by setting the following attributes: | + | Q2. Make Q1 point to its model by setting the following attributes: |
model-name: Q1_MSA26F | model-name: Q1_MSA26F |