Next Article in Journal
Imaging Techniques for 3-Dimensional, Non-Line-of-Sight Structures Fabricated in Silicon Carbide
Previous Article in Journal
The Importance of Measurement Uncertainty Arising from the Sampling Process in Conformity Assessment: The Case of Fuel Quality
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Low-Cost Direct Digital Synthesis-Based On-Chip Waveform Generation for Analog/Mixed Signal BIST Applications †

Department of Electrical and Computer Engineering, Iowa State University, Ames, IA 50011, USA
*
Authors to whom correspondence should be addressed.
This paper is an extended version of our conference paper published in the 2023 IEEE 66th International Midwest Symposium on Circuits and Systems (MWSCAS), Tempe, AZ, USA, 6–9 August 2023. Available online: https://ieeexplore.ieee.org/document/10406079 (accessed on 15 October 2024).
Metrology 2025, 5(1), 8; https://doi.org/10.3390/metrology5010008 (registering DOI)
Submission received: 20 September 2024 / Revised: 12 January 2025 / Accepted: 15 January 2025 / Published: 2 February 2025

Abstract

:
Waveform generation as part of on-chip built-in self-test (BIST) circuitry often necessitates sufficient linearity without expensive hardware overhead. Achieving high linearity is critical for accurate signal generation, especially in applications requiring high precision, such as biomedical and instrumentation applications. Currently, achieving the high linearity and precision required in signal generators often relies on costly hardware such as automated test equipment (ATE). This paper presents a DAC-based arbitrary waveform generator (AWG). We use a low-cost DAC and a fully digital on-chip testing and calibration approach to nullify the effect of the DAC’s non-linearity on the generated waveform. The ultra-low cost and high linearity benefit of the proposed waveform generator makes it highly suitable for integration into resource-constrained systems. The proposed approach is validated using simulation results of the small-area DAC designed in TSMC 0.18 μm technology and the testing and calibration algorithms implemented in MATLAB. The DAC, designed with a matching accuracy at only the 5-bit level, is able to generate a signal with an ENOB of 12 bits alongside an SFDR and THD surpassing 100 dB. This high level of signal purity is consistently maintained across 100 Monte Carlo simulations, demonstrating the robustness of the architecture against PVT variations as well as random mismatches.

1. Introduction

Post-manufacturing testing and characterization of analog/mixed signal (AMS) circuits have become increasingly important in the electronic industry recently due to their wide range of applications [1]. Recently, in safety-critical applications like automotive and medical applications, where in-field failures can be catastrophic, there has been a notable rise in the utilization of Integrated Circuits (ICs). One common way to improve the reliability of AMS circuits is through parametric testing. However, AMS circuit testing is time-consuming and expensive. Also, as AMS circuits migrate to newer technologies, their performance improves significantly; hence, testing becomes more and more expensive. In fact, test costs dominate the total cost of SoCs [2,3].
The standard post-production test involves high-precision instruments, such as automatic test equipment [4], which can be quite expensive. Designing or implementing a high-purity test stimulus has proven to be either complex or cost-prohibitive. While expensive, these signal generators might not fulfill the strict criteria as the tested device’s performance improves. For instance, an 18-bit ADC test necessitates a minimum input signal purity of 130 dB [5,6]. Moreover, as the resolution increases further, equipment capable of generating signals with such high purity may not exist. Furthermore, instruments meant for testing current devices might not be able to accurately test future devices considering the rapid advancement in AMS circuits’ performance. Thus, there is a need for alternative, cost-effective solutions to generate high-quality test stimuli for serving high-precision testing applications.
Over the years, signal generation using low-cost approaches has been proposed. In [7], a high-purity sinusoidal waveform was generated using an Arbitrary Waveform Generator (AWG), which involved the elimination of undesired harmonics and spurious signals. Harmonic cancellation strategies have been recently presented as a promising solution for the efficient on-chip implementation of accurate sinusoidal signal generators [8,9,10,11]. Classical harmonic cancellation techniques combine a set of time-shifted and scaled versions of a periodic signal so that some of the harmonic components of the resulting signal are canceled. Harmonic cancellation can be used to cancel harmonic components close to the fundamental frequency of the desired signal. Reference [8] proposes a low-cost method for on-chip generation of analog waveforms using oscillators. In this approach, the outputs from a phase shift oscillator (PSO) undergo weighting and summation to generate multiple outputs characterized by minimal distortion and accurate phase alignment, which enables the cancellation of several harmonic distortion components across a broad frequency spectrum. This approach has been verified experimentally using low-cost discrete components. However, it requires a high number of oscillators connected in series. The loading effects of one stage on the other and PVT variations may lead to distortions in the generated waveform. Furthermore, this approach is not hardware-synthesizable.
Using duty cycle and phase shift techniques, the authors in [9] propose a method that cancels any number of harmonics in a signal. However, the area and complexity of the circuit increases when more harmonics are required to be canceled. In [10,11], the authors generate multiple waveforms with opposite phases, sum them to cancel the harmonics, and use them to generate a low-distortion signal. However, these approaches require accurate external instruments and are unsuitable for on-chip implementation due to the complexity. Like [11], reference [12] uses a summation of time-shifted square waves to cancel out the low-order harmonics and employs a high passive filter to cancel higher-order harmonics. Using passive filters reduces the cost compared to [11] but is still limited by timing mismatches.
In contrast to the harmonic cancellation techniques, much research has sought to generate high-purity signals using the direct digital waveform synthesis (DDWS) method. Direct Digital Waveform Synthesis/Direct Digital Synthesis (DDWS/DDS) has been long considered a leading solution for generating highly precise variable frequency signals with exceptionally low distortion [13]. The benefits of DDS include an ultra-low frequency resolution and the ability to independently control the phase and frequency of a synthesized signal [14,15]. DDS is based on a phase accumulator, which generates a series of digital codes fed into a DAC to generate an analog output waveform, which is commonly sinusoidal [16]. Reference [13] provides a detailed comparative study of two main DDS architectures; the read-only memory (ROM)-based approach, and the coordinate rotation (CORDIC)-based digital computer, which eliminates the need for a large memory or ROM. The comparison provides an avenue for DDS architecture selection. Although the ROM approach requires a large look-up table, which constitutes area, it has fewer computations than the CORDIC approach.
Reference [17] combines the idea of harmonic cancellation and DDS. The harmonic cancellation technique is based on the analog summation of multiple phase-shifted periodic signals with a single bit sigma–delta modulation technique to exploit its inherently linear DAC element. Simulation results have verified this method, but the approach is too complex and not hardware synthesizable. Using a noise-shaping phase-switching technique on a sigma–delta-modulated DAC, the authors in [18] realized a low-noise, high-linearity sinusoidal signal generator. The method combines a fifth-order cascade of resonators with distributed feedback (CRFB)-type DSM and the two-way time-interleaving phase-switching harmonic distortion (HD) cancellation technique without additional cost. However, this technique is prone to loading effects associated with the cascade of resonators. Like [17], this method is complex and not hardware synthesizable.
In this work, we propose a data converter testing-based hardware-synthesizable arbitrary waveform generator. In our approach, we eliminate the cost associated with the setup by using a low-cost DAC and ADC alongside a low-cost testing approach. We use a fully digital on-chip calibration method, which does not require a good measurement device, drastically minimizing costs. The rest of the paper is organized as follows. Section 2 presents background on DAC testing and the calibration approach for generating high-purity waveforms. Section 3 discusses the proposed architecture together with its sub-blocks. Section 4 discusses the implementation of the proposed generator and validates it with simulation results. Section 5 provides relevant discussion and Section 6 concludes the paper.

