MULTV - Multiplication of Voltages (Single-Ended Inputs)
Model Kind
General
Model Sub-Kind
Spice Subcircuit
SPICE Prefix
X
Model Name
MULTV
SPICE Netlist Template Format
@DESIGNATOR %1 %2 %3 @MODEL
Parameters (definable at component level)
None
Notes
The content of the sub-circuit file (MULTV.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.
*Multiply Voltages
.SUBCKT MULTV 1 2 3
BX 3 0 V=V(1)*V(2)
.ENDS MULTV
Examples
Consider the circuit in the image above, which uses math function components to implement the trigonometric base equation:
Sin2(v) + Cos2(v) = 1
With respect to the MULTV components, the entries in the SPICE netlist will be:
*Schematic Netlist:
XMcos2 COS COS COSSQ MULTV
XMsin2 SIN SIN SINSQ MULTV
.
.
*Models and Subcircuit:
.SUBCKT MULTV 1 2 3
BX 3 0 V=V(1)*V(2)
.ENDS MULTV
The effect of the function can be seen in the resultant waveforms obtained by running a transient analysis of the circuit.
In this example, the following analysis parameters on the Transient/Fourier Analysis page of the Analyses Setup dialog have been used:
- Transient Start Time - set to
0.000
- Transient Stop Time - set to
50.00m
- Transient Step Time - set to
200.0u
- Transient Max Step Time - set to
200.0u