Ideal comparator

This component models an ideal comparator.

If the voltage on the non-inverting terminal is greater than the voltage on the inverting terminal, the output is driven to a user-defined value given by Output voltage amplitude. Otherwise, the output is driven to zero. 

The switching event follows a linear transition with the following slope magnitude: 

idealcompslopemag.png

Other than the finite transition time behavior, which was mainly included to assist with convergence, all non-ideal behavior such as input/output impedance and power dissipation are ignored. For this reason this model is regarded as ideal.