← Back to the chapter · Previous detail

Technical detail · Virtual Hardware: Test Harnesses

Physical effects and their bench counterparts

Most virtual hardware models are intentionally simplified. A brownout is a brief supply-voltage drop that can reset or disrupt a device. Interrupt jitter is variation in the delay before an interrupt handler runs. DMA timing describes when a Direct Memory Access controller moves data without the processor copying each byte; a model may omit its delays and contention. Regulator dropout is the minimum gap between a regulator’s input and output voltages needed to keep its output in range. Boot strap pins have levels at startup that select a boot mode.

Models may omit these effects, pullup resistance, bus capacitance, rise/fall time, ADC noise, oscillator drift, flash wear, ESD damage, connector tolerance, or sensor calibration. A clean I2C transaction does not prove a real cable, board layout, or pullup value works. A clean UART parser run does not prove level shifting, framing under noise, or connector strain. A simulated Wi-Fi publish does not prove antenna placement, roaming, coexistence, or access-point recovery.

A simulated SPI waveform with correct command order still needs bench checks of chip-select timing, voltage level, setup/hold margin, real peripheral response, and noise. A simulated sleep path needs current draw, wake latency, watchdog behavior, and battery-load measurement. A Zephyr or embedded-Linux image needs target-board checks of driver availability, device-tree accuracy, bootloader behavior, peripheral timing, flash partition, and recovery paths.

Simulator mismatches may come from firmware logic, fixture data, library version, build target, or model coverage. Bench mismatches may come from schematic, assembly, power integrity, tolerance, environmental condition, instrument setup, or firmware timing. Separate these causes in the evidence. Update the model when the bench exposes a wrong assumption, and retain it for regression tests within its scope.

← Back to the chapter · Previous detail