A BIST Scheme for Testing DAC

4
A BIST Scheme for Testing DAC Chun Wei Lin Department of Electronic Engineering, National Yunlin University of Science & Technology, Yunlin 64002, Taiwan [email protected] Sheng Feng Lin Graduate School of Engineering Science and Technology, National Yunlin University of Science & Technology, Yunlin 64002, Taiwan [email protected] Abstract— In this paper, we propose a low speed built-in-self-test (BIST) scheme for testing static parameters of high-speed digital- to-analog converter (DAC). Based on under-sampling technique, the DAC output signal is modulated into low speed pulse signal by pulse-width-modulation (PWM) with two sinusoidal carriers. The nonlinearity errors of DAC hence represents on duty ratio of converted pulse signal. In addition, a precise embedded time-to- digital converter (TDC) is inserted to measure the pulse width of converted signal on chip. The static parameters of DAC then can be estimated through analyzing output signal of TDC captured by conventional logic analyzer. To demonstrate the proposed scheme, we applied the method on 8-bits 200MS/s DAC. The experiment showed very good result that the maximum estimated error of DNL and INL are less than 0.2LSB and 0.35LSB. Moreover, the most important merit is that the required test environment and equipment are low speed compared to DAC under test. Keywords- DAC; testing; BIST; PWM; TDC I. INTRODUCTION High-speed DACs are one of the most critical circuit modules for communication systems and multi-media devices. However, testing these converters is a very difficult task. Conventional test methods require instruments with higher speed and accuracy than DAC under test [1]. In order to avoid transferring analog signal to external instruments directly, on- chip testing approach was proposed to obtain accurate test result for high speed DAC [2-5]. In addition, BIST approach can overcome the requirements of high performance test equipment. The analog signal under test can be converted into specific test signature through built- in circuits for convenience of analysis. By converting the amplitude of analog signal of DAC into the representation of duty ratio or frequency of pulse signal, the analog signal can be measured by a digital counter [6-8]. However, these BIST techniques need some complex modules such as code memory, high speed on-chip processing circuits or arithmetic logic unit, which may increase design effort and raise another test issue on these circuits. In this paper, we propose a BIST scheme for DAC testing based on a new under-sampling technique. The analog signal of DAC is modulated by the two sinusoidal carriers and then converted into low speed pulse stream. The relationship between nonlinearity of DAC and width of pulse stream can be further derived. Under this method, we can use conventional on-chip TDCs to quantify the nonlinearity error of DAC without using any high speed or high resolution test equipments. II. THE PRELIMINARY OF PROPOSED METHOD The fundamental concept of developed test scheme is shown in Fig. 1 [9]. Through pulse-width-modulation, the analog signal of DAC is converted into low speed pulse width variation, which can be used to estimate the nonlinearity error of DAC. DAC Wave Sin. generator Lowpass filter Comparator ) (t s ) (t w ) ( t f ω ) ' ( t f ω (a) ) ( t f ω ) ' ( t f ω 1 P dac T ) (t s ) (t w 2 P 3 P 1 V Δ 1 W Δ 2 V Δ 2 W Δ 2 2 W T W dac Δ + = 1 1 W T W dac Δ + = dac V dac V (b) Figure. 1 (a) The concept of proposed BIST scheme. (b) The relative signals. Assume ) ( t f ω and ) ' ( t f ω are the output signal of DAC and carrier of modulation respectively. If we plan to capture N sample points, the operation frequency of carrier should be decided as: T T t f dac Δ + = 1 ) ' (ω and 978-1-4673-2025-2/12/$31.00 ©2012 IEEE

description

Good

Transcript of A BIST Scheme for Testing DAC

Page 1: A BIST Scheme for Testing DAC

A BIST Scheme for Testing DAC

Chun Wei Lin Department of Electronic Engineering,

National Yunlin University of Science & Technology, Yunlin 64002, Taiwan

[email protected]

Sheng Feng Lin Graduate School of Engineering Science and Technology,

National Yunlin University of Science & Technology, Yunlin 64002, Taiwan

[email protected]

Abstract— In this paper, we propose a low speed built-in-self-test (BIST) scheme for testing static parameters of high-speed digital-to-analog converter (DAC). Based on under-sampling technique, the DAC output signal is modulated into low speed pulse signal by pulse-width-modulation (PWM) with two sinusoidal carriers. The nonlinearity errors of DAC hence represents on duty ratio of converted pulse signal. In addition, a precise embedded time-to-digital converter (TDC) is inserted to measure the pulse width of converted signal on chip. The static parameters of DAC then can be estimated through analyzing output signal of TDC captured by conventional logic analyzer. To demonstrate the proposed scheme, we applied the method on 8-bits 200MS/s DAC. The experiment showed very good result that the maximum estimated error of DNL and INL are less than 0.2LSB and 0.35LSB. Moreover, the most important merit is that the required test environment and equipment are low speed compared to DAC under test.

Keywords- DAC; testing; BIST; PWM; TDC

I. INTRODUCTION High-speed DACs are one of the most critical circuit

modules for communication systems and multi-media devices. However, testing these converters is a very difficult task. Conventional test methods require instruments with higher speed and accuracy than DAC under test [1]. In order to avoid transferring analog signal to external instruments directly, on-chip testing approach was proposed to obtain accurate test result for high speed DAC [2-5].

In addition, BIST approach can overcome the requirements of high performance test equipment. The analog signal under test can be converted into specific test signature through built-in circuits for convenience of analysis. By converting the amplitude of analog signal of DAC into the representation of duty ratio or frequency of pulse signal, the analog signal can be measured by a digital counter [6-8]. However, these BIST techniques need some complex modules such as code memory, high speed on-chip processing circuits or arithmetic logic unit, which may increase design effort and raise another test issue on these circuits.

In this paper, we propose a BIST scheme for DAC testing based on a new under-sampling technique. The analog signal of DAC is modulated by the two sinusoidal carriers and then converted into low speed pulse stream. The relationship between nonlinearity of DAC and width of pulse stream can be further derived. Under this method, we can use conventional on-chip TDCs to quantify the nonlinearity error of DAC

without using any high speed or high resolution test equipments.

II. THE PRELIMINARY OF PROPOSED METHOD The fundamental concept of developed test scheme is

shown in Fig. 1 [9]. Through pulse-width-modulation, the analog signal of DAC is converted into low speed pulse width variation, which can be used to estimate the nonlinearity error of DAC.

DAC

WaveSin.generator

Lowpassfilter

Comparator)(ts )(tw

)( tf ⋅ω

)'( tf ⋅ω

