Hie, actually I was trying to design an Op-amp but...
# analog-design
Hie, actually I was trying to design an Op-amp but facing a lot of issues but somehow I managed to get a clean output without any distortion but I am getting functionality error like giving 1milli sine wave at the positive terminal I was expecting square wave with saturated voltages in output but I am getting inverted sine output with some DC added Can someone please help in that
Can you post the schematic?
Screenshot (423).png
using nfet for M2(Common drain configuration) is giving normal sine(non-inverted) but wave is distorted like small ramp signal on it and DC is also addded
i was testing it in comparator mode
Operating it like this with no feedback is not the normal way to try and amplify signals. And there will be an DC offset at the bias of the output but this will be very badly defined without feedback
The biasing is not really the normal way to do it because it relies on the gm of M9. Do you know what the bias currents through the circuit are? Typically you'd use a current source into a current mirror - like you've already got - to exactly define the bias current through the circuit.
👍 1
If you want a square signal at the output, that means the circuit needs to operate at non linear region which simply means the input voltage swing needs to be larger. I think 1mV is way smaller than the transistor threshold voltage which is why it cannot compare between 0V and 1mV . Try larger voltage swing like 500mV.
actually biasing using Idc 30uA was also giving almost same output like this but with different swings
@Md Munir Hasan thanks I will try with larger input voltage also