Hi, I have been designing a simple two stage op-am...
# analog-design
j
Hi, I have been designing a simple two stage op-amp using Sky130. So far I have been able to achieve about 56 dB of gain. My concern now is how I can ensure that my bias voltages remain constant - namely, the bias voltage at the output of the first-stage OTA and the bias voltage at the output node of the common-source second stage. I have a vague understanding of common-mode feedback. Is CMFB the solution to ensuring that the bias voltages remain where I want them to be? And if so, any advice about how CMFB can be implemented into my circuit would be greatly appreciated. I have read Razavi's sections on CMFB but I am unsure as to how CMFB will look like in my circuit. I am hoping to tape-out this 2-stage op amp with my undergraduate project team at Cornell University sometime in the Spring (via ChipIgnite). Thanks once again. Side note, if you spot any areas of concern within my circuit (all bias voltages are shown, as well as the tail current), please let me know (we also have a constant gm current reference that will replace the ideal current source shown here)! I am eager to learn how to better improve my circuit / my Analog ICs understanding.
w
Are you talking about the voltage labeled Vmid?
The common mode voltage range on the input will depend on the headroom of the current mirrors and the threshold voltage of the input devices. There are some low / zero threshold devices in the PDK that you could use for greater voltage range.
Assuming that the opamp is in a closed loop operating condition Vmid will need to swing between Vth of the output PMOS and the voltage required to fully saturate it
Circuit wise, you might need local feedback to make the opamp unity gain stable?
a
@Jon Ho To somewhat answer your CMFB question. You need to make sure that the bias is stable and is done by CMFB feedback without impacting your core. In your design, CMFB is not needed as for the first stage, the output dc voltage is set by the tail current source. As for the output stage, since you use the OPA in some feedbac configuration, the output dc will be set via the feedback externally and hence dont need CMFB either. For CMFB generation, a true differential inputs are needed. CMFB voltage will be the average of these two which can be derived by high value resistors. This then will be compared with a fixed Vref using another OPA, the output of the OPA will control the tail current.
j
Thanks for the insights guys. @ArunAshok I've actually implemented the CMFB loop that you mentioned since I made the post. Is this what you're referring to? So far, the CMFB loop I have seems to work in the sense that the bias voltage at output is set exactly to my reference of 1V.
The issue I'm having now is that my mid-band gain looks very funky. I'm not exactly sure what is causing the zero in my circuit. The rise is a perfect 20dB/decade. Not sure if I need to somehow pull that zero closer in. @ArunAshok
a
@Jon Ho Are you simulating open loop or close loop gain ? In OPA test bench, you might be connecting your vout to either vp or vn depending on the feedback network. So setting vp or vn externall will also set the vout dc bias point. Hence I said you 'dont' need cmfb for vout node here.
@Jon Ho if you have apole in your feedback, this will act as a zero in your circuit. Maybe thats what you see ?
j
I am currently simulating open-loop gain. @ArunAshok
l
It is not a practical amplifier. It could be a band-pass filter. It has no low frequency gain. And, this way, it can be unstable.