(a)

)( tf ⋅ω )'( tf ⋅ω

1P

dacT

)(ts

)(tw

2P3P

1VΔ

1WΔ

2VΔ

2WΔ

22 WTW dac Δ+=11 WTW dac Δ+=

dacV

dacV−

(b)

Figure. 1 (a) The concept of proposed BIST scheme. (b) The relative signals.

Assume )( tf ω and )'( tf ω are the output signal of DAC and carrier of modulation respectively. If we plan to capture N sample points, the operation frequency of carrier should be decided as:

TTtf

dac Δ+= 1)'(ω

and

978-1-4673-2025-2/12/$31.00 ©2012 IEEE

Page 2: A BIST Scheme for Testing DAC

∑=

⎟⎟⎠

⎞⎜⎜⎝

⎛+

×<Δ N

i

s

dac

dac

imm

TT

1

][1

12

, where dacT is period of DAC output signal, TΔ is the difference of period between output signal of DAC and sinusoidal carrier, dacm is the ideal slope of output signal of DAC and ][ims is the slope of sinusoidal carrier.

After modulation, the voltage difference iVΔ of adjacent sample points iP is converted to pulse width variation iW , where idaci WTW Δ+= . Therefore, the nonlinearity error of DAC, dttf /)(ω , will be represented as the variation of pulse width, i.e. iWΔ . If iW is the pulse width of modulated signal in faulty case, the slope of faulty signal of DAC can be estimated and represented as:

][)(

imTW

TWTm s

daci

dacii ×

−−−Δ

=

For the differential nonlinearity (DNL) estimation, we assume N sample points are captured and the slopes between adjacent points are calculated. The DNL of n-bits DAC with N sample points can be estimated through the following algorithm:

)1;( Ntoimfor i =

setimumlocalfind max

12,...,2,1},{][max −== nm kmkm

k

)121( −= ntokfor

)( 12 111 −− +++>>

kkk mmm mmmcase

1

][1

1

1

1

+−=

+

−=∑

+

kk

m

mjj

mm

mkDNL

k

k

)( 21 111 −− +++>>

kkk mmm mmmcase

kk

m

mjj

mm

mkDNL

k

k

−=

+

−=∑

+

1

2

1

1

][

The integral nonlinearity (INL) generally can be calculated from DNL and expressed to be:

∑=

=i

kestimation kDNLiINL

1][][

Using this simple expression for INL estimation is intuitive but also lead error in calculation. A little bit of systematic error in DNL estimation will be integrated into an unbelievable error. In our proposed scheme, the systematic error is brought from

the PWM process inherently. This is because the sinusoidal carrier using in PWM is treated to be combination of many linear pieces when developing the estimation method of DNL. In addition, the variation of this error is periodic since it appears cyclically with respect to frequency of DAC output signal. For this reason, the estimated INL should be characterized to be:

∑∑==

+==i

kreal

i

kestimationestimation kkDNLDNLiINL

11)](][[][ ωε

, where )( kωε is systematic error in DNL and dacTπω 2= .

Because period of DAC output signal is quite a large value, we know that the frequency of systematic error is far less than operational frequency of DAC. Consequently, we can remove systematic error and yield more accurate INL estimation simply by using a high pass filter (HPF) which modifies the INL estimation to be:

∑∑==

=+=i

kreal

i

kreal kDNLkkDNLHPFiINL

11][})](][[{][ ωε

III. THE DUAL UNDER-SAMPLING TECHNIQUE In the previous section, we described the concept of

proposed method and expressed the nonlinearity estimation in detail. To proceed to analyze the converted digital stream, we need an embedded time-to-digital converter (TDC) to quantify its variation on pulse width and estimate nonlinearity error according to the derived relationship. However, the pulse width of this digital stream would quite large. For example, an 8-bits 200MS/s DAC with 255 quantization levels, the pulse width of converted digital signal is about 2.55μs. Because the ordinary TDC is designed for measuring tiny quantity, the excess hardware cost for measuring so large pulse width is undesirable. On the contrary, the TDC designed for measuring large quantity would lose its accuracy and lead to inaccurate analysis.

On purpose of reducing design effort of TDC, we develop the dual under-sampling technique to convert output signal of DAC into digital stream with narrow pulse width. The fundamental concept of the method is shown in Fig. 2(a). It also consists of a sinusoidal carrier generator, two comparators, logic control unit, TDC and an all-pass filter acted as a delay element. The all-pass filter is employed to generate the second sinusoidal carrier with a phase delay dt as shown in Fig. 2(b). The comparators modulate output signal of DAC by both two carriers and result in narrow phase difference between two digital streams representing the nonlinearity variation of DAC output signal. The followed logic unit distinguishes this narrow phase difference from two digital streams and the TDC converts these pulse widths into readable binary codes. We accordingly extract the characteristics of DAC output signal and read them upon digital test equipment or instruments.

In order to explain the relationship between the slope of output signal of DAC and two carriers, we enlarge the shadow area of Fig. 2(b) into Fig. 2(c) and Fig. 2(d) which denote fault free and faulty case respectively.

Page 3: A BIST Scheme for Testing DAC

DAC

WaveSin.generator

)(ts

)(tw

)( tf ⋅ω

)'( tf ⋅ω

passAll −filter )'( dttf −⋅ω )(tsd

TDC)(tD

Comparator

Comparator

Control unit

(a)

)( tf ⋅ω )'( tf ⋅ω )'( dttf −⋅ω

1VΔ2VΔ 3VΔ

]1[1 wxW Δ+=Δ ]2[2 wxW Δ+=Δ ]3[3 wxW Δ+=Δ

)(ts

)(tw

)(tsd

)(tD 1D 0 2D 0 3D

dt

(b)

)( tf ⋅ω)'( tf ⋅ω

)'( dttf −⋅ω

