I have designed a comparator with hysteresis and rail to rail operation and my output depicted in figure1.The inputs of the comparator is a sine wave signal and a triangular waveform as shown below.Vdd is 1.2V and the transistor technology is 65nm.I am little confused about the reason for the small undesirable fluctuations as shown with the red arrow in figure 1. Which is the reason of these fluctuations? How I can improve my output PWM signal to look like the figure2.
Also in figure 3,4,5 depicted the comparator circuit with the hysteresis. The input of the left transistor is the sine waveform which shown in figure 1.It's the output of the rail to rail circuit as shown in figure 6. DC analysis is shown in figure8,9,10,11,12.
Furthermore in figure 7 depicted the output sine waveform of the rail to rail circuit with small also fluctuations when I connect the rail to rail amplifier with the hysteresis circuit. Why its appear?
Thanks in advance!