A distributed test system for pipelined ADCs

A distributed test system for pipelined ADCs

Measurement 42 (2009) 38–43 Contents lists available at ScienceDirect Measurement journal homepage: www.elsevier.com/locate/measurement A distribut...

526KB Sizes 1 Downloads 141 Views

Measurement 42 (2009) 38–43

Contents lists available at ScienceDirect

Measurement journal homepage: www.elsevier.com/locate/measurement

A distributed test system for pipelined ADCs E. Mancini a,1, S. Rapuano b,2, D. Dallet c,* a b c

University of Sannio, Department of Engineering, Viale Traiano, Palazzo ex Poste, 82100 Benevento, Italy University of Sannio, Department of Engineering, Corso Garibaldi, 107, 82100 Benevento, Italy IMS Laboratory, ENSEIRB, Université Bordeaux 1, CNRS 5218, 351 Cours de la Libration, Bâtiment A31, 33405 Talence Cedex, France

a r t i c l e

i n f o

Article history: Received 14 November 2007 Received in revised form 14 March 2008 Accepted 25 March 2008 Available online 1 April 2008

Keywords: Pipelined ADC Modeling Virtual instrumentation Java

a b s t r a c t The paper presents a distributed test system for pipelined ADCs including a model-based characterization process. A set of modular Virtual Instruments has been developed in Java to execute the system functions in order to be remotely manageable through a common Internet browser. The system features include (i) a module able in modeling an ADC through the specialization of a simplified behavioral model; (ii) a module executing the dynamic testing of the device; (iii) a scalable database providing the data sharing among more remote users; and (iv) some interface modules to programmable instrumentation. The paper also presents the results of the first validation of the system, carried out on an actual pipelined ADC. Ó 2008 Elsevier Ltd. All rights reserved.

1. Introduction Researchers consider that System-On-Chip (SoC) will be the revolution of the new century in electronic design as ASIC (Application-Specific Integrated Circuit) was at the end of the last one. The ADCs play a fundamental role in interfacing the processing core with the analogue world. The wide use of mixed-signal SoCs in electronic systems opens the problems of behavioral modeling and testing of such a complex structure by means of behavioral languages like SIMULINK or VHDL-AMS. The paper deals with these problems focusing on the analog-to-digital conversion stage implemented by means of a pipelined converter. Pipelined ADCs are available today with resolutions up to 14 bits and sampling rates over 250 MHz. They offer the resolution and the sampling rate to cover a wide range of applications, including digital imaging, digital telecommunications, digital video, and fast Ethernet. A popular

* Corresponding author. Tel.: +33 5 40 00 26 32; fax: +33 5 56 37 15 45. E-mail addresses: [email protected] (E. Mancini), rapuano@ unisannio.it (S. Rapuano), [email protected] (D. Dallet). 1 Tel.: +39 0824 305 540; fax: +39 0824 50552. 2 Tel.: +39 0824 305 804; fax: +39 0824 305 840. 0263-2241/$ - see front matter Ó 2008 Elsevier Ltd. All rights reserved. doi:10.1016/j.measurement.2008.03.015

application for these converters is in software-defined radios that are used in modern cellular telephone base stations. ADCs most commonly range in resolution going from 8 to 16 bits and provide low power consumption as well as a small form factor. This combination makes them ideal in a wide variety of applications, such as portable/batterypowered instruments, pen digitizers, industrial controls, and data/signal acquisition [1,2]. In the following a distributed test system is proposed implementing the identification of a behavioral model of pipelined ADC by means of histogram and FFT dynamic tests described in IEEE 1241 standard [3]. A distributed Virtual Instrument (VI) has been developed to manage: (i) the test set-up, (ii) the data acquisition, (iii) the data processing, and (iv) the result storage by means of specific sub-VIs being executed on PCs located in different laboratories. Each laboratory can produce its own model and identification procedure and make them work on the test system implemented in another one. In such a manner it is possible to: (i) remotely execute the test and identification of an ADC, (ii) exchange the measurement data for making parallel processing on the same device, and (iii) realize a common repository of test results and ADC models for devices already on the market, setting

E. Mancini et al. / Measurement 42 (2009) 38–43

