Skip to content

analog M4e-offset-a: name the offset's source with one-change experiments and take the converter's offset from the netlist, not the fit (Part of #10888) #10941

Closed

Description

@gHashTag

Goal

Part of #10888 (M4e-offset), #10818 (M4e), epic #10486. M4e's behavioural converter matches 30 of 31 conversions only with a fitted +6.7 mV decision offset. M4b-psp (#10856) showed it is not the latch's (the golden comparator flips at -0.153 mV in the same sign convention). Find the source with ngspice + PSP103 experiments that change one thing at a time, measure it on the netlist, and make the converter model use the measured number instead of the fitted one.

Boundary

Scenarios

  • Given the golden circuit with one candidate changed (ideal tracking switches; the comparator's kickback removed; the N half's, the P half's, or both halves' bottom plates ideal; a tgate's resistance added to the P half's plates), When the first decision's flip point is bracketed by DC inputs, Then the offset moves by the measured amount in the table.
  • Given the offset taken from sar_kick.t27 and M4e's Cp, When the 31 conversions run, Then the match count is stated and compared with the fitted 30 of 31.

Requirements

  • FR-001: each candidate is an ngspice + PSP103 experiment on the golden circuit with one thing changed, a committed deck that includes the run-time subcircuit file, never its text.
  • FR-002: the cause is named with its measured size, and the converter model takes its offset from the measurements, not from a fit of the 31 codes.

Success Criteria

  • Eight decks specs/analog/decks/sar_off_{base,idealsw,nokick,nplate,pplate,plates,pseries,ron}.cir are committed; sar_off_base.cir holds the table of experiments with columns candidate, change, offset, moved by (mV), 7 rows or more.
  • t27c test-report specs/analog/sar_kick.t27 and t27c test-report specs/analog/sar_adc.t27 exit 0 with FAIL 0 and 0 vacuous passes; the sar_adc tests named thirty_one_conversions_29_matches_with_the_offset_measured_on_the_kick_and_not_fitted (Cp as in M4e) and thirty_one_conversions_30_matches_with_the_offset_measured_and_only_cp_refitted pass.
  • tri types ratchet prints RATCHET: CLEAN and t27c seal --verify reports MATCH for AnalogSarKick and AnalogSarAdc.

Activity

  1. added a commit that references this issue on Oct 19, 2026
    76eb8f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions