1 .TH SPI 5 "30 March 2000" "AVERTEC" "File Formats"
5 spi \- parser for Spice netlist.
11 The description of a netlist foo must be contained in a \fB.SUBCKT\fP of a file named \fIfoo.spi\fP. This description can include others \fB.SUBCKT\fP that must be in the same file or files included with the command \fB.INCLUDE\fP in the source file.
13 Recognized elements are :
25 Others elements are not considered.
27 Nodes can be either numbered or nameed. It's possible to assign a name to a node which is designated by a number with the directive
29 .B * NET number = name
31 in the \fB.SUBCKT\fP. The word NET can be replaced by positioning the environment variable \fIMBK_SPI_NETNAME\fP. Names are used to named the signals and the connectors in the model.
33 On the \fB.SUBCKT\fP interface, nodes of the same name followed by a period and a number are considered to be on the net, even if no connected in the circuit. For example :
36 .SUBCKT nand2 in out out.1 out.2 vss vdd out.3
39 The nodes out, out.1, out.2 and out.3 are considered to be the same signal of the spice model. This feature can be turned off if the environment variable \fIMBK_SPI_MERGE\fP is set, and the period can be replaced by another character with the environment variable \fIMBK_SPI_SEPAR\fP.
41 No particular information is needed to build a model from a \fB.SUBCKT\fP, the parser rebuild all signals, even they contains many resistances and capacitances. If names are not provided, the parser will create then in order to provide a valid model.
45 The parser load all \fB.SUBCKT\fP in memory, even those in files included with the command \fB.INCLUDE\fP until the required model is loaded. For each \fB.SUBCKT\fP loaded, the parser build the equipotentials with both nodes of resistances on the same net and both nodes of capacitances on differents net unless more information is given.
47 Environment variable considered are
63 .SH ENVIRONMENT VARIABLES
69 Transistor model name. Multiple names may be concatened using the character ':'. Default names are
76 Comment used to name the nodes. Default is
81 Character used to separate a name from a node number on the interface of the \fB.SUBCKT\fP. The parser considers nodes of the same name to be on the same equipotential. Default is '\fB.\fP'.
85 If this variable is set, the parser does not merge interface nodes of the same name, but different number, on the same equipotential.
89 If this variable is set, the name of the files opened are displayed on the error output.
93 This is an example of a file used by the Spice parser.
100 .subckt gxor 24 42 49 52 53 61 54 63 64 71 72
109 xauxsc1 64 65 53 55 33 35 2 8 ndrvp_y
110 xs 66 70 56 60 48 50 11 21 5 9 34 36 38 45 mx2_y
111 xauxsc3 70 71 60 61 41 46 18 22 ndrvp_y
120 C4_51 69 63 6.525e-15
121 C4_52 72 63 6.525e-15
130 .so man1/avt_bug_report.1