Inferensys

Glossary

Missing Codes

A severe manifestation of Differential Non-Linearity (DNL) where a data converter completely skips one or more digital output codes, creating a permanent, highly distinctive gap in the transfer function that serves as a strong identifying feature.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
DATA CONVERTER NON-IDEALITY

What is Missing Codes?

A severe static linearity defect in analog-to-digital converters (ADCs) where specific digital output codes are never produced, regardless of the analog input voltage.

Missing codes are a catastrophic manifestation of Differential Non-Linearity (DNL) where a data converter's transfer function exhibits a discontinuity, permanently skipping one or more digital output values. This occurs when the step width for a specific code collapses to zero or less, meaning no analog input voltage range exists that would produce that code. The result is a non-monotonic gap in the quantization mapping that is structurally impossible to correct through calibration.

In the context of RF fingerprinting, missing codes create a permanent, highly distinctive spectral void that acts as an unclonable hardware identifier. Because this defect is physically etched into the silicon during fabrication due to severe capacitor mismatch or comparator offset in the converter's internal architecture, it remains stable over temperature and voltage variations. A classifier can detect the absence of specific quantization levels in the digitized waveform, providing a robust, zero-bit extraction feature for physical layer authentication.

Transfer Function Anomalies

Key Characteristics of Missing Codes

Missing codes represent a catastrophic failure in a data converter's linearity where specific digital output values become unattainable, creating a permanent and highly distinctive gap in the device's transfer function that serves as a robust, unclonable hardware fingerprint.

01

DNL Exceeding 1 LSB

A missing code occurs when the Differential Non-Linearity (DNL) at a specific code transition equals or exceeds -1 LSB. In this condition, the step width for that code collapses to zero or becomes negative, meaning no analog input voltage will ever produce that digital output. This is a direct, measurable consequence of severe static non-linearity in the converter's architecture, often caused by mismatched unit elements in the internal DAC of a successive-approximation or pipelined ADC. The specific location of the missing code in the transfer function is a deterministic result of the manufacturing process variations.

DNL < -1 LSB
Threshold Condition
02

Permanent & Unclonable Signature

Unlike transient noise or environmental drift, a missing code is a static, hard-wired defect in the silicon. It is physically impossible to stimulate the converter to produce the missing digital word, making this gap a permanent feature of the device's identity. This characteristic is highly valuable for supply chain hardware authentication because the specific pattern of missing codes is randomly distributed across a batch of chips due to Process-Voltage-Temperature (PVT) variation. A cloned or counterfeit device will have a different, or no, missing code pattern, making it instantly distinguishable.

100%
Permanence
03

Impact on Spectral Purity

A missing code introduces a severe, deterministic distortion in the digitized waveform. In the frequency domain, this manifests as a spike in the quantization noise floor and the generation of high-level, signal-dependent harmonic and intermodulation distortion products. This directly degrades key dynamic performance metrics:

  • SINAD (Signal-to-Noise and Distortion Ratio): Sharply reduced due to the added distortion power.
  • SFDR (Spurious-Free Dynamic Range): Dominated by the spurs created by the abrupt transfer function discontinuity.
  • ENOB (Effective Number of Bits): Significantly lower than the stated resolution, as the missing code effectively removes usable quantization levels.
SFDR
Primary Metric Degraded
04

Distinction from Wide Code

A missing code (DNL = -1 LSB) must be distinguished from a wide code (DNL > 0). A wide code means a specific digital output appears for a wider-than-ideal range of analog inputs, but the code is still present. A missing code is a complete absence. In practice, a severe wide code is often adjacent to a missing code because the total charge or current from the mismatched unit elements is redistributed. The neighboring code 'steals' the input range from the missing one, creating a paired anomaly that is an even stronger, more complex identifying feature.

Adjacent
Typical Anomaly Pairing
05

Architectural Susceptibility

The likelihood and pattern of missing codes are heavily dependent on the converter architecture:

  • High-Speed Flash ADCs: Prone to 'sparkle codes' and missing codes due to comparator offsets and bubble errors in the thermometer-to-binary decoder.
  • SAR ADCs: Missing codes are directly linked to the mismatch of binary-weighted capacitors in the internal Charge-Redistribution DAC. A major transition, like the MSB switch, is a common failure point.
  • Time-Interleaved ADCs: Missing codes can result from a dead or severely offset sub-ADC in the interleaved array, creating a periodic pattern of missing codes that is a uniquely exploitable interleaving mismatch signature.
