Skip to main content

Electrical Rules Check (ERC)

These rules help to ensure that the schematic is correctly designed as intended and minimize potential issues.

Currently supported rules:

  • Unconnected pins
  • Wires with unconnected ends
  • no_connect() symbol on connected pins
info

More rules will be added in the future!

Running ERC checks

To perform ERC checks, pass the -e parameter to the circuitscript CLI tool. ERC errors will be printed out.

from std import *

vcc = supply("VCC")
gnd = dgnd()

tmp = create component:
pins: 5

at tmp pin 5
wire right 100 down 100
to gnd

at tmp pin 1
add no_connect()

at tmp pin 3
add no_connect()
wire right 100
add res(10k)
wire right 100 down 200 to gnd

at tmp pin 4
wire left 200
1133552244J1GND12R110kGND

The ERC output is:

ERC found 3 items:
1. line 9, column 0: UNCONNECTED-PIN - Unconnected pin: J1 pin 2
2. line 17, column 0: NO-CONNECT-ON-CONNECTED-PIN - No connect on connected pin: J1 pin 3
3. line 23, column 0: UNCONNECTED-WIRE - Unconnected wire end