The Comparator models an ideal comparator with hysteresis. The input impedance is infinite.
The output goes high when . It goes low when .
When the output is high, the output pin is connected to the high supply pin, , through a resistance , and is connected to the low supply pin, , through a conductance .
When the output is low, the output pin is connected to the high supply pin, , through a conductance , and is connected to the low supply pin, , through a resistance .