Download Simulation Models and Analyses Reference
Transcript
Simulation Models and Analyses Reference Sine of Voltage (Single-Ended Input) Model Kind General Model Sub-Kind Spice Subcircuit SPICE Prefix X Model Name SINV SPICE Netlist Template Format @DESIGNATOR %1 %2 @MODEL Parameters (definable at component level) None Notes The content of the sub-circuit file (SINV.ckt) associated with this model is shown below. The formula/equation used to provide this function is declared as part of the netlist-specific entry, under the .SUBCKT line of the file. *Sine of Voltage .SUBCKT SINV 1 2 BX 2 0 V=SIN(V(1)) .ENDS SINV The resulting voltage is the value expressed in radians. Examples Consider the circuit in the image above. With respect to the SINV component, the entries in the SPICE netlist will be: *Schematic Netlist: XM1 IN OUT SINV . . *Models and Subcircuit: .SUBCKT SINV 1 2 BX 2 0 V=SIN(V(1)) .ENDS SINV The effect of the function can be seen in the resultant waveforms obtained by running a transient analysis of the circuit. TR0113 (v1.6) April 21, 2008 271