2VΔ

dt

x y

)( tf ⋅ω)'( tf ⋅ω

)'( dttf −⋅ω

2VΔ

x y

fVΔ

(c) (d)

Figure. 2 (a) The fundamental concept of proposed method with dual under-sampling technique. (b) The relative signals. (c) The shadow area in Fig. 2(b)

of fault free case. (d) The shadow area in Fig. 2(b) of faulty case.

For the ideal fault free case in Fig. 2(c), the slope of output signal of DAC with respect to phase delay dt between two carriers can be derived as:

][imx

xtm sd

dac ×−=

, where ][ims is the slope of sinusoidal carrier.

Because the duration between adjacent sample points is very short, the sinusoidal carrier can be regarded as combination of piece-wise linear segments. However, the quantization level of DAC is not uniform in practice. As the faulty case shown in Fig. 2(d), the displacement of cross point of carrier and DAC output signal appears on the phase difference wΔ . We consequently express the slope of faulty signal as:

][][

])[()( imiwx

iwxtdt

tdfm sd

f ×Δ+

Δ+−== ω

Moreover, to ensure the capture of at least one sample within every quantization level of DAC, we need to define the valid region of the phase delay dt between two carriers. The phase delay dt should meet following condition for n-bits DAC:

)12(2 −×< n

dacd

Tt

Through utilizing proposed dual under-sampling technique, the nonlinearity of DAC output signal is represented as narrow pulse width signal. The design effort of required TDC for quantifying pulse width would be greatly reduced; indeed, the practicability of BIST implement is enhanced.

IV. EXPERIMENT RESULT To validate the nonlinearity estimation, we applied the

proposed BIST scheme in Fig. 2(a) to an 8-bits 200MS/s DAC. A simple counter drives the DAC to output triangular waveform with normalized amplitude dacV and period dacT . For 4 sample points per quantization level, we have to spread 1020 sample points in 255 quantization levels of DAC. Then, the frequency of sinusoidal carrier is designed to be:

⎟⎠⎞

⎜⎝⎛

×+××⋅⋅×=

nsnstVtf dac 5361.052552

2sin555.1)'( πω

and nstd 5.2=

We can calculate the slopes of faulty signal of DAC from 1020 captured samples and then estimate 255 nonlinearity errors by the algorithm we mentioned in previous section. Fig. 3 shows the calculated slopes of faulty signal of DAC and the estimated DNL and INL with the real cases are reported in Fig. 4(a) and Fig. 4(b). We can see that the estimated nonlinearity error match well with the real cases. The maximum estimated error of DNL and INL are less than 0.2LSB and 0.35LSB respectively. The reported experiment results demonstrate that the proposed BIST structure based on dual under-sampling technique can be applied to estimate the nonlinearity error of high speed DAC accurately.

0.00.20.40.60.81.01.21.41.61.82.0

1 15 29 43 57 71 85 99 113 127 141 155 169 183 197 211 225 239 253

Code

Estim

ated

slop

es (V

/t)

Figure 3. The calculated slopes of faulty signal of an 8-bits 200MS/s DAC.

Page 4: A BIST Scheme for Testing DAC

-1.0-0.8-0.6-0.4-0.20.00.20.40.60.81.0

1 15 29 43 57 71 85 99 113 127 141 155 169 183 197 211 225 239 253

Estim

ated

DN

L (L

SB)

Code

estimated real

(a)

-0.8

-0.6

-0.4

-0.2

0.0

0.2

0.4

0.6

0.8

1 15 29 43 57 71 85 99 113 127 141 155 169 183 197 211 225 239

Est

imat

ed I

NL

(LS

B)

Code

estimated real

(b)

Figure 4. (a)Estimated result of DNL for the 8-bits 200MS/s DAC. (b)Estimated result of INL for the 8-bits 200MS/s DAC.

V. CONCLUSION In this paper, an efficient BIST scheme for testing the nonlinearity error of high speed DAC is presented. Improving proposed under-sampling technique, a dual under-sampling technique modulates the output signal of DAC into two digital streams by two sinusoidal carriers. The nonlinearity error of DAC is hence converted into variation of narrow pulse width which significantly reduces the design effort on designing TDC. The experiment result shows that the estimated DNL and INL are close to the real case with the maximum estimated error are about 0.2LSB and 0.35LSB. In addition, the required operational frequency of test environment or equipment used in proposed scheme is much lower than that of DAC. This is benefit on integrating BIST design into present test process.

ACKNOWLEDGMENT The authors would like to thank National Chip

Implementation Center (CIC) for technical support and chip fabrication.

REFERENCES [1] J.L. Huertas, Test and Design-for-Testability in Mixed-Signal Integrated

Circuits, Kluwer Academic Publishers, 2004. [2] K. Arabi, B. Kaminska, M. Sawan, “On chip testing data converters

using static parameters,” IEEE Trans. on VLSI System, vol. 6, no. 3, pp. 409–418, 1998.

[3] J. H. Chun, H.S. Yu, and J. A. Abraham, “An efficient linearity test for on-chip high speed ADC and DAC using loop-back,” Proc. ACM Great Lakes Symp. on VLSI, pp. 328–331, 2004.

[4] S. Rafeeque K.P., V. Vasudevan, “A built-in-self-test scheme for segmented and binary weighted DACs,” J. of Electronic Testing, Theory & Appl., vol. 20, no. 6, pp. 623–638, December 2004.

[5] V. Kerzerho et al, “A novel DFT technique for testing complete sets of ADCs and DACs in complex SiPs,” IEEE Design & Test of Computers, vol. 23, issue 23, pp. 234–243, 2006.

[6] S.J Chang, C.L. Lee, and J.E. Chen, “BIST scheme for DAC testing,” Electronic Letters, vol. 38, no. 15, pp. 776–777, July 2002.

[7] G. X. Chen, C.L. Lee, and J.E. Chen, “A new BIST scheme based on a summing-into-timing signal principle with self calibration for the DAC,” Proc. IEEE Asia Test Symp., pp. 58–61, 2004.

[8] J.L. Huang, C.K. Ong, and K.T. Cheng, “A BIST scheme for on-chip ADC and DAC testing,” Proc. IEEE Design Automation & Test in Europe, pp. 216–220, 2000.

[9] Chun Wei Lin, Sheng Feng Lin, and Shih Fen Luo, “A new approach for nonlinearity test of high speed DAC,” Proc. IEEE Int. Mixed-Signals, Sensors, and Systems Test Workshop, pp. 1–5, 2008.