IEEE 3.14159 – Opamp Drawing Standard

What is wrong with this?

Kicad’s opamp drawing. The humanity!

Well, there is nothing wrong with this (apart from the name Ampli Op – that sounds like a bad 80s hair band 🙂 ).

Kicad draws opamps with the non-inverting terminal on top, rather than the inverting terminal. It’s insanely annoying (and it just cost me a batch of circuit boards, too!).

 

What’s the big deal?

Here’s how google thinks you should draw an opamp, and I agree with the majority.

majority vote: 80/20 says + terminal goes on top

Does it really matter? Well no but getting it wrong is easy, and you may not find out until it’s too late.

Reasons for having the inverting terminal on top:

  • the non-inverting input is often connected to ground either directly or through a resistor. So that looks nicer with no wires crossed.
  • the inverting input is often used with the output to make a feedback configuration, which is drawn on top. Most stable feedback is negative feedback, so the signal needs to come back to the inverting input.
  • especially AC simulations can be very deceiving: if you swap the pins, they might still work! That’s because for AC simulations the opamp is replaced with a simple equivalent schematic. LTSpice seems to get it right. In the past, Pspice got it wrong in my experience (another wasted day…)
  • and that is if your program has a simulator. Kicad doesn’t (really). So you end up porting or redrawing from scratch – another chance to screw it up.

Let’s see how other programs do it…

Eagle

Altium

LTSpice IV

BAD Pspice!

There seems to be an -albeit very unofficial- consensus about drawing opamps with the inverting input on top. Kicad is the odd one out and that’s a real trap for young players.

Of course you get what you pay for, and my Kicad license price just went up by the price of a batch of boards. I had deliberately taken an LTSpice schematic through a long process to import into Kicad, just because I wanted traceability all the way back from the pcb layout to the simulated and tested schematic. And it almost worked, except for the opamps, which I redrew by hand… and failed.

So just flip them upside down

Yeah of course, but now I’ve got all my VDDs pointing down and my VSS pointing up. OCD me is not happy 🙁

Lesson learned

Should I go and start a PAR? As exhilarating as that sounds, I think I’ll just do what everybody does and religiously adhere to a PCB checklist. Don’t skip it, ever.

2 thoughts on “IEEE 3.14159 – Opamp Drawing Standard

  1. René

    >So just flip them upside down
    >Yeah of course, but now I’ve got all my VDDs pointing down and my VSS pointing up. OCD me is not happy

    Or…
    Use edit symbol?
    Is the associated spice model not just a bunch of node descriptors? As such each node can be allocated to whatever symbol pin you like. The symbol is just a picture.

    Reply
    1. remco Post author

      Of course.
      But that means a new library just for a redraw. I’d much prefer to stick with standard components. Especially since Kicad attracts many hobbyists, those should work as well as may be expected.

      Reply

Leave a Reply to René Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.