Editing Ocs package
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
== History and Motivation == | == History and Motivation == | ||
== Problem Formulation == | == Problem Formulation == | ||
== Data Structure == | == Data Structure == | ||
== File Formats == | == File Formats == | ||
Line 112: | Line 13: | ||
=== IFF netlists === | === IFF netlists === | ||
=== SPICE netlists === | === SPICE netlists === | ||
SPICE .spc netlists are parsed via the function "prs_spice", which currently supports the set of "Element Cards" | SPICE .spc netlists are parsed via the function "prs_spice", which currently supports the following set of "Element Cards" | ||
(after each "Element Card" the instantiating syntax is described) | |||
*Capacitors: | |||
Cname n+ n- cvalue | |||
* Diodes: | |||
Cname anode knode modelname <parameters> | |||
* MOS: | |||
Mname gnode dnode snode bnode modelname <parameters> | |||
N.B.: one instance of a MOS element MUST be preceeded (anywhere in the file) by the declaration of the related model. For instance: | |||
.MODEL mynmos NMOS( k=1e-4 Vth=0.1 rd=1e6) | .MODEL mynmos NMOS( k=1e-4 Vth=0.1 rd=1e6) | ||
M2 Vgate 0 Vdrain 0 mynmos | M2 Vgate 0 Vdrain 0 mynmos | ||
* Resistors: | |||
Rname n+ n- rvalue | |||
* Voltage sources: | |||
Vname n+ n- <dcvalue> <transvalue> | |||
** Transvalue specifies a transient voltage source | |||
SIN(VO VA FREQ TD THETA) | |||
*** where: | |||
**** VO (offset) | |||
**** VA (amplitude) | |||
**** FREQ (frequency) | |||
**** TD (delay) | |||
**** THETA (damping factor) | |||
*** The signal produced is | |||
**** for time 0 to TD: | |||
V0 | |||
**** for time TD to TSTOP: | |||
VO + VA*exp(-(time-TD)*THETA)*sine(twopi*FREQ*(time+TD)) | |||
Currently the damping factor has no effect. | |||
Pulse | Pulse | ||
Line 274: | Line 82: | ||
* simple | * simple | ||
(see documentation of functions Mnmosfet and Mpmosfet). | (see documentation of functions Mnmosfet and Mpmosfet). | ||
== Tutorials == | == Tutorials == | ||
Line 573: | Line 379: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||