skidl.erc module¶
Electrical Rule Checking (ERC) in SKiDL.
This module provides functions for verifying the electrical correctness of SKiDL circuits. It includes default ERC functions for circuits, parts, pins, and nets that check for common issues such as unconnected pins, pin conflicts, and insufficient drive strength. These functions can be customized or extended to implement domain-specific design rules.
- skidl.erc.dflt_circuit_erc(circuit)[source]¶
Perform electrical rules check on an entire circuit.
This function checks all nets, parts, and interfaces in the circuit for electrical rule violations. It first merges multi-segment nets, then runs ERC checks on each unique net once to prevent duplicate error messages.
- Parameters:
circuit (Circuit) – The circuit to check for rule violations.
- skidl.erc.dflt_net_erc(net)[source]¶
Perform electrical rules check on a specific net.
This function verifies that the net has pins connected to it, checks for pin conflicts between connected pins, and ensures the net has sufficient drive strength for all pins that require it.
- Parameters:
net (Net) – The net to check for rule violations.
- skidl.erc.dflt_part_erc(part)[source]¶
Perform electrical rules check on a specific part.
This function checks each pin of the part for rule violations such as unconnected pins that should be connected or connected pins that should not be connected (NOCONNECT).
- Parameters:
part (Part) – The part to check for rule violations.