2. Data Converter Testing-Based Approach to Waveform Generation

In this section, we discuss some background on waveform generation based on data converter testing paradigms. Recently, nearly all commercial waveform generators utilize data converters. The complexity of today’s AMS circuits necessitates that these converters within waveform generators possess high resolution and exhibit minimal quantization and linearity errors. According to IEEE standards [19], the resolution of data converters used in waveform generators must have at least 20-bit linearity to be able to generate test stimuli for high-performance circuits like those in high-resolution analog-to-digital converters (ADCs). Specifically, to generate a test signal for an n-bit ADC, the DAC used to generate signals to the ADC must have at least n + 3 bits of performance. Designing a 20-bit linear DAC can be very challenging and cost-prohibitive. Therefore, many ways of generating signals with low-cost approaches have been proposed.
One of the first methods to generate signals using a DAC testing-based approach was proposed in [20]. Using two DACs, a main DAC and a calibration (Cal) DAC, together with an ADC and filters, the authors were able to generate an ultra-pure sine wave. A pure digital sine wave is fed to both DACs, and their outputs are summed together and filtered. The filtered signal is sent to the ADC to generate the ADC output codes. An algorithm that cancels the linearity of the main DAC using the Cal DAC is utilized to generate an ultra-pure wave. This method works well; however, it requires two DACs and a good digital sine wave input. In [20], only the linearity of the DAC is obtained. Without extra area overhead, the authors in [21] accurately capture linearity information from the ADC as well.
Using the estimated linearity of the DAC, pre-distortion input codes are generated and fed to the DAC input to generate a high-purity sine/ramp. The robustness of this approach is shown by validating the methods using various ADC and DAC architectures. According to the authors, the DAC and ADC are non-linear and are matched at the n 2 level. This method still requires a substantial amount of area to achieve this performance. Our proposed method uses an ultra-low-cost DAC, and an ADC matched at the n 9 -bit level, alongside a novel pre-distortion approach to generate accurate signals.
Recently, the researchers in [22] proposed a low-cost, high-accuracy stimulus generator. This generator uses a low-cost DAC, which requires minimal design effort. Using the CORDIC-based DDS approach described in [13], the authors generate a pure differential signal. This generated signal is sent to a DAC, which is then sampled by a SAR ADC, and a testing algorithm is used to estimate the linearity of the DAC. Using the DAC linearity, pre-distortion codes are sent to the DAC to generate a more accurate sine or ramp signal. These authors were the first to relax the stringent matching of the DAC drastically by using a sub-radix DAC alongside on-chip calibration to generate accurate signals. This approach uses the conventional sub-radix DAC architecture, but in the proposed method, we use a new architecture that further reduces the matching requirement of the DAC, leading to further area and cost savings and an even purer signal.

3. Proposed Signal Generator

Figure 1 shows the overall architecture of the arbitrary waveform generator. A desired analog waveform of any form is converted to the digital domain and stored in memory. The signal stored in memory contains the signal amplitude values for all waveform phases and is used to recreate the signal.
Once the M-point signal, consisting of J periods, is stored in memory, it can be synthesized directly without requiring phase-locked loops. Different frequencies of the waveform can then be produced by changing the rate at which the phase values are processed, and using techniques like scale, add, and multiply, various waveforms can be generated. The stored waveform in memory is added to the pre-distortion calibrated codes in the digital domain and the result is sent as digital input codes to the DAC to obtain the desired waveform at high purity. The pre-distortion codes are obtained using an algorithm which uses the results from the simultaneous testing of the DAC and ADC (details will be provided later). It is imperative that for every sample, the value is held by the zero-order hold circuit at the output of the DAC. The next sub-sections provide a detailed description of the proposed generator.

3.1. R-2R DAC with Redundancy

