DifferentialTLine#

class pyedb.libraries.rf_libraries.base_functions.DifferentialTLine(edb: pyedb.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 Ω'

Overview#

create

Create the two traces using only parameter strings so the

diff_impedance

Rough odd-mode impedance estimate for the differential pair.

Import detail#

from pyedb.libraries.rf_libraries.base_functions import DifferentialTLine

Property detail#

property DifferentialTLine.diff_impedance: float#

Rough odd-mode impedance estimate for the differential pair.

Returns:
float

Differential impedance in Ohms.

Attribute detail#

DifferentialTLine.length#
DifferentialTLine.width#
DifferentialTLine.spacing#
DifferentialTLine.x0#
DifferentialTLine.y0#
DifferentialTLine.layer = 'TOP'#
DifferentialTLine.net_p = 'P'#
DifferentialTLine.net_n = 'N'#

Method detail#

DifferentialTLine.create() List[float]#

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

Returns:
list[float]

EDB object IDs of the positive and negative traces.