pulse_response
Analyzes transient step response to compute overshoot, undershoot, settling time, peak value, and peak time from a .raw simulation file.
Instructions
Use when you need step-response quality metrics: overshoot %, undershoot %, settling time, peak value and peak time. Inputs a transient .raw covering ONE step transition — ideally with the stimulus edge near t_start and enough tail to see settling.
Returns: direction (rising/falling), initial/steady-state values, peak (absolute and pct), settling_time (to within settling_tolerance_pct band; null if never settled in window).
Definitions: overshoot is excursion BEYOND final in the step direction; undershoot is excursion beyond initial opposite the step direction. overshoot_pct = 0 means MEASURED overdamped, not missing data. settling_tolerance_pct defaults to 2% of |final - initial|; 1% and 5% are also common.
If the auto-detected initial/final (mean of first/last 10% of window) is contaminated by ringing, pass explicit initial_value/final_value. Rejects AC analysis.
For just rise/fall time without overshoot, use edge_metrics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_file | Yes | Path to .raw transient result file | |
| signal | Yes | Signal name (e.g. 'V(out)') | |
| step | No | Step index for .step sweeps | |
| t_start | No | Window start — ideally the stimulus edge. Defaults to full transient. | |
| t_end | No | Window end in SPICE notation | |
| initial_value | No | Pre-step steady value. Auto = mean of first 10% of window. Set explicitly if the start is contaminated by ringing. | |
| final_value | No | Post-step steady value. Auto = mean of last 10% of window. | |
| settling_tolerance_pct | No | Settling band as percent of |final - initial|. 2% is standard; 1% or 5% also common. | |
| format | No | 'json' or 'text' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | ||
| initial_value | Yes | ||
| steady_state_value | Yes | ||
| peak_value | Yes | ||
| peak_time | Yes | ||
| overshoot_pct | No | ||
| undershoot_pct | No | ||
| settling_time | No | ||
| settling_tolerance_pct | Yes | ||
| quality | Yes | ||
| warnings | Yes | ||
| signal | Yes |