<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://server.ibfriedrich.com/wiki/ibfwikien/index.php?action=history&amp;feed=atom&amp;title=Models_in_%28P%29SPICE_and_TARGET_3001%21</id>
	<title>Models in (P)SPICE and TARGET 3001! - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://server.ibfriedrich.com/wiki/ibfwikien/index.php?action=history&amp;feed=atom&amp;title=Models_in_%28P%29SPICE_and_TARGET_3001%21"/>
	<link rel="alternate" type="text/html" href="https://server.ibfriedrich.com/wiki/ibfwikien/index.php?title=Models_in_(P)SPICE_and_TARGET_3001!&amp;action=history"/>
	<updated>2026-05-01T17:41:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://server.ibfriedrich.com/wiki/ibfwikien/index.php?title=Models_in_(P)SPICE_and_TARGET_3001!&amp;diff=8982&amp;oldid=prev</id>
		<title>Markus Friedrich at 14:13, 23 January 2008</title>
		<link rel="alternate" type="text/html" href="https://server.ibfriedrich.com/wiki/ibfwikien/index.php?title=Models_in_(P)SPICE_and_TARGET_3001!&amp;diff=8982&amp;oldid=prev"/>
		<updated>2008-01-23T14:13:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;small&amp;gt;Back to [[Model import or creation]]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Models in (P)SPICE:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
SPICE model files/libraries can contain modelcards and subcircuits. In a SPICE &amp;#039;&amp;#039;&amp;#039;[[simulator]]&amp;#039;&amp;#039;&amp;#039; some primitives (basic models) are implemented e.g. for a general diode. That means the simulator knows the behavior of a general diode. A diode of the type 1N4000, which is placed in a circuit, needs only some specific parameters. Each primitive has some free parameters, so that the simulator can generate a particular model from the general model.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This parameterizing would have to be repeated e.g. for each diode of the type 1N4000, which is placed several times in a circuit. In order to save this input work, one refers to a modelcard, which contains this parameterizing. Modelcards are differentiated by freely definable names. Thus the modelcard with the name 1N4000 contains all free parameters for a diode of the type 1N4000. Therefore, only the name of the appropriate modelcard must be entered for each individual diode in the circuit.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Individual types of modelcards with appropriate parameters for nearly each primitive do exist. Some primitives (e.g. inductance) do not have a modelcard or not all parameters can be set by the modelcard! I.e. these remaining parameters must be entered for each individual component.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example diode:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SPICE:&amp;#039;&amp;#039;&amp;#039; Modelcard: .MODEL 1N4000 D(IS=14n BV=150 ...)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; Name=1N4000, Type of modelcard=D, Parameters: IS=14n BV=150 ...&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SPICE:&amp;#039;&amp;#039;&amp;#039; Diode in the circuit (SPICE-Circuit): D77 OUT GND 1N4000&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; D=Diode, Name=77, Anode=Connected with signal OUT, Cathode=Connected with signal GND, Modelcard=1N4000&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; It must be distinguished between the modelcard for a certain type of diode and the really placed diode in the circuit (SPICE circuit)! The diode in a (SPICE) circuit only carries information about the pin connection (wiring) and the name of the appropriate modelcard.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A circuit can also become a model (macro) by declaring it as a subcircuit. The subcircuit gets a name and some signals must be defined as interface nodes (also parameters could be defined). Complex components are modeled via subcircuits, since they can not be modeled by using only one primitive.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example bridge rectifier:&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 .SUBCKT RECT4000 IN1 IN2 P M&lt;br /&gt;
   D1 IN1 X 1N4000&lt;br /&gt;
   D2 M IN1 1N4000&lt;br /&gt;
   D3 M IN2 1N4000&lt;br /&gt;
   D4 IN2 X 1N4000&lt;br /&gt;
   RP X P 50&lt;br /&gt;
 .ENDS&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; Name=RECT4000, Nodes: IN1 IN2 P M&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SPICE:&amp;#039;&amp;#039;&amp;#039; Rectifier in the circuit (SPICE circuit): XR L N VCC GND RECT4000&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;INFO:&amp;#039;&amp;#039;&amp;#039; X=Subcircuit, R=Name, IN1=Connected with signal L, IN2=Connected with signal N, P=Connected with signal VCC, M=Connected with signal GND, RECT4000=Subcircuit name&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Handling in TARGET 3001!:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
The (global) modelcards and subcircuits are stored in the project or in the library (not in the component). The individual components only contain the data for the translation into the SPICE circuit:&amp;lt;br&amp;gt;&lt;br /&gt;
Type of model: I.e. a certain primitive or a subcircuit&amp;lt;br&amp;gt;&lt;br /&gt;
Pin assignment&amp;lt;br&amp;gt;&lt;br /&gt;
If necessary the name of the modelcard or the subcircuit&amp;lt;br&amp;gt;&lt;br /&gt;
If necessary additional parameters&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The pin assignment determines the connection between the &amp;quot;pins&amp;quot; of the model and the pin numbers of the symbol (e.g. anode = pin 1, cathode = pin 2). The circuit in the schematic will be automatically converted into a SPICE circuit.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The file Target.Cir receives all necessary data for the simulator:&amp;lt;br&amp;gt;&lt;br /&gt;
SPICE circuit&amp;lt;br&amp;gt;&lt;br /&gt;
All in the circuit used global modelcards and subcircuits.&amp;lt;br&amp;gt;&lt;br /&gt;
Simulator commands&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[category:Simulation]][[de: Modelle in (P)SPICE und TARGET 3001!]]&lt;/div&gt;</summary>
		<author><name>Markus Friedrich</name></author>
	</entry>
</feed>