the bases for an efficient collaboration of different research groups on the same topic. Section 2 presents a case-study of SIMULINK behavioral model of a three stage pipelined ADC and its components: flash ADC, Digital to Analog Converter (DAC), Sample and Hold Amplifier (S/H). An Input–Output mathematical relation is also proposed. Section 3 is dedicated to the methodology used for the estimation of the error parameters, taking in account measurement results obtained by adjusting the input signal amplitude. Then, in Section 4, the architecture of the distributed VI is described and discussed, focusing on a couple of virtual instruments (VIs) dealing with modeling and testing tasks within the IEEE 1241 standard specifications [3] is presented. The VIs have been developed in Java, in order to be independent from the working platform and assure an inner networking support. Moreover, they are modular, assuring high-grade expandability and flexibility. An experimental evaluation of the proposed system has been carried out on a 10 bit, 20 MHz ADC by Analog Devices with three stages, each containing a 4 bit flash ADC. The overall 10 bit output is obtained by means of a digital

39

sum of the More Significant Bit (MSB) of the output code of each flash ADC with the Least Significant Bit (LSB) of the output code of the ADC of the preceding stage [4]. The obtained results are presented in the last Section of the paper. 2. Pipelined ADC model A pipelined converter is constituted of several stages, each of them composed by an ADC, a DAC and a Sample and Hold (S/H), with the aim to convert a sub-range of entire code [5]. The input full scale signal to be converted is processed by the first stage that acts a conversion of the most significant bits and sends the resulting code both to the correction logic block and to a DAC. The DAC acts a conversion from digital to analogue and the resulting value is subtracted from the input. The resulting error value is sent to the next stage to be processed in a similar way. Each stage adds also a delay cycle. A logic correction block recovers the correct digital output starting from the partial outputs of each stage by applying opportune shifts. In Fig. 1 a block scheme, in SIMULINK environment, for a three stage pipelined ADC is given. Each stage is similar

Fig. 1. Simulink model of a 3-stage pipelined ADC.

Fig. 2. Simulink model of each stage of the pipelined ADC.

40

E. Mancini et al. / Measurement 42 (2009) 38–43

to that shown in Fig. 2. In order to implement S/H, ADC and DAC, simple models have been used for each block [5,6]. The model has been developed starting from the data sheets [7]. The following equation has been used to the model of each ADC stage: !! n X dxðtÞ i ai x ðtÞ þ b ð1Þ yðkÞ ¼ Q S dt i¼0 where xðtÞ is the analog input signal, Q ðÞ is the ideal quantizer function, SðÞ is the saturation function, ai are the error coefficients, bdxðtÞ=dt the jitter model. Each stage of the pipelined ADC uses a DAC as shown in Fig. 2. It has been considered that this component could be described by a third order polynomial function. The following relation has been adopted for the modeling of each DAC [5]: yðtÞ ¼

3 X

ci xi ðkÞ

ð2Þ

between the two data sequences. The fitting of the model outputs to the actual ADC ones depends on the chosen minimization algorithm. Many algorithms have been proposed in the literature for such a task [8,9]. At this time the modified Aitken algorithm has been used. The modified Aitken algorithm splits the parameter range in sub-ranges, and executes iteratively the following steps: (1) For each parameter it searches the value that minimizes the error between the actual ADC and the model output. (2) The step 1 is repeated from the first to the last parameter and then from the last to the first one. (3) The iterations stop when a previously fixed improvement is obtained or when the improvement obtained in the last step is under a certain percentage of the former one.

i¼0

where ci are the error coefficients. Then, the last component used in each stage, the sample and hold amplifier has been modeled by the following equation [5]: yðtÞ ¼ ft xðtÞ þ Z h ðdi xi ðtÞÞ

ð3Þ

where ft is the feed-through coefficient, Z h ðÞ is the hold function, and di the error coefficients. The main target of the modeling phase is to identify the ai , bi , ci , di and ft coefficients which minimize the error between the actual and model output.

4. The distributed test and identification system As it is shown in Fig. 4, the architecture of the proposed distributed test system is based on two VIs executing the model identification, as described in Section 2, and the ADC test, as described in Section 3, [10], [11], and two

3. Parameter estimation In order to evaluate the error parameters, a sine wave signal is generated as input to a real ADC (Fig. 3). The obtained samples are used to estimate the analogue input sine wave parameters from the signal DFT and a three parameter sine fitting, as in [3]. From this estimate the amplitude, offset, phase and frequency of the signal can be used to produce an analytical signal xðtÞ as input to the ADC model. The output samples coming from the model are then compared with the actual ADC samples. The comparison could be done in the frequency domain, in the time domain or in the amplitude domain. By using a multidimensional minimization algorithm, the model can be improved, by reducing the differences

