007_Logical_operator_limited : Logical limited output level
Minimum Versions: SmartSpice 4.6.5.R
The input deck shows how to use an E element (VCVS) with a logical condition (similar to example 5) to set the output level given a variation in input level between the voltage sense connections. In this example the threshold is set again at 2.5v so when the input difference exceeds this value the output switches from 0 to a clipped level of 2v set in the input deck. This is useful to have a well-defined output level despite a widely varying input sense voltage as shown in the waveform plot.
Input Files
LogicalOperator_limited_swing.in
* Test logical operator in VCVS expression .option nomod V1 in 0 pwl(0 -5V 10ns 5V) R1 in 0 1k E2 1 0 vol='(v(in)>=2.5)*5' min=-2 max=2 R2 1 0 1k .tran 1n 10n .print v(in) v(1) .end
Graphics