A regulator starts smoothly in simulation, but its output dips and rings on the bench. The component values appear to match, and the supply is set to the right voltage. The next step is to establish where the two tests stop describing the same circuit.
A simulation predicts the behavior represented by its models and settings. A measurement includes the physical board, its connections, the instruments, and the operating conditions. Differences usually become easier to explain once you separate those influences.
Start with the actual input and load, then check component behavior, model coverage, and the measurement setup. Add detail where it explains a repeatable observation.
Make Sure You Are Comparing the Same Experiment
Before changing the circuit, record a few details that define the comparison:
- Stimulus: Input amplitude, offset, rise time, source impedance, and power-up sequence.
- Measurement points: The signal node and its reference, including whether the measurement is differential.
- Load and connections: Connected modules, cables, termination, and any electronic-load settings.
- Starting state: Initial capacitor voltage, enable signals, temperature, and whether the board has just been powered or is already warm.
A generator display is a common source of confusion. With a conventional 50 Ω output, an amplitude specified for a matched 50 Ω load can be approximately doubled at a high-impedance input. Keysight’s documentation on output load termination explains the role of the selected load setting. Check the actual waveform at the circuit input instead of copying the displayed amplitude into the simulator.
The load also needs to behave similarly. A resistor and an electronic load in constant-current mode may draw the same current at one voltage but respond differently during startup. A downstream module that switches on halfway through the ramp introduces another event that a fixed resistor will not reproduce.
Finally, check the assembled board revision. A changed resistor value, an unpopulated capacitor, or a jumper in the wrong position can explain a discrepancy before any sophisticated modeling is needed.
Use Component Values That Represent Operating Conditions
The value printed on a component or entered in a schematic is a starting point. Tolerance and operating conditions determine what the installed part actually contributes.
Ceramic capacitors are a useful example. Murata’s explanation of DC bias effects on capacitance shows why high-permittivity types such as X5R and X7R can have less capacitance under applied voltage than their nominal values suggest. The effect depends on the particular part; a generic capacitor with a fixed value will not reproduce it automatically.
Use the manufacturer’s characteristic data or a suitable measurement under representative conditions. An unbiased LCR-meter reading may not describe a capacitor operating on a DC rail. Likewise, confirm whether an inductor model includes winding resistance and saturation when either affects the result.
An RC Example With Two Errors That Partly Cancel
An ideal 10 kΩ resistor feeding a 100 nF capacitor has a nominal time constant of:
τ = R × C = 10 kΩ × 100 nF = 1 ms
Now assume an illustrative bench circuit has another 1 kΩ of source resistance and a capacitor that behaves approximately as a constant 82 nF over the test. With negligible output loading, the estimate becomes:
τ = (10 kΩ + 1 k&Omega
× 82 nF = 0.902 ms
Adding only the source resistance to the original simulation would predict 1.1 ms, moving the result farther from the bench measurement. Two differences were present, and their effects partly canceled.
For this first-order response, measure the time to reach about 63.2% of the change between the initial and final levels. Capture the final plateau so the timing threshold is defined correctly. If a load is connected across the capacitor, use the equivalent resistance seen by the capacitor and account for the changed final voltage. If capacitance changes substantially during the ramp, a single exponential may no longer describe the response well.
Check Whether the Model Covers the Behavior You Are Testing
A model can predict one aspect of a device accurately while simplifying another. Read its documentation before relying on startup, shutdown, protection, noise, or thermal behavior.
Switching regulators illustrate this distinction. Texas Instruments’ discussion of power-supply simulation and model selection distinguishes average models used for small-signal behavior from transient models that represent switching. An average model may be appropriate for loop analysis while omitting the switching ripple visible on an oscilloscope.
Even a transient model needs its coverage checked. A model name containing “transient” does not establish that every current-limit mode, fault sequence, or thermal effect has been implemented.
Also compare the analysis type with the experiment. AC small-signal analysis linearizes a circuit around an operating point. A large bench signal that drives an amplifier into slew-rate limiting or clipping is testing different behavior. Use a small enough signal for a linear comparison, or select a transient analysis and a model that represents the relevant limits.
Account for the Probe and Oscilloscope
The Probe Changes the Circuit It Touches
A voltage probe presents resistance and capacitance to the measured node. Its return connection adds inductance. On a high-impedance node or a fast edge, those additions can change the waveform.
Tektronix’s ABCs of Probes explains how ground-lead inductance and probe capacitance can produce ringing and distort rise time. Where appropriate, repeat the measurement using a short ground spring or another suitable low-inductance connection.
If the ringing changes, the original probe arrangement contributed to the result. That does not prove the board has no ringing; it means the measurement needs further checking. A lower-capacitance probe or a realistic probe model can help distinguish circuit behavior from loading.
Confirm the instrument’s reference connections before probing. Conventional bench-scope ground clips are commonly earth-referenced and shared between channels. Use a properly rated differential or isolated measurement arrangement when required; do not disconnect protective earth to make the scope float.
Check the Acquisition Settings
Analog bandwidth, sample rate, and record length impose different limits. Limited bandwidth can round an edge, while inadequate sampling can miss a narrow event or produce a misleading waveform.
Pico Technology’s guide to sampling and buffer management explains why extending the capture window can reduce the available sample rate under some settings. Record the actual acquisition settings used for the capture, rather than relying on the instrument’s maximum specifications.
Start with individual acquisitions when investigating an intermittent event. Averaging is useful for repeatable signals, but it can suppress a glitch or smear a transition that moves relative to the trigger.
Include the PCB and Wiring Where They Matter
In an ideal schematic, every point on a net has the same voltage. A physical connection has resistance and inductance, and nearby conductors can couple through capacitance or magnetic fields.
A shared return can develop a voltage difference when load current changes. A long decoupling path can limit how effectively a capacitor supplies a fast current pulse. A cable can introduce behavior that a short ideal wire does not represent.
When the discrepancy depends on placement or routing, PCBCool’s analog circuit PCB design guide provides relevant background on component placement, grounding, and decoupling paths. Review those physical connections before assigning an arbitrary parasitic value to the simulation.
Connect each added element to a reason. A series resistance might come from a measured voltage drop under known current. A capacitance might come from a component model or layout extraction. For electrically long interconnects, a transmission-line model may be more appropriate than a single lumped inductor.
A plausible explanation should predict how a deliberate change affects the result. If shortening a return path or changing a cable produces the expected trend, the proposed mechanism becomes more convincing.
Review Initial Conditions and Numerical Settings
Powering up a discharged circuit is different from beginning a simulation at an already established DC operating point.
The ngspice user manual documents how operating-point calculation, initial conditions, and transient time-step controls affect a run. Check the equivalent settings in your simulator and reproduce the bench supply ramp and relevant initial state.
A perfectly balanced simulated oscillator may remain at an unstable equilibrium unless a suitable disturbance is represented. A physical circuit has disturbances and mismatch. Adding an initial perturbation can help investigate startup, but it should be documented and varied to check how strongly the prediction depends on it.
For narrow spikes or fast ringing, reduce the maximum time step and see whether the result settles to a consistent waveform. Inspect solver warnings and integration settings if it does not. A smaller step cannot compensate for an unsuitable device model, and a smooth plot alone does not demonstrate numerical accuracy.
Compare Tolerance Ranges and Measurement Uncertainty
A nominal simulation describes one assumed combination of values. The board on the bench contains a particular set of parts whose values may sit elsewhere within their allowed ranges.
Analog Devices’ guide to statistical and worst-case tolerance analysis demonstrates ways to examine that variation. Use limits and distributions supported by component specifications or characterization. A tolerance rating alone does not define a Gaussian distribution, and parameter correlations can matter.
For requirements that must hold across a range, investigate the combinations and operating conditions that could produce failure. A finite Monte Carlo run does not guarantee that every possible case has been covered.
Apply similar care to measurement accuracy. A small difference may fall within the combined uncertainty of the component values, instrument, and probe. Decide whether the discrepancy affects the requirement being evaluated before spending time forcing two traces into visual agreement.
Turn the Difference Into a Controlled Experiment
Suppose a simple RC low-pass filter has the expected DC output, but its measured step response contains ringing absent from the ideal simulation. A first-order RC circuit driven by a monotonic step does not generate an oscillatory response on its own. Investigate the source, additional circuit dynamics, and measurement path.
- Capture input and output together. Check whether the ringing is already present at the filter input.
- Repeat with a suitable short probe return. Keep the circuit and stimulus unchanged while testing the measurement arrangement.
- Reproduce the relevant input waveform. If using recorded data as a simulated source, apply it at the same circuit boundary where it was measured.
- Change one suspected cause. Use a known component or a controlled physical change whose effect can be predicted.
- Check a second condition. Compare another load, input level, or edge rate without retuning all the model values.
Be careful with imported waveforms. A voltage recorded at the circuit input already contains the upstream source and cable effects present during that test. Reapplying those same effects ahead of that recorded waveform can count them twice. Conversely, replaying the waveform with an ideal source will not predict how the original source responds to a different load.
Keep a short record of the measured discrepancy, the hypothesis, and the result of each change. Preserve the board revision, fitted component values, model files, and instrument settings alongside the waveforms.
Decide When the Model Is Detailed Enough
The required detail depends on the decision. A DC divider being checked for a modest output tolerance rarely needs a detailed trace-inductance model. A regulator that fails only with a particular input cable may require the cable and source dynamics to be represented.
A useful stopping point is a model that explains the discrepancy and predicts the effect of a related change within the accuracy needed for the project. If agreement depends on repeatedly adjusting unknown values, the next step is usually another measurement that constrains those values.
Frequently Asked Questions
Why does a circuit work on a PCB but behave differently on a breadboard?
The connections, contact resistance, stray capacitance, and current-return paths differ. A breadboard can be useful for many low-frequency circuits while giving misleading results for fast or sensitive nodes. Compare the physical paths as well as the schematic.
Why does the measured waveform contain noise that is absent from the simulation?
The simulation may not include device noise or external interference, and a standard transient run does not necessarily generate noise automatically. The measurement also includes the instrument’s own noise. Check model support, analysis settings, and measurement bandwidth before comparing noise levels.
How close should simulation and measurement agree?
There is no universal percentage. Define acceptable agreement for the quantity that matters, such as DC accuracy, settling time, overshoot, or a protection threshold. Account for tolerances and measurement uncertainty, then verify that the remaining difference does not conceal a failure relevant to the design.