Fig. 4. Architecture of the proposed distributed measurement system.

Fig. 3. Method diagram, including software and hardware blocks.

E. Mancini et al. / Measurement 42 (2009) 38–43

VIs that are used to acquire and manage the data. In particular, the second one, a document manager, sorts and distributes the measures to the working group participants. All the modules have been realized by using the Java language and the CORBA technology in order to ensure good portability, good expandability and the networking support. The first VI, called AdcX, implements the method described in the previous section. It takes sampled data from a file or a CORBA server and sets the parameters of a Java written model. In order to assure an easy expandability, it is as general as possible. Thanking to its modular structure, the VI leaves the user free to include his own ADC model by providing a Java written model with the required software interface to the main program. In order to speedup the development of new modules, a template as been realized, including a set of Java interfaces, that only have to be specialized with the characteristics of a specific ADC. Fig. 5 shows the main graphical user interface (GUI) for AdcX. The second VI, called AdcT (Fig. 6), implements the ADC testing. It controls a signal generator and retrieves the output samples of an actual ADC under test, by means of a direct communication with an instrumentation control module, or from an ADC model, provided with the same method as to AdcX. Then, it computes the histogram (Fig. 7a) and the FFT (Fig. 7b) of the input signal as specified in [3]. In future a time-frequency analysis tool will be implemented too. AdcT supports also the data coding (e.g. Gray coding) with the possibility of implementing new encoding algorithms with a minimum software change. Like AdcX, AdcT is designed to have a good modularity and expandability. It exchanges data with a local or remote CORBA server. Therefore, in order to test ADCs by means of IEEE 488, or VXI instruments, it is necessary to develop an instrumentation control module. At now, a software module for controlling GPIB instrumentation has been developed. The system architecture has been designed in order to set the modeling and testing procedures independent from the specific data sources, managed by the acquisition ser-

41

Fig. 6. User interface of the test module. By means of this interface the user can choose the parameters of signal to send to the actual (a) or simulated (b) ADCs, he/she can set the clock (c) and start the test (d).

Fig. 7. Histogram and FFT displays of the acquired signal.

Fig. 5. User interface of the optimization module, with the histograms of the actual and modeled ADC outputs. The input signal is a sine wave.

ver. In such a way, the analysis subsystems such as AdcX and AdcT VIs can work whichever is the effective data source: instrumentation, models optimized by AdcX or data coming from former acquisitions. This separation is obtained by using a common data repository, independent from the particular acquisition and the required analysis. The software module with the task of managing the data is called document manager. The acquired samples are sent to the document manager that stores them in

42

E. Mancini et al. / Measurement 42 (2009) 38–43

opportune data structures. These contain also some information about the source, such as the sampling frequency or the particular ADC. The implemented database is scalable, in order to provide the maximum flexibility to the specific needs of the user. The data storage is carried out in a hierarchical way, in order to group data from several acquisitions with similar characteristics (e.g. from the same ADC) and retrieve them by using the above quoted characteristics instead of an arbitrary file name. An additional feature of the designed document manager is the possibility of using pre-processing modules such as a Fourier Transform one, that, starting from time domain data, can calculate their amplitude spectrum. A web-based graphical user interface could enable the members of the research group in remotely accessing, downloading or analyzing the acquired data by means of the proposed modules. 5. Experimental validation The proposed distributed test system has been implemented and experimentally validated by setting up the test bench reported in Fig. 8 and testing the AD773 ADC from Analog Devices, a three stage pipelined converter with a 10 bit resolution. The ADC has been stimulated with sinusoidal filtered signals at different amplitudes, in order to involve a new pipeline stage at each step. The input signal has been generated by using an Agilent 8904A multifunction synthesizer, while the output has been retrieved from

an Agilent HP16500C Logic Analysis System, equipped with a 16517A/18A and a 16554A Logic Analyzers, connected to a PC through a GPIB interface. For the purposes of this first experimentation, only the spectral matching approach has been used, but a histogram matching approach could be followed as well. A multiple step process [12] has been adopted to set the optimal parameter values by applying the above quoted modeling identification method to each stage of the ADC from the first to the last one. An improvement index QI has been defined as follows: QI ¼

f ðp0 Þ  f ðpÞ f ðp0 Þ

 100

ð4Þ

