VALUE Type Source
- Updated2026-03-24
- 1 minute(s) read
Instance declaration syntax:
Exxx o_node_p o_node_n VALUE = {expression}
Gxxx o_node_p o_node_n VALUE = {expression}
Bxxx o_node_p o_node_n V = expression
Bxxx o_node_p o_node_n I = expression
Instance declaration parameters:
| Parameter Name | Parameter Description |
|---|---|
| expression | A mathematical expression operating on circuit variables (voltages and currents). |
Description
In these sources the output is simply the result of the expression.
The B-source with the declaration "Bxxxo_node_p o_node_nV =expression" is a controlled voltage source and is functionality equivalent to the E-source of the VALUE type with the declaration "Exxxo_node_p o_node_nVALUE =expression".
The B-style with the declaration "Bxxxo_node_p o_node_n I = expression" is a controlled current source and is functionality equivalent to the G-source of the VALUE source with the declaration "Gxxxo_node_p o_node_n VALUE = expression".
Examples
E99 out 0 value={v(in)/5}
Gout 33 0 value={ddt(v(33))*1u}
B99 5 0 i=limit(log10(v(5)),-100,10)