add_diff_pair_length_match#

Rules.add_diff_pair_length_match(name: str, tolerance: str, pairs: list[tuple[str, str]]) Rules#

Append a differential pair length matching rule.

Parameters:
namestr

Rule identifier for reporting.

tolerancestr

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

pairslist of tuple[str, str]

List of (positive_net, negative_net) tuples.

Returns:
Rules

Self for method chaining.

Examples

>>> rules = Rules().add_diff_pair_length_match("usb_match", tolerance="0.1mm", pairs=[("USB_DP", "USB_DN")])
>>> rules.diff_pair_length_match[0].tolerance
'0.1mm'