Design and Evaluate a SAR ADC

This example shows how to design a SAR ADC using reference architecture and validate the ADC using ADC Testbench.

Set UP SAR ADC Testbench Model

Open the model SAR_ADC attached to this example as a supporting file. The model consists of a SAR ADC block and an ADC Testbench.

open_system('SAR_ADC.slx')

ADC Specifications and Impairmenta

Double click the SAR ADC block to open the Block Parameters dialog box. The Number of bits is set to 8, and the SAR Frequency is 2e7 Hz. Check that in the Impairments tab, impairments are enabled.

Modify ADC Testbench According to ADC Specification

Double click the ADC Testbench block to open the Block Parameters dialog box. The Measurement option is selected as DC. In the Setup tab, click the Autofil setup parameters button to automatically propagate the ADC parameters to the testbench. In the Target Metric tab, click the Autofil target metric button to automatically propagate the ADC target metrics to the testbench. Save the changes.

Plot DC Analysis Results

Run the simulation for 0.00512 s. The measured and target values of offset error and gain error are displayed on the icon of the ADC Testbench block.

Double click the ADC Testbench block to open the Block Parameters dialog box. Click the Plot DC analysis results button to view the ADC transfer curve, endpoint nonlinearity and best fit nonlinearity.

Perform AC Analysis

Double click the ADC Testbench block to open the Block Parameters dialog box. Set the *Measurement option to AC and save the change.

Run the simulation for 0.009 s. The conversion delay, SINAD, SFDR, SNR, ENOB and Noise floor are displayed on the icon of the ADC Testbench.