where p0 is the starting point (ideal model), p is the current point in the parameter space and f ðÞ is the target function, defined as the error between the actual ADC output spectrum and the model one [13], limiting the evaluation to the higher 50 harmonics (Fig. 9). By using the modified Aitken algorithm and the AD773 model the starting models have been improved by 21% on the first stage setting, by 25% on the second stage setting, and by 64% on the third stage, corresponding to an overall improvement by 20% on the ADC model, from the spectral point of view. Note that the Eq. (4) gives a QI value of 0% at the starting point (no match) and a QI ¼ 100% if the model output perfectly matches the actual device one. The first test results highlight the fitting of the proposed tools to the research on the pipelined ADC harmonic distortion characteristics. Further experiments will be carried out by considering the

Fig. 8. Test bench used to validate the system.

Fig. 9. Output spectra of the second stage of the real and modelled ADC.

E. Mancini et al. / Measurement 42 (2009) 38–43

statistical properties of the model. Moreover, as the model identification results are strictly dependent on the chosen algorithm, a research aiming to find the best fitting minimization algorithm will be carried out by adding new modules to the AdcX VI.

43

Acknowledgement The authors whish to thank Prof. P. Daponte for his support and useful suggestions during the research work. References

6. Conclusion The paper presented a distributed testing and modeling system for pipelined ADCs composed of four modules. An identification instrument working on the simplified behavioral model of a pipelined ADC and on the samples of an actual device has been proposed in the paper. Moreover, a tool for the ADC testing has been realized and described. Currently the AdcX module applies the Aitken optimization to the ADC outputs in the frequency domain. However, both modules have been realized with a modular structure that allows an easy expandability with the addition of more optimization algorithms or testing procedures. Additional modules are currently being developed in that direction. An instrumentation control module has been developed too. Its function is to realize an abstraction layer for the involved instrumentation and to communicate with the instruments through standard interface systems like GPIB. All the data involved in the tests are stored and shared in a common repository, controlled by a suitable document manager. The module implementation in Java language with the use of CORBA architecture allows their remote control through a common browser without requiring the use of proprietary software or complex setup procedures. This feature enables the collaboration of geographically distributed research groups on the themes of ADC modeling and testing.

[1] S. Rapuano, P. Daponte, E. Balestrieri, L.D. Vito, S.J. Tilden, S. Max, J. Blair, Adc parameters and characteristics, IEEE Instrumentation and Measurement Magazine 8 (5) (2005) 44–54. [2] Maxim application note AN634, Pipeline ADCs come of age, 2000. [3] IEEE TC-10, IEEE 1241 Standard: Terminology and test methods for analog-to-digital converters, IEEE, 2001. [4] P. Real, D.H. Robertson, C.W. Mangelsdorf, T.L. Tewksbury, A wideband 10-b 20-ms/s pipelined ADC using current-mode signals, IEEE Journal on Solid-State Circuits 26 (8) (1991) 1103–1109. [5] D.F. Hoeshele, Analog-to-digital and digital-to-analog conversion techniques, John Wiley and Sons, 1984. [6] L. Michaeli, J. Saliga, V. Sedlak, An approach to diagnostic of the A/D converter embedded on ATMEL microcontrollers, in: Proc. of 4th International Workshop on ADC Modeling and Testing, 1999, pp. 247–252. [7] Analog Devices, Norwood, MA, U.S.A, AD773 Datasheet. [8] W.T. Vetterling, W.H. Press, S.A. Teukolsky, Numerical Recipes in C. The Art of Scientific Computing, second ed., Cambridge University Press, 1997. [9] W. Gomez, J.A. Gomez, On multi-directional search in optimisation, 1995. URL . [10] P. Arpaia, F. Cennamo, P. Daponte, Metrological characterisation of analog-to-digital converters – a state of the art, in: Proc. of 3rd IEE Int. Conf. on Advanced A/D and D/A Conversion Techniques and their Applications, 1999, pp. 134–144. [11] D. Dallet, Contribution a la caractérisation des convertisseurs analogiques–numériques: évaluation des méthodes et mise en oeuvre de nouveaux procédés, Ph.D. thesis, Université de Bordeaux 1, 1995. [12] N.J.E. Dennis, Algorithms for bilevel optimisation, Tech. Rep. TR94474, Center for research on parallel computation, Houston, TX, USA, 1994. URL. [13] P. Arpaia, P. Daponte, Y.D. Sergeyev, A-priori statistical parameter design of adcs by a global optimisation algorithm with local tuning, in: Proc. of 4th International Workshop on ADC Modeling and Testing, 1999, pp. 236–244.