At the heart of the waveform generator in Figure 1 is the low-cost N-bit DAC. Since the DAC is the main stimulus source to generate the signal, its performance is critical. However, the matching requirement required to achieve good performance is the major contributor to the cost required to implement a DAC. To achieve good matching, careful layout strategies are adopted to cancel gradient errors, but to reduce the local random mismatches, the caveat is to push more area into the DAC, which increases the cost. The normalized standard deviation of resistor R can be estimated as
σ Δ R R = A ρ A
where A ρ is the pelgrom parameter and A is the area of the resistor [23,24]. It is evident from (1) that a reduction in resistor mismatch requires an exponential increase in the area. Conventionally, the R-2R DAC has binary weighted bits, in the ideal case [25,26]. However, mismatches and other errors result in deviation from the ideal weights. In our approach, we relax the matching requirement by introducing redundancy, making the DAC sub-radix, and leading to a drastic reduction in cost. An extra bit, the redundant bit, is added to introduce redundancy and through a simple on-chip calibration technique, we achieve very good linearity performance. Figure 2 shows the proposed R-2R DAC with redundancy. The DAC is segmented into MSB and LSB by the redundant bit, b r , which is formed by the T − network of resistors R x , R y , and R z . These resistors are sized so that the weight of b r can cover the worst-case mismatch of the MSB bit. Since the MSB bit of the R-2R ladder has the largest weight, b r ’s weight will be able to cover lower MSB bits’ weight as well.
Although the main constraint for sizing b r is to obtain a weight high enough to cover the worst-case mismatch of the MSB segment, another constraint is to ensure that the first MSB bit has a lower weight than the sum of the LSB bits’ weight. With the redundant bit, the LSB bits are still binary weighted and the MSB bits are sub-radix. This helps introduce calibratable negative jumps in the transfer characteristic of the DAC, which helps avoid the possibility of large uncalibratable positive jumps.
It has been shown in [27] that the weight of the redundant bit W r is
W r = 1 + R x R x + R z + 1 × 2 n p V REF
where R x and R z are ratios of the unit resistor R and n p is the position of the redundant bit.
The weight of the redundant bit is independent of R y . However, R y plays a critical role in determining both the weight and the sub-radix characteristics of the MSB bits. While it may seem ideal to choose R y to maximize the sub-radix behavior of the MSB DAC, there is a trade-off between achieving a large sub-radix nature and maintaining monotonicity. The values of R x , R y , and R z do not need to be highly accurate, as they just define the weight of the redundant bit and the sub-radix nature of the MSBs. There are numerous possible choices for R x and R z , with the optimal choice being the one that minimizes area, as these resistors must be implemented through series and parallel combinations of the unit resistor, R. The incorporation of redundancy makes the MSB DAC sub-radix, enhancing its robustness to large positive jumps.

3.2. ADC Model

Although the primary converter for the signal generator in Figure 1 is the DAC, the test setup requires an ADC. We assume there is an ADC on-chip to achieve this purpose, considering the widespread use of data converters on today’s typical system on chips (SoCs). We will show later that the ADC need not necessarily be linear. Figure 3 shows the setup for the simultaneous testing of the DAC and ADC. The segmented model helps reduce the number of ADC codes to be tested, drastically minimizing test costs. The segmented model assumes that there is no superposition error in the ADC. More details on the segmented model will be provided in the next subsection. It should therefore be emphasized that non-segmented architectures like flash ADCs will not work with the segmented model. Therefore, in this work, we use a SAR ADC model to implement the test scheme.

3.3. ADC DAC Simultaneous Test Scheme

