Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You are probably doing simulations wrong. If you're doing AC analysis, apply inputs of +0.5 and -0.5. If you are applying 0.5 to both inputs, then you're simulating the common-mode gain which should increase with frequency in most cases.
Plot the AC output, this will be your AC differential mode gain.
Also your inputs need to have a DC bias since your lower rail is ground. Let the DC value be Vdd/2 for now. It can be optimized later. If your inputs have a DC of 0 right now, transistors will not be working properly and won't act correctly as an amplifier.
i don't know what's happening but ac analysis doesn't work
i did as you wrote. maybe i do the plotting wrong? i use VDB(out2,out1) or V(out2,out1)/Vinp and V(out2,out1) but each case isn't 1 or 0db as expected.
I also did the transfer function analysis to make sure that W/L ratios gives me unity gain and it does.
*******plots******
.PLOT AC diff=PAR(`V(out2,out1)/V(inp)`)
.PLOT AC Vdb(out2,out1)
.PLOT AC V(out2,out1)
.PRINT DC V(out2,out1)
.PRINT DC I(M1) I(M2)
.PRINT TRAN V(out1,out2)
Vinp inp 0 DC=1.5 AC=0.1V,0
Vinn inn 0 DC=1.5 AC=0.1V,180
but it still doesn't work. i have 0 at the differential output. at single outputs, the response increases with frequency. i don't understand the difference between ltspice and hspice
First, you should assure that every devices in your circuit working in proper condition, USE DC and OP to debug your ckt. after this, do ac analysis, also ensure devices' working conditions are the same as in DC analysis. Simulator or commands syntax are not the chief criminal, the KEY is your understanding into the ckt, good luck!
i assured the devices work in saturation region in OP analysis but working conditions changed in AC and surely this caused inproper working. how to polarize inputs during AC simulation to have DC offset. this way i did doesn't work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.