The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design >> Analog Design >> comparator problem
https://designers-guide.org/forum/YaBB.pl?num=1245848576

Message started by icekalt on Jun 24th, 2009, 6:02am

Title: comparator problem
Post by icekalt on Jun 24th, 2009, 6:02am

hello,

I have simulated my comparator circuit and the result is strange. I didn't get what expected. My output doesn't change when there is difference between input voltages. Can someone gave me hints on this?

Title: Re: comparator problem
Post by icekalt on Jun 24th, 2009, 6:03am

here is the simulation waveform

Title: Re: comparator problem
Post by raja.cedt on Jun 24th, 2009, 6:16am

hi
  can you please post output at the cross coupled load..becasue that is the critical one..and i was  surprised with your first stage output..many spikes are coming in the output, what we are expecting is some common mode with sine wave..but how spikes are coming, can you please simulate and see and whats your clock frequency?

Thanks,
rajasekhar.

Title: Re: comparator problem
Post by thechopper on Jun 24th, 2009, 7:03pm

Hi,

Have you checked whether the voltage swing on the gate of your output inverters is large enough to guarantee you hit the inverters threshold?
You might eventually need a level shifter in that stage...

Regards
Tosei

Title: Re: comparator problem
Post by icekalt on Jun 25th, 2009, 7:28am


raja.cedt wrote on Jun 24th, 2009, 6:16am:
hi
  can you please post output at the cross coupled load..becasue that is the critical one..and i was  surprised with your first stage output..many spikes are coming in the output, what we are expecting is some common mode with sine wave..but how spikes are coming, can you please simulate and see and whats your clock frequency?

Thanks,
rajasekhar.


thx for the reply rajasekhar. Here is the waveform in attachment. Vout+ and Vout- are the output of cross coupled latch. The frequency of the clock is 1MHz. I have been simulating but until now still didnt find the solution.

Title: Re: comparator problem
Post by icekalt on Jun 25th, 2009, 7:33am


HdrChopper wrote on Jun 24th, 2009, 7:03pm:
Hi,

Have you checked whether the voltage swing on the gate of your output inverters is large enough to guarantee you hit the inverters threshold?
You might eventually need a level shifter in that stage...

Regards
Tosei


thx for the reply the chopper. You can check previous post with the output of the cross-coupled latch. The voltage at the gate of inverter M17 and M16 is around 3V(see Vout+). So i think that should be ok.

Title: Re: comparator problem
Post by subgold on Jun 25th, 2009, 11:16am

the output of your preamp has a voltage level around 1.8V, but your clock signal goes only up to 0.8V, which is not able to turn on the NMOSs M7 and M8. I am afraid your comparator is always off.

Title: Re: comparator problem
Post by icekalt on Jun 25th, 2009, 3:14pm


subgold wrote on Jun 25th, 2009, 11:16am:
the output of your preamp has a voltage level around 1.8V, but your clock signal goes only up to 0.8V, which is not able to turn on the NMOSs M7 and M8. I am afraid your comparator is always off.


subgold, i changed my clock to 3.3 voltage but i still didn't get the desired output..look at the new attachment

Title: Re: comparator problem
Post by nobody on Jun 26th, 2009, 12:22am


You use a double-latch, which can improve the metastablity,and it is weird you have that waveform. Basically, I am with Tosei . Maybe the gain is not big enough to trigger a double-latch. During one phase when CLK=1, M4,M5 and M11 are on. The Ron of M11 is too small, which is low gain equivalently, to trigger the latch. So try to reduce the size of M11 to increase the Ron and improve your gain. Or you
can use a latch in your first preamp to boost the gain by 4 or more.


Title: Re: comparator problem
Post by icekalt on Jun 26th, 2009, 12:46am


nobody wrote on Jun 26th, 2009, 12:22am:
You use a double-latch, which can improve the metastablity,and it is weird you have that waveform. Basically, I am with Tosei . Maybe the gain is not big enough to trigger a double-latch. During one phase when CLK=1, M4,M5 and M11 are on. The Ron of M11 is too small, which is low gain equivalently, to trigger the latch. So try to reduce the size of M11 to increase the Ron and improve your gain. Or you
can use a latch in your first preamp to boost the gain by 4 or more.