The setup used to implement the testing scheme is shown in Figure 3. The resolution of the DAC is n D A C with an extra bit b r for redundancy and the resolution of the ADC is n A D C . For a user input code to the DAC b i , there is a corresponding DAC output voltage V o ( b i ). Similarly, for an ADC transition voltage T c i , there is also a corresponding transition output code from c i to c i + 1 . It is worth noting that the ADC will have 2 n ADC 1 such transition voltages and the DAC will have 2 n DAC output voltages.
For an input code b i to the DAC, the corresponding output voltage V o ( b i ) can be expressed as
V o ( b i ) = b i + INL DAC ( b i ) V o ( 2 n DAC 1 ) V o ( 0 ) 2 n DAC 1 + V o ( 0 )
where INL DAC ( b i ) is the DAC INL at code b i .
The output voltage of the DAC is sampled by the ADC, which correspondingly produces a code c i . The expression for the sampled voltage V i at code c i is shown in Equation (4).
V i ( c i ) = T c i + e i
where e i is the ADC quantization error at code i.
A detailed expression for T C i at code 1 is shown in Equation (5).
T c 1 = c 1 + INL ADC ( c 1 ) 1 T 2 n ADC 1 T 1 2 n ADC 2
Combining Equations (4) and (5) yields Equation (6) shown below.
V 1 ( c 1 ) = c 1 + INL ADC ( c 1 ) 1 T 2 n ADC 1 T 1 2 n ADC 2 + e 1
where INL ADC ( c 1 ) is the ADC INL at code 1.
From Figure 3, the output voltage of the DAC is fed to the ADC input. Using this relationship, we can combine Equations (3) and (6) to obtain a simplified Equation (7) for a DAC input code 2 ( b 2 ).
INL DAC ( b 2 ) V o ( 2 n DAC 1 ) V o ( 0 ) 2 n DAC 1 2 n ADC 2 T 2 n ADC 1 T 1 + ( T 1 V o ( 0 ) ) INL ADC ( c 1 ) 2 n ADC 2 T 2 n ADC 1 T 1 + e 1 = ( c 2 1 ) b 2 V o ( 2 n DAC 1 ) V o ( 0 ) 2 n DAC 1 2 n ADC 2 T 2 n ADC 1 T 1
Equation (7) shows the ADC and DAC INL relationship for the case where the redundant bit in the DAC is set to low. A similar equation, shown in Equation (8), can be obtained when the redundant bit b r is set to high.
INL DAC ( b 2 ) V o ( 2 n DAC 1 ) V o ( 0 ) 2 n DAC 1 2 n ADC 2 T 2 n ADC 1 T 1 + ( T 1 V o ( 0 ) ) INL ADC ( c 1 ) 2 n ADC 2 T 2 n ADC 1 T 1 + e 1 + W r 2 n ADC 2 T 2 N ADC 1 T 1 = ( c 2 1 ) b 2 V o ( 2 n DAC 1 ) V o ( 0 ) 2 n DAC 1 2 n ADC 2 T 2 n ADC 1 T 1
where W r is the weight of the redundant bit b r .
Using Equations (7) and (8), we can estimate the INL of both the DAC and ADC. It is worth noting that solving these equations for high-resolution data converters can be very computationally intensive because of the large dataset. To alleviate this issue, we used the segmented model described in [28]. In segmented architectures, there is no correlation between the INLs at different codes. For an n DAC bit DAC, assuming we have a segmentation n MSB , n ISB , and n LSB representing the “most significant bits”, “intermediate significant bits” and “least significant bits” respectively for each of the MSB, ISB, and LSB segments, there are 2 n MSB , 2 n ISB , and 2 n LSB errors associated with them. If these errors associated with the MSB, ISB, and LSB of the DAC are represented by e M , DAC , e I , DAC , and e L , DAC , respectively, then the INL at DAC code b i is
INL DAC ( b i ) = e M , DAC ( b i , MSB ) + e I , DAC ( b i , ISB ) + e L , DAC ( b i , LSB )
where b i , MSB , b i , ISB , and b i , LSB are the codes associated with the MSB, ISB, and LSB segments for a DAC code b i .
Similarly, for a code c i associated with the ADC, if the corresponding errors associated with the MSB, ISB, and LSB are denoted by e M , ADC , e I , ADC , and e L , ADC , respectively, then the INL at ADC code c i is shown in Equation (8).
INL ADC ( c i ) = e M , ADC ( c i , MSB ) + e I , ADC ( c i , ISB ) + e L , ADC ( c i , LSB )
Using the segmented models helps reduce the size of the dataset. The number of parameters we have to estimate will reduce from 2 n DAC to 2 n M , DAC + 2 n I , DAC + 2 n L , DAC , where n DAC = n M , DAC + n I , DAC + n L , DAC . A similar reduction is also seen for the ADC.
It is worth noting that the redundant bit b r segments the DAC into an MSB and LSB DAC, and the segmented model is used to segment the errors associated with the full DAC transfer characteristic. It must also be emphasized that if the INL is computed based on the end-point fit line definition, then INL ADC ( c 1 ) = 0 .
Equations (9) and (10) suggest that, once the errors associated with the DAC and ADC are accurately estimated, the INL associated with them can also be estimated accurately. Combining Equations (7)–(10) in matrix notation, we obtain Equation (11) below:
A e = b
where A is a matrix of size shown in Equation (12).
M × 2 n M , DAC + 2 n I , DAC + 2 n L , DAC + 2 n M , ADC + 2 n I , ADC + 2 n L , ADC + 1 .
The additional one in (12) represents the relative offset, V os , between the DAC and ADC. Compared to the scheme in [28], we need not estimate the shift voltage to the DAC as it is already known as the weight of the redundant bit, W r .
b is a column vector formed by the equations on the right-hand side of Equations (7) and (8).
Since the size of M ( 2 n DAC + 2 n ADC ) is far greater than the expression in (13), we can use least squares to estimate the unknown vector e, which contains e M , DAC , e I , DAC , e L , DAC , e M , ADC , e I , ADC , e L , ADC , and V os .
2 n M , DAC + 2 n I , DAC + 2 n L , DAC + 2 n M , ADC + 2 n I , ADC + 2 n L , ADC + 1
The estimate of e is shown in Equation (14).
e ˜ = A T A 1 A T b
With the estimate e ˜ , we can construct the DAC and ADC full code non-linearity with Equations (9) and (10), respectively.

3.4. DAC Calibration via Pre-Distortion

Calibration aims to minimize the error associated with the DAC to ensure that a high-purity signal is obtained. In general, we want to minimize the difference between the calculated output levels of the DAC and the desired analog value. Ideally, in the search method where all the output levels of the DAC are stored, and then when a particular voltage is desired, a search algorithm will look to find the desired voltage level and send this code to the DAC. This method achieves the best minimization; however, it causes a large hardware overhead, such as the area for storing all output voltages in memory. Also, the design effort required to implement this is high.
We propose a simple method where the estimated DAC INL, INL DAC , is added to the user input code and is rounded to obtain the pre-distortion codes to the DAC. For a user input code, b ( i , user ) , Equation (15) shows the corresponding pre-distortion code, b ( i , pre ) .
b ( i , pre ) ( n ) = round b ( i , user ) + INL DAC ( b ( i , user ) )
By adding the INL to the initially desired user input code, we can move the code very close to the optimal code, which would be found using the search calibration method. The pre-distortion algorithm would be much closer to the search method if only the INL is the same across this small range; this is, however, not always true. This method shows very good performance but not as good as the search method. Although there will be slightly more distortion and noise with the pre-distortion method, it is not more cost effective and does not require large memory. Another benefit of the method is that, if the number of data points for the FFT data is less than the number of codes of the DAC, then we only need to calculate INLs for the number of data points relaxing the complexity and resulting in extra cost savings. It is worth noting that, in our scheme, these user input codes come from the desired digital waveform. This implies that we can generate not only sine waves but other waveforms at high purity.

4. Implementation and Results

