{
  "capability_id": "electrical.adc.snr",
  "tool_id": "adc-snr",
  "engine": "adc-snr",
  "calculation_version": "1.1.0",
  "generated_at": "2026-09-21T16:00:36.028Z",
  "engine_build": "2026-09-10",
  "test_count": 17,
  "passed": 17,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 6,
      "passed": 6
    },
    "boundary": {
      "total": 8,
      "passed": 8
    },
    "property": {
      "total": 3,
      "passed": 3
    }
  },
  "engine_tested": true,
  "expert_reviewed": true,
  "internally_reviewed": false,
  "review_kind": "expert",
  "source_checked": true,
  "reviewed_by": "CalculatorX electrical review",
  "reviewer_role": "electrical-engineer",
  "last_reviewed": "2026-09-04",
  "expert_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX electrical review",
      "role": "electrical-engineer"
    },
    "reviewed_at": "2026-09-04",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "expert"
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/electric/adc-snr",
  "api": "https://www.calculatorx.com/api/v1/calc/adc-snr",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.adc.snr.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.adc.snr.output.json",
  "assumptions": [
    "Full-scale sinusoidal input",
    "Ideal ADC quantizer; quantization noise is uniformly distributed",
    "No aperture jitter, thermal/reference noise, or harmonic distortion in the ideal-SNR path",
    "Standard ENOB is derived from SINAD (noise + distortion), not SNR",
    "n_bits is the ADC nominal integer resolution, not an effective-bits result"
  ],
  "limitations": [
    "Ideal quantization only. ENOB from measured SINAD, not SNR."
  ],
  "boundary_conditions": [
    "mode not snr|enob → INVALID_MODE",
    "snr mode missing n_bits → MISSING_REQUIRED_INPUT",
    "enob mode missing SINAD_dB → MISSING_REQUIRED_INPUT",
    "n_bits not an integer (including 0 < n_bits < 1) → VALUE_MUST_BE_INTEGER",
    "n_bits ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "n_bits > 32 → VALUE_OUT_OF_RANGE"
  ],
  "sources": [
    {
      "title": "IEEE Std 1241-2010",
      "section": "9.4 Effective number of bits",
      "supports": "ADC ENOB definition; relationship between SINAD and ENOB",
      "kind": "standard"
    },
    {
      "title": "Analog Devices MT-001 — Taking the Mystery out of the Infamous Formula, SNR = 6.02N + 1.76 dB",
      "section": "Ideal quantization SNR for a full-scale sine",
      "url": "https://www.analog.com/media/en/training-seminars/tutorials/MT-001.pdf",
      "supports": "SNR = 6.02N + 1.76 dB for an ideal N-bit quantizer",
      "kind": "reference",
      "accessed": "2026-09-04"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:9a2cde6e26a1e45df72c18f01846f2cec7938ef4597156697fc766d2c5f61f74",
  "tests": [
    {
      "id": "6b",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "snr",
        "n_bits": 6
      },
      "expect": {
        "SNR_dB": 37.88,
        "ENOB": 6
      },
      "expectWarning": null,
      "actual": {
        "mode": "snr",
        "n_bits": 6,
        "SNR_dB": 37.879999999999995,
        "ENOB": 6
      },
      "tol": 1e-12
    },
    {
      "id": "8b",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "snr",
        "n_bits": 8
      },
      "expect": {
        "SNR_dB": 49.92,
        "ENOB": 8
      },
      "expectWarning": null,
      "actual": {
        "mode": "snr",
        "n_bits": 8,
        "SNR_dB": 49.919999999999995,
        "ENOB": 8
      },
      "tol": 1e-12
    },
    {
      "id": "12b",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "snr",
        "n_bits": 12
      },
      "expect": {
        "SNR_dB": 74,
        "ENOB": 12
      },
      "expectWarning": null,
      "actual": {
        "mode": "snr",
        "n_bits": 12,
        "SNR_dB": 74,
        "ENOB": 12
      },
      "tol": 1e-12
    },
    {
      "id": "16b",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "snr",
        "n_bits": 16
      },
      "expect": {
        "SNR_dB": 98.08,
        "ENOB": 16
      },
      "expectWarning": null,
      "actual": {
        "mode": "snr",
        "n_bits": 16,
        "SNR_dB": 98.08,
        "ENOB": 16
      },
      "tol": 1e-12
    },
    {
      "id": "enob-74",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "enob",
        "SINAD_dB": 74
      },
      "expect": {
        "ENOB": 12
      },
      "expectWarning": null,
      "actual": {
        "mode": "enob",
        "SINAD_dB": 74,
        "ENOB": 12,
        "n_bits_equiv": 12
      },
      "tol": 1e-12
    },
    {
      "id": "enob-71",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "enob",
        "SINAD_dB": 71
      },
      "expect": {
        "ENOB": 11.501661129568106
      },
      "expectWarning": null,
      "actual": {
        "mode": "enob",
        "SINAD_dB": 71,
        "ENOB": 11.501661129568106,
        "n_bits_equiv": 11.501661129568106
      },
      "tol": 1e-12
    },
    {
      "id": "bad-bits-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "snr",
        "n_bits": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "n_bits must be greater than zero"
    },
    {
      "id": "bad-bits-high",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "snr",
        "n_bits": 33
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "n_bits must be in 1…32"
    },
    {
      "id": "bad-bits-frac",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "snr",
        "n_bits": 12.5
      },
      "expectError": "VALUE_MUST_BE_INTEGER",
      "code": "VALUE_MUST_BE_INTEGER",
      "error": "n_bits must be an integer"
    },
    {
      "id": "bad-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "fft",
        "n_bits": 12
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be snr|enob"
    },
    {
      "id": "missing-bits",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "snr"
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "n_bits is required"
    },
    {
      "id": "boundary-adc-snr-lo",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "snr",
        "n_bits": 1
      },
      "expect": {
        "SNR_dB": 7.78,
        "ENOB": 1
      },
      "expectWarning": null,
      "actual": {
        "mode": "snr",
        "n_bits": 1,
        "SNR_dB": 7.779999999999999,
        "ENOB": 1
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-adc-snr-hi",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "snr",
        "n_bits": 32
      },
      "expect": {
        "SNR_dB": 194.4,
        "ENOB": 32
      },
      "expectWarning": null,
      "actual": {
        "mode": "snr",
        "n_bits": 32,
        "SNR_dB": 194.39999999999998,
        "ENOB": 32
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-adc-enob-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "enob"
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "SINAD_dB is required"
    },
    {
      "id": "property-snr-monotonic",
      "ok": true,
      "kind": "property",
      "detail": "SNR increases with n_bits",
      "expect": true,
      "actual": [
        49.919999999999995,
        74,
        98.08,
        146.23999999999998
      ]
    },
    {
      "id": "property-snr-step",
      "ok": true,
      "kind": "property",
      "detail": "SNR(N+1) − SNR(N) = 6.02 dB",
      "expect": 6.02,
      "actual": 6.02
    },
    {
      "id": "property-enob-roundtrip",
      "ok": true,
      "kind": "property",
      "detail": "ENOB(SINAD(N)) = N",
      "expect": true,
      "actual": true
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 17,
      "total": 17,
      "golden": 6,
      "boundary": 8,
      "property": 3
    },
    "contract_checks": {
      "passed": 18,
      "total": 18
    }
  },
  "evidence_core_generated_at": "2026-09-05T02:35:39.217Z",
  "rendered_at": "2026-09-21T16:00:36.028Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.1.0",
    "artifacts": {
      "engine": "1.1.0",
      "page": "1.1.0",
      "capability": "1.1.0",
      "evidence": "1.1.0",
      "input_schema": "1.1.0",
      "output_schema": "1.1.0",
      "mcp_contract": "1.1.0"
    },
    "digests": {
      "input_schema_sha256": "6269973fa3522ebfe4b11be9526bce77048aafeb7b500d01e52ead0c88e57f65",
      "output_schema_sha256": "7e002ad78e61c7c7a8c40fbe97fa039d0f14faf782a6b6619039518e3cc13bd0",
      "evidence_sha256": "eafa2cd814532a3dd82f5c600ba78156c056ab0ce0c1e8bd8f63afb0bfdda764",
      "evidence_core_sha256": "eafa2cd814532a3dd82f5c600ba78156c056ab0ce0c1e8bd8f63afb0bfdda764",
      "capability_sha256": "2ec1c12d5600e5cf7011cd38e18b6cb1f7378679fbd73eab0c683963bd0db733",
      "engine_sha256": "925bd3b9c373f747a10f30cedc6352b3f419cf91144ae6744c9c9adcd703033c",
      "mcp_contract_sha256": "2bb4bbc15ea3f9842a9a464e07efcc692dc31f3e830dee8553f3d7c4e81238d3"
    },
    "contract_checks": {
      "total": 18,
      "passed": 18,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.1.0"
        },
        {
          "id": "contract-page-version",
          "status": "pass",
          "detail": "1.1.0"
        },
        {
          "id": "contract-capability-version",
          "status": "pass",
          "detail": "1.1.0"
        },
        {
          "id": "contract-input-schema-version",
          "status": "pass",
          "detail": "1.1.0"
        },
        {
          "id": "contract-output-schema-version",
          "status": "pass",
          "detail": "1.1.0"
        },
        {
          "id": "evidence-version-matches-manifest",
          "status": "pass",
          "detail": "1.1.0"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        },
        {
          "id": "runtime-input-validates-against-schema",
          "status": "pass",
          "detail": "snr/enob oneOf + required"
        },
        {
          "id": "runtime-output-validates-against-schema",
          "status": "pass"
        },
        {
          "id": "evidence-cases-conform-to-schema",
          "status": "pass",
          "detail": "8 result objects"
        },
        {
          "id": "page-spec-matches-capability",
          "status": "pass"
        },
        {
          "id": "catalog-description-matches-capability",
          "status": "pass"
        },
        {
          "id": "category-card-matches-capability",
          "status": "pass"
        },
        {
          "id": "search-index-metadata-matches-capability",
          "status": "pass"
        },
        {
          "id": "rest-success-payload-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
