From f47199e73c45aa86c9bf7eb8315221a6a3020bfe Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Sat, 29 Aug 2026 16:35:23 -0500 Subject: results: verify autozero sample hold primitive --- .../physical_bias/p8_spice_autozero_primitive.json | 556 +++++++++++++++++++++ 1 file changed, 556 insertions(+) create mode 100644 results/physical_bias/p8_spice_autozero_primitive.json diff --git a/results/physical_bias/p8_spice_autozero_primitive.json b/results/physical_bias/p8_spice_autozero_primitive.json new file mode 100644 index 0000000..f0f04d6 --- /dev/null +++ b/results/physical_bias/p8_spice_autozero_primitive.json @@ -0,0 +1,556 @@ +{ + "analysis": "generic_spice_autozero_primitive_p8", + "publication_evidence": false, + "scope": "Generic switch-capacitor acquisition and droop sanity check; this is not the complete CLLN edge circuit.", + "ngspice_model": { + "raw_offset_v": 0.005, + "learning_signal_v": 0.001, + "learning_window_seconds": 0.0001, + "buffer_and_subtractor": "ideal controlled voltage sources", + "switch": "ngspice voltage-controlled switch" + }, + "reference_configuration": { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004966396, + "residual_at_learning_start_v": 0.001033604, + "residual_at_learning_end_v": 0.001034101, + "start_relative_error": 0.03360400000000001, + "end_relative_error": 0.03410099999999992 + }, + "configuration_count": 48, + "fraction_below_1_percent_error_at_start": 0.4166666666666667, + "fraction_below_1_percent_error_at_end": 0.4166666666666667, + "records": [ + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999999, + "residual_at_learning_start_v": 0.001000001, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 9.99999999907325e-07, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004966659, + "residual_at_learning_start_v": 0.001033341, + "residual_at_learning_end_v": 0.001033838, + "start_relative_error": 0.033340999999999885, + "end_relative_error": 0.03383800000000001 + }, + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.001970454, + "residual_at_learning_start_v": 0.004029546, + "residual_at_learning_end_v": 0.004029566, + "start_relative_error": 3.0295460000000003, + "end_relative_error": 3.029566 + }, + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.00499998, + "residual_at_learning_start_v": 0.00100002, + "residual_at_learning_end_v": 0.001005017, + "start_relative_error": 1.9999999999881224e-05, + "end_relative_error": 0.0050169999999999555 + }, + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.003571145, + "residual_at_learning_start_v": 0.002428855, + "residual_at_learning_end_v": 0.002429212, + "start_relative_error": 1.4288550000000002, + "end_relative_error": 1.429212 + }, + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.000588646, + "residual_at_learning_start_v": 0.005411354, + "residual_at_learning_end_v": 0.00541136, + "start_relative_error": 4.411354, + "end_relative_error": 4.411359999999999 + }, + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004591677, + "residual_at_learning_start_v": 0.001408323, + "residual_at_learning_end_v": 0.001412911, + "start_relative_error": 0.40832299999999994, + "end_relative_error": 0.412911 + }, + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.001107991, + "residual_at_learning_start_v": 0.004892009, + "residual_at_learning_end_v": 0.004892119, + "start_relative_error": 3.892009, + "end_relative_error": 3.892119 + }, + { + "acquisition_seconds": 2.5e-07, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.0001237004, + "residual_at_learning_start_v": 0.0058763, + "residual_at_learning_end_v": 0.005876301, + "start_relative_error": 4.8763, + "end_relative_error": 4.876301 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999999, + "residual_at_learning_start_v": 0.001000001, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 9.99999999907325e-07, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999775, + "residual_at_learning_start_v": 0.001000225, + "residual_at_learning_end_v": 0.001000725, + "start_relative_error": 0.0002249999999999648, + "end_relative_error": 0.0007250000000000312 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.003162488, + "residual_at_learning_start_v": 0.002837512, + "residual_at_learning_end_v": 0.002837544, + "start_relative_error": 1.8375119999999998, + "end_relative_error": 1.8375439999999998 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999998, + "residual_at_learning_start_v": 0.001000002, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 2.0000000000314905e-06, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004590627, + "residual_at_learning_start_v": 0.001409373, + "residual_at_learning_end_v": 0.001409832, + "start_relative_error": 0.409373, + "end_relative_error": 0.4098319999999999 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.001106994, + "residual_at_learning_start_v": 0.004893006, + "residual_at_learning_end_v": 0.004893017, + "start_relative_error": 3.893006, + "end_relative_error": 3.8930170000000004 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004966478, + "residual_at_learning_start_v": 0.001033522, + "residual_at_learning_end_v": 0.001038485, + "start_relative_error": 0.033522000000000024, + "end_relative_error": 0.03848499999999999 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.0019689, + "residual_at_learning_start_v": 0.0040311, + "residual_at_learning_end_v": 0.004031296, + "start_relative_error": 3.0311, + "end_relative_error": 3.031296 + }, + { + "acquisition_seconds": 5e-07, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.0002440966, + "residual_at_learning_start_v": 0.005755903, + "residual_at_learning_end_v": 0.005755906, + "start_relative_error": 4.755903, + "end_relative_error": 4.7559059999999995 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999999, + "residual_at_learning_start_v": 0.001000001, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 9.99999999907325e-07, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.005, + "residual_at_learning_start_v": 0.001, + "residual_at_learning_end_v": 0.0010005, + "start_relative_error": 0.0, + "end_relative_error": 0.0005000000000000664 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004324017, + "residual_at_learning_start_v": 0.001675983, + "residual_at_learning_end_v": 0.001676026, + "start_relative_error": 0.675983, + "end_relative_error": 0.6760259999999999 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999998, + "residual_at_learning_start_v": 0.001000002, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 2.0000000000314905e-06, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004966396, + "residual_at_learning_start_v": 0.001033604, + "residual_at_learning_end_v": 0.001034101, + "start_relative_error": 0.03360400000000001, + "end_relative_error": 0.03410099999999992 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.001968124, + "residual_at_learning_start_v": 0.004031876, + "residual_at_learning_end_v": 0.004031896, + "start_relative_error": 3.031876, + "end_relative_error": 3.031896 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999768, + "residual_at_learning_start_v": 0.001000232, + "residual_at_learning_end_v": 0.001005228, + "start_relative_error": 0.0002319999999999666, + "end_relative_error": 0.005227999999999917 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.003161544, + "residual_at_learning_start_v": 0.002838456, + "residual_at_learning_end_v": 0.002838772, + "start_relative_error": 1.838456, + "end_relative_error": 1.8387719999999999 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.0004760447, + "residual_at_learning_start_v": 0.005523955, + "residual_at_learning_end_v": 0.00552396, + "start_relative_error": 4.523955, + "end_relative_error": 4.52396 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999999, + "residual_at_learning_start_v": 0.001000001, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 9.99999999907325e-07, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.005, + "residual_at_learning_start_v": 0.001, + "residual_at_learning_end_v": 0.0010005, + "start_relative_error": 0.0, + "end_relative_error": 0.0005000000000000664 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004908516, + "residual_at_learning_start_v": 0.001091484, + "residual_at_learning_end_v": 0.001091534, + "start_relative_error": 0.09148399999999997, + "end_relative_error": 0.09153399999999988 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999998, + "residual_at_learning_start_v": 0.001000002, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 2.0000000000314905e-06, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999772, + "residual_at_learning_start_v": 0.001000228, + "residual_at_learning_end_v": 0.001000727, + "start_relative_error": 0.00022799999999990363, + "end_relative_error": 0.0007270000000000627 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.003161074, + "residual_at_learning_start_v": 0.002838926, + "residual_at_learning_end_v": 0.002838958, + "start_relative_error": 1.8389259999999998, + "end_relative_error": 1.8389579999999999 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999994, + "residual_at_learning_start_v": 0.001000006, + "residual_at_learning_end_v": 0.001005002, + "start_relative_error": 5.999999999877631e-06, + "end_relative_error": 0.005002000000000045 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004323667, + "residual_at_learning_start_v": 0.001676333, + "residual_at_learning_end_v": 0.001676765, + "start_relative_error": 0.6763329999999999, + "end_relative_error": 0.676765 + }, + { + "acquisition_seconds": 2e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.0009065559, + "residual_at_learning_start_v": 0.005093444, + "residual_at_learning_end_v": 0.005093453, + "start_relative_error": 4.093444, + "end_relative_error": 4.093453 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999999, + "residual_at_learning_start_v": 0.001000001, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 9.99999999907325e-07, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.005, + "residual_at_learning_start_v": 0.001, + "residual_at_learning_end_v": 0.0010005, + "start_relative_error": 0.0, + "end_relative_error": 0.0005000000000000664 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 50.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004998324, + "residual_at_learning_start_v": 0.001001676, + "residual_at_learning_end_v": 0.001001726, + "start_relative_error": 0.0016759999999999345, + "end_relative_error": 0.0017260000000000712 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999998, + "residual_at_learning_start_v": 0.001000002, + "residual_at_learning_end_v": 0.001004998, + "start_relative_error": 2.0000000000314905e-06, + "end_relative_error": 0.004997999999999982 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999999, + "residual_at_learning_start_v": 0.001000001, + "residual_at_learning_end_v": 0.001000501, + "start_relative_error": 9.99999999907325e-07, + "end_relative_error": 0.0005009999999999737 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004323496, + "residual_at_learning_start_v": 0.001676504, + "residual_at_learning_end_v": 0.001676547, + "start_relative_error": 0.6765040000000001, + "end_relative_error": 0.676547 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1.0000000000000002e-10, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004999994, + "residual_at_learning_start_v": 0.001000006, + "residual_at_learning_end_v": 0.001005002, + "start_relative_error": 5.999999999877631e-06, + "end_relative_error": 0.005002000000000045 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.004908464, + "residual_at_learning_start_v": 0.001091536, + "residual_at_learning_end_v": 0.001092027, + "start_relative_error": 0.09153599999999991, + "end_relative_error": 0.09202699999999994 + }, + { + "acquisition_seconds": 4e-06, + "switch_resistance_ohm": 1000.0, + "hold_capacitance_f": 1e-08, + "leakage_resistance_ohm": 1000000000.0, + "held_at_switch_open_v": 0.001648571, + "residual_at_learning_start_v": 0.004351429, + "residual_at_learning_end_v": 0.004351445, + "start_relative_error": 3.3514290000000004, + "end_relative_error": 3.3514449999999996 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 10000000.0, + "held_at_switch_open_v": 0.004966291, + "residual_at_learning_start_v": 0.001033709, + "residual_at_learning_end_v": 0.001083124, + "start_relative_error": 0.03370900000000004, + "end_relative_error": 0.08312399999999996 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 100000000.0, + "held_at_switch_open_v": 0.004966386, + "residual_at_learning_start_v": 0.001033614, + "residual_at_learning_end_v": 0.001038578, + "start_relative_error": 0.03361399999999995, + "end_relative_error": 0.03857800000000005 + }, + { + "acquisition_seconds": 1e-06, + "switch_resistance_ohm": 200.0, + "hold_capacitance_f": 1e-09, + "leakage_resistance_ohm": 10000000000.0, + "held_at_switch_open_v": 0.004966397, + "residual_at_learning_start_v": 0.001033603, + "residual_at_learning_end_v": 0.001033653, + "start_relative_error": 0.03360299999999989, + "end_relative_error": 0.03365300000000002 + } + ] +} -- cgit v1.2.3