Skip to content

analog M4b-psp: the StrongARM comparator on PSP103 tables -- predict the decision threshold M4e now fits #10856

Closed

Description

@gHashTag

Goal

M4e (#10818, PR #10854) matches the golden run 30 of 31 only with two fitted numbers; one of them is a 6.7 mV decision offset. Put the comparator in at PSP103 level so the offset is predicted, not fitted: run M4b's StrongARM latch (specs/analog/sar_comparator.t27, multi-node Newton) on the PSP103 current tables of M3b (specs/analog/mos_psp103_data.t27, tt, scaled by each device's m and W) instead of the square law, and measure the decision threshold (the input difference at which it flips) and the decision time against ngspice + PSP103 with the golden deck's comparator subcircuit at TEMP 50.

Requirements

  • FR-001: Reuse the M4b solver and the M3b tables by use (generalize in their home specs; no copies).
  • FR-002: The predicted threshold is reported next to M4e's fitted 6.7 mV and the latch's own +2.5 to +3.1 mV seen in the golden run.

Scenarios

  • Given +-2 mV and +-0.5 mV inputs at the golden common mode, When clocked, Then the sign matches ngspice + PSP103 and the decision time is within a named bound.
  • Given a sweep of the input difference, When the flip point is found, Then it is within a named bound of ngspice's.
  • Given the ss tables (negative control), When compared with ngspice tt, Then the check fails.

Boundary

  • specs/analog/sar_comparator.t27 (or a new PSP103 variant spec beside it) and decks; no change to M4e's numbers in this issue.

Success Criteria

  • t27c test-report 0 vacuous; threshold and decision time vs ngspice + PSP103 within named bounds; negative control fails.

Part of #10818

Success Criteria

  • t27c specs/analog/sar_comparator.t27 exits 0 and reports comparator decision threshold within 0.5 mV of ngspice + PSP103 golden deck at TEMP 50
  • t27c specs/analog/sar_comparator.t27 exits 0 and reports decision time within 10 ps of ngspice + PSP103 golden deck at TEMP 50 for ±2 mV and ±0.5 mV inputs at golden common mode
  • t27c specs/analog/sar_comparator.t27 --negative-control exits non-zero when ss tables are compared against ngspice tt
  • t27c test-report exits 0 with 0 vacuous tests

Activity

  1. added
    shape-refusedClosed by the issue-shape gate (specs/policy/issue_shape.t27); a passing edit reopens it
    on Oct 19, 2026
  2. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Closed by the issue-shape gate (specs/policy/issue_shape.t27, #7498): an issue must have the template's sections. Edit the body; an edit that passes reopens it.

    • missing: ## Success Criteria -- an outcome a machine can settle: a number with a unit, a backticked file, exit 0, or a backticked command
  3. added 2 commits that reference this issue on Oct 19, 2026
    64d4032
    1743da8
  4. removed
    shape-refusedClosed by the issue-shape gate (specs/policy/issue_shape.t27); a passing edit reopens it
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions