I used two stage differential opamp as comparator but I'm getting the output -ve voltage range.
I have to get high (1.8 V) when it is greater than reference voltage and low (0 V) when less than reference voltage. But as of now I'm getting high -6 V and low -1.75 V.
(net4 is reference voltage and net6 is the input voltage which is a sine wave.)