Skip to content

ANA-4 Current sense resistor straight to ground or power

Severity Status Implementation
suggestion runs in better_erc easy, depends on NET-5

Data it needs: graph, part classes, values, rails.

Looks at. Shunt, power structure.

What it catches. A shunt one of whose ends is the ground or rail net itself, so the amplifier's sense input is on that net too: the netlist cannot tell the sense connection from any other connection to the plane.

Why it matters. A 5 mΩ shunt with 1 A across it gives 5 mV. Ten millimetres of 1 oz copper are already a few milliohms: if the sense line joins the ground net anywhere on the plane instead of at the shunt's own pad, the copper drop between the two points becomes part of the measurement and the reading is off by tens of percent. A net tie (a separate net for the sense line, joined to the power net only at the pad) makes the Kelvin connection explicit, so the layout tool routes it as its own track and the DRC keeps it.

Example. A low-side shunt R10 10 mΩ from the motor bridge source to GND, with the amplifier's IN− also on GND: the router connects IN− to the nearest ground via, 20 mm away, and the 3 A motor current through that stretch of plane adds a few mV, a 10 % error that changes with layout revisions.

How to check. Low-value resistors (below about 1 Ω) with one end on a rail or ground of the power structure (NET-5) and a sense-amplifier input on the same net.

Fix. Separate sense nets (ISENSE_P, ISENSE_N) joined to the power nets by net-tie footprints at the shunt pads; route them as a pair.

References. INA181 §8.4.1 (Kelvin or 4-wire connection to the sense resistor); Wikipedia, Four-terminal sensing; ANA-23 for the layout side.

Settings

Set them in the project file under [checks."ANA-4"], or for one run with --set ANA-4.NAME=VALUE.

Setting Default Meaning
ANA-4.max_shunt 1 ohm a resistor below this value is a current shunt

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only ANA-4 reports on it.

ana-4_shunt_kelvin

The test schematic ana-4_shunt_kelvin The test schematic ana-4_shunt_kelvin

  suggestion ANA-4 #4rx     shunt R1 ends on GND and U1.4 (IN-) senses on GND too: any copper of that net is in the measurement
                            net GND, part R1
                            max_shunt = 1 (derived ANA-4 default)
                            fix: a sense net of its own (ISENSE_N) joined to the power net by a net tie at the shunt pad, routed as a pair