or_gate module#
OR gate symbol for JITX Standard Library
- class ORGateConfig(label_config=None, height=3.0, filled=True, line_width=0.15, pin_length=2, pad_name_size=0.65, num_inputs=2, pin_pitch=2, inverted=False, exclusive=False, open_collector=None)[source]#
Bases:
LabelConfigurableConfiguration for OR gate symbols
Defines the geometric and visual parameters for OR gate symbols.
- Parameters:
- height: float = 3.0#
Gate body height
- filled: bool = True#
Whether to fill the gate body
- line_width: float = 0.15#
Width of the gate lines
- pin_length: int = 2#
Length of the pin extensions
- pad_name_size: float | None = 0.65#
Size of the pad name text
- num_inputs: int = 2#
Number of input pins
- pin_pitch: int = 2#
Spacing between input pins
- inverted: bool = False#
Whether to add inversion bubble (creates NOR gate)
- exclusive: bool = False#
Whether to make XOR/XNOR gate (adds extra input arc)
- open_collector: OpenCollectorType | None = None#
Whether to add open-collector symbol on output pin
- class ORGateSymbol(config=None, **kwargs)[source]#
Bases:
LabelledSymbol,GenericOR gate symbol with graphics and pins. Supports XOR, NOR, and XNOR functionality.
- Parameters:
config (T | None)
- gate_body: Shape[ArcPolyline | ArcPolygon]#
- xor_arc: Shape[ArcPolyline] | None = None#
- leader_pins: tuple[Shape[Polyline], ...]#
- p: dict[int, Pin]#
- config: T#
- property line_width: float#
See
line_width.
- property pin_length: float#
See
pin_length.
- property num_inputs: int#
See
num_inputs.
- property label_config: LabelConfigurable#
Configuration object that provides label configuration