Absolute Value of Voltage (Differential Input)

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

Model Kind

General

Model Sub-Kind

Spice Subcircuit

SPICE Prefix

X

Model Name

ABSVR

SPICE Netlist Template Format

@DESIGNATOR %1 %2 %3 %4 @MODEL

Parameters (definable at component level)

None

Notes

The content of the sub-circuit file (ABSVR.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.

*Absolute value of Voltage -- pkg:ABS(V)

.SUBCKT ABSVR 1 2 3 4

BX 3 4 V=ABS(V(1,2))

.ENDS ABSVR  

Examples

Consider the circuit in the image above. With respect to the ABSVR component, the entries in the SPICE netlist will be:

*Schematic Netlist:

XM1 IN1 IN2 OUT 0 ABSVR

.

.

*Models and Subcircuit:

.SUBCKT ABSVR 1 2 3 4

BX 3 4 V=ABS(V(1,2))

.ENDS ABSVR

The effect of the function can be seen in the resultant waveforms obtained by running a transient analysis of the circuit:

Links

Absolute Value of Current

Absolute Value of Voltage (Single-Ended Input)

Math Functions

The Netlist Template - Explained

Sub-circuit based models

Simulation Models