In this section, we validate the proposed signal generator using simulation results of the signal generator implemented in the TSMC 0.18 μm process. All the blocks shown in the DAC-based arbitrary waveform generator were designed using real silicon. A 14-bit version of the proposed DAC was implemented with 6 MSBs and 8 LSBs, and the worst-case mismatch was analyzed using Monte Carlo simulations for a 14-bit DAC with resistors matched at the 5-bit level. The worst-case mismatch was found to be about 200 LSBs. To account for this, a safety margin of 6 σ was added, and the redundant weight W r was sized to 240 LSBs using Equation (2). The resistor values were determined as R x = 0.3 and R z = 1.5 , with R y also set to R x = 0.3 for ease of realization. The layout of the DAC is shown in Figure 4, with a total layout area of 0.016 mm2. Figure 5 shows the DAC in the pad frame. There are other circuits in the frame including digital circuits and peripherals with the DAC. However, the red box shows the implemented DAC.
A 14-bit SAR ADC with MSB−ISB−LSB segmentation of 4 5 5 was modeled in MATLAB v23.2 R2023b and used for the ADC DAC test scheme, which was also implemented in MATLAB v23.2 R2023b. Although any desired waveform with M s points and J periods can be generated, a sine wave was generated and used to validate the performance of the proposed signal generator.
Simulations were run by porting the DAC data to MATLAB v23.2 R2023b from Cadence SPECTRE and the co-test algorithm was used to estimate the DAC INL. Once the DAC INL was estimated, it was used to generate pre-distortion codes, which were stored. These codes were then added to the digital representative of the desired waveform and sent to the DAC input to generate the desired analog at high purity. A low-pass filter was placed at the DAC output to further improve the signal purity.
Figure 6 shows the simulation results of the DAC and ADC linearity estimation. From Figure 6a, the sub-radix nature of the DAC can be seen from the shape of the INL plot. It shows the true and estimated DAC INL. The true INL is obtained using the ideal endpoint fitline approach, where a straight line connects the ideal first and last output codes of the DAC. This method captures the deviations of the actual DAC transfer function from the ideal linear behavior. The estimated INL is from the method described in the previous section. Figure 6b shows the DAC estimation error, which is calculated as the difference between the true and estimated DAC INL. Figure 6c shows the true and estimated ADC INL. The true ADC INL is obtained using the conventional histogram test approach, which involves analyzing the code density of a ramp or sine wave input to identify deviations from the ideal transfer function. Figure 6d shows the ADC INL estimation error. Estimation errors of less than 0.25 LSBs for both ADC and DAC show that the proposed test scheme accurately estimates the INL.
The DAC is calibrated using the two methods described in the previous section, and the results are shown in Figure 7. From Figure 7a, we see an INL within ± 0.6 LSBs, which shows excellent linearity performance of the DAC. We see that the pre-distortion calibration approach is very close to the optimal search approach, although it is more memory-efficient and cost-effective. To further validate the pre-distortion calibration, we show the spectrum of a sine wave generated using the raw DAC output and the pre-distortion DAC output in Figure 7b. From Figure 7b, we see that the distortions of the low-cost DAC before pre-distortion are worse than after pre-distortion, which is expected considering the fact that we are using an otherwise bad DAC.
There are two main requirements for the generated sine wave. First, to avoid clipping and obtain high signal power, the peak-to-peak range of the generated waveform was set to be only slightly less than the DAC output range, and coherent sampling was ensured. The total data record length, M S was set to be 2 10 , and J, the number of sine periods, was set based on Equation (16), which is a well-known equation that must be met to ensure coherency.
J = M S × f sig f samp
where f s i g is the signal frequency, and f s a m p is the sampling frequency. Figure 8a shows the FFT of the generated sine wave for a single iteration. We see that the signal has a signal-to-noise ratio (SNR) of 77.92 dB and a signal-to-noise + distortion ratio (SINAD) of 77.90 dB, showing that there is little to no distortion in the signal. The effective number of bits (ENOB) from the SINAD point of view is 12.65 bits. It must be emphasized that although the resolution of the DAC is 14-bit, the DAC elements are poorly matched at only the 5-bit level, leading to area and cost savings. The total harmonic distortion (THD) and the spurious free dynamic range (SFDR) are 108.03 dB and 111.66 dB, respectively.
To demonstrate the robustness of the proposed signal generator, 100 sine waves were generated and their signal purity was thoroughly evaluated. Figure 8b,c show SNR and SINAD for the 100 samples. The worst case for both SNR and SINAD is greater than 77.86 dB. Also, the worst case THD and SFDR are less than 102 dB and 106 dB, respectively, as shown in Figure 8d,e. It is evident from Figure 8 that the variations affect the THD and SFDR more than the SNR and SINAD. This is because the THD and SFDR have a strong dependence on the matching of the DAC. The SNR is more dependent on the signal power, which is not affected by matching. Figure 8f shows that across all the 100 iterations, we are able to achieve a signal with an ENOB of 12.6 bits from a DAC matched at only the 5-bit level.

5. Discussions

