DifferentialTLine#
- class pyedb.libraries.rf_libraries.base_functions.DifferentialTLine(edb: Edb, length: float | str = 0.01, width: float | str = 0.0002, spacing: float | str = 0.0002, x0: float | str = 0.0, y0: float | str = 0.0, angle: float | str = 0.0, layer: str = 'TOP', net_p: str = 'P', net_n: str = 'N')#
Edge-coupled differential pair with fully parametric geometry.
- Parameters:
- length
float,default10mm Total length of the pair.
- width
float,default0.2mm Width of each individual trace.
- spacing
float,default0.2mm Edge-to-edge separation between the traces.
- x0
float,default0 Start x-coordinate (metres).
- y0
float,default0 Start y-coordinate (metres).
- angle
float,default0rad Rotation angle of the pair (radians, CCW).
- layer
str,default“TOP” Layer on which the traces are drawn.
- net_p
str,default“P” Net name for the positive trace.
- net_n
str,default“N” Net name for the negative trace.
- length
Examples
>>> diff = DifferentialTLine(Edb("diff.aedb"), length=5e-3, width=0.15e-3, spacing=0.1e-3, angle=math.pi / 4) >>> traces = diff.create() >>> f"{diff.diff_impedance:.1f} Ω" '95.6 Ω'
Methods
Create the two traces using only parameter strings so the geometry stays fully editable in AEDT.
Attributes