Can you give me some example or link to show is latch applied in preamplifier?

Title: Re: comparator problem
Post by raja.cedt on Jun 26th, 2009, 12:51am

hi,
   your first stage results are wrong...check got dc bias because you are getting spikes in the o/p

thanks,
Rajasekhar.

Title: Re: comparator problem
Post by icekalt on Jun 26th, 2009, 1:19am


raja.cedt wrote on Jun 26th, 2009, 12:51am:
hi,
   your first stage results are wrong...check got dc bias because you are getting spikes in the o/p

thanks,
Rajasekhar.


i just replaced the PMOS load in the preamplifier with resistive load. Now it's getting better but i still got the spikes. When i simulate only the preamplifier(other part is removed), then there is no spike at the output of preamplifier. M5,M6,M7 and M8 maybe the cause?

Title: Re: comparator problem
Post by nobody on Jun 26th, 2009, 2:14am

As a method to increase the gain in preamp stage, you can use a cross-coupled pair to do that. The gain was gm,input/gm,pmos. Now the gain is gm,input/(gm,pmos-gm,cross-coupled).

Another method is to increase the Ron of M11, which stores the voltage difference and kind of resets the output voltage, and you can see page 263
on Design of High-Speed Communication Circuits by Ramesh Harjani.
Just use books.google.com to find that book. The gain is gm1*(0.5Ron,12||(-1/gm4)) where -1/gm4 comes from a cross-coupled pair or a latch . Make sure the overall gain is positive. In your case, you have one Ron and an equivalent resistor from two latches. Therefore, Ron is parallel with PMOS and NMOS latches at the same time. That is complicated for me to derive the gain. Maybe you can try a method like Fig.4 on page 263. http://books.google.com.tw/books?id=wWeJYKiPoZQC&pg=PA263&lpg=PA263&dq=introduction+to+cmos+comparator+cross+couple&source=bl&ots=eVHxKxuDDZ&sig=rH0xvFgodEU0yrmWF3P8qyp6vM0&hl=zh-TW&ei=Z49ESrTFAY2U6wPywd0j&sa=X&oi=book_result&ct=result&resnum=6

Title: Re: comparator problem
Post by subgold on Jun 26th, 2009, 3:12am


icekalt wrote on Jun 26th, 2009, 1:19am:

raja.cedt wrote on Jun 26th, 2009, 12:51am:
hi,
   your first stage results are wrong...check got dc bias because you are getting spikes in the o/p

thanks,
Rajasekhar.


i just replaced the PMOS load in the preamplifier with resistive load. Now it's getting better but i still got the spikes. When i simulate only the preamplifier(other part is removed), then there is no spike at the output of preamplifier. M5,M6,M7 and M8 maybe the cause?


the spikes are due to the gate parasitics of the next stage. i think that is OK.

but M11 seems to be for reset purpose, then shouldn't it be a PMOS or controled by _CLK?

Title: Re: comparator problem
Post by icekalt on Jun 26th, 2009, 5:46am


subgold wrote on Jun 26th, 2009, 3:12am:

icekalt wrote on Jun 26th, 2009, 1:19am:

raja.cedt wrote on Jun 26th, 2009, 12:51am:
hi,
   your first stage results are wrong...check got dc bias because you are getting spikes in the o/p

thanks,
Rajasekhar.


i just replaced the PMOS load in the preamplifier with resistive load. Now it's getting better but i still got the spikes. When i simulate only the preamplifier(other part is removed), then there is no spike at the output of preamplifier. M5,M6,M7 and M8 maybe the cause?


the spikes are due to the gate parasitics of the next stage. i think that is OK.

but M11 seems to be for reset purpose, then shouldn't it be a PMOS or controled by _CLK?


the comparator i used actually that one from uyttenhove. M11 should be NMOS and controlled by CLK. I attach that article from IEEE for you. Thx..

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.