Index: trunk/doc/user/07_io/export_spice/raw.html
===================================================================
--- trunk/doc/user/07_io/export_spice/raw.html (revision 7540)
+++ trunk/doc/user/07_io/export_spice/raw.html (revision 7541)
@@ -29,3 +29,39 @@
it is exported after the value attribute.
+
+
+The final spice instance lineis built by appending the following sections
+in order, in a single line:
+
+ - name of the component, perhaps prefixed with the value of attribute
+ spice/prefix; e.g. M_Q45
+
- one netname for each port of the component; ports are first ordered
+ numerically by their display/name (or display/pinnum or name or pinnum)
+ attribute, then iterated from 1; ports must form a continous list from
+ 1 to the number of ports the component has; each port must be connected
+ to a network. TODO: maybe auto-resistor to 0?
+
- optionally the value, if there is one specified in
+ the display/value (or value) attribute;
+ this is useful for passives (e.g. resistors)
+
- optionally the spice model name, if there is one specified in
+ the spice/model attribute;
+ this is useful for non-passives (e.g. transistors, diodes)
+
- optionally extra spice parameters, if specified in
+ the display/spice/params (or spice/params) attribute if it
+ exists and is not empty;
+ this is useful if the model has extra parameters that should be
+ printed after the model name; generally preferred instead of value
+ for non-passives.
+
+
+For example the following is a spice diode instance line, split up and
+annotated with source fields in the table below:
+
+D15 gnd sck 1n4148 T=35
+
+
+
+ output | D15 | gnd sck | | 1n4148 | T=35
+ |
---|
section | name | netnames | (value) | attribute: spice/model | attribute: spice/params
+ |
---|