Index: trunk/doc/user/07_io/export_spice/raw.html =================================================================== --- trunk/doc/user/07_io/export_spice/raw.html (revision 7880) +++ trunk/doc/user/07_io/export_spice/raw.html (revision 7881) @@ -27,6 +27,15 @@ schematics with spice/prefix=M will become M_Q41; for the same symbol if spice/prefix=Q, the component name will be Q41. When present, it is exported after the value attribute. +

+ If the model is known and is a subckt, an X prefix is used automatically. + If model is subckt and spice/prefix is also specified, attribute + priorities decide on the final prefix; the subckt X prefix has + the normal plugin priority of target_spice. The user can override + this decision with a spice/prefix of higher priority (e.g. 250). A + symbol would have a spice/prefix attribute at lowest user priority + (31050) so that target_spice can override it with an X if it detects + subckt model. spice/portmap @@ -40,12 +49,11 @@ the model must have a mod (or prm) file in the spice library. This mod file must be a stand-alone file with a single .model or .subckt and will be copied in the output netlist. If the file uses .subckt, - and no spice/prefix is present, the instance name is automatically - prefixed with X. If spice/model_include is specified, the model is - used without any model copied to the output for this component - (and no X prefixing is performed). The model is searched in the lib - with exact file name, with .mod and with .prm appended, all case - sensitive. + a target_spice engine priority spice/prefix=X is added. If + spice/model_include is specified, the model is used without any + model copied to the output for this component (and no spice/prefix=X + set is attempted). The model is searched in the lib first with exact file + name, then with .mod then with .prm appended, all case sensitive.

See also: model options.