bjt module#

BJT transistor symbols for JITX Standard Library

This module provides BJT (Bipolar Junction Transistor) symbol definitions for NPN and PNP transistors.

class BJTJunction(*values)[source]#

Bases: Enum

BJT junction types

Defines the junction type for bipolar junction transistors.

NPN = 'npn'#
PNP = 'pnp'#
class BJTConfig(arrow_config=None, label_config=None, pitch=3.0, width=2.0, porch_width=0.25, base_line_length=2.3, outline=True, line_width=0.1)[source]#

Bases: LabelConfigurable, ArrowConfigurable

Configuration for BJT symbols

Defines the geometric and visual parameters for BJT transistor symbols.

Parameters:
pitch: float = 3.0#

Distance between collector and emitter pins

width: float = 2.0#

Distance from collector/emitter line to base pin

porch_width: float = 0.25#

Length of porch lines from pins to angled lines

base_line_length: float = 2.3#

Length of the vertical base line

outline: bool = True#

Whether to draw circle outline around transistor

line_width: float = 0.1#

Width of symbol lines

class BJTSymbol(junction_type=BJTJunction.NPN, config=None, **kwargs)[source]#

Bases: LabelledSymbol, Generic

BJT transistor symbol with graphics and pins.

The BJT symbol consists of: - Emitter line with arrow (direction indicates NPN/PNP) - Collector line - Base line (vertical) - Optional circle outline

Pins: ‘B’ (base), ‘C’ (collector), ‘E’ (emitter)

Parameters:
emitter_arrow: Arrow#
collector_line: Shape[Polyline]#
top_porch: Shape[Polyline]#
bottom_porch: Shape[Polyline]#
base_line: Shape[Polyline]#
base_conn: Shape[Polyline]#
outline_circle: Shape[ArcPolyline] | None#
B: Pin#
C: Pin#
E: Pin#
config: T#
junction_type: BJTJunction#
property pitch: float#

See pitch.

property width: float#

See width.

property porch_width: float#

See porch_width.

property base_line_length: float#

See base_line_length.

property outline: bool#

See outline.

property line_width: float#

See line_width.

property label_config: LabelConfigurable#

Configuration object that provides label configuration