{
    "version": 1,
    "parts": [
        {
            "uid": "supply-5v",
            "kind": "battery_pack",
            "default_params": {
                "voltage": 6,
                "rInternal": 0.9,
                "capacityAh": 2.5,
                "charge": 1
            },
            "pin_layout": [
                {
                    "id": "pos",
                    "offset": {
                        "x": 100,
                        "y": 18
                    },
                    "function": "supply_pos"
                },
                {
                    "id": "neg",
                    "offset": {
                        "x": 100,
                        "y": 32
                    },
                    "function": "supply_neg"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 4.8,
                    "nominal": 6,
                    "max": 6.4
                },
                "notes": "4×AA alkaline model. Chemistry OCV is ~6.4 V fresh, then follows a piecewise discharge curve; internal resistance rises with depletion and cold. Capacity is coulomb-counted from a 2.5 Ah moderate-drain reference. Recovery, self-discharge, aging, cell imbalance and self-heating are not modelled."
            }
        },
        {
            "uid": "supply-var",
            "kind": "bench_psu",
            "default_params": {
                "voltage": 9,
                "iLimit": 1
            },
            "pin_layout": [
                {
                    "id": "pos",
                    "offset": {
                        "x": 130,
                        "y": 55
                    },
                    "function": "supply_pos"
                },
                {
                    "id": "neg",
                    "offset": {
                        "x": 130,
                        "y": 75
                    },
                    "function": "supply_neg"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 0,
                    "nominal": 9,
                    "max": 30
                },
                "notes": "Adjustable DC bench supply, voltage and current-limit settable."
            }
        },
        {
            "uid": "pulse-source",
            "kind": "pulse_gen",
            "default_params": {
                "v1": 0,
                "v2": 5,
                "td": 0,
                "tr": 0.000001,
                "tf": 0.000001,
                "pw": 0.0005,
                "per": 0.001
            },
            "pin_layout": [
                {
                    "id": "pos",
                    "offset": {
                        "x": 140,
                        "y": 32
                    },
                    "function": "output"
                },
                {
                    "id": "neg",
                    "offset": {
                        "x": 140,
                        "y": 58
                    },
                    "function": "gnd"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 0,
                    "nominal": 5,
                    "max": 24
                },
                "notes": "Piecewise-linear pulse source. A positive period repeats the pulse; period=0 is a one-shot that returns to v1 after its fall time."
            }
        },
        {
            "uid": "clock-1khz",
            "kind": "clock_gen",
            "default_params": {
                "frequency": 1000,
                "duty": 0.5
            },
            "pin_layout": [
                {
                    "id": "out",
                    "offset": {
                        "x": 140,
                        "y": 32
                    }
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 140,
                        "y": 58
                    }
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 0,
                    "nominal": 5,
                    "max": 24
                }
            }
        },
        {
            "uid": "signal-gen",
            "kind": "signal_gen",
            "default_params": {
                "waveform": "sine",
                "amplitude": 2.5,
                "offset": 2.5,
                "frequency": 1000,
                "phaseDeg": 0,
                "duty": 0.5,
                "delay": 0,
                "tr": 0.000001,
                "tf": 0.000001,
                "pw": 0.0005,
                "pwl": "",
                "seed": 1,
                "rSource": 50,
                "enabled": 1
            },
            "pin_layout": [
                {
                    "id": "pos",
                    "offset": {
                        "x": 140,
                        "y": 32
                    },
                    "function": "output"
                },
                {
                    "id": "neg",
                    "offset": {
                        "x": 140,
                        "y": 58
                    },
                    "function": "gnd"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 0,
                    "nominal": 5,
                    "max": 24
                },
                "notes": "V(t) = offset + amplitude x unit(t). For noise, unit(t) is deterministic zero-mean Gaussian noise updated at 10 kSa/s and held between updates; amplitude is its 1-sigma RMS voltage and the zero-order hold has 5 kHz one-sided equivalent noise bandwidth. rSource is the series output resistance (50 Ω bench default). PWL points are specified as absolute volts using t:v,t:v pairs."
            }
        },
        {
            "uid": "resistor",
            "kind": "resistor",
            "default_params": {
                "resistance": 220,
                "tolerance": 0.05
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 57,
                        "y": 10
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "p_max": 0.25,
                "thermal": {
                    "r_theta_ja_c_per_w": 340,
                    "time_constant_s": 8,
                    "ambient_range_c": {
                        "min": -55,
                        "max": 155
                    },
                    "continuous_temperature_max_c": 155,
                    "absolute_temperature_max_c": 155,
                    "r_theta_condition": "Derived from a 0.25 W P70 derating curve reaching a 155 °C film hot spot.",
                    "assumptions": [
                        "The 8 s one-pole time constant is a teaching-model assumption.",
                        "Lead length, PCB copper, resistor technology, and airflow can materially change the thermal path."
                    ]
                },
                "notes": "Quarter-watt axial-film reference: 0.25 W through 70 °C ambient, then linear derating to 0 W at a 155 °C film limit. For an identified resistor, solved I²R loss drives the persistent one-pole body temperature and ambient-adjusted power allowance. Temperature is reported but does not change resistance because temperature coefficient is not modelled.",
                "value_tol": 0.05
            }
        },
        {
            "uid": "capacitor",
            "kind": "capacitor",
            "default_params": {
                "capacitance": 0.000001,
                "esr": 1,
                "leakageResistance": 10000000,
                "style": "electrolytic"
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "`style` selects the body. The transient model is ideal capacitance in series with `esr`, plus terminal-parallel `leakageResistance`. Defaults are representative, not a substitute for a chosen part's datasheet. Capacitance tolerance, ESR frequency/temperature dependence, dielectric absorption, voltage coefficient, polarity damage, and breakdown are not modelled.",
                "value_tol": 0.1
            }
        },
        {
            "uid": "diode-rectifier",
            "kind": "diode",
            "default_params": {
                "vf": 0.7
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 10
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vr_max": 1000,
                "vf": 0.7,
                "if_max": 1,
                "vf_tol": 0.05
            }
        },
        {
            "uid": "diode-zener",
            "kind": "zener_diode",
            "default_params": {
                "vf": 0.7,
                "vz": 5.1
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 10
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "p_max": 1,
                "vf": 0.7,
                "if_max": 0.1,
                "iz_knee": 0.005,
                "notes": "Reverse breakdown voltage set by `vz` param (e.g. 5.1V). iz_knee is the knee current at the rated vz (default 5 mA). vz is not varied by Monte Carlo v1 — the engine does not apply vz via a params override.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "tvs-diode",
            "kind": "tvs_diode",
            "default_params": {
                "vbr": 6.8,
                "bidirectional": 0
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 10
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "p_max": 0.4,
                "vr_max": 6.8,
                "iz_knee": 0.005,
                "notes": "Breakdown voltage set by `vbr` param (default 6.8 V). bidirectional=0 (default) for unidirectional, 1 for symmetric bidirectional clamping. For reverse-overvoltage, the vr_max check is suppressed below vbr — normal operation.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "diode-schottky",
            "kind": "schottky_diode",
            "default_params": {
                "vf": 0.3
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 10
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vr_max": 40,
                "vf": 0.3,
                "if_max": 1,
                "vf_tol": 0.05
            }
        },
        {
            "uid": "inductor",
            "kind": "inductor",
            "default_params": {
                "inductance": 0.001,
                "dcr": 5,
                "coreLossResistance": 100000
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 57,
                        "y": 10
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "The transient model is ideal inductance in series with winding `dcr`, plus terminal-parallel `coreLossResistance`. Defaults represent a generic 1 mH axial part; use its datasheet values when known. Saturation, nonlinear permeability, hysteresis, frequency-dependent loss, skin effect, self-capacitance, and thermal drift are not modelled."
            }
        },
        {
            "uid": "led-red",
            "kind": "led",
            "default_params": {
                "color": "red",
                "vf": 1.8
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vf": 1.8,
                "if_max": 0.02,
                "p_max": 0.075,
                "thermal": {
                    "r_theta_ja_c_per_w": 560,
                    "time_constant_s": 2,
                    "ambient_range_c": {
                        "min": -40,
                        "max": 85
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 125,
                    "r_theta_condition": "5 mm through-hole reference on FR4 with at least 16 mm² pad area per lead.",
                    "assumptions": [
                        "The 2 s one-pole time constant is a teaching-model assumption.",
                        "One package fit is applied across LED colours; die construction changes exact thermal and optical behaviour.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "The 20 mA current ceiling and 75 mW package envelope both apply. For an identified LED, solved Vf × If loss drives the persistent one-pole junction temperature; that temperature feeds the nonlinear junction law and the ambient-adjusted power allowance is reported. Optical efficacy and the overload-failure threshold do not change with temperature, and no reversible shutdown is claimed.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "led-green",
            "kind": "led",
            "default_params": {
                "color": "green",
                "vf": 2
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vf": 2,
                "if_max": 0.02,
                "p_max": 0.075,
                "thermal": {
                    "r_theta_ja_c_per_w": 560,
                    "time_constant_s": 2,
                    "ambient_range_c": {
                        "min": -40,
                        "max": 85
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 125,
                    "r_theta_condition": "5 mm through-hole reference on FR4 with at least 16 mm² pad area per lead.",
                    "assumptions": [
                        "The 2 s one-pole time constant is a teaching-model assumption.",
                        "One package fit is applied across LED colours; die construction changes exact thermal and optical behaviour.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "The 20 mA current ceiling and 75 mW package envelope both apply. For an identified LED, solved Vf × If loss drives the persistent one-pole junction temperature; that temperature feeds the nonlinear junction law and the ambient-adjusted power allowance is reported. Optical efficacy and the overload-failure threshold do not change with temperature, and no reversible shutdown is claimed.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "led-blue",
            "kind": "led",
            "default_params": {
                "color": "blue",
                "vf": 3
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vf": 3,
                "if_max": 0.02,
                "p_max": 0.075,
                "thermal": {
                    "r_theta_ja_c_per_w": 560,
                    "time_constant_s": 2,
                    "ambient_range_c": {
                        "min": -40,
                        "max": 85
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 125,
                    "r_theta_condition": "5 mm through-hole reference on FR4 with at least 16 mm² pad area per lead.",
                    "assumptions": [
                        "The 2 s one-pole time constant is a teaching-model assumption.",
                        "One package fit is applied across LED colours; die construction changes exact thermal and optical behaviour.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "The 20 mA current ceiling and 75 mW package envelope both apply. For an identified LED, solved Vf × If loss drives the persistent one-pole junction temperature; that temperature feeds the nonlinear junction law and the ambient-adjusted power allowance is reported. Optical efficacy and the overload-failure threshold do not change with temperature, and no reversible shutdown is claimed.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "led-white",
            "kind": "led",
            "default_params": {
                "color": "white",
                "vf": 3.2,
                "iRated": 0.02
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vf": 3.2,
                "if_max": 0.02,
                "p_max": 0.075,
                "thermal": {
                    "r_theta_ja_c_per_w": 560,
                    "time_constant_s": 2,
                    "ambient_range_c": {
                        "min": -40,
                        "max": 85
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 125,
                    "r_theta_condition": "5 mm through-hole reference on FR4 with at least 16 mm² pad area per lead.",
                    "assumptions": [
                        "The 2 s one-pole time constant is a teaching-model assumption.",
                        "One package fit is applied across LED colours; die construction changes exact thermal and optical behaviour.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "The 20 mA current ceiling and 75 mW package envelope both apply. For an identified LED, solved Vf × If loss drives the persistent one-pole junction temperature; that temperature feeds the nonlinear junction law and the ambient-adjusted power allowance is reported. Optical efficacy and the overload-failure threshold do not change with temperature, and no reversible shutdown is claimed.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "led-yellow",
            "kind": "led",
            "default_params": {
                "color": "#ffcc00",
                "vf": 2.1,
                "iRated": 0.02
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vf": 2.1,
                "if_max": 0.02,
                "p_max": 0.075,
                "thermal": {
                    "r_theta_ja_c_per_w": 560,
                    "time_constant_s": 2,
                    "ambient_range_c": {
                        "min": -40,
                        "max": 85
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 125,
                    "r_theta_condition": "5 mm through-hole reference on FR4 with at least 16 mm² pad area per lead.",
                    "assumptions": [
                        "The 2 s one-pole time constant is a teaching-model assumption.",
                        "One package fit is applied across LED colours; die construction changes exact thermal and optical behaviour.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "The 20 mA current ceiling and 75 mW package envelope both apply. For an identified LED, solved Vf × If loss drives the persistent one-pole junction temperature; that temperature feeds the nonlinear junction law and the ambient-adjusted power allowance is reported. Optical efficacy and the overload-failure threshold do not change with temperature, and no reversible shutdown is claimed.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "led-amber",
            "kind": "led",
            "default_params": {
                "color": "#ff8800",
                "vf": 2,
                "iRated": 0.02
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "anode"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vf": 2,
                "if_max": 0.02,
                "p_max": 0.075,
                "thermal": {
                    "r_theta_ja_c_per_w": 560,
                    "time_constant_s": 2,
                    "ambient_range_c": {
                        "min": -40,
                        "max": 85
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 125,
                    "r_theta_condition": "5 mm through-hole reference on FR4 with at least 16 mm² pad area per lead.",
                    "assumptions": [
                        "The 2 s one-pole time constant is a teaching-model assumption.",
                        "One package fit is applied across LED colours; die construction changes exact thermal and optical behaviour.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "The 20 mA current ceiling and 75 mW package envelope both apply. For an identified LED, solved Vf × If loss drives the persistent one-pole junction temperature; that temperature feeds the nonlinear junction law and the ambient-adjusted power allowance is reported. Optical efficacy and the overload-failure threshold do not change with temperature, and no reversible shutdown is claimed.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "led-bicolor",
            "kind": "bicolor_led",
            "default_params": {
                "color1": "#ff4a4a",
                "vf1": 1.8,
                "color2": "#4aff4a",
                "vf2": 2,
                "iRated": 0.02
            },
            "pin_layout": [
                {
                    "id": "a1",
                    "offset": {
                        "x": 0,
                        "y": 10
                    }
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 0,
                        "y": 30
                    }
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 30,
                        "y": 20
                    }
                }
            ],
            "electrical_specs": {
                "vf": 2,
                "if_max": 0.02,
                "vf_tol": 0.05
            }
        },
        {
            "uid": "led-rgb",
            "kind": "rgb_led",
            "default_params": {
                "iRated": 0.02,
                "vf_r": 1.8,
                "vf_g": 2,
                "vf_b": 3
            },
            "pin_layout": [
                {
                    "id": "r_a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "anode"
                },
                {
                    "id": "g_a",
                    "offset": {
                        "x": 0,
                        "y": 25
                    },
                    "function": "anode"
                },
                {
                    "id": "b_a",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "anode"
                },
                {
                    "id": "com_k",
                    "offset": {
                        "x": 40,
                        "y": 25
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vf": 2,
                "if_max": 0.02,
                "notes": "Vf differs per channel: R~1.8V, G~2.0V, B~3.0V.",
                "vf_tol": 0.05
            }
        },
        {
            "uid": "switch-spst",
            "kind": "switch",
            "default_params": {
                "closed": 0,
                "momentary": 0
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 60,
                        "y": 15
                    },
                    "function": "passive"
                }
            ]
        },
        {
            "uid": "switch-push",
            "kind": "push_button",
            "default_params": {
                "closed": 0,
                "momentary": 1
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 60,
                        "y": 8
                    },
                    "function": "passive"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 0,
                        "y": 22
                    },
                    "function": "passive"
                },
                {
                    "id": "b2",
                    "offset": {
                        "x": 60,
                        "y": 22
                    },
                    "function": "passive"
                }
            ]
        },
        {
            "uid": "switch-push-dpdt",
            "kind": "push_dpdt",
            "default_params": {
                "position": 0
            },
            "pin_layout": [
                {
                    "id": "l1",
                    "offset": {
                        "x": 8,
                        "y": 12
                    },
                    "function": "passive"
                },
                {
                    "id": "c1",
                    "offset": {
                        "x": 30,
                        "y": 12
                    },
                    "function": "passive"
                },
                {
                    "id": "r1",
                    "offset": {
                        "x": 52,
                        "y": 12
                    },
                    "function": "passive"
                },
                {
                    "id": "l2",
                    "offset": {
                        "x": 8,
                        "y": 44
                    },
                    "function": "passive"
                },
                {
                    "id": "c2",
                    "offset": {
                        "x": 30,
                        "y": 44
                    },
                    "function": "passive"
                },
                {
                    "id": "r2",
                    "offset": {
                        "x": 52,
                        "y": 44
                    },
                    "function": "passive"
                }
            ]
        },
        {
            "uid": "switch-spdt",
            "kind": "spdt_switch",
            "default_params": {
                "position": 0
            },
            "pin_layout": [
                {
                    "id": "com",
                    "offset": {
                        "x": 0,
                        "y": 25
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 60,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "c",
                    "offset": {
                        "x": 60,
                        "y": 40
                    }
                }
            ]
        },
        {
            "uid": "bjt-npn",
            "kind": "bjt_npn",
            "default_params": {
                "Is": 1e-14,
                "betaF": 100,
                "betaR": 1,
                "nF": 1,
                "nR": 1,
                "earlyVoltage": 75
            },
            "pin_layout": [
                {
                    "id": "c",
                    "offset": {
                        "x": 30,
                        "y": 0
                    },
                    "function": "collector"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "base"
                },
                {
                    "id": "e",
                    "offset": {
                        "x": 30,
                        "y": 60
                    },
                    "function": "emitter"
                }
            ],
            "electrical_specs": {
                "i_c_max": 0.6,
                "beta_typical": 100,
                "notes": "Generic small-signal NPN (2N2222-class). The 75 V Early voltage is a representative fixed forward-active value, not a guaranteed fit for every 2N2222. High-injection beta roll-off, breakdown, junction capacitance, noise and self-heating are not modelled."
            }
        },
        {
            "uid": "bjt-pnp",
            "kind": "bjt_pnp",
            "default_params": {
                "Is": 1e-14,
                "betaF": 100,
                "betaR": 1,
                "nF": 1,
                "nR": 1,
                "earlyVoltage": 100
            },
            "pin_layout": [
                {
                    "id": "c",
                    "offset": {
                        "x": 30,
                        "y": 0
                    },
                    "function": "collector"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "base"
                },
                {
                    "id": "e",
                    "offset": {
                        "x": 30,
                        "y": 60
                    },
                    "function": "emitter"
                }
            ],
            "electrical_specs": {
                "i_c_max": 0.6,
                "beta_typical": 100,
                "notes": "Generic small-signal PNP (2N2907-class). The 100 V Early voltage is a representative fixed forward-active value, not a guaranteed fit for every 2N2907. High-injection beta roll-off, breakdown, junction capacitance, noise and self-heating are not modelled."
            }
        },
        {
            "uid": "nmos",
            "kind": "nmos",
            "default_params": {
                "vto": 0.7,
                "k": 0.02,
                "lambda": 0.02,
                "cgs": 5.5e-11,
                "cgd": 5e-12
            },
            "pin_layout": [
                {
                    "id": "d",
                    "offset": {
                        "x": 30,
                        "y": 0
                    },
                    "function": "drain"
                },
                {
                    "id": "g",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "gate"
                },
                {
                    "id": "s",
                    "offset": {
                        "x": 30,
                        "y": 60
                    },
                    "function": "source"
                }
            ],
            "electrical_specs": {
                "i_c_max": 5,
                "notes": "DC gate leakage is omitted, but Cgs=55 pF and Cgd=5 pF draw displacement current and provide Miller coupling. These are fixed representative small-signal values; voltage-dependent capacitance, gate resistance, subthreshold conduction, breakdown, noise and self-heating are not modelled. The generic editable model is not a guaranteed 2N7000 fit."
            }
        },
        {
            "uid": "pmos",
            "kind": "pmos",
            "default_params": {
                "vto": 0.7,
                "k": 0.02,
                "lambda": 0.02,
                "cgs": 4e-11,
                "cgd": 2e-11
            },
            "pin_layout": [
                {
                    "id": "d",
                    "offset": {
                        "x": 30,
                        "y": 0
                    },
                    "function": "drain"
                },
                {
                    "id": "g",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "gate"
                },
                {
                    "id": "s",
                    "offset": {
                        "x": 30,
                        "y": 60
                    },
                    "function": "source"
                }
            ],
            "electrical_specs": {
                "i_c_max": 5,
                "notes": "DC gate leakage is omitted, but Cgs=40 pF and Cgd=20 pF draw displacement current and provide Miller coupling. These are fixed representative small-signal values; voltage-dependent capacitance, gate resistance, subthreshold conduction, breakdown, noise and self-heating are not modelled. The generic editable model is not a guaranteed BS250 fit."
            }
        },
        {
            "uid": "ne555",
            "kind": "ne555",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "1",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "gnd"
                },
                {
                    "id": "2",
                    "offset": {
                        "x": 0,
                        "y": 20
                    },
                    "function": "input"
                },
                {
                    "id": "3",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "output"
                },
                {
                    "id": "4",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "reset"
                },
                {
                    "id": "5",
                    "offset": {
                        "x": 80,
                        "y": 40
                    },
                    "function": "io"
                },
                {
                    "id": "6",
                    "offset": {
                        "x": 80,
                        "y": 30
                    },
                    "function": "input"
                },
                {
                    "id": "7",
                    "offset": {
                        "x": 80,
                        "y": 20
                    },
                    "function": "open_collector"
                },
                {
                    "id": "8",
                    "offset": {
                        "x": 80,
                        "y": 10
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 4.5,
                    "nominal": 5,
                    "max": 16
                },
                "io_max": 0.2
            }
        },
        {
            "uid": "potentiometer",
            "kind": "potentiometer",
            "default_params": {
                "rTotal": 10000,
                "taper": "linear",
                "position": 0.5
            },
            "pin_layout": [
                {
                    "id": "cw",
                    "offset": {
                        "x": 0,
                        "y": 30
                    }
                },
                {
                    "id": "wiper",
                    "offset": {
                        "x": 30,
                        "y": 30
                    }
                },
                {
                    "id": "ccw",
                    "offset": {
                        "x": 60,
                        "y": 30
                    }
                }
            ],
            "electrical_specs": {
                "p_max": 0.2,
                "notes": "Total resistance set by `resistance` param. `taper` enum selects linear or log. p_max is a typical small panel-pot rating.",
                "value_tol": 0.2
            }
        },
        {
            "uid": "trimmer",
            "kind": "trimmer",
            "default_params": {
                "rTotal": 10000,
                "position": 0.5
            },
            "pin_layout": [
                {
                    "id": "cw",
                    "offset": {
                        "x": 0,
                        "y": 30
                    }
                },
                {
                    "id": "wiper",
                    "offset": {
                        "x": 30,
                        "y": 30
                    }
                },
                {
                    "id": "ccw",
                    "offset": {
                        "x": 60,
                        "y": 30
                    }
                }
            ],
            "electrical_specs": {
                "p_max": 0.1,
                "notes": "Total resistance set by `resistance` param. p_max is a typical small trimmer rating.",
                "value_tol": 0.2
            }
        },
        {
            "uid": "fuse",
            "kind": "fuse",
            "default_params": {
                "rNormal": 0.1,
                "iRating": 1
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 57,
                        "y": 10
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Simplified sustained-overcurrent model using the `iRating` setting; real fuse trip time follows the selected part's time-current curve."
            }
        },
        {
            "uid": "ptc-fuse",
            "kind": "ptc_fuse",
            "default_params": {
                "iHold": 0.5,
                "rNormal": 0.5
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 57,
                        "y": 10
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "`iHold` is the 25 °C hold-current setting. The simulator uses a simplified trip/cool-down model; real trip time, trip current, hot resistance, and ambient derating require the selected device's curves."
            }
        },
        {
            "uid": "photoresistor",
            "kind": "ldr",
            "default_params": {
                "rDark": 1000000,
                "rLight": 500,
                "r10": 15000,
                "gamma": 0.7
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 57,
                        "y": 10
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "GL5528-class model: ~10–20 kΩ at 10 lux, gamma ~0.7, dark resistance ~1 MΩ."
            }
        },
        {
            "uid": "thermistor-ntc",
            "kind": "thermistor",
            "default_params": {
                "rNominal": 10000,
                "beta": 3950,
                "dissipationFactor": 0.007,
                "thermalTau": 15
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 57,
                        "y": 10
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Resistance at 25°C set by `rNominal`; B-parameter via `beta`. A one-pole self-heating model uses the 7 mW/K dissipation factor and 15 s thermal time constant defaults."
            }
        },
        {
            "uid": "ic-74ls00",
            "kind": "74ls00",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "1a",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "input"
                },
                {
                    "id": "1b",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "1y",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "output"
                },
                {
                    "id": "2a",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "2b",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "2y",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "gnd"
                },
                {
                    "id": "3y",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "output"
                },
                {
                    "id": "3a",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "3b",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "4y",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "output"
                },
                {
                    "id": "4a",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "4b",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-74ls04",
            "kind": "74ls04",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "1a",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "input"
                },
                {
                    "id": "1y",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "output"
                },
                {
                    "id": "2a",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "2y",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "output"
                },
                {
                    "id": "3a",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "3y",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "gnd"
                },
                {
                    "id": "4y",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "output"
                },
                {
                    "id": "4a",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "5y",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "output"
                },
                {
                    "id": "5a",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "6y",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "output"
                },
                {
                    "id": "6a",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-74ls08",
            "kind": "74ls08",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "1a",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "input"
                },
                {
                    "id": "1b",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "1y",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "output"
                },
                {
                    "id": "2a",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "2b",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "2y",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "gnd"
                },
                {
                    "id": "3y",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "output"
                },
                {
                    "id": "3a",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "3b",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "4y",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "output"
                },
                {
                    "id": "4a",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "4b",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-74ls32",
            "kind": "74ls32",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "1a",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "input"
                },
                {
                    "id": "1b",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "1y",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "output"
                },
                {
                    "id": "2a",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "2b",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "2y",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "gnd"
                },
                {
                    "id": "3y",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "output"
                },
                {
                    "id": "3a",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "3b",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "4y",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "output"
                },
                {
                    "id": "4a",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "4b",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-74ls86",
            "kind": "74ls86",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "1a",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "input"
                },
                {
                    "id": "1b",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "1y",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "output"
                },
                {
                    "id": "2a",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "2b",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "2y",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "gnd"
                },
                {
                    "id": "3y",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "output"
                },
                {
                    "id": "3a",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "3b",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "4y",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "output"
                },
                {
                    "id": "4a",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "4b",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-74ls161",
            "kind": "74ls161",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "/clr",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "reset"
                },
                {
                    "id": "clk",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "clock"
                },
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "c",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "d",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "enp",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "enable"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "rco",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "qd",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "qc",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "output"
                },
                {
                    "id": "qb",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "output"
                },
                {
                    "id": "qa",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "/load",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "load"
                },
                {
                    "id": "ent",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "enable"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05,
                "switching_ns": {
                    "clk_q": {
                        "tplh": 13,
                        "tphl": 18
                    },
                    "clr_q": {
                        "tphl": 20
                    },
                    "clk_rco": {
                        "tplh": 20,
                        "tphl": 18
                    },
                    "ent_rco": {
                        "tplh": 9,
                        "tphl": 9
                    }
                },
                "switching_source": "TI SDLS060 p.15, typical, VCC 5 V, CL 15 pF, RL 2 kOhm"
            }
        },
        {
            "uid": "ic-74ls173",
            "kind": "74ls173",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "m",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "enable"
                },
                {
                    "id": "n",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "enable"
                },
                {
                    "id": "q1",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "tri_state"
                },
                {
                    "id": "q2",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "tri_state"
                },
                {
                    "id": "q3",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "tri_state"
                },
                {
                    "id": "q4",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "tri_state"
                },
                {
                    "id": "clk",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "clock"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "/clr",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "reset"
                },
                {
                    "id": "d1",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "d2",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "d3",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "d4",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "g1",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "enable"
                },
                {
                    "id": "g2",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "enable"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05,
                "switching_ns": {
                    "clk_q": {
                        "tplh": 17,
                        "tphl": 22
                    },
                    "clr_q": {
                        "tphl": 26
                    },
                    "mn": {
                        "tpzh": 15,
                        "tpzl": 18,
                        "tphz": 11,
                        "tplz": 11
                    }
                },
                "switching_source": "TI SDLS067A p.8, typical, VCC 5 V, RL 667 Ohm"
            }
        },
        {
            "uid": "ic-74ls189",
            "kind": "74ls189",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "a0",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "input"
                },
                {
                    "id": "/cs",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "enable"
                },
                {
                    "id": "/we",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "enable"
                },
                {
                    "id": "d1",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "/o1",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "tri_state"
                },
                {
                    "id": "d2",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "/o2",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "tri_state"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "d3",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "input"
                },
                {
                    "id": "/o3",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "tri_state"
                },
                {
                    "id": "d4",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "/o4",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "tri_state"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "a1",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05,
                "switching_ns": {
                    "addr_o": {
                        "tplh": 37,
                        "tphl": 37
                    },
                    "cs": {
                        "tpzh": 10,
                        "tpzl": 10
                    }
                },
                "switching_source": "54LS/74LS189 AC table p.3, typical; /WE access and every disable are unpublished for the LS part"
            }
        },
        {
            "uid": "ic-74ls157",
            "kind": "74ls157",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "sel",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "input"
                },
                {
                    "id": "1a",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "1b",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "1y",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "2a",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "2b",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "2y",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "3y",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "3b",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "3a",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "4y",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "output"
                },
                {
                    "id": "4b",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "4a",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "/oe",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "enable"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05,
                "switching_ns": {
                    "strobe": {
                        "tplh": 13,
                        "tphl": 14
                    }
                },
                "switching_source": "TI SDLS058 p.5, typical, VCC 5 V, CL 15 pF, RL 2 kOhm"
            }
        },
        {
            "uid": "ic-74ls153",
            "kind": "74ls153",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "/1g",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "enable"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "1c3",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "1c2",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "1c1",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "1c0",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "1y",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "2y",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "2c0",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "2c1",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "2c2",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "2c3",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "a",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "/2g",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "enable"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05,
                "switching_ns": {
                    "strobe": {
                        "tplh": 13,
                        "tphl": 14
                    }
                },
                "switching_source": "TI SDLS058 p.5, typical, VCC 5 V, CL 15 pF, RL 2 kOhm"
            }
        },
        {
            "uid": "ic-74ls283",
            "kind": "74ls283",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "s2",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "output"
                },
                {
                    "id": "b2",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "s1",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "a1",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "b1",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "c0",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "c4",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "s4",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "b4",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "a4",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "s3",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "b3",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.008,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-74ls245",
            "kind": "74ls245",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "dir",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "input"
                },
                {
                    "id": "a1",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "tri_state"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "tri_state"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "tri_state"
                },
                {
                    "id": "a4",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "tri_state"
                },
                {
                    "id": "a5",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "tri_state"
                },
                {
                    "id": "a6",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "tri_state"
                },
                {
                    "id": "a7",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "tri_state"
                },
                {
                    "id": "a8",
                    "offset": {
                        "x": 0,
                        "y": 80
                    },
                    "function": "tri_state"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 89
                    },
                    "function": "gnd"
                },
                {
                    "id": "b8",
                    "offset": {
                        "x": 80,
                        "y": 89
                    },
                    "function": "tri_state"
                },
                {
                    "id": "b7",
                    "offset": {
                        "x": 80,
                        "y": 80
                    },
                    "function": "tri_state"
                },
                {
                    "id": "b6",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "tri_state"
                },
                {
                    "id": "b5",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "tri_state"
                },
                {
                    "id": "b4",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "tri_state"
                },
                {
                    "id": "b3",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "tri_state"
                },
                {
                    "id": "b2",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "tri_state"
                },
                {
                    "id": "b1",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "tri_state"
                },
                {
                    "id": "/oe",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "enable"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.024,
                "logic_family": "LS-TTL",
                "vth_tol": 0.05,
                "switching_ns": {
                    "oe": {
                        "tpzh": 25,
                        "tpzl": 27,
                        "tphz": 15,
                        "tplz": 15
                    }
                },
                "switching_source": "TI SN74LS245 7.6, typical, VCC 5 V, RL 667 Ohm, CL 45 pF (disable 5 pF)"
            }
        },
        {
            "uid": "ic-74hc595",
            "kind": "74hc595",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "qb",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "output"
                },
                {
                    "id": "qc",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "output"
                },
                {
                    "id": "qd",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "output"
                },
                {
                    "id": "qe",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "qf",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "output"
                },
                {
                    "id": "qg",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "output"
                },
                {
                    "id": "qh",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "qh2",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "/srclr",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "reset"
                },
                {
                    "id": "srclk",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "clock"
                },
                {
                    "id": "rclk",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "clock"
                },
                {
                    "id": "/oe",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "enable"
                },
                {
                    "id": "ser",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "qa",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "output"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3.5
                },
                "notes": "HC-CMOS input thresholds quoted at Vcc=5V; they scale with supply (approx 0.3/0.7 x Vcc).",
                "vcc_range": {
                    "min": 2,
                    "nominal": 5,
                    "max": 6
                },
                "io_max": 0.025,
                "logic_family": "HC-CMOS",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-74hc165",
            "kind": "74hc165",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "/pl",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "load"
                },
                {
                    "id": "cp",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "clock"
                },
                {
                    "id": "d4",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "d5",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "d6",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "d7",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "/q7",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "ds",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "input"
                },
                {
                    "id": "d0",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "d1",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "d2",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "d3",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "q7",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "output"
                },
                {
                    "id": "cp_inh",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "enable"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3.5
                },
                "notes": "HC-CMOS input thresholds quoted at Vcc=5V; they scale with supply (approx 0.3/0.7 x Vcc).",
                "vcc_range": {
                    "min": 2,
                    "nominal": 5,
                    "max": 6
                },
                "io_max": 0.025,
                "logic_family": "HC-CMOS",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-74hc14",
            "kind": "74hc14",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "1a",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "input"
                },
                {
                    "id": "1y",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "output"
                },
                {
                    "id": "2a",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "2y",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "output"
                },
                {
                    "id": "3a",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "3y",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "gnd"
                },
                {
                    "id": "4y",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "output"
                },
                {
                    "id": "4a",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "5y",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "output"
                },
                {
                    "id": "5a",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "6y",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "output"
                },
                {
                    "id": "6a",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "logic_family": "HC-CMOS",
                "vcc_range": {
                    "min": 2,
                    "nominal": 5,
                    "max": 6
                },
                "io_max": 0.02,
                "v_input": {
                    "v_il_max": 1.35,
                    "v_ih_min": 2.7,
                    "v_t_plus": 2.7,
                    "v_t_minus": 1.6
                },
                "vth_tol": 0.05,
                "prop_delay_ns": 15,
                "notes": "Schmitt thresholds (V_T+, V_T-) given at Vcc=5 V and scale linearly with supply. v_il_max=V_T- and v_ih_min=V_T+ at nominal supply."
            }
        },
        {
            "uid": "ic-74hc138",
            "kind": "74hc138",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "a0",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "input"
                },
                {
                    "id": "a1",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "e1n",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "enable"
                },
                {
                    "id": "e2n",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "enable"
                },
                {
                    "id": "e3",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "enable"
                },
                {
                    "id": "y7n",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "y6n",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "y5n",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "y4n",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "output"
                },
                {
                    "id": "y3n",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "output"
                },
                {
                    "id": "y2n",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "y1n",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "output"
                },
                {
                    "id": "y0n",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "output"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "logic_family": "HC-CMOS",
                "vcc_range": {
                    "min": 2,
                    "nominal": 5,
                    "max": 6
                },
                "io_max": 0.025,
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3.5
                },
                "vth_tol": 0.05,
                "prop_delay_ns": 20
            }
        },
        {
            "uid": "ic-74ls47",
            "kind": "74ls47",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "b",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "input"
                },
                {
                    "id": "c",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "lt_n",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "enable"
                },
                {
                    "id": "rbo_n",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "enable"
                },
                {
                    "id": "rbi_n",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "enable"
                },
                {
                    "id": "d",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "e_out",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "open_collector"
                },
                {
                    "id": "d_out",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "open_collector"
                },
                {
                    "id": "c_out",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "open_collector"
                },
                {
                    "id": "b_out",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "open_collector"
                },
                {
                    "id": "a_out",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "open_collector"
                },
                {
                    "id": "g_out",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "open_collector"
                },
                {
                    "id": "f_out",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "open_collector"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "logic_family": "LS-TTL",
                "vcc_range": {
                    "min": 4.75,
                    "nominal": 5,
                    "max": 5.25
                },
                "io_max": 0.024,
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "vth_tol": 0.05,
                "prop_delay_ns": 35,
                "notes": "Open-collector outputs sink up to 24 mA per segment (datasheet guaranteed; absolute max 40 mA). Use external series resistors (typically 150-470 ohm at 5 V) to limit LED current. Maximum sink voltage 15 V."
            }
        },
        {
            "uid": "ic-74hc74",
            "kind": "74hc74",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "clr1_n",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "reset"
                },
                {
                    "id": "d1",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "clk1",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "clock"
                },
                {
                    "id": "pre1_n",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "enable"
                },
                {
                    "id": "q1",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "output"
                },
                {
                    "id": "q1_n",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "gnd"
                },
                {
                    "id": "q2_n",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "output"
                },
                {
                    "id": "q2",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "output"
                },
                {
                    "id": "pre2_n",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "enable"
                },
                {
                    "id": "clk2",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "clock"
                },
                {
                    "id": "d2",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "clr2_n",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "reset"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "logic_family": "HC-CMOS",
                "vcc_range": {
                    "min": 2,
                    "nominal": 5,
                    "max": 6
                },
                "io_max": 0.02,
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3.5
                },
                "vth_tol": 0.05,
                "prop_delay_ns": 25,
                "notes": "Both /PRE and /CLR LOW simultaneously is an undefined state per the TI SN74HC74 datasheet (SCLS108) — Q and /Q both go HIGH while asserted, which is logically inconsistent. Do not rely on this state.",
                "switching_ns": {
                    "clk_q": {
                        "tplh": 20,
                        "tphl": 20
                    },
                    "pre_clr_q": {
                        "tplh": 20,
                        "tphl": 20
                    }
                },
                "switching_source": "TI SCLS094F 6.9, typical at VCC 4.5 V (the table has no 5 V column)"
            }
        },
        {
            "uid": "ic-cd4017",
            "kind": "cd4017",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "q5",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "output"
                },
                {
                    "id": "q1",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "output"
                },
                {
                    "id": "q0",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "output"
                },
                {
                    "id": "q2",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "q6",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "output"
                },
                {
                    "id": "q7",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "output"
                },
                {
                    "id": "q3",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "q8",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "q4",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "q9",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "output"
                },
                {
                    "id": "co",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "output"
                },
                {
                    "id": "clkinh",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "enable"
                },
                {
                    "id": "clk",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "clock"
                },
                {
                    "id": "reset",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "reset"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "logic_family": "CMOS-4000",
                "vcc_range": {
                    "min": 3,
                    "nominal": 5,
                    "max": 15
                },
                "io_max": 0.0068,
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3.5
                },
                "vth_tol": 0.05,
                "prop_delay_ns": 250,
                "notes": "CMOS-4000 logic thresholds are approximately 0.3x and 0.7x Vcc. At 5V: VIL<1.5V, VIH>3.5V. At 10V: VIL<3V, VIH>7V. Source: TI CD4017B datasheet, SCHS027."
            }
        },
        {
            "uid": "ic-cd4511",
            "kind": "cd4511",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "b",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "input"
                },
                {
                    "id": "c",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "lt_n",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "enable"
                },
                {
                    "id": "bl_n",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "enable"
                },
                {
                    "id": "le",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "load"
                },
                {
                    "id": "d",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "e_out",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "d_out",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "c_out",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "output"
                },
                {
                    "id": "b_out",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "output"
                },
                {
                    "id": "a_out",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "g_out",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "output"
                },
                {
                    "id": "f_out",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "output"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "logic_family": "CMOS-4000",
                "vcc_range": {
                    "min": 3,
                    "nominal": 5,
                    "max": 15
                },
                "io_max": 0.025,
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3.5
                },
                "vth_tol": 0.05,
                "prop_delay_ns": 250,
                "notes": "CRITICAL DIFFERENCE from 74LS47: outputs are active-HIGH push-pull (not open-collector). Use with common-CATHODE displays. BCD inputs 10-15 produce ALL SEGMENTS BLANK (not partial glyphs like 74LS47). Digit 6: no top bar (a off), no segment b. Digit 9: no bottom bar (d off). Source: TI CD4511B datasheet, SCHS021."
            }
        },
        {
            "uid": "ic-cd4060",
            "kind": "cd4060",
            "default_params": {
                "vcc": 5
            },
            "pin_layout": [
                {
                    "id": "q12",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "output"
                },
                {
                    "id": "q13",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "output"
                },
                {
                    "id": "q14",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "output"
                },
                {
                    "id": "q6",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "q5",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "output"
                },
                {
                    "id": "q7",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "output"
                },
                {
                    "id": "q4",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "ctc",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "output"
                },
                {
                    "id": "rtc",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "output"
                },
                {
                    "id": "clk_in",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "clock"
                },
                {
                    "id": "reset",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "reset"
                },
                {
                    "id": "q9",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "output"
                },
                {
                    "id": "q8",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "output"
                },
                {
                    "id": "q10",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "output"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "logic_family": "CMOS-4000",
                "vcc_range": {
                    "min": 3,
                    "nominal": 5,
                    "max": 15
                },
                "io_max": 0.0068,
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3.5,
                    "v_t_plus": 2.75,
                    "v_t_minus": 2.25
                },
                "vth_tol": 0.05,
                "prop_delay_ns": 550,
                "notes": "Available outputs with external pins: Q4-Q10, Q12-Q14. Internal stages with NO pins: Q1-Q3, Q11. Oscillator: Rt from RTC (pin 10) to CLK/RS (pin 11), Ct from CTC (pin 9) to CLK/RS (pin 11); f = 1/(2.3 * Rt * Ct); recommend Rt >= 10 kOhm, Ct >= 100 pF. Counter advances on falling edge of CLK/RS (pin 11). CTC (pin 9) = NOT(CLK/RS); RTC (pin 10) = NOT(CTC) = in-phase with CLK/RS. Oscillation emerges from the adaptive transient solve; there is no fixed 50 us engine clock. Solver health and scope effective-rate provenance disclose whether a fast setup is adequately resolved. Source: TI CD4060B datasheet, SCHS007; pin map cross-referenced to Nexperia HEF4060B Rev. 11, Table 2."
            }
        },
        {
            "uid": "ic-28c16",
            "kind": "28c16",
            "default_params": {
                "vcc": 5,
                "contents": ""
            },
            "pin_layout": [
                {
                    "id": "a7",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "input"
                },
                {
                    "id": "a6",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "a5",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "a4",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "a1",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "input"
                },
                {
                    "id": "a0",
                    "offset": {
                        "x": 0,
                        "y": 63
                    },
                    "function": "input"
                },
                {
                    "id": "/oe",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "enable"
                },
                {
                    "id": "a10",
                    "offset": {
                        "x": 0,
                        "y": 79
                    },
                    "function": "input"
                },
                {
                    "id": "/ce",
                    "offset": {
                        "x": 0,
                        "y": 87
                    },
                    "function": "enable"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 95
                    },
                    "function": "gnd"
                },
                {
                    "id": "io0",
                    "offset": {
                        "x": 80,
                        "y": 95
                    },
                    "function": "io"
                },
                {
                    "id": "io1",
                    "offset": {
                        "x": 80,
                        "y": 87
                    },
                    "function": "io"
                },
                {
                    "id": "io2",
                    "offset": {
                        "x": 80,
                        "y": 79
                    },
                    "function": "io"
                },
                {
                    "id": "io3",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "io"
                },
                {
                    "id": "io4",
                    "offset": {
                        "x": 80,
                        "y": 63
                    },
                    "function": "io"
                },
                {
                    "id": "io5",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "io"
                },
                {
                    "id": "io6",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "io"
                },
                {
                    "id": "io7",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "io"
                },
                {
                    "id": "a9",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "a8",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "/we",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "enable"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "io_max": 0.004,
                "logic_family": "CMOS-EEPROM",
                "vcc_range": {
                    "min": 4.5,
                    "nominal": 5,
                    "max": 5.5
                },
                "vth_tol": 0.05,
                "switching_ns": {
                    "addr_io": {
                        "tplh": 150,
                        "tphl": 150
                    },
                    "ce": {
                        "tpzh": 150,
                        "tpzl": 150,
                        "tphz": 50,
                        "tplz": 50
                    },
                    "oe": {
                        "tpzh": 70,
                        "tpzl": 70,
                        "tphz": 50,
                        "tplz": 50
                    }
                },
                "switching_source": "Atmel AT28C16-15 p.5, MAXIMA (no typical is published)"
            }
        },
        {
            "uid": "ic-28c256",
            "kind": "28c256",
            "default_params": {
                "vcc": 5,
                "contents": ""
            },
            "pin_layout": [
                {
                    "id": "a14",
                    "offset": {
                        "x": 0,
                        "y": 7
                    },
                    "function": "input"
                },
                {
                    "id": "a12",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "input"
                },
                {
                    "id": "a7",
                    "offset": {
                        "x": 0,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "a6",
                    "offset": {
                        "x": 0,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "a5",
                    "offset": {
                        "x": 0,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "a4",
                    "offset": {
                        "x": 0,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "input"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 0,
                        "y": 63
                    },
                    "function": "input"
                },
                {
                    "id": "a1",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "input"
                },
                {
                    "id": "a0",
                    "offset": {
                        "x": 0,
                        "y": 79
                    },
                    "function": "input"
                },
                {
                    "id": "/oe",
                    "offset": {
                        "x": 0,
                        "y": 87
                    },
                    "function": "enable"
                },
                {
                    "id": "a10",
                    "offset": {
                        "x": 0,
                        "y": 95
                    },
                    "function": "input"
                },
                {
                    "id": "/ce",
                    "offset": {
                        "x": 0,
                        "y": 103
                    },
                    "function": "enable"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 111
                    },
                    "function": "gnd"
                },
                {
                    "id": "io0",
                    "offset": {
                        "x": 80,
                        "y": 111
                    },
                    "function": "io"
                },
                {
                    "id": "io1",
                    "offset": {
                        "x": 80,
                        "y": 103
                    },
                    "function": "io"
                },
                {
                    "id": "io2",
                    "offset": {
                        "x": 80,
                        "y": 95
                    },
                    "function": "io"
                },
                {
                    "id": "io3",
                    "offset": {
                        "x": 80,
                        "y": 87
                    },
                    "function": "io"
                },
                {
                    "id": "io4",
                    "offset": {
                        "x": 80,
                        "y": 79
                    },
                    "function": "io"
                },
                {
                    "id": "io5",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "io"
                },
                {
                    "id": "io6",
                    "offset": {
                        "x": 80,
                        "y": 63
                    },
                    "function": "io"
                },
                {
                    "id": "io7",
                    "offset": {
                        "x": 80,
                        "y": 55
                    },
                    "function": "io"
                },
                {
                    "id": "a9",
                    "offset": {
                        "x": 80,
                        "y": 47
                    },
                    "function": "input"
                },
                {
                    "id": "a8",
                    "offset": {
                        "x": 80,
                        "y": 39
                    },
                    "function": "input"
                },
                {
                    "id": "a13",
                    "offset": {
                        "x": 80,
                        "y": 31
                    },
                    "function": "input"
                },
                {
                    "id": "a11",
                    "offset": {
                        "x": 80,
                        "y": 23
                    },
                    "function": "input"
                },
                {
                    "id": "/we",
                    "offset": {
                        "x": 80,
                        "y": 15
                    },
                    "function": "enable"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 80,
                        "y": 7
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 2
                },
                "io_max": 0.004,
                "logic_family": "CMOS-EEPROM",
                "vcc_range": {
                    "min": 4.5,
                    "nominal": 5,
                    "max": 5.5
                },
                "vth_tol": 0.05,
                "switching_ns": {
                    "addr_io": {
                        "tplh": 150,
                        "tphl": 150
                    },
                    "ce": {
                        "tpzh": 150,
                        "tpzl": 150,
                        "tphz": 50,
                        "tplz": 50
                    },
                    "oe": {
                        "tpzh": 70,
                        "tpzl": 70,
                        "tphz": 50,
                        "tplz": 50
                    }
                },
                "switching_source": "Atmel AT28C256 doc0006M 9, grade -15, MAXIMA (no typical is published)"
            }
        },
        {
            "uid": "seg7-cc",
            "kind": "seg7_cc",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "g",
                    "offset": {
                        "x": 5,
                        "y": 0
                    },
                    "function": "anode"
                },
                {
                    "id": "f",
                    "offset": {
                        "x": 15,
                        "y": 0
                    },
                    "function": "anode"
                },
                {
                    "id": "com",
                    "offset": {
                        "x": 25,
                        "y": 0
                    }
                },
                {
                    "id": "a",
                    "offset": {
                        "x": 35,
                        "y": 0
                    },
                    "function": "anode"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 45,
                        "y": 0
                    },
                    "function": "anode"
                },
                {
                    "id": "e",
                    "offset": {
                        "x": 5,
                        "y": 80
                    },
                    "function": "anode"
                },
                {
                    "id": "d",
                    "offset": {
                        "x": 15,
                        "y": 80
                    },
                    "function": "anode"
                },
                {
                    "id": "com2",
                    "offset": {
                        "x": 25,
                        "y": 80
                    }
                },
                {
                    "id": "c",
                    "offset": {
                        "x": 35,
                        "y": 80
                    },
                    "function": "anode"
                },
                {
                    "id": "dp",
                    "offset": {
                        "x": 45,
                        "y": 80
                    },
                    "function": "anode"
                }
            ],
            "electrical_specs": {
                "vf": 2,
                "if_max": 0.02,
                "vf_tol": 0.05
            }
        },
        {
            "uid": "seg7-ca",
            "kind": "seg7_ca",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "g",
                    "offset": {
                        "x": 5,
                        "y": 0
                    },
                    "function": "cathode"
                },
                {
                    "id": "f",
                    "offset": {
                        "x": 15,
                        "y": 0
                    },
                    "function": "cathode"
                },
                {
                    "id": "com",
                    "offset": {
                        "x": 25,
                        "y": 0
                    }
                },
                {
                    "id": "a",
                    "offset": {
                        "x": 35,
                        "y": 0
                    },
                    "function": "cathode"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 45,
                        "y": 0
                    },
                    "function": "cathode"
                },
                {
                    "id": "e",
                    "offset": {
                        "x": 5,
                        "y": 80
                    },
                    "function": "cathode"
                },
                {
                    "id": "d",
                    "offset": {
                        "x": 15,
                        "y": 80
                    },
                    "function": "cathode"
                },
                {
                    "id": "com2",
                    "offset": {
                        "x": 25,
                        "y": 80
                    }
                },
                {
                    "id": "c",
                    "offset": {
                        "x": 35,
                        "y": 80
                    },
                    "function": "cathode"
                },
                {
                    "id": "dp",
                    "offset": {
                        "x": 45,
                        "y": 80
                    },
                    "function": "cathode"
                }
            ],
            "electrical_specs": {
                "vf": 2,
                "if_max": 0.02,
                "vf_tol": 0.05
            }
        },
        {
            "uid": "ic-arduino-uno",
            "kind": "arduino_uno",
            "default_params": {
                "vcc": 5,
                "hex": "",
                "hexName": "",
                "notes": "",
                "usb_power": 1
            },
            "pin_layout": [
                {
                    "id": "reset",
                    "offset": {
                        "x": 125.95,
                        "y": 195.84
                    },
                    "function": "reset"
                },
                {
                    "id": "io_ref",
                    "offset": {
                        "x": 115.93,
                        "y": 195.84
                    },
                    "function": "supply_pos"
                },
                {
                    "id": "3v3",
                    "offset": {
                        "x": 135.96,
                        "y": 195.84
                    },
                    "function": "vcc"
                },
                {
                    "id": "5v",
                    "offset": {
                        "x": 145.98,
                        "y": 195.84
                    },
                    "function": "vcc"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 156,
                        "y": 195.84
                    },
                    "function": "gnd"
                },
                {
                    "id": "gnd2",
                    "offset": {
                        "x": 166.02,
                        "y": 195.84
                    },
                    "function": "gnd"
                },
                {
                    "id": "vin",
                    "offset": {
                        "x": 176.04,
                        "y": 195.84
                    },
                    "function": "supply_pos"
                },
                {
                    "id": "a0",
                    "offset": {
                        "x": 195.73,
                        "y": 195.84
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a1",
                    "offset": {
                        "x": 205.79,
                        "y": 195.84
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 215.84,
                        "y": 195.84
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 225.89,
                        "y": 195.84
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a4",
                    "offset": {
                        "x": 235.94,
                        "y": 195.84
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a5",
                    "offset": {
                        "x": 245.99,
                        "y": 195.84
                    },
                    "function": "analog_in"
                },
                {
                    "id": "aref",
                    "offset": {
                        "x": 89.62,
                        "y": 6.12
                    },
                    "function": "input"
                },
                {
                    "id": "d13",
                    "offset": {
                        "x": 109.62,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d12",
                    "offset": {
                        "x": 119.62,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d11",
                    "offset": {
                        "x": 129.62,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d10",
                    "offset": {
                        "x": 139.62,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d9",
                    "offset": {
                        "x": 149.62,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d8",
                    "offset": {
                        "x": 159.62,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d7",
                    "offset": {
                        "x": 175.48,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d6",
                    "offset": {
                        "x": 185.48,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d5",
                    "offset": {
                        "x": 195.48,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d4",
                    "offset": {
                        "x": 205.48,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d3",
                    "offset": {
                        "x": 215.48,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d2",
                    "offset": {
                        "x": 225.48,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d1",
                    "offset": {
                        "x": 235.48,
                        "y": 6.12
                    },
                    "function": "io"
                },
                {
                    "id": "d0",
                    "offset": {
                        "x": 245.48,
                        "y": 6.12
                    },
                    "function": "io"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3
                },
                "notes": "AVR input thresholds quoted at Vcc=5V.",
                "vcc_range": {
                    "min": 4.5,
                    "nominal": 5,
                    "max": 5.5
                },
                "io_max": 0.02,
                "logic_family": "AVR-CMOS",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ic-raspberry-pi-pico",
            "kind": "raspberry_pi_pico",
            "default_params": {
                "vcc": 3.3,
                "script": "",
                "usb_power": 1,
                "notes": ""
            },
            "pin_layout": [
                {
                    "id": "gp0",
                    "offset": {
                        "x": 8,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp1",
                    "offset": {
                        "x": 27,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 46,
                        "y": 131
                    },
                    "function": "gnd"
                },
                {
                    "id": "gp2",
                    "offset": {
                        "x": 65,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp3",
                    "offset": {
                        "x": 84,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp4",
                    "offset": {
                        "x": 103,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp5",
                    "offset": {
                        "x": 122,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gnd2",
                    "offset": {
                        "x": 141,
                        "y": 131
                    },
                    "function": "gnd"
                },
                {
                    "id": "gp6",
                    "offset": {
                        "x": 160,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp7",
                    "offset": {
                        "x": 179,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp8",
                    "offset": {
                        "x": 198,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp9",
                    "offset": {
                        "x": 217,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gnd3",
                    "offset": {
                        "x": 236,
                        "y": 131
                    },
                    "function": "gnd"
                },
                {
                    "id": "gp10",
                    "offset": {
                        "x": 255,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp11",
                    "offset": {
                        "x": 274,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp12",
                    "offset": {
                        "x": 293,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp13",
                    "offset": {
                        "x": 312,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gnd4",
                    "offset": {
                        "x": 331,
                        "y": 131
                    },
                    "function": "gnd"
                },
                {
                    "id": "gp14",
                    "offset": {
                        "x": 350,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp15",
                    "offset": {
                        "x": 369,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "gp16",
                    "offset": {
                        "x": 369,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "gp17",
                    "offset": {
                        "x": 350,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "gnd7",
                    "offset": {
                        "x": 331,
                        "y": 0
                    },
                    "function": "gnd"
                },
                {
                    "id": "gp18",
                    "offset": {
                        "x": 312,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "gp19",
                    "offset": {
                        "x": 293,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "gp20",
                    "offset": {
                        "x": 274,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "gp21",
                    "offset": {
                        "x": 255,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "gnd6",
                    "offset": {
                        "x": 236,
                        "y": 0
                    },
                    "function": "gnd"
                },
                {
                    "id": "gp22",
                    "offset": {
                        "x": 217,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "run",
                    "offset": {
                        "x": 198,
                        "y": 0
                    },
                    "function": "reset"
                },
                {
                    "id": "gp26",
                    "offset": {
                        "x": 179,
                        "y": 0
                    },
                    "function": "analog_in"
                },
                {
                    "id": "gp27",
                    "offset": {
                        "x": 160,
                        "y": 0
                    },
                    "function": "analog_in"
                },
                {
                    "id": "agnd",
                    "offset": {
                        "x": 141,
                        "y": 0
                    },
                    "function": "gnd"
                },
                {
                    "id": "gp28",
                    "offset": {
                        "x": 122,
                        "y": 0
                    },
                    "function": "analog_in"
                },
                {
                    "id": "adc_vref",
                    "offset": {
                        "x": 103,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "3v3",
                    "offset": {
                        "x": 84,
                        "y": 0
                    },
                    "function": "vcc"
                },
                {
                    "id": "3v3_en",
                    "offset": {
                        "x": 65,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "gnd5",
                    "offset": {
                        "x": 46,
                        "y": 0
                    },
                    "function": "gnd"
                },
                {
                    "id": "vsys",
                    "offset": {
                        "x": 27,
                        "y": 0
                    },
                    "function": "vcc"
                },
                {
                    "id": "vbus",
                    "offset": {
                        "x": 8,
                        "y": 0
                    },
                    "function": "vcc"
                }
            ]
        },
        {
            "uid": "ic-microbit",
            "kind": "microbit",
            "default_params": {
                "script": "",
                "power": 1,
                "notes": "",
                "breakout": 0
            },
            "pin_layout": [
                {
                    "id": "p0",
                    "offset": {
                        "x": 17.4,
                        "y": 161.7
                    },
                    "function": "io"
                },
                {
                    "id": "p1",
                    "offset": {
                        "x": 62.3,
                        "y": 161.7
                    },
                    "function": "io"
                },
                {
                    "id": "p2",
                    "offset": {
                        "x": 113,
                        "y": 161.7
                    },
                    "function": "io"
                },
                {
                    "id": "3v",
                    "offset": {
                        "x": 163.6,
                        "y": 161.7
                    },
                    "function": "vcc"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 208.7,
                        "y": 161.7
                    },
                    "function": "gnd"
                }
            ]
        },
        {
            "uid": "ic-arduino-nano",
            "kind": "arduino_nano",
            "default_params": {
                "vcc": 5,
                "hex": "",
                "hexName": "",
                "notes": "",
                "usb_power": 1
            },
            "pin_layout": [
                {
                    "id": "d13",
                    "offset": {
                        "x": 8,
                        "y": 131
                    },
                    "function": "io"
                },
                {
                    "id": "3v3",
                    "offset": {
                        "x": 27,
                        "y": 131
                    },
                    "function": "vcc"
                },
                {
                    "id": "aref",
                    "offset": {
                        "x": 46,
                        "y": 131
                    },
                    "function": "input"
                },
                {
                    "id": "a0",
                    "offset": {
                        "x": 65,
                        "y": 131
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a1",
                    "offset": {
                        "x": 84,
                        "y": 131
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 103,
                        "y": 131
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 122,
                        "y": 131
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a4",
                    "offset": {
                        "x": 141,
                        "y": 131
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a5",
                    "offset": {
                        "x": 160,
                        "y": 131
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a6",
                    "offset": {
                        "x": 179,
                        "y": 131
                    },
                    "function": "analog_in"
                },
                {
                    "id": "a7",
                    "offset": {
                        "x": 198,
                        "y": 131
                    },
                    "function": "analog_in"
                },
                {
                    "id": "5v",
                    "offset": {
                        "x": 217,
                        "y": 131
                    },
                    "function": "vcc"
                },
                {
                    "id": "reset2",
                    "offset": {
                        "x": 236,
                        "y": 131
                    },
                    "function": "reset"
                },
                {
                    "id": "gnd2",
                    "offset": {
                        "x": 255,
                        "y": 131
                    },
                    "function": "gnd"
                },
                {
                    "id": "vin",
                    "offset": {
                        "x": 274,
                        "y": 131
                    },
                    "function": "supply_pos"
                },
                {
                    "id": "d12",
                    "offset": {
                        "x": 8,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d11",
                    "offset": {
                        "x": 27,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d10",
                    "offset": {
                        "x": 46,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d9",
                    "offset": {
                        "x": 65,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d8",
                    "offset": {
                        "x": 84,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d7",
                    "offset": {
                        "x": 103,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d6",
                    "offset": {
                        "x": 122,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d5",
                    "offset": {
                        "x": 141,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d4",
                    "offset": {
                        "x": 160,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d3",
                    "offset": {
                        "x": 179,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d2",
                    "offset": {
                        "x": 198,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 217,
                        "y": 0
                    },
                    "function": "gnd"
                },
                {
                    "id": "reset",
                    "offset": {
                        "x": 236,
                        "y": 0
                    },
                    "function": "reset"
                },
                {
                    "id": "d0",
                    "offset": {
                        "x": 255,
                        "y": 0
                    },
                    "function": "io"
                },
                {
                    "id": "d1",
                    "offset": {
                        "x": 274,
                        "y": 0
                    },
                    "function": "io"
                }
            ],
            "electrical_specs": {
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 3
                },
                "notes": "AVR input thresholds quoted at Vcc=5V.",
                "vcc_range": {
                    "min": 4.5,
                    "nominal": 5,
                    "max": 5.5
                },
                "io_max": 0.02,
                "logic_family": "AVR-CMOS",
                "vth_tol": 0.05
            }
        },
        {
            "uid": "ferrite-bead",
            "kind": "ferrite_bead",
            "default_params": {
                "rDc": 0.0035
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 57,
                        "y": 10
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "p_max": 0.056,
                "notes": "DC/LF model only: the simulator stamps rDc as a plain series resistor. HF impedance (the bead's actual function) needs a frequency-dependent lossy model that is not included; adaptive timesteps do not add it. Use for BOM/layout realism and DC voltage-drop verification. Rating convention: Fair-Rite controls this bead for impedance only and gives it no current rating, so this catalog assumes 2 A, unverified. p_max is (2 × 2 A)² × 3.5 mΩ = 0.056 W, with 3.5 mΩ the resistance of the 22 AWG lead, so a bead at 2 A never fails and the simulator fails it above about 4 A DC."
            }
        },
        {
            "uid": "resistor-array",
            "kind": "resistor_array",
            "default_params": {
                "resistance": 10000
            },
            "pin_layout": [
                {
                    "id": "a1",
                    "offset": {
                        "x": 8,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "b1",
                    "offset": {
                        "x": 8,
                        "y": 55
                    },
                    "function": "passive"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 27,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "b2",
                    "offset": {
                        "x": 27,
                        "y": 55
                    },
                    "function": "passive"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 46,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "b3",
                    "offset": {
                        "x": 46,
                        "y": 55
                    },
                    "function": "passive"
                },
                {
                    "id": "a4",
                    "offset": {
                        "x": 65,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "b4",
                    "offset": {
                        "x": 65,
                        "y": 55
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "p_max": 0.125,
                "notes": "4 isolated resistors, each rated 125 mW (0.5 W total package). Tolerance ±5% (same as individual resistors). All four share the single `resistance` param.",
                "value_tol": 0.05
            }
        },
        {
            "uid": "cap-ceramic",
            "kind": "capacitor",
            "default_params": {
                "capacitance": 1e-7,
                "esr": 0.05,
                "leakageResistance": 1000000000,
                "style": "ceramic"
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Non-polarised; either terminal can connect to the higher-voltage node. The ESR and leakage defaults are representative. Tolerance is typically ±10% for X7R/Y5V dielectrics, better for C0G/NP0. ESR frequency dependence, dielectric absorption, voltage coefficient, and breakdown are not modelled.",
                "value_tol": 0.1
            }
        },
        {
            "uid": "cap-electrolytic",
            "kind": "capacitor",
            "default_params": {
                "capacitance": 0.0001,
                "esr": 0.2,
                "leakageResistance": 1000000,
                "style": "electrolytic"
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Polarised: pin a is positive (+), pin b is negative (−). The ESR and leakage defaults are representative. Tolerance is typically −20%/+80%. Reverse polarity can damage a real part, but polarity damage, ESR frequency/temperature dependence, dielectric absorption, and breakdown are not modelled.",
                "value_tol": 0.1
            }
        },
        {
            "uid": "cap-film",
            "kind": "capacitor",
            "default_params": {
                "capacitance": 0.000001,
                "esr": 0.1,
                "leakageResistance": 1000000000,
                "style": "film"
            },
            "pin_layout": [
                {
                    "id": "a",
                    "offset": {
                        "x": 0,
                        "y": 15
                    },
                    "function": "passive"
                },
                {
                    "id": "b",
                    "offset": {
                        "x": 38,
                        "y": 15
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Non-polarised; either terminal can connect to the higher-voltage node. The ESR and leakage defaults are representative. Tolerance is typically ±5–10% for polyester (PET), ±1–2% for polypropylene (PP). ESR frequency dependence, dielectric absorption, and breakdown are not modelled.",
                "value_tol": 0.1
            }
        },
        {
            "uid": "dip-switch",
            "kind": "dip_switch",
            "default_params": {
                "positions": 4,
                "sw1": 0,
                "sw2": 0,
                "sw3": 0,
                "sw4": 0
            },
            "pin_layout": [
                {
                    "id": "a1",
                    "offset": {
                        "x": 0,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "b1",
                    "offset": {
                        "x": 0,
                        "y": 55
                    },
                    "function": "passive"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 19,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "b2",
                    "offset": {
                        "x": 19,
                        "y": 55
                    },
                    "function": "passive"
                },
                {
                    "id": "a3",
                    "offset": {
                        "x": 38,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "b3",
                    "offset": {
                        "x": 38,
                        "y": 55
                    },
                    "function": "passive"
                },
                {
                    "id": "a4",
                    "offset": {
                        "x": 57,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "b4",
                    "offset": {
                        "x": 57,
                        "y": 55
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Typical contact rating 100 mA at 50 V DC (low-level signal switching only). Contact resistance ≤ 100 mΩ. Insulation resistance ≥ 100 MΩ. Operating life 1 000–10 000 cycles per position."
            }
        },
        {
            "uid": "lm358",
            "kind": "lm358",
            "default_params": {
                "openLoopGain": 100000,
                "gbw": 1000000,
                "slewRate": 300000,
                "sourceCurrentLimit": 0.04,
                "sinkCurrentLimit": 0.02,
                "outputResistance": 50
            },
            "pin_layout": [
                {
                    "id": "1",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "analog_out"
                },
                {
                    "id": "2",
                    "offset": {
                        "x": 0,
                        "y": 20
                    },
                    "function": "analog_in"
                },
                {
                    "id": "3",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "4",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "gnd"
                },
                {
                    "id": "5",
                    "offset": {
                        "x": 80,
                        "y": 40
                    },
                    "function": "analog_in"
                },
                {
                    "id": "6",
                    "offset": {
                        "x": 80,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "7",
                    "offset": {
                        "x": 80,
                        "y": 20
                    },
                    "function": "analog_out"
                },
                {
                    "id": "8",
                    "offset": {
                        "x": 80,
                        "y": 10
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 3,
                    "nominal": 5,
                    "max": 32
                },
                "quiescent_current_a": 0.0007,
                "p_max": 0.83,
                "thermal": {
                    "r_theta_ja_c_per_w": 80.9,
                    "time_constant_s": 12,
                    "ambient_range_c": {
                        "min": 0,
                        "max": 70
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 150,
                    "r_theta_condition": "TI P-package PDIP-8 JEDEC thermal metric.",
                    "assumptions": [
                        "The 12 s one-pole time constant is a teaching-model assumption.",
                        "The 0.83 W package envelope is not a guaranteed functional output-power rating.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "Typical model defaults: 100 dB DC gain, 1 MHz GBW, 0.3 V/µs slew, 40 mA source and 20 mA sink limits, and 50 Ω output resistance. Output can swing to ~20 mV above GND but only to ~VCC−1.5 V. The transient model is one dominant pole with hard slew/current/rail clamps. Input common-mode limits, input offset/bias/noise, additional poles and phase margin, capacitive-load instability, crossover distortion, and overload-recovery time are not modelled. For an identified PDIP-8 device, solved package power drives a persistent one-pole junction temperature using 80.9 °C/W and an assumed 12 s time constant; the ambient-adjusted power allowance is reported. Temperature does not alter the electrical macro-model, and no reversible thermal shutdown is claimed."
            }
        },
        {
            "uid": "mcp6002",
            "kind": "mcp6002",
            "default_params": {
                "openLoopGain": 100000,
                "gbw": 1000000,
                "slewRate": 600000,
                "sourceCurrentLimit": 0.023,
                "sinkCurrentLimit": 0.023,
                "outputResistance": 50
            },
            "pin_layout": [
                {
                    "id": "1",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "analog_out"
                },
                {
                    "id": "2",
                    "offset": {
                        "x": 0,
                        "y": 20
                    },
                    "function": "analog_in"
                },
                {
                    "id": "3",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "4",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "gnd"
                },
                {
                    "id": "5",
                    "offset": {
                        "x": 80,
                        "y": 40
                    },
                    "function": "analog_in"
                },
                {
                    "id": "6",
                    "offset": {
                        "x": 80,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "7",
                    "offset": {
                        "x": 80,
                        "y": 20
                    },
                    "function": "analog_out"
                },
                {
                    "id": "8",
                    "offset": {
                        "x": 80,
                        "y": 10
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 1.8,
                    "nominal": 5,
                    "max": 6
                },
                "quiescent_current_a": 0.0002,
                "p_max": 1.18,
                "thermal": {
                    "r_theta_ja_c_per_w": 85,
                    "time_constant_s": 12,
                    "ambient_range_c": {
                        "min": -40,
                        "max": 125
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 150,
                    "r_theta_condition": "Microchip 8-lead PDIP package thermal resistance.",
                    "assumptions": [
                        "The 12 s one-pole time constant is a teaching-model assumption.",
                        "The 1.18 W envelope is derived from 125 °C at 25 °C ambient and is not a guaranteed functional output-power rating.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "Typical model defaults: 100 dB DC gain, 1 MHz GBW, 0.6 V/µs slew, ±23 mA output-current limits, and 50 Ω output resistance. Rail-to-rail input/output is approximated with 20 mV output headroom; quiescent current is ~100 µA per amplifier. The transient model is one dominant pole with hard slew/current/rail clamps. Input offset/bias/noise, additional poles and phase margin, capacitive-load instability, crossover distortion, and overload-recovery time are not modelled. For an identified PDIP-8 device, solved package power drives a persistent one-pole junction temperature using 85 °C/W and an assumed 12 s time constant; the ambient-adjusted power allowance is reported. Temperature does not alter the electrical macro-model, and no reversible thermal shutdown is claimed."
            }
        },
        {
            "uid": "lm386",
            "kind": "lm386",
            "default_params": {
                "gain": 20,
                "gbw": 6000000,
                "slewRate": 300000,
                "sourceCurrentLimit": 0.25,
                "sinkCurrentLimit": 0.25,
                "outputResistance": 2
            },
            "pin_layout": [
                {
                    "id": "1",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "passive"
                },
                {
                    "id": "2",
                    "offset": {
                        "x": 0,
                        "y": 20
                    },
                    "function": "analog_in"
                },
                {
                    "id": "3",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "4",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "gnd"
                },
                {
                    "id": "5",
                    "offset": {
                        "x": 80,
                        "y": 40
                    },
                    "function": "analog_out"
                },
                {
                    "id": "6",
                    "offset": {
                        "x": 80,
                        "y": 30
                    },
                    "function": "vcc"
                },
                {
                    "id": "7",
                    "offset": {
                        "x": 80,
                        "y": 20
                    },
                    "function": "passive"
                },
                {
                    "id": "8",
                    "offset": {
                        "x": 80,
                        "y": 10
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 4,
                    "nominal": 6,
                    "max": 12
                },
                "quiescent_current_a": 0.004,
                "p_max": 1.25,
                "thermal": {
                    "r_theta_ja_c_per_w": 53.4,
                    "time_constant_s": 12,
                    "ambient_range_c": {
                        "min": 0,
                        "max": 70
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 150,
                    "r_theta_condition": "TI P-package PDIP-8 JEDEC thermal metric.",
                    "assumptions": [
                        "The 12 s one-pole time constant is a teaching-model assumption.",
                        "Audio output power is not package heat one-for-one.",
                        "No reversible thermal shutdown is claimed."
                    ]
                },
                "notes": "Output self-biases to VS/2. Typical model defaults: gain ×20, effective 6 MHz GBW (about 300 kHz closed-loop bandwidth at ×20), 0.3 V/µs slew, ±250 mA output-current limits, and 2 Ω output resistance. Gain pin (1/8): open=20, 1.2 kΩ path=50, bypass capacitor=200. The transient model is one dominant pole with hard slew/current/rail clamps. Coupling/bypass capacitor networks, speaker impedance versus frequency, additional poles, crossover and clipping distortion, and overload-recovery time are not modelled. For an identified PDIP-8 device, solved package power drives a persistent one-pole junction temperature using 53.4 °C/W, the 1.25 W package limit, and an assumed 12 s time constant; the ambient-adjusted power allowance is reported. Temperature does not alter the electrical macro-model, and no reversible thermal shutdown is claimed."
            }
        },
        {
            "uid": "lm393",
            "kind": "lm393",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "1",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "open_collector"
                },
                {
                    "id": "2",
                    "offset": {
                        "x": 0,
                        "y": 20
                    },
                    "function": "analog_in"
                },
                {
                    "id": "3",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "4",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "gnd"
                },
                {
                    "id": "5",
                    "offset": {
                        "x": 80,
                        "y": 40
                    },
                    "function": "analog_in"
                },
                {
                    "id": "6",
                    "offset": {
                        "x": 80,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "7",
                    "offset": {
                        "x": 80,
                        "y": 20
                    },
                    "function": "open_collector"
                },
                {
                    "id": "8",
                    "offset": {
                        "x": 80,
                        "y": 10
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 2,
                    "nominal": 5,
                    "max": 36
                },
                "io_max": 0.016,
                "notes": "Open-collector outputs: MUST use external pull-up. Output sinks up to 16 mA when IN+ < IN-; floats (hi-Z) when IN+ > IN-. Input common-mode range: GND to VCC-2V. No output phase inversion. Can be used single-supply or dual-supply."
            }
        },
        {
            "uid": "reg-7805",
            "kind": "linear_reg",
            "default_params": {
                "vout": 5,
                "vdropout": 2,
                "iLimit": 1
            },
            "pin_layout": [
                {
                    "id": "in",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 20,
                        "y": 60
                    },
                    "function": "gnd"
                },
                {
                    "id": "out",
                    "offset": {
                        "x": 40,
                        "y": 30
                    },
                    "function": "analog_out"
                }
            ],
            "electrical_specs": {
                "p_max": 15,
                "thermal": {
                    "r_theta_ja_c_per_w": 23.9,
                    "time_constant_s": 15,
                    "ambient_range_c": {
                        "min": 0,
                        "max": 125
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 150,
                    "r_theta_condition": "TI NDE TO-220 JEDEC board metric; mounting and heatsinking can dominate.",
                    "shutdown": {
                        "trip_c": 150,
                        "restart_c": 135,
                        "restart_is_assumed": true
                    },
                    "assumptions": [
                        "The 15 s one-pole time constant is a teaching-model assumption.",
                        "The 135 °C restart threshold is assumed because one universal restart value is not specified.",
                        "The 15 W headline rating requires a suitable heatsink."
                    ]
                },
                "notes": "Output 5.0 V ±4%. Dropout is about 2 V, so input must be at least 7 V for full regulation. The 1.0 A setting is an electrical limit, not a guaranteed thermally safe current. For the identified TO-220, solved regulator loss drives a persistent one-pole junction temperature using 23.9 °C/W, and the ambient-adjusted power allowance is reported. Crossing 150 °C shuts the output down; regulation resumes only after cooling to 135 °C. The time constant and restart point are compact-model assumptions."
            }
        },
        {
            "uid": "reg-ams1117-33",
            "kind": "linear_reg",
            "default_params": {
                "vout": 3.3,
                "vdropout": 1.1,
                "iLimit": 0.8
            },
            "pin_layout": [
                {
                    "id": "in",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 20,
                        "y": 60
                    },
                    "function": "gnd"
                },
                {
                    "id": "out",
                    "offset": {
                        "x": 40,
                        "y": 30
                    },
                    "function": "analog_out"
                }
            ],
            "electrical_specs": {
                "p_max": 1,
                "thermal": {
                    "r_theta_ja_c_per_w": 90,
                    "time_constant_s": 8,
                    "ambient_range_c": {
                        "min": 0,
                        "max": 125
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 150,
                    "r_theta_condition": "Small SOT-223 carrier assumption; PCB copper can move thermal resistance roughly from 55 to 90 °C/W.",
                    "shutdown": {
                        "trip_c": 165,
                        "restart_c": 145,
                        "restart_is_assumed": true
                    },
                    "assumptions": [
                        "The 8 s one-pole time constant is a teaching-model assumption.",
                        "The 145 °C restart threshold is a compact-model assumption.",
                        "The 165 °C protection point is above the 150 °C absolute rating and is not an operating target."
                    ]
                },
                "notes": "Output 3.3 V ±2%. LDO dropout is about 1.1 V, so input must be at least 4.4 V. The 800 mA setting is an electrical limit, not a guaranteed thermally safe current. For the identified carrier, solved regulator loss drives a persistent one-pole junction temperature using 90 °C/W, and the ambient-adjusted power allowance is reported. Crossing 165 °C shuts the output down; regulation resumes only after cooling to 145 °C. Copper area, time constant, and restart point are explicit model assumptions, and the protection point is above the 150 °C absolute rating."
            }
        },
        {
            "uid": "reg-ams1117-50",
            "kind": "linear_reg",
            "default_params": {
                "vout": 5,
                "vdropout": 1.1,
                "iLimit": 0.8
            },
            "pin_layout": [
                {
                    "id": "in",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 20,
                        "y": 60
                    },
                    "function": "gnd"
                },
                {
                    "id": "out",
                    "offset": {
                        "x": 40,
                        "y": 30
                    },
                    "function": "analog_out"
                }
            ],
            "electrical_specs": {
                "p_max": 1,
                "thermal": {
                    "r_theta_ja_c_per_w": 90,
                    "time_constant_s": 8,
                    "ambient_range_c": {
                        "min": 0,
                        "max": 125
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 150,
                    "r_theta_condition": "Small SOT-223 carrier assumption; PCB copper can move thermal resistance roughly from 55 to 90 °C/W.",
                    "shutdown": {
                        "trip_c": 165,
                        "restart_c": 145,
                        "restart_is_assumed": true
                    },
                    "assumptions": [
                        "The 8 s one-pole time constant is a teaching-model assumption.",
                        "The 145 °C restart threshold is a compact-model assumption.",
                        "The 165 °C protection point is above the 150 °C absolute rating and is not an operating target."
                    ]
                },
                "notes": "Output 5.0 V ±2%. LDO dropout is about 1.1 V, so input must be at least 6.1 V. The 800 mA setting is an electrical limit, not a guaranteed thermally safe current. For the identified carrier, solved regulator loss drives a persistent one-pole junction temperature using 90 °C/W, and the ambient-adjusted power allowance is reported. Crossing 165 °C shuts the output down; regulation resumes only after cooling to 145 °C. Copper area, time constant, and restart point are explicit model assumptions, and the protection point is above the 150 °C absolute rating."
            }
        },
        {
            "uid": "lm317",
            "kind": "lm317",
            "default_params": {
                "vref": 1.25,
                "vdropout": 2,
                "iLimit": 1.5
            },
            "pin_layout": [
                {
                    "id": "in",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "analog_in"
                },
                {
                    "id": "adj",
                    "offset": {
                        "x": 20,
                        "y": 60
                    },
                    "function": "analog_in"
                },
                {
                    "id": "out",
                    "offset": {
                        "x": 40,
                        "y": 30
                    },
                    "function": "analog_out"
                }
            ],
            "electrical_specs": {
                "p_max": 20,
                "thermal": {
                    "r_theta_ja_c_per_w": 37.9,
                    "time_constant_s": 15,
                    "ambient_range_c": {
                        "min": 0,
                        "max": 125
                    },
                    "continuous_temperature_max_c": 125,
                    "absolute_temperature_max_c": 150,
                    "r_theta_condition": "Representative TI KCT TO-220 board metric; breakout and heatsink construction are unspecified.",
                    "shutdown": {
                        "trip_c": 150,
                        "restart_c": 135,
                        "trip_is_assumed": true,
                        "restart_is_assumed": true
                    },
                    "assumptions": [
                        "The 15 s one-pole time constant is a teaching-model assumption.",
                        "Internal thermal shutdown is specified, but the 150/135 °C thresholds are compact-model assumptions.",
                        "The 20 W headline rating requires suitable heatsinking."
                    ]
                },
                "notes": "Internal reference Vref is 1.25 V between OUT and ADJ. Dropout is about 2 V, so input must exceed output by 2 V. The 1.5 A setting is an electrical limit, not a guaranteed thermally safe current. For the identified TO-220, solved regulator loss drives a persistent one-pole junction temperature using 37.9 °C/W, and the ambient-adjusted power allowance is reported. Crossing the assumed 150 °C threshold shuts the output down; regulation resumes only after cooling to the assumed 135 °C restart point. A real LM317 also has adjustment-pin current and a minimum-load requirement, which this electrical model omits."
            }
        },
        {
            "uid": "tl431",
            "kind": "tl431",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "ref",
                    "offset": {
                        "x": 0,
                        "y": 20
                    },
                    "function": "analog_in"
                },
                {
                    "id": "anode",
                    "offset": {
                        "x": 20,
                        "y": 60
                    },
                    "function": "passive"
                },
                {
                    "id": "cathode",
                    "offset": {
                        "x": 20,
                        "y": 0
                    },
                    "function": "analog_out"
                }
            ],
            "electrical_specs": {
                "p_max": 0.5,
                "notes": "Internal reference voltage Vref=2.495 V (+/-0.5%). Minimum cathode voltage ~2 V (must stay above Vref). Cathode current range 1 mA to 100 mA. REF input draws ~2 µA bias current. Anode = GND-side terminal."
            }
        },
        {
            "uid": "battery-9v",
            "kind": "battery_pack",
            "default_params": {
                "voltage": 9,
                "rInternal": 1.5,
                "capacityAh": 0.55,
                "charge": 1
            },
            "pin_layout": [
                {
                    "id": "pos",
                    "offset": {
                        "x": 100,
                        "y": 18
                    },
                    "function": "supply_pos"
                },
                {
                    "id": "neg",
                    "offset": {
                        "x": 100,
                        "y": 32
                    },
                    "function": "supply_neg"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 6,
                    "nominal": 9,
                    "max": 9.6
                },
                "notes": "PP3 / 6LR61 alkaline. Runtime charge is coulomb-counted from a 0.55 Ah low-drain reference. Chemistry OCV and internal resistance change with charge; resistance also rises in cold ambient conditions. High-current rate-capacity loss, recovery, self-discharge, aging and self-heating are not modelled."
            }
        },
        {
            "uid": "battery-coin-cr2032",
            "kind": "battery_pack",
            "default_params": {
                "voltage": 3,
                "rInternal": 10,
                "capacityAh": 0.235,
                "charge": 1
            },
            "pin_layout": [
                {
                    "id": "pos",
                    "offset": {
                        "x": 100,
                        "y": 18
                    },
                    "function": "supply_pos"
                },
                {
                    "id": "neg",
                    "offset": {
                        "x": 100,
                        "y": 32
                    },
                    "function": "supply_neg"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 2,
                    "nominal": 3,
                    "max": 3.2
                },
                "notes": "CR2032 lithium coin cell. Runtime charge is coulomb-counted from a 235 mAh, 15 kΩ / 21 °C reference. Chemistry OCV and internal resistance change with charge; resistance rises strongly in cold ambient conditions. Pulse-load capacity loss, recovery, self-discharge, aging and self-heating are not modelled."
            }
        },
        {
            "uid": "dcdc-buck-5v",
            "kind": "dcdc_converter",
            "default_params": {
                "vout": 5,
                "eta": 0.85,
                "iLimit": 2,
                "vdropout": 1.5
            },
            "pin_layout": [
                {
                    "id": "in_pos",
                    "offset": {
                        "x": 0,
                        "y": 60
                    },
                    "function": "supply_pos"
                },
                {
                    "id": "in_neg",
                    "offset": {
                        "x": 19,
                        "y": 60
                    },
                    "function": "supply_neg"
                },
                {
                    "id": "out_pos",
                    "offset": {
                        "x": 38,
                        "y": 60
                    },
                    "function": "analog_out"
                },
                {
                    "id": "out_neg",
                    "offset": {
                        "x": 57,
                        "y": 60
                    },
                    "function": "gnd"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 7,
                    "nominal": 12,
                    "max": 35
                },
                "eta": 0.85,
                "iLimit_max": 2,
                "notes": "Behavioural non-isolated buck model: IN− and OUT− are one internal return. Within the declared 7–35 V input range, the output regulates at vout (CV), current-limits at iLimit (CC), or follows the averaged maximum-duty ceiling Vout=Vin−vdropout (default 1.5 V). It cannot boost. Present-solve input draw satisfies Iin=Pout/(eta×Vin), including load and regime changes. Below UVLO, above maximum input, or with reversed polarity, it is OFF. Switching ripple and control-loop transients are omitted."
            }
        },
        {
            "uid": "relay-spdt-5v",
            "kind": "relay",
            "default_params": {
                "coilR": 70,
                "coilL": 0.05,
                "vPull": 3.5,
                "vDrop": 1.5
            },
            "pin_layout": [
                {
                    "id": "coil_a",
                    "offset": {
                        "x": 0,
                        "y": 60
                    },
                    "function": "passive"
                },
                {
                    "id": "coil_b",
                    "offset": {
                        "x": 19,
                        "y": 60
                    },
                    "function": "passive"
                },
                {
                    "id": "com",
                    "offset": {
                        "x": 38,
                        "y": 60
                    },
                    "function": "passive"
                },
                {
                    "id": "no",
                    "offset": {
                        "x": 57,
                        "y": 60
                    },
                    "function": "passive"
                },
                {
                    "id": "nc",
                    "offset": {
                        "x": 76,
                        "y": 60
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 3,
                    "nominal": 5,
                    "max": 12
                },
                "coilR_min": 70,
                "vPull_max": 3.5,
                "vDrop_min": 1.5,
                "notes": "Coil modelled as series R+L (backward-Euler Norton companion). Contact switching uses hysteresis on coil voltage: pull-in when |V_coil| >= vPull, drop-out when |V_coil| < vDrop. Always add a flyback diode across the coil; see the missing-flyback diagnostic."
            }
        },
        {
            "uid": "uln2003a",
            "kind": "uln2003",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "in1",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "input"
                },
                {
                    "id": "in2",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "in3",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "in4",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "in5",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "in6",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "in7",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "gnd"
                },
                {
                    "id": "com",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "passive"
                },
                {
                    "id": "out7",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out6",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out5",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out4",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out3",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out2",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out1",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "open_collector"
                }
            ],
            "electrical_specs": {
                "logic_family": "TTL-compatible",
                "io_max": 0.5,
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 2.5
                },
                "notes": "No VCC pin. Inputs referenced to GND. Output is open-collector sink only; external pull-up or load required for high state. Internal catch diodes from each OUT to COM are electrically modelled and clamp inductive spikes when COM is tied to the load supply rail. Vce_sat is simplified as R_on=5 ohm (approximately 1 V at 200 mA)."
            }
        },
        {
            "uid": "uln2803a",
            "kind": "uln2803",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "in1",
                    "offset": {
                        "x": 0,
                        "y": 8
                    },
                    "function": "input"
                },
                {
                    "id": "in2",
                    "offset": {
                        "x": 0,
                        "y": 17
                    },
                    "function": "input"
                },
                {
                    "id": "in3",
                    "offset": {
                        "x": 0,
                        "y": 26
                    },
                    "function": "input"
                },
                {
                    "id": "in4",
                    "offset": {
                        "x": 0,
                        "y": 35
                    },
                    "function": "input"
                },
                {
                    "id": "in5",
                    "offset": {
                        "x": 0,
                        "y": 44
                    },
                    "function": "input"
                },
                {
                    "id": "in6",
                    "offset": {
                        "x": 0,
                        "y": 53
                    },
                    "function": "input"
                },
                {
                    "id": "in7",
                    "offset": {
                        "x": 0,
                        "y": 62
                    },
                    "function": "input"
                },
                {
                    "id": "in8",
                    "offset": {
                        "x": 0,
                        "y": 71
                    },
                    "function": "input"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 80
                    },
                    "function": "gnd"
                },
                {
                    "id": "com",
                    "offset": {
                        "x": 80,
                        "y": 80
                    },
                    "function": "passive"
                },
                {
                    "id": "out8",
                    "offset": {
                        "x": 80,
                        "y": 71
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out7",
                    "offset": {
                        "x": 80,
                        "y": 62
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out6",
                    "offset": {
                        "x": 80,
                        "y": 53
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out5",
                    "offset": {
                        "x": 80,
                        "y": 44
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out4",
                    "offset": {
                        "x": 80,
                        "y": 35
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out3",
                    "offset": {
                        "x": 80,
                        "y": 26
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out2",
                    "offset": {
                        "x": 80,
                        "y": 17
                    },
                    "function": "open_collector"
                },
                {
                    "id": "out1",
                    "offset": {
                        "x": 80,
                        "y": 8
                    },
                    "function": "open_collector"
                }
            ],
            "electrical_specs": {
                "logic_family": "TTL-compatible",
                "io_max": 0.5,
                "v_input": {
                    "v_il_max": 1.5,
                    "v_ih_min": 2.5
                },
                "notes": "8-channel variant of ULN2003A. DIP-18. All electrical characteristics are identical to ULN2003A per channel, including electrically modelled OUT-to-COM catch diodes. Inputs are CMOS/TTL compatible (Vih min 2.5 V, Vil max 1.5 V per ULN2803A datasheet Table 1)."
            }
        },
        {
            "uid": "buzzer-active-5v",
            "kind": "buzzer",
            "default_params": {
                "type": "active",
                "resistance": 32
            },
            "pin_layout": [
                {
                    "id": "p1",
                    "offset": {
                        "x": 0,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "p2",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Active buzzer: DC threshold 1.5 V for internal oscillator to run. Passive buzzer: must be driven with an AC/PWM signal; frequency reported from crossings around the drive's own midpoint, so a 0-5 V square registers. Both types modelled as a fixed resistor (resistance param, default 32 Ω). No audio synthesis — sounding state and detected frequency only."
            }
        },
        {
            "uid": "buzzer-passive-5v",
            "kind": "buzzer",
            "default_params": {
                "type": "passive",
                "resistance": 32
            },
            "pin_layout": [
                {
                    "id": "p1",
                    "offset": {
                        "x": 0,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "p2",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Passive buzzer: requires AC/PWM drive signal. Frequency detected from crossings around the drive's own midpoint (a 0-5 V square or PWM pin registers), timed over a full period. Sounding while a 20 Hz-20 kHz tone is detected; clears two periods after the drive stops. Same resistor model as active buzzer (resistance param). No audio synthesis."
            }
        },
        {
            "uid": "speaker-8ohm",
            "kind": "speaker",
            "default_params": {
                "resistance": 8
            },
            "pin_layout": [
                {
                    "id": "p1",
                    "offset": {
                        "x": 0,
                        "y": 0
                    },
                    "function": "passive"
                },
                {
                    "id": "p2",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Voice coil modelled as pure resistance (8 Ω default). AC reactance of the coil inductance is ignored at audio frequencies for this simplified model. Signal-present detection uses a 5 ms sliding window; peak-to-peak amplitude ≥ 50 mV registers as sounding."
            }
        },
        {
            "uid": "l293d",
            "kind": "l293d",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "en12",
                    "offset": {
                        "x": 0,
                        "y": 0
                    },
                    "function": "enable"
                },
                {
                    "id": "in1",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "input"
                },
                {
                    "id": "out1",
                    "offset": {
                        "x": 0,
                        "y": 20
                    },
                    "function": "output"
                },
                {
                    "id": "gnd1",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "gnd"
                },
                {
                    "id": "gnd2",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "gnd"
                },
                {
                    "id": "out2",
                    "offset": {
                        "x": 0,
                        "y": 50
                    },
                    "function": "output"
                },
                {
                    "id": "in2",
                    "offset": {
                        "x": 0,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "vcc2",
                    "offset": {
                        "x": 0,
                        "y": 70
                    },
                    "function": "passive"
                },
                {
                    "id": "en34",
                    "offset": {
                        "x": 80,
                        "y": 70
                    },
                    "function": "enable"
                },
                {
                    "id": "in3",
                    "offset": {
                        "x": 80,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "out3",
                    "offset": {
                        "x": 80,
                        "y": 50
                    },
                    "function": "output"
                },
                {
                    "id": "gnd3",
                    "offset": {
                        "x": 80,
                        "y": 40
                    },
                    "function": "gnd"
                },
                {
                    "id": "gnd4",
                    "offset": {
                        "x": 80,
                        "y": 30
                    },
                    "function": "gnd"
                },
                {
                    "id": "out4",
                    "offset": {
                        "x": 80,
                        "y": 20
                    },
                    "function": "output"
                },
                {
                    "id": "in4",
                    "offset": {
                        "x": 80,
                        "y": 10
                    },
                    "function": "input"
                },
                {
                    "id": "vcc1",
                    "offset": {
                        "x": 80,
                        "y": 0
                    },
                    "function": "vcc"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 4.5,
                    "nominal": 5,
                    "max": 7
                },
                "io_max": 0.6,
                "notes": "VCC1 (logic, 4.5–7 V) and VCC2/VM (motor rail, 4.5–36 V) are separate supplies. Output stage R_on = 2 Ω per side (1.4 V total drop at 1 A across both output transistors). Internal clamp diodes on each output pin recirculate inductive kickback to VM — suppress missing-flyback when VM is wired. io_max 0.6 A continuous per channel (1.2 A peak)."
            }
        },
        {
            "uid": "tb6612",
            "kind": "tb6612",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "bin1",
                    "offset": {
                        "x": 0,
                        "y": 0
                    },
                    "function": "input"
                },
                {
                    "id": "bin2",
                    "offset": {
                        "x": 0,
                        "y": 10
                    },
                    "function": "input"
                },
                {
                    "id": "pwmb",
                    "offset": {
                        "x": 0,
                        "y": 20
                    },
                    "function": "input"
                },
                {
                    "id": "bo1",
                    "offset": {
                        "x": 0,
                        "y": 30
                    },
                    "function": "output"
                },
                {
                    "id": "bo2",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 0,
                        "y": 50
                    },
                    "function": "gnd"
                },
                {
                    "id": "vm",
                    "offset": {
                        "x": 0,
                        "y": 60
                    },
                    "function": "passive"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 0,
                        "y": 70
                    },
                    "function": "vcc"
                },
                {
                    "id": "ao1",
                    "offset": {
                        "x": 80,
                        "y": 70
                    },
                    "function": "output"
                },
                {
                    "id": "ao2",
                    "offset": {
                        "x": 80,
                        "y": 60
                    },
                    "function": "output"
                },
                {
                    "id": "ain1",
                    "offset": {
                        "x": 80,
                        "y": 50
                    },
                    "function": "input"
                },
                {
                    "id": "ain2",
                    "offset": {
                        "x": 80,
                        "y": 40
                    },
                    "function": "input"
                },
                {
                    "id": "pwma",
                    "offset": {
                        "x": 80,
                        "y": 30
                    },
                    "function": "input"
                },
                {
                    "id": "stby",
                    "offset": {
                        "x": 80,
                        "y": 20
                    },
                    "function": "enable"
                },
                {
                    "id": "gnd2",
                    "offset": {
                        "x": 80,
                        "y": 10
                    },
                    "function": "gnd"
                },
                {
                    "id": "gnd3",
                    "offset": {
                        "x": 80,
                        "y": 0
                    },
                    "function": "gnd"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 2.7,
                    "nominal": 3.3,
                    "max": 5.5
                },
                "io_max": 1.2,
                "notes": "VCC (logic, 2.7–5.5 V) and VM (motor rail, 2.5–13.5 V) are separate supplies. R_on = 2 Ω per output side (simplified; real device specifies on-resistance as Vce_sat ~0.5 V at 1 A). PWM duty-cycle averaging for speed control is a Wave 7 motor-dynamics feature — in this model PWM is treated as a binary enable: HIGH=active, LOW=coast. Internal freewheeling diodes suppress inductive kickback when VM is wired. io_max 1.2 A continuous per channel."
            }
        },
        {
            "uid": "dc-motor",
            "kind": "dc_motor",
            "default_params": {
                "windingR": 5,
                "windingL": 0.002,
                "Ke": 0.01,
                "Kt": 0.01,
                "inertia": 0.00001,
                "friction": 0.00001,
                "loadTorque": 0
            },
            "pin_layout": [
                {
                    "id": "m1",
                    "offset": {
                        "x": 0,
                        "y": 40
                    },
                    "function": "passive"
                },
                {
                    "id": "m2",
                    "offset": {
                        "x": 19,
                        "y": 40
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Winding modelled as series R+L with backward-Euler Norton companion. Back-EMF = Ke × omega opposes applied voltage (motor convention), causing current to decrease as speed rises. Stall current = V / windingR (omega=0). No-load steady-state: omega = (V − R × i_ss) / Ke, i_ss = b × omega_ss / Kt. Rotor dynamics use forward-Euler (stable when h << J/b). omega is a simulator readout and back-EMF driver only — no mechanical coupling to external loads. windingR and windingL must be > 0; inertia must be > 0."
            }
        },
        {
            "uid": "servo-sg90",
            "kind": "servo",
            "default_params": {
                "idleR": 330,
                "movingCurrent": 0.15,
                "maxSpeedDegPerSecond": 600,
                "nominalVoltage": 4.8,
                "minimumOperatingVoltage": 4.5,
                "minPulseMs": 1,
                "maxPulseMs": 2,
                "minAngle": 0,
                "maxAngle": 180
            },
            "pin_layout": [
                {
                    "id": "sig",
                    "offset": {
                        "x": 0,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "vplus",
                    "offset": {
                        "x": 19,
                        "y": 60
                    },
                    "function": "vcc"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 38,
                        "y": 60
                    },
                    "function": "gnd"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 4.5,
                    "nominal": 4.8,
                    "max": 6
                },
                "if_max": 0.7,
                "notes": "Signal is a truly high-impedance physical input; no 1 MΩ pull-down is present. Solver regularisation of a floating net is numerical only and does not represent a physical load. A falling PWM edge decodes targetAngle from the 1–2 ms pulse, while angle reports the actual shaft position. Actual angle travels without overshoot at 600°/s at 4.8 V and scales linearly with solved supply, giving 625°/s at 5 V. Below the 4.5 V model brownout threshold, velocity becomes zero while targetAngle is retained. At rest, V+ to GND uses idleR=330 Ω. While moving, the 150 mA at 4.8 V teaching assumption becomes a 32 Ω equivalent load. Torque, stall mechanics/current limiting, acceleration, backlash, control hunting, gearbox compliance and heating are not modelled."
            }
        },
        {
            "uid": "stepper-bipolar-nema17",
            "kind": "stepper",
            "default_params": {
                "coilR": 10,
                "coilL": 0.01,
                "stepsPerRev": 200
            },
            "pin_layout": [
                {
                    "id": "a1",
                    "offset": {
                        "x": 0,
                        "y": 50
                    },
                    "function": "passive"
                },
                {
                    "id": "a2",
                    "offset": {
                        "x": 19,
                        "y": 50
                    },
                    "function": "passive"
                },
                {
                    "id": "b1",
                    "offset": {
                        "x": 38,
                        "y": 50
                    },
                    "function": "passive"
                },
                {
                    "id": "b2",
                    "offset": {
                        "x": 57,
                        "y": 50
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "notes": "Each coil is a series R+L Norton companion (backward-Euler, same as relay coil). No back-EMF in v1. Step detection uses committed current sign post-solve: signA = sign(iA), signB = sign(iB), deadband ±1 mA. Phase sequence: (A+,B+)=0, (A-,B+)=1, (A-,B-)=2, (A+,B-)=3. Sequential phase advance +1 (mod 4) increments position; −1 (mod 4) decrements. Non-sequential jump holds. Stepper coils are inductive — flyback diagnostic fires for bare-transistor drive; suppressed by L293D/TB6612 with VM powered. Unipolar/ULN2003 variant deferred."
            }
        },
        {
            "uid": "max7219-matrix",
            "kind": "max7219",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "din",
                    "offset": {
                        "x": 0,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "clk",
                    "offset": {
                        "x": 19,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "cs",
                    "offset": {
                        "x": 38,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "vcc",
                    "offset": {
                        "x": 57,
                        "y": 60
                    },
                    "function": "vcc"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 76,
                        "y": 60
                    },
                    "function": "gnd"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 4,
                    "nominal": 5,
                    "max": 5.5
                },
                "logic_family": "CMOS",
                "v_input": {
                    "v_il_max": 0.8,
                    "v_ih_min": 3.5
                },
                "icc_max": 0.33,
                "notes": "Supply modelled as a 150-ohm behavioural load (~33 mA at 5 V) representing a representative lit-matrix draw. Per-LED current accuracy is out of scope for v1; the teaching focus is the decoded pixel pattern. DIN, CLK and CS are high-impedance logic inputs with no invented physical pull-down; an undriven input follows the simulator's disclosed floating-input decision model. Single-device only: DOUT daisy-chain is not modelled. Decode mode must be 0x00 (raw segment bits); BCD mode (0x09) is stored but not rendered."
            }
        },
        {
            "uid": "hd44780-lcd",
            "kind": "hd44780",
            "default_params": {},
            "pin_layout": [
                {
                    "id": "vss",
                    "offset": {
                        "x": 0,
                        "y": 60
                    },
                    "function": "gnd"
                },
                {
                    "id": "vdd",
                    "offset": {
                        "x": 10,
                        "y": 60
                    },
                    "function": "vcc"
                },
                {
                    "id": "v0",
                    "offset": {
                        "x": 20,
                        "y": 60
                    },
                    "function": "passive"
                },
                {
                    "id": "rs",
                    "offset": {
                        "x": 30,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "rw",
                    "offset": {
                        "x": 40,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "e",
                    "offset": {
                        "x": 50,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "d0",
                    "offset": {
                        "x": 60,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "d1",
                    "offset": {
                        "x": 70,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "d2",
                    "offset": {
                        "x": 80,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "d3",
                    "offset": {
                        "x": 90,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "d4",
                    "offset": {
                        "x": 100,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "d5",
                    "offset": {
                        "x": 110,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "d6",
                    "offset": {
                        "x": 120,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "d7",
                    "offset": {
                        "x": 130,
                        "y": 60
                    },
                    "function": "input"
                },
                {
                    "id": "a",
                    "offset": {
                        "x": 140,
                        "y": 60
                    },
                    "function": "passive"
                },
                {
                    "id": "k",
                    "offset": {
                        "x": 150,
                        "y": 60
                    },
                    "function": "passive"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 4.5,
                    "nominal": 5,
                    "max": 5.5
                },
                "logic_family": "CMOS",
                "v_input": {
                    "v_il_max": 0.6,
                    "v_ih_min": 2.2
                },
                "icc_max": 0.003,
                "notes": "Supply modelled as a 200-ohm behavioural load (~25 mA at 5 V) representing logic + backlight draw. RS/RW/E/D0-D7 are high-impedance logic inputs with no invented physical pull-down; an undriven input follows the simulator's disclosed floating-input decision model. RW read-back is not supported in v1; tie RW to GND. Custom CGRAM glyphs (codes 0x00-0x07) display as space. Katakana ROM region (0xA0-0xFF) not simulated. HD44780 ROM quirks (0x5C=yen, 0x7E/0x7F=arrows) treated as ASCII. 4-bit and 8-bit modes both supported via function-set DL bit."
            }
        },
        {
            "uid": "hcsr04",
            "kind": "hcsr04",
            "default_params": {
                "distanceCm": 50,
                "noEcho": 0
            },
            "pin_layout": [
                {
                    "id": "vcc",
                    "offset": {
                        "x": 22,
                        "y": 64
                    },
                    "function": "vcc"
                },
                {
                    "id": "trig",
                    "offset": {
                        "x": 41,
                        "y": 64
                    },
                    "function": "input"
                },
                {
                    "id": "echo",
                    "offset": {
                        "x": 60,
                        "y": 64
                    },
                    "function": "output"
                },
                {
                    "id": "gnd",
                    "offset": {
                        "x": 79,
                        "y": 64
                    },
                    "function": "gnd"
                }
            ],
            "electrical_specs": {
                "vcc_range": {
                    "min": 3,
                    "nominal": 5,
                    "max": 5.5
                },
                "notes": "Wide-supply model: functional 3.0-5.5 V, matching HC-SR04P and common 3.3 V-tolerant clones. A classic HC-SR04 module is commonly specified 5 V-only, so treat direct 3.3 V operation as clone-dependent on real hardware. Below 3.0 V (VCC-GND) the sensor is inert: ECHO is forced low/hi-Z and TRIG pulses are ignored. TRIG is a 1 MOhm pulldown input, armed by a rising edge; the sensor schedules an echo on the following falling edge (re-triggering while an echo is pending/active is ignored, matching real module behaviour). ECHO timing: rises at trigFall + 250 microseconds, then falls 58.0 microseconds/cm x distanceCm later, or after a 38 millisecond timeout when noEcho (out-of-range) is set. ECHO drives push-pull to the sensor's own committed VCC through the house 50 ohm gate output resistance."
            }
        }
    ]
}
