ANA-10 Op-amp with no feedback path, or feedback into the non-inverting input¶
| Severity | Status | Implementation |
|---|---|---|
| error | runs in better_erc | easy, depends on netlist |
Data it needs: graph, part classes, rails.
Looks at. Op-amp pins, connectivity.
What it catches. An op-amp whose output has no path (direct, resistor, capacitor) back to its inverting input, or whose only feedback goes to the non-inverting input.
Why it matters. Without negative feedback an op-amp is a comparator with no hysteresis: its output sits at a rail and flips with microvolts of noise. Feedback to the non-inverting input is positive feedback: a latch, or a Schmitt trigger when that is intended. Both are typical drawing mistakes: swapped input pins on a symbol, a missing resistor, a feedback net labelled with a typo.
Example. A non-inverting gain stage whose gain resistor lands on pin 3 (IN+) instead of pin 2 (IN−) after a symbol change: the output latches to one rail at power-up and stays there.
How to check. For each op-amp unit (library class, pin names IN+, IN−, OUT), walk from OUT through resistors and capacitors and see whether IN− is reached; flag none, or a path that reaches only IN+. Parts used as comparators on purpose are exempt when the project says so.
Fix. Connect the feedback network to the inverting input; if a comparator was meant, use a comparator.
References. Wikipedia, Operational amplifier ("Open-loop amplifier", "Closed-loop amplifier"); AoE3 chapter 4.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only ANA-10 reports on it.
ana-10_opamp_feedback¶
error ANA-10 #ssn op-amp U1 unit 1: its only feedback goes to the non-inverting input: positive feedback, a latch
part U1, pin U1.1, pin U1.2
fix: connect the feedback network to the inverting input; if a comparator was meant, use a comparator
error ANA-10 #h9f op-amp U1 unit 2: no path from its output back to the inverting input: open loop, the output sits at a rail
part U1, pin U1.6, pin U1.7
fix: connect the feedback network to the inverting input; if a comparator was meant, use a comparator