The results from the previous section confirm the effectiveness of the proposed signal generator. The accuracy of the DAC and ADC linearity estimations demonstrates the performance of the proposed scheme. To achieve a similar performance using the standards set by IEEE [19], we would require DACs and ADCs with more than 20-bit resolution, making our approach very cost effective. The two calibration methods, pre-distortion and optimal search, both achieve excellent DAC and ADC linearity performance within ± 0.6 LSBs. Notably, the pre-distortion method is shown to be as effective as the optimal search while offering significant memory and cost efficiency. The proposed DAC achieves 14-bit linearity while using only 0.013 % of the area that would be used to achieve the same linearity using the conventional R−2R DAC. The design has been summarized in the previous sections; however, readers are suggested to refer to [27] for a more rigorous analysis and design of the DAC.
Furthermore, the spectral analysis validates the improved signal purity following the pre-distortion calibration, highlighting the technique’s robustness while using a poorly matched DAC. The results from generated sine wave show a high SNR and SINAD with minimal distortion, underscoring the signal generator’s capability to achieve high performance. The robustness of the proposed design is further evidenced by the consistency of the SNR, SINAD, and THD across 100 iterations, with only minor variation in THD and SFDR, which are more sensitive to matching. Achieving an ENOB of 12.6 bits from a DAC matched at the 5-bit level showcases the efficiency of the design in reducing area and cost without compromising performance.
Table 1 compares the proposed signal generator with state-of-the-art methods, showcasing significant improvements in area and cost.
By reducing the matching requirements from n to n 9 , a drastic improvement is achieved, as each step from n to n 1 results in a fourfold area reduction. This cumulatively decreases the area by a factor of 262,144 ( 4 9 ), leading to substantial savings. Additionally, the method lowers test costs by enabling testing with converters of the same resolution and requiring only a single sample, streamlining the process and enhancing overall efficiency. Similar to the method in [22], our approach incorporates built-in self-test capabilities while maintaining strong performance. However, our method achieves a signal with much higher purity, despite utilizing less area and being implemented in a less advanced process technology node.

6. Conclusions

This paper presented a novel approach for generating low-distortion waveforms without the need for high-precision instrumentation. By leveraging a low-cost DAC and applying pre-distortion based on the estimated non-linearity of the DAC, we canceled out the inherent non-linearity of the DAC, achieving the desired high-purity waveform. The method’s versatility allows for accurate generation of various waveforms, making it highly suitable for a wide range of signal generation applications. Comprehensive simulations validate the effectiveness of the approach, demonstrating excellent performance with relaxed DAC matching, leading to significant area and cost reductions. The high-SNR, low-distortion signals enable reliable and efficient AMS circuit testing. The calibration process in our approach relies on codes stored in memory, but the associated cost is negligible, particularly as we move to nanometer processes. Additionally, modern SoC designs already feature integration of digital circuitry, which can be leveraged for this application, further reducing implementation costs. Even if the cost of memory is considered, it remains significantly lower than the expense associated with traditional IEEE methods, which require measurement devices with 3–4 times the resolution of the device under test. Future work includes the tape-out and fabrication of a test chip to validate the performance of the proposed scheme. Furthermore, this approach can be incorporated into BIST frameworks to enable precise and accurate AMS testing.

Author Contributions

Conceptualization, E.N.D. and D.C.; methodology, E.N.D. and K.B.; software, E.N.D.; validation, I.B.; formal analysis, E.N.D. and E.O.-O.; investigation, E.O.-O.; resources, D.C.; data curation, I.B., K.B. and S.K.; writing—original draft preparation, E.N.D.; writing—review and editing, K.B., I.B. and E.N.D.; visualization, E.N.D. and S.K.; supervision, D.C.; project administration, D.C.; funding acquisition, D.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Semiconductor Research Corporation (SRC) under task AMS-CSD 3160.012.

Data Availability Statement

