sycan.check¶
Schematic / netlist electrical-rule checks.
The check_circuit() helper walks a Circuit
and surfaces structural problems that are easy to mis-spot in a
hand-written netlist:
duplicate component names (ambiguous I() / aux references),
nodes connected to only one component pin (dangling wires),
circuits that never touch ground node
"0",“islands” — node graphs disconnected from ground,
components whose port nodes overlap (short between two pins of the same device).
It returns a ERCReport so callers can either print the report
or assert ERCReport.ok. The function is read-only: it never
mutates the input circuit.
Functions
|
Run structural checks and return a |
Classes
|
One ERC issue. |
|
Aggregated ERC findings for a circuit. |
- class sycan.check.ERCFinding(severity, code, message)[source]¶
Bases:
objectOne ERC issue.
severityis"error"(definitely wrong) or"warning"(suspicious, may be intentional).messageis a one-line human-readable description.- Parameters:
severity (str)
code (str)
message (str)
- severity: str¶
- code: str¶
- message: str¶
- class sycan.check.ERCReport(findings=<factory>)[source]¶
Bases:
objectAggregated ERC findings for a circuit.
- Parameters:
findings (list[ERCFinding])
- findings: list[ERCFinding]¶
- property errors: list[ERCFinding]¶
- property warnings: list[ERCFinding]¶
- property ok: bool¶
Truewhen no error-level findings were recorded.