A Low-Cost Output Response Analyzer for the
Built-in-Self-Test
Σ
-
Δ
Modulator Based on the
Controlled Sine Wave Fitting Method
Shao-Feng Hung, Hao-Chiao Hong, and Sheng-Chuan LiangDepartment of Electrical and Control Engineering National Chiao Tung University
HsinChu, Taiwan 300
Email: [email protected]
Abstract—This paper proposes a low-cost output response
analyzer (ORA) for the built-in-self-test (BIST)Σ-Δ ADC based on the controlled sine wave fitting (CSWF) method. The ADC under test (AUT) is composed of a design-for-digital-testability (DfDT) second-order Σ-Δ modulator and a decimation filter. The CSWF BIST procedure requests an ORA to accept the output of the AUT and calculates the offset, the amplitude of the stimulus tone response, and the total-harmonic-distortion-and-noise (THD+N) power in three successive BIST steps respectively. Each BIST step needs an accumulator to conduct the specified BIST function. By sharing an accumulator for every BIST step, the proposed ORA design contains only 1.9k gates without loss of computational accuracy. The hardware is only 34% of the original design. Simulation results show that the proposed ORA presents accurate SNDR results for the 1 kHz tests.
I. INTRODUCTION
Testing analog and mixed-signal (AMS) circuits is very costly and troublesome because of the requirements of high-quality analog stimuli and ultra-low noise testing environ-ment. Furthermore, the numbers of testing parameters for AMS products are usually quite large [1] which considerably increase the test time. The too high test cost shrinks profit margins of high-end AMS products such as high-resolution Σ-Δ ADCs. Making testing Σ-Δ ADC cheaper and simpler without compromise of the testing accuracy thereby becomes an important issue for industry. Built-in-self-test (BIST) and design-for-digital-testability (DfDT) techniques can help to address high testing cost [2], [3], [4], [5].
The DfDT structures forΣ-Δ modulators are very appealing approaches [6], [7], [8]. With a few additional analog switches, the DfDT structures can reconfigure the Σ-Δ modulator to accept Σ-Δ modulated bit-streams as the test stimuli in the test mode. The single-bit feature of the digital stimuli ensures the generated test stimuli are purely linear. The digital stimuli also have very high in-band signal-to-noise-and-distortion ratio (SNDR) owing to the noise shaping and oversampling nature ofΣ-Δ modulation. Hence, expensive AMS automatic testing equipment (ATE) is no longer necessary. Since the DfDT structures reuse most of the circuit components of the ADC under test (AUT) in both the normal mode and the test mode, they provide many additional benefits such as high fault
observability, high measurement accuracy, and the capability of conducting at-speed tests [8].
To further reduce the test cost, making the DfDT Σ-Δ modulator built-in self-testable is preferable. This can be done by integrating the digital stimulus generator (DSG) and the digital output response analyzer (ORA) with the DfDT AUT. Such a BIST design needs no ATE at all. Hence, the only test cost is the added BIST circuitry.
The digital resonator embedded with a digitalΣ-Δ modu-lator well suits for implementing the required DSG for the DfDT Σ-Δ AUT [9]. The hardware cost is low since the design eliminates the need for parallel multiplier. Besides, the amplitude and frequency of the generatedΣ-Δ modulated bit-stream are well controlled if the stimulus frequency is not too high [9].
With respect to the ORA, a conventional approach is to analyze the output of the AUT in frequency domain using Fast Fourier Transform (FFT) analysis [10]. However, performing FFT is too costly because conducting FFT requires lots of hardware resources such as bulky memory and a complex CPU/DSP. Alternatively, Mattes et. al. proposes a controlled sine wave fitting (CSWF) method that calculates the SNDR of the AUT in time domain [11]. The CSWF method benefits from no output waveform has to be temporarily stored. As a result, the BIST circuitry can be made much smaller.
In [12], we proposed a BIST Σ-Δ ADC prototype based on the CSWF method. The same DfDT second-order Σ-Δ modulator in [8] is used as the modulator under test (MUT), and an FPGA board implements the decimation filter and the BIST circuitry. Experimental results show that the BIST design can accurately calculate the test parameters such as the offset, the gain error, the SNDR, and the dynamic range of the Σ-Δ AUT for the 1kHz tests. Yet the hardware overhead can be further reduced.
This paper presents a low-cost ORA design for the CSWF BISTΣ-Δ ADC in [12]. By sharing the accumulator for every BIST step, the proposed ORA requires only one accumulator instead of three. As a result, the overall hardware of the proposed ORA contains only 1.9k gates. Compared with the design in [12], the gate count is only 34%. The proposed 2009 Asian Test Symposium
1081-7735/09 $26.00 © 2009 IEEE DOI 10.1109/ATS.2009.88
389
2009 Asian Test Symposium
1081-7735/09 $26.00 © 2009 IEEE DOI 10.1109/ATS.2009.88
389
2009 Asian Test Symposium
1081-7735/09 $26.00 © 2009 IEEE DOI 10.1109/ATS.2009.88
ORA design provides the same ORA functions with the same resolution. Hence, the test accuracy is kept the same. This paper is organized as follows: Section II reviews the CSWF BISTΣ-Δ ADC in [12]. The circuit design of the proposed ORA are depicted in Sec. III. Section IV shows the simulation results. Finally, Section V concludes this work.
II. REVIEW OF THEBIST SYSTEM
ORA
Serial I/O Interface
AR a21RBSG a21 AS SBSG Decimation Filter Phase Compensator Σ ADC Σ−Δ MUT 24 32 1 1 32 24 2 1 32 1 MUX RBSG REF MUT SBSG DEC y y y y y (n) (n) (n’) (n) (n)
Figure 1. Block diagram of the CSWF BIST system
The idea of the CSWF method is that the signal and the total-harmonic-distortion-and-noise (THD+N) powers can be calculated separately in time domain. In practice, the digital output of an ADC consists of the stimulus tone, the offset, and the THD+N parts. The stimulus tone response may experience a gain error and a phase error induced by the AUT. If we can generate an error-free digital reference signal which is identical to the stimulus tone part of the output response, then the THD+N signal can be obtained by subtracting the error-free digital reference signal and the offset from the digitized output waveform.
The block diagram of the CSWF BIST system in [12] is shown in Fig. 1. The whole BIST system consists of theΣ-Δ ADC, two bit-stream generators (BSGs) as the DSG, the ORA, the phase compensator, and an optional serial I/O interface. Since the phase shift for the Σ-Δ modulator is almost a constant due to its over-sampling nature, the transfer function of the phase compensator is as simple asz−2.
Two identical BSGs are used in Fig. 1. The first one is the stimulus bit-stream generator (SBSG) for generating the digital stimuli for the AUT. The second one is the reference bit-stream generator (RBSG) for generating the aforementioned digital reference signals. The amplitudes of the generated stimulus tones can be well controlled [9]. In particular, we useAS to represent the amplitude of the stimulus tone generated by the SBSG, and AR for that by the RBSG. The input parameter
a21 sets the frequency of the generated stimulus tone. The ORA calculates the offset, the amplitude of the stimulus-tone response, and the THD+N power in three BIST steps respectively [12]. Every BIST step conducts a coherent test and acquires N decimated output samples for analysis, where N is selected to be a power of two to simplify the hardware implementation. The ORA functions are discussed as follows. Product Partial Σ Z −1 Σ Σ 24 yRES YOS
47−bit Left Shift Reg.
24−bit Right Shift Reg.
yRES | (n’)| (n’) RES sign bit of y 47 47 47 LSB 1 1 24 47 24 24 47 BIST step 2 3 1 0 MUX3 MUX2 MUX1 Accumulator yDEC(n’) (n’)
Figure 2. Schematic of the Proposed ORA
1) BIST Step 1: Calculating the Offset: In the first BIST
step, the ORA estimates the offsetYOS of the AUT by
YOS=N1 N n=1
yDEC(n). (1)
Since N is a power of 2, the division can be realized by wiring. A simple accumulator is used to implement (1).
2) BIST Step 2: Calculating the Amplitude of the Response:
The ORA removes the estimated offset YOS from the deci-mated responseyDEC(n) first, and calculates the amplitude of the offset-free responseyRES(n) according to
YAMP = N1
N n=1
|yRES(n)|. (2)
An additional accumulator with an absolute function cir-cuitry are used to implement (2) in [12].
3) BIST Step 3: Calculating the THD+N Power: The ORA
first derives the THD+N signal, yRES(n), by subtracting the offset and the reference signal (yRBSG(n)) from the output of the AUT. Then, the ORA conducts the following function to calculate the THD+N power in the passband:
PT HDN =N1 N n=1
|yRES(n)|2. (3)
Since yRES(n) is decimated by a factor of 128, the ORA has sufficient time to condcut the only multiplication by a simple serial multiplier. In [12], Equation (3) is implemented with the other accumulator, an absolute-value translator, and a serial multiplier.
III. THEORA CIRCUITRY
The ORA design in [12] is composed of three independent blocks including the offset estimator, the amplitude estimator, and the power estimator. According to Sec. II, the three estimators work successively and each estimator consists of an accumulator. In addition, the power estimator for the last BIST step needs a serial multiplier which contains the fourth
390 390 386
Σ Z −1 YOS yDEC 47 47 24 3 2 BIST step 1 MUX3 Accumulator (n’)
Figure 3. BIST Step 1: Calculating the Offset
Σ Σ 24 yRES YOS Σ Z −1 YAMP yRES yDEC (n’) RES sign bit of y 1 24 24 47 47 3 1 BIST step 2 MUX1 MUX3 Accumulator (n’) | (n’)| 24 (n’)
Figure 4. BIST Step 2: Calculating the Amplitude of the Response
accumulator for summing up the partial products. Since only one of the accumulators is working at a time, the ORA functions can share the same accumulator using the time-multiplexing technique to save the hardware.
Based on the above discussion, we propose a new ORA design as shown in Fig. 2. The ORA contains only one accumulator to perform all the necessary ORA functions. The only accumulator is shared between every BIST step. Fig. 3 to 5 illustrate the reconfigured ORA in every BIST step.
In the first BIST step, the output of the decimation filter passes through the multiplexer MUX3 and the accumulator calculates the offset according to (1). In the second BIST step, the same accumulator accepts the absolute value of
yRES(n) and estimates YAMP according to (2). In the last BIST step, the only accumulator sums up the partial products and accumulates the square terms as shown in Fig. 5.
The synthesis results using a 0.18 μm cell library shows that the proposed ORA reduces the gate count from 5.6k to 1.9k, saving 66% hardware. In addition, Since the proposed ORA provides the same functions as (1), (2), and (3) with the same resolution, there is no loss of computational accuracy. Table I summarizes the hardware cost of the BIST design using the proposed ORA. 23% of the BIST circuitry belongs to the proposed ORA while the ratio of the design in [12] is 47%.
IV. SIMULATIONRESULTS
Behavioral simulations are used to verify the BIST system. The MUT itself is simulated with the fully-settled-linear-behavior-plus-noise (FSLB+N) model [13]. This model has been shown being able to well predict the performance of the DfDTΣ-Δ modulator. The necessary model parameters are set according to the practical design in [8]. The OPAMPs have an offset voltage of 0.41 mV, an open-loop gain of 75 dB, and an output swing of±2.8 V. The FSLB+N model assumes all transient responses are fully settled. The sampling capacitors of the first integrator stage have −50 dB mismatch and the
Product Partial Σ Z−1 Σ Σ 24 yRES YOS
47−bit Left Shift Reg.
24−bit Right Shift Reg.
PTHDN yDEC yRES | (n’)| RES(n’) sign bit of y 47 47 47 47 LSB 1 1 24 47 24 3 2 1 BIST step 0 MUX3 MUX2 MUX1 Accumulator (n’) (n’) 24
Figure 5. BIST Step 3: Calculating the THD+N Power
Table I
SUMMARY OF THEBIST HARDWARECOST
Block BIST design BIST design in [12] with the proposed ORA
Gate counts
ORA 5.6k 1.9k
BSG 2.35k×2 2.35k×2
Serial I/O 1.6k 1.6k
Total BIST Circuitry 11.9k 8.2k
KT/C noises of the switched capacitors are considered. The sampling frequency is 6.144 MHz while the OSR is set to 128. The ORA respectively analyzes218 and 211 samples of yMUT(n) and yRES(n) for every BIST step. To fulfill the coherent test requirement, the stimulus frequency is set to 43/218times the sampling frequency which is around 1 KHz. Figure 6 depicts the output spectra in the last BIST step of
the−6 dBFS, 1kHz test. The BIST design successfully reduces
the offset and the stimulus tone of the MUT’s response,
yMUT(n), from −75.8 dBFS and −6.0 dBFS to −110.1 dBFS
and −114.5 dBFS respectively. Apparently, the decimated
residue signal, yRES(n), is almost the same as the noise floor of yMUT(n). The spectra prove that the proposed ORA executes the BIST functions correctly. The BIST SNDR result and the one obtained by using conventional FFT analysis are 75.8 dB and 75.9 dB for this test. The two analysis methods have only 0.1 dB SNDR difference. The subtle difference comes from that conventional FFT analysis ignores the noise power on the offset and the stimulus tone frequency bins while the BIST takes them into account.
Figure 7 shows and compares the simulation results of the dynamic range tests using the two analysis methods. The stimulus amplitude is swept from −60 dBFS to −4 dBFS while the stimulus frequency is keeping at 1 kHz. The SNDR differences between both methods are no more than±1.2 dB. Figure 8 shows SNDR results vs. stimulus frequency. The stimulus amplitude is the same−6 dBFS. The corresponding SNDR differences of the two analysis methods are within 1.5 dB for the stimulus frequency less than 8 kHz, but are
391 391 387
0.5 1 1.5 2 x 104 −140 −120 −100 −80 −60 −40 −20 0
Power Spectral Density (dBFS/bin)
Frequency (Hz) Spectrum of yMUT(n)
Cumulative THD+N power of yMUT(n) Spectrum of yRES(n’)
Cumulative power of yRES(n’)
Figure 6. Spectra and cumulative THD+N power plots ofyMUT(n) and
yRES(n) in the last BIST step of the same −6 dBFS, 1 kHz test
−60 −50 −40 −30 −20 −10 0 20 30 40 50 60 70 80 Stimulus Amplitude (dBFS) SNDR (dB) FFT results ORA results
Figure 7. SNDR results of the dynamic range tests
larger for the stimulus frequency higher than 8 kHz. Note that the limited test bandwidth is due to the design of the BSGs, not the ORA. The test accuracy degradation is because the high-frequency digital stimuli have poor in-band SNDRs as shown in Fig. 8. The noisy stimulus causes the stimulus tone ofyMUT(n) can not be completely removed. Since the ORA calculates the residue stimulus tone as a part of the desired THD+N signal, the BIST SNDR results become worse. Table II summarizes the simulated BIST results with the proposed ORA design.
V. CONCLUSIONS
This paper proposes a low-cost ORA for the BIST Σ-Δ ADC based on the CSWF method. The ORA calculates the offset, the amplitude response, and the THD+N power succes-sively in three BIST steps. Each step needs an accumulator as a building block. By sharing the same accumulator for every BIST step, the proposed ORA contains only 1.9k gates accord-ing to the synthesis results. The gate count is only 34% that of the original design. Furthermore, the proposed ORA does not sacrifice the computational accuracy. Simulation results verify that the BIST ADC with the proposed ORA provides accurate SNDR results as the conventional FFT analysis does.
REFERENCES
[1] B. Vinnakota, Analog and Mixed-Signal Test. Englewoods Cliffs, NJ: Prentice-Hall, 1998. 0.5 1 1.5 2 x 104 0 10 20 30 40 50 60 70 80 90 Stimulus Frequency (Hz) SNDR (dB) FFT results ORA results ySBSG(n)
Figure 8. SNDR results of the proposed ORA design, the FFT analysis, and the correspondingySBSG(n) at different stimulus frequencies
Table II BIST RESULTSUMMARY
Analysis method
Test item Conventional With the With the FFT ORA in [12] proposed ORA Peak SNDR 75.9 dB 75.8 dB 75.8 dB Dynamic range 86.4 dB 87.1 dB 87.1 dB Offset −75.8 dBFS −75.8 dBFS −75.8 dBFS
Test bandwidth 10 kHz 8 kHz 8 kHz Hardware cost CPU/DSP/memory 5.6k gates 1.9k gates
[2] J.-L. Huang and K.-T. Cheng, “Testing and characterization of the one-bit first-order Delta-Sigma modulator for on-chip analog signal analysis,” in Proc. IEEE Int. Test Conf. (ITC), 2000, pp. 1021–1030.
[3] M. F. Toner and G. W. Roberts, “A BIST scheme for a SNR, gain tracking, and frequency response test of a Sigma-Delta ADC,” IEEE
Trans. Circuits and Systems II: Analog and Digital Signal Processing,
vol. 42, no. 1, pp. 1–15, Jan. 1995.
[4] H.-K. Chen, C.-H. Wang, and C.-C. Su, “A Self Calibrated ADC BIST Methodology,” in Proc. IEEE VLSI Test Symp. (VTS), 2002, pp. 117– 122.
[5] H. Jiang, B. Olleta, D. Chen, and R. L. Geiger, “Testing High-Resolution ADCs With Low-Resolution/Accuracy Deterministic Dynamic Element Matched DACs,” IEEE Trans. Instrum. Meas., vol. 56, no. 5, pp. 1753– 1762, Oct. 2007.
[6] H.-C. Hong, “Design-for-digital-testability 30 MHz second-order Sigma-Delta modulator,” in Proc. IEEE Custom Integrated Circuits Conf.
(CICC), 2004, pp. 211–214.
[7] L. Rolindez, S. Mir, A. Bounceur, and J.-L. Carbonero, “A BIST Scheme for SNDR Testing ofΣ-Δ ADCs Using Sine-Wave Fitting,” Journal of
Electronic Testing: Theory and Applications (JETTA), vol. 22, no. 4-6,
pp. 325–335, Dec. 2006.
[8] H.-C. Hong, “A Design-for-Digital-Testability Circuit Structure forΣ-Δ Modulators,” IEEE Trans. VLSI Systems, vol. 15, no. 12, pp. 1341–1350, Dec. 2007.
[9] A. K. Lu and G. W. Roberts, “A High-Quality Analog Oscillator Using Oversampling D/A Conversion Techniques,” IEEE Trans. Circuits and
Systems II: Analog and Digital Signal Processing, vol. 41, no. 7, pp.
437–444, Jul. 1994.
[10] M. Burns and G. W. Roberts, An Introduction to Mixed-Signal IC Test
and Measurement. Oxford, NY: Oxford University Press, 2001. [11] H. Mattes and S. Sattler and C. Dworski, “Controlled Sine Wave Fitting
for ADC Test,” in Proc. IEEE Int. Test Conf. (ITC), 2004, pp. 963–971. [12] H.-C. Hong, S.-C. Liang, and H.-C. Song, “A Built-in-Self-TestΣ-Δ ADC Prototype,” Journal of Electronic Testing: Theory and Applications
(JETTA), in press, 2009.
[13] H.-C. Hong, “A Fully-Settled Linear Behavior Plus Noise Model for Evaluating the Digital Stimuli of the Design-for-Digital-Testability Σ-Δ Modulators ,” Journal of Electronic Testing: Theory and Applications
(JETTA), vol. 23, no. 6, pp. 527–538, Dec. 2007.
392 392 388