DiffPairLengthMatch#

class pyedb.workflows.drc.drc.DiffPairLengthMatch(/, **data: Any)#

Bases: pydantic.BaseModel

Length matching constraint for differential pairs.

This rule validates that the length difference between positive and negative traces in differential pairs stays within tolerance.

Attributes:
namestr

Rule identifier for reporting violations.

tolerancestr

Maximum allowed length difference with unit (e.g., "0.1mm", "5mil").

pairslist of DiffPair

List of differential pairs to validate.

Examples

>>> pair1 = DiffPair(positive="USB_DP", negative="USB_DN")
>>> rule = DiffPairLengthMatch(name="usb_match", tolerance="0.1mm", pairs=[pair1])
>>> rule.tolerance
'0.1mm'

Overview#

Import detail#

from pyedb.workflows.drc.drc import DiffPairLengthMatch

Attribute detail#

DiffPairLengthMatch.name: str#
DiffPairLengthMatch.tolerance: str#
DiffPairLengthMatch.pairs: list[DiffPair]#