Skip to content

SHORT-7 Shorted IOs

Severity Status Implementation
warning runs in better_erc easy, depends on netlist

Data it needs: graph, part classes.

Looks at. Pin types.

What it catches. Two IO pins of programmable parts on the same net, with no other driver: two MCU GPIOs tied together, or a GPIO tied to an FPGA IO.

Why it matters. It is a legitimate trick (two pins to reach an alternate function on either, a rework that needs a pin from another port, a PIO and a hardware peripheral on one line), but only if firmware never drives the two pins against each other. The schematic should say which pin is the driver and which must stay an input.

Example. On B200A SPI0 SCK (GPIO34) and SPI1 SCK (GPIO26) are one net, so SPI1 can listen to the bus SPI0 drives (the SPI monitor): fine while GPIO26 stays an input, a short if SPI1 is ever set up as a master.

How to check. Nets with two or more IO-type pins of programmable parts and nothing else driving; report them for a firmware note rather than as a fault.

Fix. Note the rule on the schematic and in the firmware's pin map, or put a series resistor (≥ 330 Ω) so a conflict is a logic error, not a short.

References. SDYA009 §7 "Bus Contention", Table 4; Wikipedia, Bus contention.

Test schematics

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

short-7_shorted_ios

The test schematic short-7_shorted_ios The test schematic short-7_shorted_ios

  warning    SHORT-7 #t2m   /SPI_SCK: IOs U1.3 (PA5), U2.3 (PA5) are tied together; firmware must never drive them against each other
                            net /SPI_SCK, pin U1.3, pin U2.3
                            fix: note which pin drives and which stays an input, on the schematic and in the pin map; or put ≥ 330 Ω in series

SHORT-7 also fires on the test schematics of other checks: short-12_pair_halves_tied.