Design and Evaluate 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 modelSAR_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 Impairments
Double click the SAR ADC block to open the Block Parameters dialog box. TheNumber of bitsis set to10
, and theSAR Frequencyis2e7
Hz. Check that in theImpairmentstab, impairments are enabled. Set theOffset errorto0.65
LSB andGain errorto0.65
LSB. The specifications are taken from the datasheet of Analog Devices 10-bit SAR ADCAD 7298.
Modify ADC Testbench According to ADC Specification
Double click the ADC Testbench block to open the Block Parameters dialog box. TheMeasurementoption is selected asDC
and theError toleranceis0.01
LSB. In theSetuptab, click theAutofill setup parametersbutton to automatically propagate the ADC parameters to the testbench. In theTarget Metrictab, click theAutofill target metricbutton to automatically propagate the ADC target metrics to the testbench. Save the changes.
情节DC Analysis Results
Run the simulation for0.2048
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情节DC analysis resultsbutton 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 toAC
and save the change.
Run the simulation for9e-3
s. The conversion delay, SINAD, SFDR, SNR, ENOB and Noise floor are displayed on the icon of the ADC Testbench.