/** * DIGITAL-ICS device cohort (Wave A4 phase 2): ne555, 74ls00, 74ls04, * 74ls08, 74ls32, 74ls86, 74ls157, 74ls153, 74ls283, 74ls245, 74hc14, * 74hc138, 74ls47, 74ls161, 74ls173, 74ls189, 74hc595, 74hc165, 74hc74, cd4017, * cd4060, cd4511, seg7_cc, seg7_ca, hd44780, max7219, 28c16, 28c256. * * Every handler body below is the engine's old switch-case body MOVED * VERBATIM, with identifier access adapted through DeviceContext * (this._pinNode -> ctx.pinNode, this._icPowerInfo -> ctx.icPowerInfo, * this._logicHigh -> ctx.logicHigh, this.state.icState -> * ctx.state.icState, this.simTime -> ctx.simTime(), the _stampAll * pass-level `vt` local -> ctx.junctionVt() — the same pure * thermalVoltage(ambient) computation, so the float is identical — * ds[key] = v -> ctx.setDigitalState(key, v), disp[comp.id] = info -> * ctx.setDisplayInfo(comp.id, info), out[comp.id] = v -> * ctx.setElementCurrent(comp.id, v), the paired * `this._dispDrivers ??= this._buildArduinoPinDrivers()` + * `this._mergedDisplayEvents(...)` calls -> ctx.mergedDisplayEvents(...) * (the lazy shared-map build now lives inside the context alias), and * loop break -> handler `return`). Do not simplify, reorder mna.add * calls, or rewrite algebra here: float accumulation order in the matrix * is semantics, and the bitwise oracle suite pins these exact * trajectories. * * Kinds grouped into one model correspond exactly to switch cases that * shared a body in the engine (the 12 combinational-eval kinds; the * 28c16/28c256 EEPROMs; seg7_cc/seg7_ca) — handlers still branch on * comp.kind internally where the original shared body did. * * Moved WITH this cohort (their only consumers are here now): * NE555_OUTPUT_R_OHM / NE555_OUTPUT_HEADROOM_V, the EEPROM write-cycle * time T_WC, and the SDP unlock-sequence machinery (SDP_ENABLE + * consumeEepromWrite). _stampCombinationalIC became the local * stampCombinationalIC helper. * * Engine-owned machinery deliberately NOT moved: * - The 555 crossing-split step machinery (_find555CrossingFrac, the * pre-step ne555s snapshot, _hasNe555 gating) — it re-solves partial * steps around the state.ne555s map this cohort commits into. * - Delayed-output event scheduling (_delayedOutputLevel / * _updateDelayedOutputs and the next-due-time step limiter), reached * via ctx: it schedules ENGINE step sizes, not device physics. * - _icPowerInfo, _stampDigitalOutput, the _logicHigh family, * _stampFloatingDigitalInputs, _stampRailReferencedOutput and * _readAddr4 — shared with the unmigrated MCU/driver kinds and the * generic output-sag scan (_drivenOutputTargets), reached via ctx. * - The _drivenOutputTargets per-kind cases (generic output-sag scan, * not a per-kind pass switch — same treatment as lm393 last cohort). * - defaultIcState, defaultHd44780State and the load()-time * icState/lcds/eeproms/ne555s carry-forward + snapshot/rollback. * - getElementChannelI's seg7 per-segment telemetry readout. * * Import layering (registry header, decision 7): pure helper FUNCTIONS * and exported consts from sim-engine.ts are safe to import despite the * module cycle because handlers dereference them only at solve time. * Never read sim-engine bindings at module evaluation time from this * file. */ import type { DeviceModel } from "../device-registry.js"; export declare const EEPROM_T_WC: Readonly>; export declare const ne555Model: DeviceModel; export declare const combinationalIcModel: DeviceModel; export declare const ls161Model: DeviceModel; export declare const ls173Model: DeviceModel; export declare const ls189Model: DeviceModel; export declare const hc595Model: DeviceModel; export declare const hc165Model: DeviceModel; export declare const hc74Model: DeviceModel; export declare const cd4017Model: DeviceModel; export declare const cd4511Model: DeviceModel; export declare const cd4060Model: DeviceModel; export declare const eepromModel: DeviceModel; export declare const seg7Model: DeviceModel; export declare const hd44780Model: DeviceModel; export declare const max7219Model: DeviceModel;