Download SMASH - Reference manual

Transcript
Chapter 5 - Hierarchical descriptions
___________________________________________________________________________________
♦ To store a .SUBCKT in a library, the definition lines must be stored in a file whose name is
built by appending the .CKT extension to the subcircuit name (RCNET.CKT in the previous
example).
♦ The .CKT extension is mandatory, it is not a suggestion...
♦ You may store .SUBCKT which are parametrized or not.
♦ The library file may contain comment lines at the beginning, then the whole definition, from the
“.SUBCKT ...” line to and including the final “.ENDS ...” line.
Example:
* Cell: RCNET
* Created: xx-xx-xx
* By: joe
* Modified: yy-yy-yy
* By: no one knows...
.SUBCKT RCNET X Y \ RVAL CVAL WN
R1 X Y RVAL
R2 Y Z RVAL
C1 Y 0 CVAL
C2 Z 0 CVAL
M1 X Y Z 0 MOSN W= WN L=2U
.ENDS RCNET
File : rcnet.ckt
If you prefer using “.LIB” files, you may also store these lines in a file with extension .LIB, along
with other definitions.
See chapter 11, Libraries.
153