Most of the relevant information is provided in the article. Please contact the corresponding author for further enquiries or information including simulation data.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Burns, M.; Roberts, G.W. An Introduction to Mixed-Signal IC Test and Measurement; Oxford University Press: Oxford, UK, 2000. [Google Scholar]
  2. Pavlidis, A.; Louërat, M.-M.; Faehn, E.; Kumar, A.; Stratigopoulos, H.-G. SymBIST: Symmetry-Based Analog and Mixed-Signal Built-In Self-Test for Functional Safety. IEEE Trans. Circuits Syst. I Regul. Pap. 2021, 68, 2580–2593. [Google Scholar] [CrossRef]
  3. Mishra, P.; Farahmandi, F. Post-Silicon Validation and Debug; Springer: Berlin/Heidelberg, Germany, 2019; Volume 301. [Google Scholar]
  4. Brindley, K. Automatic Test Equipment; Elsevier: Amsterdam, The Netherlands, 2013. [Google Scholar]
  5. Cordesses, R.R.; Murmann, B. Analog-to-Digital Converter Testing. In Maxim Integrated Application Note 6803; Analog Devices: Wilmington, MA, USA, 2014; Available online: https://www.maximintegrated.com (accessed on 15 October 2024).
  6. IEEE Std 1241-2010; IEEE Standard for Terminology and Test Methods for Analog-to-Digital Converters (Revision of IEEE Std 1241-2000). IEEE: Piscataway, NJ, USA, 2011; pp. 1–139. [CrossRef]
  7. Maeda, A. A Method to Generate a Very Low Distortion, High Frequency Sine Waveform Using an AWG. In Proceedings of the 2008 IEEE International Test Conference, Santa Clara, CA, USA, 28–30 October 2008; pp. 1–8. [Google Scholar] [CrossRef]
  8. Vasan, B.K.; Sudani, S.K.; Chen, D.J.; Geiger, R.L. Low-Distortion Sine Wave Generation Using a Novel Harmonic Cancellation Technique. IEEE Trans. Circuits Syst. I Regul. Pap. 2013, 60, 1122–1134. [Google Scholar] [CrossRef]
  9. Malloug, H.; Barragan, M.J.; Mir, S. Practical harmonic cancellation techniques for the on-chip implementation of sinusoidal signal generators for mixed-signal BIST applications. J. Electron. Test. 2018, 34, 263–279. [Google Scholar] [CrossRef]
  10. Sato, K.; Nakatani, T.; Ishida, T.; Okamoto, T.; Ichikawa, T.; Katayama, S.; Iimori, D.; Takagi, M.; Zhao, Y.; Yamamoto, S.; et al. Low Distortion Sinusoidal Signal Generator with Harmonics Cancellation Using Two Types of Digital Pre-distortion. In Proceedings of the 2023 IEEE International Test Conference (ITC), Anaheim, CA, USA, 7–15 October 2023; pp. 47–55. [Google Scholar] [CrossRef]
  11. Katayama, S.; Nakatani, T.; Iimori, D.; Takagi, M.; Zhao, Y.; Kuwana, A.; Sato, K.; Ishida, T.; Okamoto, T.; Ichikawa, T.; et al. Low Distortion Sine Wave Generator With Simple Harmonics Cancellation Circuit and Filter for Analog Device Testing. IEICE Electron. Express 2023, 20, 20220470. [Google Scholar] [CrossRef]
  12. Elsayed, M.M.; Sanchez-Sinencio, E. A Low THD, Low Power, High Output-Swing Time-Mode-Based Tunable Oscillator Via Digital Harmonic-Cancellation Technique. IEEE J. Solid-State Circuits 2010, 45, 1061–1071. [Google Scholar] [CrossRef]
  13. Suryavanshi, R.; Sridevi, S.; Amrutur, B. A comparative study of direct digital frequency synthesizer architectures in 180 nm CMOS. In Proceedings of the 2017 International Conference on Microelectronic Devices, Circuits and Systems (ICMDCS), Vellore, India, 10–12 August 2017; pp. 1–5. [Google Scholar] [CrossRef]
  14. Ryabov, I.V. Pryamoy Tsifrovoy Sintez Signalov Dlya Zadach Radiolokatsii, Navigatsi i Svyazi [Direct Digital Synthesis of Signals for Tasks of Radiolocation, Navigation and Communication]; VSUT: Yoshkar-Ola, Russia, 2016; 15p. [Google Scholar]
  15. Bochkarev, D.N.; Ryabov, I.V.; Strelnikov, I.V.; Degtyarev, N.V. Direct Digital Synthesizers of Frequency and Phase-Modulated Signals. In Proceedings of the 2019 Systems of Signal Synchronization, Generating and Processing in Telecommunications (SYNCHROINFO), Yaroslavl, Russia, 1–3 July 2019; pp. 1–4. [Google Scholar] [CrossRef]
  16. Strelnikov, I.V.; Ryabov, I.V.; Klyuzhev, E.S. Direct Digital Synthesizer of Phase-Manipulated Signals, Based on the Direct Digital Synthesis Method. In Proceedings of the 2020 Systems of Signal Synchronization, Generating and Processing in Telecommunications (SYNCHROINFO), Svetlogorsk, Russia, 1–3 July 2020; pp. 1–3. [Google Scholar] [CrossRef]
  17. Irfansyah, A. Sine wave synthesis with harmonic-cancellation and single-bit sigma-delta modulation. In Proceedings of the International Symposium on Electronics Smart Devices (ISESD), Yogyakarta, Indonesia, 17–19 October 2017; pp. 150–153. [Google Scholar]
  18. Huang, J.; Zhou, T.; Liu, H.; Qi, L.; Yan, L.; Li, Y. Low Noise, High Linearity Sine Wave Generation Using Noise-Shaping Phase-Switching Technique. IEEE Trans. Instrum. Meas. 2021, 71, 3501407. [Google Scholar] [CrossRef]
  19. IEEE Std 1057-2017; IEEE Standard for Digitizing Waveform Recorders (Revision of IEEE Std 1057-2007). IEEE: Piscataway, NJ, USA, 2018; p. 1. [CrossRef]
  20. Zhuang, Y.; Unnithan, A.; Joseph, A.; Sudani, S.; Magstadt, B.; Chen, D. Low cost ultra-pure sine wave generation with self calibration. In Proceedings of the 2016 IEEE International Test Conference (ITC), Phoenix, AZ, USA, 15–17 November 2016; pp. 1–9. [Google Scholar] [CrossRef]
  21. Zhuang, Y.; Magstadt, B.; Chen, T.; Chen, D. High-Purity Sine Wave Generation Using Nonlinear DAC With Predistortion Based on Low-Cost Accurate DAC–ADC Co-Testing. IEEE Trans. Instrum. Meas. 2018, 67, 279–287. [Google Scholar] [CrossRef]
  22. Bhatheja, K.; Chaganti, S.; Chen, D.; Jin, X.R.; Dao, C.C.; Ren, J.; Kumar, A.; Correa, D.; Lehmann, M.; Rodriguez, T.; et al. Low Cost High Accuracy Stimulus Generator for On-chip Spectral Testing. In Proceedings of the 2022 IEEE International Test Conference (ITC), Anaheim, CA, USA, 23–30 September 2022; pp. 514–518. [Google Scholar] [CrossRef]
  23. Pelgrom, M.J.M.; Duinmaijer, A.C.J.; Welbers, A.P.G. Matching properties of MOS transistors. IEEE J. Solid-State Circuits 1989, 24, 1433–1439. [Google Scholar] [CrossRef]
  24. Pelgrom, M. Analog-to-Digital Conversion; Springer International Publishing: Cham, Switzerland, 2017. [Google Scholar]
  25. Kennedy, M.P. On the robustness of R-2R ladder DACs. IEEE Trans. Circuits Syst. I Fundam. Theory Appl. 2000, 47, 109–116. [Google Scholar] [CrossRef]
  26. Bharath, T.; Narula, R.; Tadeparthy, P. Generalized Resistive DAC Analysis Through Unitized T-Network Element. In Proceedings of the 2022 IEEE International Symposium on Circuits and Systems (ISCAS), Austin, TX, USA, 27 May–1 June 2022; pp. 2797–2801. [Google Scholar] [CrossRef]
  27. Sekyere, M.; Darko, E.N.; Bruce, I.; Odion, E.O.; Bhatheja, K.; Chen, D. Ultra-Small Area, Highly Linear Sub-Radix R-2R Digital-To-Analog Converters with Novel Calibration Algorithm. In Proceedings of the 2023 IEEE 66th International Midwest Symposium on Circuits and Systems (MWSCAS), Tempe, AZ, USA, 6–9 August 2023; pp. 604–608. [Google Scholar] [CrossRef]
  28. Bhatheja, K.; Chaganti, S.; Leisinger, J.; Darko, E.N.; Bruce, I.; Chen, D. A BIST Approach to Approximate Co-Testing of Embedded Data Converters. IEEE Des. Test 2024, 41, 21–28. [Google Scholar] [CrossRef]
