Skip to main content

match_devices

Function match_devices 

Source
pub fn match_devices(
    ours: &[DeviceBias],
    spice: &[SpiceDeviceOp],
) -> Vec<DeviceMatch>
Expand description

Compute the per-device MATCH between our settled bias and ngspice .op.

Devices are paired by uppercased reference. Comparison is on junction magnitude (|Vbe|, |Vce|, |Ic|) so PNP/NPN and port-vs-node sign conventions don’t masquerade as errors.