add_min_clearance#

Rules.add_min_clearance(name: str, value: str, net1: str, net2: str) Rules#

Append a minimum clearance rule between nets.

Parameters:
namestr

Rule identifier for reporting.

valuestr

Minimum clearance with unit (e.g., "4mil", "0.15mm").

net1str

First net name or wildcard ("*" matches all).

net2str

Second net name or wildcard ("*" matches all).

Returns:
Rules

Self for method chaining.

Examples

>>> rules = Rules().add_min_clearance("clk2data", "4mil", "CLK*", "DATA*")
>>> rules.min_clearance[0].net1
'CLK*'