Design of a CMOS Comparator with Hysteresis in Cadence

There are many types of comparators, in this example a comparator with hysteresis is analyzed and simulated.

image.png

What is the function of hysteresis in a comparator?

By using the threshold we can reduce the glitches on the output caused by the small ripple of the input signal. When the compared voltages are similar then the output is going to flicker if we do not implement a minimum hysteresis. And, of course, multiple transitions in control signals have to be avoided.

The hysteresis is essential **to compare noisy signals **or similar voltages.

The schematic

The proposed circuit is based on a two-stages open-loop comparator, but adding an internal positive feedback to accomplish the hysteresis. [1] It is a differential-to-single-ended comparator with one stage output buffer (if needed, more output buffers can be added).

The basic topology can be seen in the schema:

Hysteresis comparator

The following 2 schematics are implemented in Cadence. Both are the same, they have just a different representation. Maybe the second representation is more clear and understandable.

Schematic of a comparator with internal hysteresis
Second option for the schematic of a comparator with internal hysteresis

In this topology, two kinds of feedback can be found with the inputs (IN- and IN+): positive and negative. The negative feedback is through the transistors M1 and M2. The positive feedback is on the transistors M14 and M15.

The ratio between M1 and M15 will determine the overall feedback sign. To have hysteresis, the ratio mult_M15/mult_M1 should be greater than 1.

Schematic of a comparator with internal hysteresis

In a normal comparator, we need to consider two cases: when the currents in M0 and M3 are different but neither is zero, and when one of the input transistors has a current equal to the sink (IPOL in the following case) and the other current is zero.

Comparator Test Bench

For test the behaviour of this comparator, a** capacitive load of ~1pF is attached to the output.** The bigger the output cap is set, slower the response is going to be. To improve the driving capabilities of the comparator, you may only add an incremental chain of buffers at the before the output of the comparator. For my case with one small inverter was enough for the performance required.

  • The bias current is set to 80nA.
  • The technology used in this case is TSMC 180nm general purpose.

In this testbench, I attached several voltage sources to the positive input. By this way, I can comment out (ignore) the source I don’t want to use. So I can configure and modify the input source easily.

Test Bench

To see several hysteresis, I will sweep different transistor ratio between the positive and negative feedback. For that, I set a variable named “mult”, which I control how much current flow into the positive feedback.

After the simulation

hysteresis with “mult” as a sweeping variable

We can see, that the bigger the ratio between M15 and M1 is, greater is the hysteresis.

To graphically represent the hysteresis, normally the sweeping input voltage is plotted versus the output. This shows better the called bistable characteristic.

That can be done in Cadence!! by clicking on the menu: Axis>> Yvs Y.

image.png
hysteresis representation

For the case of mult = 20, the trip voltage* is approx. *1.02V and 1.98V, which can be seen better in the following graph:

image.png

Current behaviour

The current wave diagram helps a lot to understand what is happening on the comparator, here a screenshot:

Current behavior of the M14-M15 and M1 and M0 transistors

One side hysteresis

For that the size of the transistor M14 was reduced to mult = 1 and the M15 was sized to mult = 20. As the following schema:

The results show how when in+ is less than I- (attached to 1.5V), we obtain more hysteresis because of the feedback of In+ is weaker

one-side hysteresis
bistable characteristic

To obtain more hysteresis, you may play with the multipliers of M14 and M15, as well you may increase the length of M1 and M2 (or even M0 and M3)

[1] CMOS Analog Circuit Design. Douglas R. Holberg, Phillip E. Allen

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末哈打,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子湾盗,更是在濱河造成了極大的恐慌立轧,老刑警劉巖,帶你破解...
    沈念sama閱讀 217,406評論 6 503
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件帐萎,死亡現(xiàn)場離奇詭異疆导,居然都是意外死亡葛躏,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,732評論 3 393
  • 文/潘曉璐 我一進(jìn)店門均蜜,熙熙樓的掌柜王于貴愁眉苦臉地迎上來囤耳,“玉大人,你說我怎么就攤上這事充择∽德螅” “怎么了材彪?”我有些...
    開封第一講書人閱讀 163,711評論 0 353
  • 文/不壞的土叔 我叫張陵段化,是天一觀的道長。 經(jīng)常有香客問我雄嚣,道長,這世上最難降的妖魔是什么鼓鲁? 我笑而不...
    開封第一講書人閱讀 58,380評論 1 293
  • 正文 為了忘掉前任港谊,我火速辦了婚禮封锉,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘碾局。我一直安慰自己奴艾,他們只是感情好,可當(dāng)我...
    茶點故事閱讀 67,432評論 6 392
  • 文/花漫 我一把揭開白布像啼。 她就那樣靜靜地躺著忽冻,像睡著了一般此疹。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上湖笨,一...
    開封第一講書人閱讀 51,301評論 1 301
  • 那天慈省,我揣著相機(jī)與錄音眠菇,去河邊找鬼。 笑死放闺,一個胖子當(dāng)著我的面吹牛缕坎,可吹牛的內(nèi)容都是我干的匾寝。 我是一名探鬼主播,決...
    沈念sama閱讀 40,145評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼疾忍!你這毒婦竟也來了一罩?” 一聲冷哼從身側(cè)響起差购,我...
    開封第一講書人閱讀 39,008評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎饼暑,沒想到半個月后迈着,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,443評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,649評論 3 334
  • 正文 我和宋清朗相戀三年画髓,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片肉微。...
    茶點故事閱讀 39,795評論 1 347
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖劳曹,靈堂內(nèi)的尸體忽然破棺而出锭硼,到底是詐尸還是另有隱情账忘,我是刑警寧澤,帶...
    沈念sama閱讀 35,501評論 5 345
  • 正文 年R本政府宣布,位于F島的核電站期升,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏吼渡。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,119評論 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望盒犹。 院中可真熱鬧,春花似錦、人聲如沸皂股。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,731評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽洋魂。三九已至,卻和暖如春庄岖,著一層夾襖步出監(jiān)牢的瞬間心剥,已是汗流浹背优烧。 一陣腳步聲響...
    開封第一講書人閱讀 32,865評論 1 269
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人撼短。 一個月前我還...
    沈念sama閱讀 47,899評論 2 370
  • 正文 我出身青樓不瓶,卻偏偏與公主長得像灾杰,于是被迫代替她去往敵國和親艳吠。 傳聞我的和親對象是個殘疾皇子凛篙,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,724評論 2 354

推薦閱讀更多精彩內(nèi)容