Figure 1. Overall architecture of the proposed arbitrary waveform generator.
Figure 1. Overall architecture of the proposed arbitrary waveform generator.
Metrology 05 00008 g001
Figure 2. Proposed DAC used for waveform generation.
Figure 2. Proposed DAC used for waveform generation.
Metrology 05 00008 g002
Figure 3. ADC DAC co-test scheme.
Figure 3. ADC DAC co-test scheme.
Metrology 05 00008 g003
Figure 4. Layout of proposed DAC. We use cheap poly resistors which are known to have temperature and voltage coefficients, whilst matching them at only 5-bit level. Dimensions are 167 μm × 96 μm, resulting in total area of 0.016 mm2.
Figure 4. Layout of proposed DAC. We use cheap poly resistors which are known to have temperature and voltage coefficients, whilst matching them at only 5-bit level. Dimensions are 167 μm × 96 μm, resulting in total area of 0.016 mm2.
Metrology 05 00008 g004
Figure 5. The red box shows the DAC layout in the pad frame. We can see that the area is very small and almost equivalent to about the area of a single pad.
Figure 5. The red box shows the DAC layout in the pad frame. We can see that the area is very small and almost equivalent to about the area of a single pad.
Metrology 05 00008 g005
Figure 6. Results from the simultaneous testing of the ADC and DAC. (a) True and estimated DAC INL—the estimated weight of the redundant bit b r is 191.82 LSBs. (b) DAC INL estimation error. (c) True and estimated SAR ADC INL. (d) ADC INL estimation error. From (b,d), it can be seen that the maximum absolute DAC and ADC INL are both less than 0.25 LSBs.
Figure 6. Results from the simultaneous testing of the ADC and DAC. (a) True and estimated DAC INL—the estimated weight of the redundant bit b r is 191.82 LSBs. (b) DAC INL estimation error. (c) True and estimated SAR ADC INL. (d) ADC INL estimation error. From (b,d), it can be seen that the maximum absolute DAC and ADC INL are both less than 0.25 LSBs.
Metrology 05 00008 g006
Figure 7. Comparison of performance between the search and proposed pre-distortion calibration. (a) Search vs. pre-distortion calibration INL. (b) DAC output spectrum before and after pre-distortion.
Figure 7. Comparison of performance between the search and proposed pre-distortion calibration. (a) Search vs. pre-distortion calibration INL. (b) DAC output spectrum before and after pre-distortion.
Metrology 05 00008 g007
Figure 8. Results showing the purity of the generated signal. (a) Spectrum of generated sine wave. (b) SNR of sine wave for 100 iterations. (c) SINAD of sine wave for 100 iterations. (d) THD of sine wave for 100 iterations. (e) SFDR of sine wave for 100 iterations. (f) ENOB of sine wave for 100 iterations.
Figure 8. Results showing the purity of the generated signal. (a) Spectrum of generated sine wave. (b) SNR of sine wave for 100 iterations. (c) SINAD of sine wave for 100 iterations. (d) THD of sine wave for 100 iterations. (e) SFDR of sine wave for 100 iterations. (f) ENOB of sine wave for 100 iterations.
Metrology 05 00008 g008
Table 1. Comparison with other methods in the literature.
Table 1. Comparison with other methods in the literature.
Metric[10][21][22]This Work
Technology (μm)0.04 CMOS0.18 CMOS
DAC Resolution16141414
DAC Matching Requirementsnn n 2 n 9
THD (dB) 101 90 75 102
SFDR (dB)1059279106
SINAD (dB)81656977
BIST SupportNoNoYesYes
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Nti Darko, E.; Bruce, I.; Oko-Odion, E.; Bhatheja, K.; Karimpour, S.; Chen, D. Low-Cost Direct Digital Synthesis-Based On-Chip Waveform Generation for Analog/Mixed Signal BIST Applications. Metrology 2025, 5, 8. https://doi.org/10.3390/metrology5010008

AMA Style

Nti Darko E, Bruce I, Oko-Odion E, Bhatheja K, Karimpour S, Chen D. Low-Cost Direct Digital Synthesis-Based On-Chip Waveform Generation for Analog/Mixed Signal BIST Applications. Metrology. 2025; 5(1):8. https://doi.org/10.3390/metrology5010008

Chicago/Turabian Style

Nti Darko, Emmanuel, Isaac Bruce, Ekaniyere Oko-Odion, Kushagra Bhatheja, Saeid Karimpour, and Degang Chen. 2025. "Low-Cost Direct Digital Synthesis-Based On-Chip Waveform Generation for Analog/Mixed Signal BIST Applications" Metrology 5, no. 1: 8. https://doi.org/10.3390/metrology5010008

APA Style

Nti Darko, E., Bruce, I., Oko-Odion, E., Bhatheja, K., Karimpour, S., & Chen, D. (2025). Low-Cost Direct Digital Synthesis-Based On-Chip Waveform Generation for Analog/Mixed Signal BIST Applications. Metrology, 5(1), 8. https://doi.org/10.3390/metrology5010008

Article Metrics

Back to TopTop