SAR & Flash
Most Susceptible Architectures
06

Exploitation in RF Fingerprinting

For RF fingerprinting, a missing code in the transmitter's DAC or the receiver's ADC is a gold-standard feature. When a DAC has a missing code, it cannot generate a specific amplitude level, creating a permanent 'notch' in the IQ constellation distortion pattern and generating unique intermodulation distortion (IMD) products. This feature is:

  • Channel-Robust: The gap in the transfer function is independent of multipath or fading.
  • High-Contrast: It provides a binary, yes/no feature for a classifier, simplifying deep learning signal identification models.
  • Drift-Resistant: Unlike analog biases, a missing code does not drift with temperature; it is a structural defect.
Binary
Feature Contrast
STATIC TRANSFER FUNCTION COMPARISON

Missing Codes vs. Other ADC Non-Idealities

A comparative analysis of Missing Codes against other common static and dynamic Analog-to-Digital Converter imperfections, highlighting their distinct causes, manifestations, and utility for hardware fingerprinting.

FeatureMissing CodesIntegral Non-Linearity (INL)Differential Non-Linearity (DNL)

Primary Definition

A complete absence of one or more digital output codes in the transfer function.

The maximum deviation of the actual transfer function from an ideal straight line.

The deviation of an actual step width from the ideal 1 LSB step.

Root Cause

Severe localized DNL error (DNL < -1 LSB) or a stuck bit in the internal decoder logic.

Cumulative DNL errors, systematic gain/offset errors, or component mismatch across the entire range.

Random component mismatch, comparator offset, or resistor ladder inaccuracies in a specific quantization step.

Manifestation in Transfer Function

A discrete, permanent gap where a specific digital code is never output for any analog input.

A smooth or piecewise deviation of the entire transfer curve from a best-fit straight line.

A localized variation in step width; a code may be wider or narrower than 1 LSB.

Impact on Signal Fidelity

Catastrophic local information loss; the signal detail within that code's range is permanently destroyed.

Global harmonic distortion and a reduction in Spurious-Free Dynamic Range (SFDR).

Localized quantization error anomalies, potentially increasing noise floor or causing small-scale distortion.

Detectability in Histogram Test

A zero-count bin in the output code histogram, making it trivially detectable.

A non-uniform cumulative distribution; requires a linearity ramp or sine-wave histogram test.

Adjacent code bins with significantly different counts in a uniformly distributed input histogram.

Uniqueness as a Fingerprint

Extremely high; the specific code(s) missing and their location are highly device-specific and stable.

High; the shape of the deviation curve is a unique, process-dependent signature.

Moderate; the pattern of wide and narrow codes is unique but can be influenced by noise and temperature.

Stability Over Time and Temperature

Highly stable; a missing code due to severe DNL is a permanent structural defect that rarely heals.

Stable but can drift slowly with temperature-induced changes in component values.

Less stable; DNL values can shift with temperature and supply voltage, especially near decision thresholds.

Typical Occurrence

Common in poorly trimmed, low-cost, or defective converters; rare in high-precision, factory-calibrated ADCs.

Present in all real-world converters; the magnitude varies with architecture and manufacturing quality.

Present in all real-world converters; a DNL of +/- 0.5 LSB is typical for a good commercial device.

MISSING CODES IN DATA CONVERTERS

Frequently Asked Questions

Clear, technically precise answers to common questions about missing codes—a severe DNL error that creates permanent gaps in a converter's transfer function and serves as a distinctive hardware fingerprint.

A missing code is a severe manifestation of Differential Non-Linearity (DNL) where a data converter completely skips one or more digital output codes, regardless of the analog input voltage applied. In an ideal converter, every digital code from 0 to 2^N - 1 is reachable. When a code is missing, the transfer function exhibits a gap—the output jumps directly from code k-1 to k+1 without ever producing code k. This is formally defined as a DNL of -1 LSB at that specific code transition. Missing codes are most common in Successive Approximation Register (SAR) and pipeline ADCs where capacitor mismatch or comparator offset errors can create dead zones. Once present, a missing code is a permanent, process-dependent defect that cannot be corrected by calibration alone, making it an exceptionally strong and stable identifying feature for RF fingerprinting applications.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.