comp − Two input comparator with hysteresis |
loadrt comp [count=N] |
comp.N (uses floating-point) |
Update the comparator |
comp.N.in0 float in |
Inverting input to the comparator |
comp.N.in1 float in |
Non-inverting input to the comparator |
comp.N.out bit out |
Output of the comparator. |
comp.N.hyst float rw |
Hysteresis of the comparator (default 0.0) With zero hysteresis, the output is true when in1 > in0. With nonzero hysteresis, the output switches on and off at two different values, separated by distance hyst around the point where in1 = in0. |