Continue to Site

Welcome to EDAboard.com

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.

differential amplifier design using ngspice

Status
Not open for further replies.

prateek3790

Full Member level 2
Joined
Feb 8, 2016
Messages
131
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Activity points
1,190
Hi All,

i tried to design a diff amp using ngspice however im not able to get the simulation. I want to find the gain freq plot. can you please tell what's wrong with my method?
 

Attachments

  • dff_amp.PNG
    dff_amp.PNG
    26.8 KB · Views: 204
  • IMG_20190928_201611__01.jpg
    IMG_20190928_201611__01.jpg
    306.7 KB · Views: 222

M2/M1 is not configured as current mirror, thus zero bias current.

Also Vin1 and Vin2 are in phase but should be out of phase. Still the same fault as three months before, unless you want to measure common mode rejection.

I have used SPICE netlist entry 35 years ago because we ran the tool on a DEC PDP11 text terminal without graphics capability. Pretty retro to use netlist entry these days...
 
M2/M1 is not configured as current mirror, thus zero bias current.

Also Vin1 and Vin2 are in phase but should be out of phase. Still the same fault as three months before, unless you want to measure common mode rejection.

I have used SPICE netlist entry 35 years ago because we ran the tool on a DEC PDP11 text terminal without graphics capability. Pretty retro to use netlist entry these days...

can you please suggest some other free tool, which is compatible with windows
 

E.g. Ltspice. There are however also free schematic entry tools suggested for Ngspice.

As an additional remark, you should also check the output bias point when running the OTA without resistive load.
 

can you please suggest some other free tool, which is compatible with windows

Microcap has recently been made public for everyone so it's free without any restriction.It's been used for serious circuit designs by professional engineers now it's free..
https://www.spectrum-soft.com/index.shtm

It's really professional grade SPICE based simulator.
 

Why do you have 'dff' before endc?

AFAIK, a control section in NGSpice starts with a .control keyword and ends with .endc

Also, have you tried adding a .save all before the control section?

P.S. I have tried MicroCap and it is a great simulator... I was using NGSpice for doing work on the side, but I like the GUI of MicroCap. The only problem that I have with Microcap is I cannot plot things like gm, gds etc as a function of some sweep parameter which I can do with NGSpice.

Not too long ago, I designed the netlist of a chip using text based netlist and Eldo simulator, laid it out using Cadence layout tool suite and taped it out. It was in 350nm. Its good to use text based netlist once in your life. The chip worked albeit with some major tweaking. I could have definitely caught the issue if I had a GUI that could annotate the DC operating points.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top