1 # Created by Octave 3.6.1, Sun Mar 25 17:34:24 2012 UTC <root@t61>
13 # name: <cell-element>
17 -- Function File: OUTSTRUCT = prs_iff(NAME)
18 Parse a netlist in IFF format and produce the system description
21 NAME is the basename of the CIR and NMS files to be parsed.
23 See the `IFF file format specifications' (distributed together
24 with the OCS package) for more details on the file format.
26 OUTSTRUCT has the following fields:
30 LCR: struct % the fields of LCR are shown below
31 NLC: struct % NLC has the same fields as LCR
32 namesn: matrix % numbers of vars named in .nms file
33 namess: cell % the names corresponding to the vars above
34 totextvar: scalar % the total number of external variables
35 totintvar: scalar % the total number of internal variables
41 struct array containing the fields: % array has one element per block
43 func % name of the sbn file corresponding to each block
44 section % string parameter to be passed to the sbn files
45 nextvar % number of external variables for each element of the block
46 vnmatrix % numbers of the external variables of each element
47 nintvar % number of internal variables for each element of the block
48 osintvar % number of the first internal variable
49 npar % number of parameters
50 nparnames% number of parameter names
51 nrows % number of rows in the block
52 parnames % list of parameter names
53 pvmatrix % list of parameter values for each element
57 See the `IFF file format specifications' for details about the
66 # name: <cell-element>
70 Parse a netlist in IFF format and produce the system description
75 # name: <cell-element>
82 # name: <cell-element>
86 -- Function File: [STUCT] = prs_spice (FILENAME)
87 Circuit file parser that can interpret a subset of the spice file
90 `prs_spice' currently supports the following set of "Element Cards"
95 Cname anode knode modelname <parameters>
98 Mname gnode dnode snode bnode modelname <parameters>
100 N.B.: one instance of a MOS element MUST be preceeded
101 (everywhere in the file) by the declaration of the related
103 .MODEL mynmos NMOS( k=1e-4 Vth=0.1 rd=1e6)
104 M2 Vgate 0 Vdrain 0 mynmos
110 Vname n+ n- <dcvalue> <transvalue>
112 Transvalue specifies a transient voltage source
113 SIN(VO VA FREQ TD THETA)
123 * THETA (damping factor)
128 VA*exp(-(time-TD)*THETA)*sine(twopi*FREQ*(time+TD))
130 Currently the damping factor has no effect.
133 PULSE(V1 V2 TD TR TF PW PER)
150 Currently rise and fall time are not implemented yet.
152 - .MODEL cards Defines a model for semiconductor devices
154 .MODEL MNAME TYPE(PNAME1=PVAL1 PNAME2=PVAL2 ... )
157 * NMOS N-channel MOSFET model
159 * PMOS P-channel MOSFET model
163 The parameter "LEVEL" is currently assigned to the field
164 "section" in the call of the element functions by the solver.
165 Currently supported values for the parameter LEVEL for NMOS
170 (see documentation of function Mdiode).
172 Currently supported values for the parameter LEVEL for D are:
174 (see documentation of functions Mnmosfet and Mpmosfet).
177 See also: prs_iff, Mdiode, Mnmosfet, Mpmosfet
183 # name: <cell-element>
187 Circuit file parser that can interpret a subset of the spice file