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:
lengthfloat, default 10 mm

Total length of the pair.

widthfloat, default 0.2 mm

Width of each individual trace.

spacingfloat, default 0.2 mm

Edge-to-edge separation between the traces.

x0float, default 0

Start x-coordinate (metres).

y0float, default 0

Start y-coordinate (metres).

anglefloat, default 0 rad

Rotation angle of the pair (radians, CCW).

layerstr, default “TOP”

Layer on which the traces are drawn.

net_pstr, default “P”

Net name for the positive trace.

net_nstr, default “N”

Net name for the negative trace.

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

DifferentialTLine.create()

Create the two traces using only parameter strings so the geometry stays fully editable in AEDT.

Attributes