PIPELINE ANALOG TO DIGITAL CONVERTER AND SIGNAL CONVERSION METHOD

Information

  • Patent Application
  • 20220376695
  • Publication Number
    20220376695
  • Date Filed
    March 24, 2022
    2 years ago
  • Date Published
    November 24, 2022
    a year ago
Abstract
A pipeline analog to digital converter includes converter circuitries and a calibration circuitry. The converter circuitries sequentially convert an input signal into first digital codes. A first converter circuitry in the converter circuitries performs a quantization according to a first signal to generate a first corresponding digital code in the first digital codes, and the first signal is a signal, which is processed by the first converter circuitry, of the input signal and a previous stage residue signal. The calibration circuitry combines the first digital codes to output a second digital code, detects whether the quantization is completed to generate first and second valid signals, and determines whether to set the second digital code to be a first predetermined digital code or a second predetermined digital code according to the first and the second valid signals. The second valid signal is a delay signal of the first valid signal.
Description
BACKGROUND OF THE INVENTION
1. Field of the Invention

The present disclosure relates to a pipeline analog to digital converter, especially to a pipeline analog to digital converter able to set predetermined digital codes and a signal conversion method thereof.


2. Description of Related Art

A pipeline analog to digital converter can sequentially convert input signals into corresponding digital codes through multi-stage conversion. In the current approaches, the operation period of each stage of conversion is fixed. As the clock speed increases, the time of a cycle shortens. As a result, comparator circuit(s) in the pipeline analog-to-digital converter may not be able to generate correct quantization results within a predetermined time interval, which results in an inaccurate final output digital code.


SUMMARY OF THE INVENTION

In some aspects of the present disclosure, a pipeline analog to digital converter includes a plurality of converter circuitries and a calibration circuitry. The plurality of converter circuitries are configured to sequentially convert an input signal into a plurality of first digital codes, in which a first converter circuitry in the plurality of converter circuitries is configured to perform a quantization according to a first signal to generate a first corresponding digital code in the plurality of first digital codes, and the first signal is a signal, which is processed by the first converter circuitry, of the input signal and a previous stage residue signal. The calibration circuitry is configured to combine the plurality of first digital codes to output a second digital code, detect whether the quantization is completed to generate a first valid signal and a second valid signal, and determine whether to set the second digital code to be one of a first predetermined digital code or a second predetermined digital code according to the first valid signal and the second valid signal, in which the second valid signal is a delay signal of the first valid signal.


In some aspects of the present disclosure, a signal conversion method includes the following operations: sequentially converting, by a plurality of converter circuitries, an input signal into a plurality of first digital codes, in which a first converter circuitry in the plurality of converter circuitries is configured to perform a quantization according to a first signal to generate a first corresponding digital code in the plurality of first digital codes, and the first signal is a signal, which is processed by the first converter circuitry, of the input signal and a previous stage residue signal; combining the plurality of first digital codes to output a second digital code; and detecting whether the quantization is completed to generate a first valid signal and a second valid signal, in which the second valid signal is a delay signal of the first valid signal; and determining whether to set the second digital code to be one of a first predetermined digital code or a second predetermined digital code according to the first valid signal and the second valid signal.


These and other objectives of the present disclosure will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiments that are illustrated in the various figures and drawings.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic diagram of a pipeline analog to digital converter according to some embodiments of the present disclosure.



FIG. 2A is a schematic diagram of the converter circuitry in FIG. 1 according to some embodiments of the present disclosure.



FIG. 2B is a schematic diagram of the sub-analog to digital converter circuit in FIG. 2A according to some embodiments of the present disclosure.



FIG. 2C is a schematic diagram of the detection circuit in FIG. 1 according to some embodiments of the present disclosure.



FIG. 2D is a schematic diagram illustrating conversion characteristic of the input signal and the residue signal in FIG. 1 according to some embodiments of the present disclosure.



FIG. 3 is a flowchart of operations of the calibration circuitry according to some embodiments of the present disclosure.



FIG. 4 is a flowchart of a signal conversion method according to some embodiments of the present disclosure.



FIG. 5 is a schematic diagram illustrating an enlarged view of a portion of the region in FIG. 2D according to some embodiments of the present disclosure.





DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The terms used in this specification generally have their ordinary meanings in the art and in the specific context where each term is used. The use of examples in this specification, including examples of any terms discussed herein, is illustrative only, and in no way limits the scope and meaning of the disclosure or of any exemplified term. Likewise, the present disclosure is not limited to various embodiments given in this specification.


In this document, the term “coupled” may also be termed as “electrically coupled,” and the term “connected” may be termed as “electrically connected.” “Coupled” and “connected” may mean “directly coupled” and “directly connected” respectively, or “indirectly coupled” and “indirectly connected” respectively. “Coupled” and “connected” may also be used to indicate that two or more elements cooperate or interact with each other. In this document, the term “circuitry” may indicate a system formed with one or more circuits. The term “circuit” may indicate an object, which is formed with one or more transistors and/or one or more active/passive elements based on a specific arrangement, for processing signals.


As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items. Although the terms “first,” “second,” etc., may be used herein to describe various elements, these elements should not be limited by these terms. These terms are used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the embodiments. For ease of understanding, like elements in various figures are designated with the same reference number.



FIG. 1 is a schematic diagram of a pipeline analog to digital converter 100 according to some embodiments of the present disclosure. The pipeline analog to digital converter 100 includes a sample and hold circuit 110, converter circuitries 120[1]-120[3], and calibration circuitry 130.


The sample and hold circuit 110 samples an input signal VIN according to a clock signal CLK1, and outputs the sampled input signal VIN to be a signal S1. In some embodiments, the sample and hold circuit 110 may be implemented with a switched capacitor circuit. The converter circuitries 120[1]-120[3] sequentially convert the sampled input signal VIN (i.e., the signal S1) from the sample and hold circuit 110 to into digital codes D1[1]-D1[3]. In some embodiments, the converter circuitries 120[1]-120[2] have the same circuit architecture. In some embodiments, the converter circuitry 120[3] may be, but not limited to, a flash analog to digital converter circuit, which is configured to generate the digital code D1[3] according to a residue signal S2[2] generated from the converter circuitry 120[2].


The calibration circuitry 130 detects whether a quantization of the converter circuitry 120[1] is completed to generate control signals VC[1]-VC[4]. Similarly, the calibration circuitry 130 detects whether a quantization of the converter circuitry 120[2] is completed to generate control signals VC[5]-VC[8]. The calibration circuitry 130 further combines the digital codes D1[1]-D1[3] to output a digital code DOUT, and determines whether to set the digital code DOUT to be a corresponding one of predetermined digital codes D2[1]-D2[X] according to the control signals VC[1]-VC[8], in which X is a positive integer higher than 1. In some embodiments, the calibration circuitry 103 may detect whether the quantization of the converter circuitry 120[1] is completed to generate valid signals (e.g., valid signals SV[1]-SV[4] in FIG. 2C), and generate the control signals VC[1]-VC[4] according to those valid signals.


Similarly, the calibration circuitry 103 may detect whether the quantization of the converter circuitry 120[2] is completed to generate valid signals (not shown), and generate the control signals VC[5]-VC[8] according to those valid signals. In other words, the calibration circuitry 130 may determine whether to set the digital code DOUT to be a corresponding one of the predetermined digital codes D2[1]-D2[X]. In some embodiments, the calibration circuitry 130 is further configured to run a test on the converter circuitries 120[1]-120[3] during a testing phase, in order to generate part digital codes in the predetermined digital codes D2[1]-D2[X]. Operations regarding herein will be provided with reference to FIG. 3.


In some embodiments, the calibration circuitry 130 includes a detection circuit 132 and a control logic circuit 134. The detection circuit 132 may detect whether the quantization of the converter circuitry 120[1] and that of the converter circuitry 120[2] are completed, in order to generate the control signals VC[1]-VC[8]. The control logic circuit 134 may combine the digital codes D1[1]-D1[3] to be the digital code DOUT. In some embodiments, the detection circuit 132 is further configured to store the valid signals according to at least one clock signal (e.g., a clock signal CLK3 or CLK3′), in order to generate the control signals VC[1]-VC[8]. The control logic circuit 134 determines whether to set the digital code DOUT to be a corresponding one of predetermined digital codes D2[1]-D2[X] according to the control signals VC[1]-VC[8].


For example, if the detection circuit 132 detects that a quantization of a comparator circuit (e.g., a comparator circuit 201 in FIG. 2B) in the converter circuitry 120[1] has not been completed, the detection circuit 132 may output the control signals VC[1] and VC[2] having first logic values (e.g., a logic value of 1). In response to the control signals VC[1] and VC[2], the control logic circuit 134 may set the digital code DOUT to be a predetermined digital code D[y] in the predetermined digital codes D2[1]-D2[X], in which y is a positive greater than 1 and less than X. If the control signal VC[1] has the first logic value and the control signal VC[2] has a second logic value (e.g., a logic value of 0), the control logic circuit 134 may set the digital code DOUT to be a predetermined digital code D2[y−1] or a predetermined digital code D2[y+1] in the predetermined digital codes D2[1]-D2[X]. If both of the control signals VC[1] and VC[2] have the second logic values, the control logic circuit 134 does not set the digital code DOUT to be the predetermined digital code D2[y−1], the predetermined digital code D2[y], or the predetermined digital code D2[y+1].


Similarly, if the detection circuit 132 detects that a quantization of another comparator circuit (e.g., the comparator circuit 202 in FIG. 2B) in the converter circuitry 120[1] has not been completed, the detection circuit 132 may output the control signals VC[3]-VC[4] having the first logic values. In response to the control signals VC[3] and VC[4], the control logic circuit 134 may set the digital code DOUT to be a predetermined digital code D2[y+2] in the predetermined digital codes D2[1]-D2[X]. If the control signal VC[3] has the first logic value and the control signal VC[4] has the second logic value, the control logic circuit 134 sets the digital code DOUT to be the predetermined digital code D2[y+1] or a predetermined digital code D2[y+3] in the predetermined digital code D2[1]-D2[X]. If the control signals VC[3] and VC[4] have the second logic values, the control logic circuit 134 does not set the digital code DOUT to be the predetermined digital code D2[y+1], the predetermined digital code D2[y+2], or the predetermined digital code D2[y+3].


With this analogy, the corresponding relation between the control signals VC[5]-VC[8] and other digital codes in the predetermined digital codes D2[1]-D2[X] can be understood. In some embodiments, the control logic circuit 134 may include digital circuits and at least one register circuit, in which the at least one register circuit may be configured to store the predetermined digital codes D2[1]-D2[X], and the digital circuits may operate as a controller circuit or a processor circuit, in order to perform operations in FIG. 3 and FIG. 4.



FIG. 2A is a schematic diagram of the converter circuitry 120[1] in FIG. 1 according to some embodiments of the present disclosure. The converter circuitry 120[1] includes a sub-analog to digital converter circuit 121 and a multiplying digital to analog converter (MDAC) circuit (hereinafter referred to as “the MDAC circuit 122”). During a sampling phase Tsample of the clock signal CLK1, the sub-analog to digital converter circuit 121 performs the quantization according to the signal S1, in order to generate the digital code D1[1]. The MDAC circuit 122 processes the digital code D1[1] and the signal S1 according to the clock signal CLK2, in order to generate a current stage residue signal S2[1]. For example, in response to a rising edge of the clock signal CLK2, the MDAC circuit 122 may start processing the digital code D1[1] and the signal S1, and generate the current stage residue signal S2[1] in an amplification phase Tamplify of the clock signal CLK2.


In some embodiments, the MDAC circuit 122 includes a sub-digital to analog converter circuit 122-1, a subtractor circuit 122-2, and a residue amplifier circuit 122-3. In response to the clock signal CLK2, sub-digital to analog converter circuit 122-1 may converter the digital code D1[1] into a signal S2. The subtractor circuit 122-2 subtracts the signal S2 from the signal S1, in order to generate a signal S3. The residue amplifier circuit 122-3 may amplify the signal S3 to output the current stage residue signal S2[1]. In some embodiments, the sub-digital to analog converter circuit 122-1, the subtractor circuit 122-2, and the residue amplifier circuit 122-3 may be implemented with a switched-capacitor circuit (not shown in FIG. 2A). Some switches in the switched-capacitor circuit are turned on during the sampling phase Tsample of the clock signal CLK1, in order to store the signal S1. Other switches in the switched-capacitor circuit are turned on during the amplification phase Tamplify of the clock signal CLK2, in order to perform related operations of the MDAC circuit 122.



FIG. 2B is a schematic diagram of the sub-analog to digital converter circuit 121 in FIG. 2A according to some embodiments of the present disclosure. In some embodiments, the sub-analog to digital converter circuit 121 includes a comparator circuit 201, a comparator circuit 202, and an encoder circuit 203. The comparator circuit 201 and the comparator circuit 202 compare the signal S1 with a reference voltage VREF1 and a reference voltage VREF2, respectively (i.e., the aforementioned quantization), in order to generate output signals VO1-VO4. The encoder circuit 203 is configured to encode the output signals VO1-VO4 according to the clock signal CLK2, in order to output the corresponding digital code D1[1]. In some embodiments, the encoder circuit 203 may include logic gate circuits (which may be, but not limited to, AND gate circuits), which may output the digital code D1[1] when the clock signal CLK2 is at a high level.


In greater detail, the comparator circuit 201 compares the signal S1 with the reference voltage VREF1, in order to generate the output signal VO1 and the output signal VO2. In some embodiments, the comparator circuit 201 is a differential comparator circuit. In an initial state, two output terminals of the differential comparator circuit are reset to have a predetermined level, such that the output signal VO1 and the output signal VO2 are at the predetermined level. For example, the predetermined level is a high level (i.e., the output signal VO1 and the output signal VO2 have logic values of 1 at the initial state). In some embodiments, the initial state may be, but not limited, a state of the comparator circuit 201 before the comparator circuit 201 enters the amplification phase Tamplify. Alternatively, in some other examples, the predetermined level is a low level (i.e., the output signal VO1 and the output signal VO2 have logic values of 0 at the initial state). After a comparison between the signal S1 and the reference voltage VREF1 is completed, one output terminal of the comparator circuit 201 is at the high level, and another one output terminal of the comparator circuit 201 is at the low level. In other words, when the quantization is completed, one of the output signal VO1 and the output signal VO2 has the logic value of 1, and another one of those signals has the logic value of 0. Therefore, the detection circuit 132 may determine whether the quantization of the comparator circuit 201 is completed according to the output signals VO1-VO2. With this analogy, the detection circuit 132 may determine whether the quantization of the comparator circuit 202 is completed according to the output signals VO3-VO4. Related operations of the comparator circuit 202 can be understood with reference to those of the comparator circuit 201, and thus the repetitious descriptions are not further given. In some embodiments, the reference voltage VREF1 may be, but not limited to, −0.25 times a reference voltage VREF, and the reference voltage VREF2 may be, but not limited to, 0.25 times the reference voltage VREF.



FIG. 2C is a schematic diagram of the detection circuit 132 in FIG. 1 according to some embodiments of the present disclosure. For ease of illustration, FIG. 2C only shows a circuit portion in the detection circuit 132 for detecting the quantization of the converter circuitry 120[1]. The detection circuit 132 includes logic gate circuits 211-212, delay circuits 213-24, and flip flop circuits 215-218. In some embodiments, the logic gate circuit 211 may be, but not limited to, a XNOR gate circuit, which may generate a valid signal SV[1] according to output signals VO1 and VO2 from the converter circuitry 120[1]. In different embodiments, the logic gate circuit 211 may be implemented with other types of logic gate circuit (which may include, but not limited to, NAND gate circuit, NOR gate circuit, and so on). As mentioned above, the output signal VO1 and the output signal VO2 in FIG. 2B have the same logic values at the initial state. Under this condition, the logic gate circuit 211 outputs the valid signal SV[1] having the first logic value. After the quantization is completed, one of the output signal VO1 and the output signal VO2 has the logic value of 1, and another one of those signals has the logic value 0. Under this condition, the logic gate circuit 211 may output the valid signal SV[1] having the second logic value.


The delay circuit is configured to delay the valid signal SV[1] to generate a valid signal SV[2]. In other words, the valid signal SV[2] is a delay signal of the valid signal SV[1] (i.e., the valid signal SV[2] is the delayed valid signal SV[1]). In some embodiments, a delay time introduced by the delay circuit 213 can be adjusted according to requirement of system specification. In some embodiments, the delay circuit 213 may be, but not limited to, implemented with logic gate circuits that are coupled in series, and the logic gate circuits perform an even number of inverting process on the valid signal SV[1]. The flip flop circuits 215-216 respectively receive the valid signals SV[1]-SV[2] according to the clock signal CLK3, in order to generate the control signals VC[1]-VC[2]. In some embodiments, each of the flip flop circuits 215-216 may be a D flip-flop circuit. In some embodiments, the clock signal CLK3 may be a delay signal of the clock signal CLK2 (i.e., the clock signal CLK3 may be a delayed clock signal CLK2). For example, the detection circuit 132 may further include a delay circuit (not shown), which is configured to delay the clock signal CLK2 to generate the clock signal CLK3. In some other embodiments, the clock signal CLK3 may be the same as the clock signal CLK2.


If the control signals VC[1] and VC[2] have the second logic values, it indicates that the quantization of the comparator circuit 201 can be rapidly completed in a predetermined phase (e.g., the amplification phase Tamplify). Under this condition, it indicates that a difference between the level the sampled input signal VIN (i.e., the signal S1) and the reference voltage VREF1 is big. For example, the signal S1 is a signal at a region corresponding to the digital code 00 or at a region corresponding to the digital code 01 in FIG. 5. If the control signal VC[1] has the first logic value of 1 and the control signal VC[2] has the second logic value, it indicates that the processing time of the quantization of the comparator circuit 201 slightly exceeds the predetermined phase. Under this condition, it indicates that the level of the signal S1 may be a level around to the reference voltage VREF1. For example, the signal S1 may be a signal at a sub-region 502 or a sub-region 503 in FIG. 5. Alternatively, if the control signals VC[1] and have the first logic values, it indicates that the quantization of the comparator circuit 201 requires a longer processing time and is thus unable to be completed in the predetermined phase. Under this condition, it indicates that the level of the signal S1 may be really close to the reference voltage VREF1. For example, the signal S1 is a signal at a sub-region 501 in FIG. 5. Thus, according to different control signals VC[1] and VC[2], the control logic circuit 134 may determine whether to set the digital code DOUT to be the predetermined digital code D2[y−1], the predetermined digital code D2[y], or the predetermined digital code D2[y+1]. In other words, the detection circuit 132 may operate as a time to digital converter circuit which may detect the quantization of the comparator circuit 201, in order to generate digital information (i.e., the control signals VC[1] and VC[2]) indicating different processing time. Detailed operations regarding herein will be provided with reference to FIG. 5.


Similar to the logic gate circuit 211 and the delay circuit 213, the logic gate circuit 212 and the delay circuit 214 are configured to detect whether the quantization of the comparator circuit 202 is completed, in order to generate valid signals SV[3] and SV[4]. Similar to the flip flop circuits 215 and 216, the flip flop circuits 217 and 218 may receive the valid signals SV[3] and SV[4] according to the clock signal CLK3, in order to generate the control signals VC[3] and VC[4]. According to different control signals VC[3] and VC[4], the control logic circuit 134 may determine whether to set the digital code DOUT to be the predetermined digital code D2[y+1], the predetermined digital code D2[y+2], or the predetermined digital code D2[y+3].


Circuit architecture of the converter circuitry 120[2] is the same as that of the converter circuitry 120[1]. As shown in FIG. 1, operations of the converter circuitry 120[2] are performed according to a clock signal CLK1′ and a clock signal CLK2′. Similar to the clock signal CLK1 and the clock signal CLK2 in FIG. 2A, the clock signal CLK1′ has the sampling phase Tsample, the clock signal CLK2′ has the amplification phase Tamplify, and the amplification phase Tamplify of the clock signal CLK2′ follows the sampling phase Tsample of the clock signal CLK1′. In some embodiments, the sampling phase Tsample of the clock signal CLK1′ may be partially overlapped with the amplification phase of the clock signal CLK2, or the sampling phase Tsample of the clock signal CLK1′ may be partially overlapped with the amplification phase of the clock signal CLK2. Similarly, the detection circuit 132 may further include additional logic gate circuits, delay circuits, and another two flip flop circuits, in order to detect the quantization of the converter circuitry 120[2]. The additional logic gate circuits may receive output signals from the converter circuitry 120[2] to generate valid signals, and the another two flip flop circuits receive the valid signals according to another clock signal (e.g., the clock signal CLK3′ in FIG. 1) to output the control signals VC[5]-VC[8], in which configurations between the clock signal CLK3′ and the clock signal CLK2′ are similar to those between the clock signal CLK3 and the clock signal CLK2 in FIG. 2C. The operations and arrangements of the converter circuitry 120[2] and the detection circuit 132 can be understood with reference to FIG. 2B and FIG. 2C, and thus the repetitious descriptions are not further given.



FIG. 2D is a schematic diagram illustrating conversion characteristic of the input signal VIN and the residue signal S2[1] in FIG. 1 according to some embodiments of the present disclosure. In FIG. 2D, the horizontal axis indicates the input signal VIN (i.e., the signal S1) inputted to the converter circuitry 120[1], and the vertical axis indicates the current stage residue signal S2[1] inputted to the converter circuitry 120[2]. In examples of FIG. 2B, the sub-analog to digital converter circuit 121 is equivalent to a 1.5 bit analog to digital converter, which may provide the digital code D1[1] (or D1[2]) corresponding to a region in which an analog signal (e.g., the signal S1 or the residue signal S2[1]) falls. For example, if the input signal VIN is less than −0.25 times reference voltage VREF (i.e., the reference voltage VREF1), the digital code D1[1] is 00 (which corresponds to the value of −1). If the input signal VIN is at between −0.25 times reference voltage VREF and 0.25 times reference voltage VREF (i.e., the reference voltage VREF2), the digital code D1[1] is 01 (which corresponds to the value of 0). If the input signal VIN is greater than 0.25 times the reference voltage VREF, the digital code D1[1] is 10 (which corresponds to the value of 1).


In order to enable the residue signal S2[1] to conform to an input range of a next stage converter circuitry (e.g., the converter circuitry 120[2]), the MDAC circuit 122 may perform a corresponding process (e.g., the equation listed as follows) on the input signal VIN according to the current digital code D1[1] and the input signal VIN). As a result, it can ensure that the converter circuitry 120[2] is able to sequentially and correctly process the input signal VIN.






S2[1]=2×VIN−VREF, if VIN>0.25×VREF






S2[1]=2×VIN, if −0.25×VREF<VIN<0.25×VREF






S2[1]=2×VIN+VREF, if VIN<−0.25×VREF


According to the above equitation, if the sub-analog to digital converter circuit 121 determines that the input signal VIN (i.e., the signal S1) is lower than −0.25 times the reference voltage VREF, the MDAC circuit 122 shifts up the input signal VIN, in order to output the current stage residue signal S2[1]. As a result, the subsequent converter circuitry (e.g., the converter circuitry 120[2] and the converter circuitry 120[3]) will output the digital codes D1[2]-D1[3] having higher values according to the current stage residue signal S2. Alternatively, if the sub-analog to digital converter circuit 121 determines that the input signal VIN is between −0.25 times the reference voltage VREF and 0.25 times the reference voltage, the MDAC circuit 122 does not shift the input signal VIN, in order to output current stage residue signal S2[1]. As a result, compared with the digital codes D1[2] and D1[3] in the above condition, the subsequent convert circuitries will output the digital codes D1[2] and D1[3] having lower values according to the current stage residue signal S2[1]. If the sub-analog to digital converter circuit 121 determines that the input signal VIN is higher than 0.25 times the reference voltage VREF, the MDAC circuit 122 shifts down the input signal VIN, in order to output the current stage signal S2[1]. As a result, compared with the digital code D1[2] and D1[3] in the previous two conditions, the subsequent converter circuitries will output the digital code D1[2] and D1[3] having lowest values according to the current stage residue signal S2[1].


Taking two regions corresponding two successive digital codes 00 and 01 as an example, if the input signal VIN (e.g., a signal at the location of point A) is lower than but significantly close to −0.25 times the reference voltage VREF, ideally, the comparator circuit 201 may determine that the input signal VIN is lower than −0.25 times the reference voltage VREF. However, because of impacts from noises and/or a voltage difference (e.g., the difference between the input signal VIN and the reference voltage VREF1; labeled as a region 221) being too small, the comparator circuit 201 may take a longer time to complete the quantization. If the quantization cannot be completed during the predetermined amplification phase Tamplify, the comparator circuit 201 may determine that the input signal VIN (e.g., misjudged to be a signal at the location of point A′) is between −0.25 times the reference voltage VREF and 0.25 times the reference voltage VREF by mistake. Under this condition, the MDAC circuit 122 will not shift up the input signal VIN (corresponding to the location of point A′), and the subsequent converter circuitry 120[2] and the converter circuitry 120[3] will output the digital codes D1[2]-D1 [3] having relatively lower values. As a result, the digital output DOUT will be inaccurate.


Alternatively, if the input signal VIN (e.g., a signal at the location of point B) is higher than and significantly close to −0.25 times the reference voltage VREF, ideally, the comparator circuit 201 may determine that the input signal VIN is between −0.25 times the reference voltage VREF and 0.25 times the reference voltage VREF. However, because of impacts from noises and/or the voltage difference being too small, the comparator circuit 201 may determine that the input signal VIN (e.g. misjudged to be a signal at the location of point B′) is lower than −0.25 times the reference voltage VREF by mistake. Under this condition, the MDAC circuit 122 will shift up the input signal VIN (corresponding to the location of point B′), and the subsequent converter circuitry 120[2] and the converter circuitry 120[3] will output the digital codes D1[2]-D1[3] having higher values. As a result, the digital code DOUT will be inaccurate.


Similarly, taking two regions corresponding to two successive digital codes 01 and 10 as example, if the input signal VIN (e.g., a signal at the location of point C) is significantly close to but lower than 0.25 times the reference voltage VREF, ideally, the comparator circuit 202 may determine that the input signal VIN is lower than 0.25 times the reference voltage VREF. However, because of impacts from noises and/or the voltage difference (e.g., a difference between the input signal VIN and the reference voltage VREF2; labeled as an interval 222) being too small, the comparator circuit 202 may take a longer time to complete the quantization. If the quantization cannot be completed during the predetermined amplification phase Tamplify, the comparator circuit 202 may determine the input signal VIN (e.g., misjudged to be a signal at the location of C′) is higher than 0.25 times the reference voltage VREF by mistake. Under this condition, the MDAC circuit 122 shifts down the input signal VIN (corresponding to the location of point C′), and the subsequent converter circuitry 120[3] will output the digital code D1[3] having a lower value. As a result, the digital code DOUT will be inaccurate.


Alternatively, if the input signal VIN (e.g., a signal at the location of point D) is higher than but significantly close to 0.25 times the reference voltage VREF, ideally, the comparator circuit 202 may determine that the input signal VIN is higher than 0.25 times the reference voltage VREF. However, because of impacts from noises and/or the voltage difference being too small, the comparator circuit 202 may determine that the input signal VIN (e.g., misjudged to be a signal at the location of point D′) is between −0.25 times the reference voltage VREF and 0.25 times the reference voltage VREF. Under this condition, the MDAC circuit 122 does not shift the input signal VIN (corresponding to the location of point D′, and the subsequent converter circuitry 120[3] will output the digital code D1[3] having a higher value. As a result, the digital code DOUT will be inaccurate. In some embodiments, the above misjudgments can be corrected with operations in FIG. 3 and FIG. 4 performed by the calibration circuitry 130.



FIG. 3 is a flowchart of operations of the calibration circuitry 130 according to some embodiments of the present disclosure. In some embodiments, operations in FIG. 3 may be performed by the control logic circuit 134 of the calibration circuitry 130. In operation S310, during a testing phase, a maximum value generated by a subsequent converter circuitry (e.g., the converter circuitries 120[2]-120[3] subsequent coupled to the converter circuitry 120[1]) according to a current stage residue signal generated from a converter circuitry when the converter circuitry (e.g., the converter circuitry 120[1]) outputs a corresponding digital code having a first value is stored. For example, when the converter circuitry 120[1] outputs the digital code D1[1] having the value of −1 (e.g., the digital code 00), the control logic circuit 134 may record and store the maximum value which is generated from the converter circuitry 120[2] and the converter circuitry 120[3] according to the residue signal S2[1]. As mentioned above, the above maximum value may be a value generated on condition that the signal S1 having the value of 0 is misjudged to be the digital code D1[1] having the value of −1 (e.g., the signal at the location of B is misjudged to be the signal at the location of point B′). Alternatively, when the converter circuitry 120[2] outputs the digital code D1[2] having the value of −1, the control logic circuit 134 may record and store a maximum value that is generated from the converter circuitry 120[3] according to the residue signal S2[2].


In operation S320, during the testing phase, a minimum value generated by the subsequent converter circuitry according to the current stage residue signal generated from the converter circuitry when the converter circuitry outputs a corresponding digital code having a second value is stored, in which the first value and the second value are successive values, and the second value is greater than the first value. For example, when the converter circuitry 120[1] outputs the digital code D1[1] having the value of 0 (e.g., the digital code 01), the control logic circuit 134 may record and store the minimum vale generated from the converter circuitry 120[2] and the converter circuitry 120[3] according to the residue signal S2[1]. As mentioned above, the above minimum value may be a value generated on condition that the signal S1 having the value of −1 is misjudged as the digital code D1[1] having the value of 0 (e.g., the signal at the location of point A is misjudged as the signal at the location of point A′). Alternatively, when the converter circuitry 120[2] outputs the digital code D1[2] having the value of 0, the control logic circuit 134 may record and store the minimum value that is generated by the converter circuitry 120[3] according to the residue signal S2[2].


In operation S330, a corresponding one of the predetermined digital codes is determined according to the minimum value, the maximum value, the first value, and the second value. In some embodiments, after the maximum value and the minimum value corresponding to all comparators in the converter circuitry 120[1] and the converter circuitry 120[2] are stored, a corresponding one of the predetermined digital code D2[1]-D2[X] can be determined. Taking the comparator circuit 201 in FIG. 2B as an example, the predetermined digital code D2[y] may be expressed as follows:







D


2
[
y
]


=


[


(


N

1
×
ω

+

X

1


)

+

(


N

2
×
ω

+

X

2


)


]

2





In which N1 is the first value (e.g., −1), N2 is the second value (e.g., 0), X1 is the maximum value, X2 is the minimum value, and ω is a weighted value. In some embodiments, ω is a value which is determined by normalizing a digital code (e.g., the digital code D1[1]) from the current converter circuit to all digital codes (e.g., the digital codes D1[2] and D1[3]) from the subsequent converter circuitries.


According to FIG. 2D, it is able to understand that, after the maximum value and the minimum value are obtained, the control logic circuit 134 may set the location of the predetermined digital code D2[y] to be at the middle of the region 221. As a result, the predetermined digital code D2[y] that is close to an ideal conversion characteristic can be obtained. In this example, the predetermined digital code D2[y−1] may be a digital code (e.g., the digital code 00 in FIG. 2D) corresponding to the first value (e.g., −1), and the predetermined digital code D2[y+1] may be a digital code (e.g., the digital code 01 in FIG. 2D) corresponding to the second value (e.g., 0). In other words, the predetermined digital codes D2[y−1] and D2[y+1] are digital codes that are known in advance. By utilizing the above equation, the control logic circuit 134 is able to insert an additional predetermined digital code D2[y] between the predetermined digital codes D2[y−1] and D2[y+1].


By this analogy, with operations S310, S320, and S330, the calibration circuitry 130 is able to store part of digital codes (i.e., certain digital codes in the predetermined digital codes D2[1]-D2[X]) corresponding to all comparator circuits (e.g., the comparator circuits 201 and 202) in the converter circuitry 120[1] and the converter circuitry 120[2] during the testing phase. As a result, in subsequent operations, the calibration circuitry 130 is able to determine whether to set the digital code DOUT to be a digital code in the predetermined digital codes D2[1]-D2[X] according to the result of detecting the quantization.



FIG. 4 is a flowchart of a signal conversion method 400 according to some embodiments of the present disclosure. In operation S410, an input signal is sequentially converted by converter circuitries (e.g., the converter circuitries 120[1]-120[3]) into first digital codes (e.g., the digital codes D1[1]-D1[3]), in which a first converter circuitry in the converter circuitries performs a quantization according to a first signal to generate a first corresponding digital code of the first digital codes, and the first signal is a signal of the input signal and a previous stage residue signal that is processed by the first converter circuitry. For example, if the first converter circuitry is the converter circuitry 120[1], the first signal is the sampled input signal VIN (e.g., the signal S1). Alternatively, if the first converter circuitry is the converter circuitry 120[2], the first signal is the residue signal S2[1] from the converter circuitry 120[1].


In operation S420, the first digital codes are combined to output a second output signal. In operation S430, whether the quantization is completed is detected to generate a first valid signal and a second valid signal, in which the second valid signal is a delay signal of the first valid signal. For example, the logic gate circuit 211 may detect whether the quantization of the comparator circuit 201 in the converter circuitry 120[1] is completed, in order to generate the valid signal SV1[1] and the valid signal SV[2]. The flip flop circuits 215 and 216 may receive the valid signals SV1[1] and SV[2] according to the clock signal CLK3, in order to generate the control signals VC[1] and VC[2]. By this analogy, the detection circuit 21 and the flip flop circuits 217 and 218 may detect whether the quantization of the comparator circuit 202 in the converter circuitry 120[1] is completed, in order to generate the control signals VC[3] and VC[4].


In operation S440, whether to set the second digital code to be one of a first predetermined digital code (e.g., D2[y]) or a second predetermined digital code (e.g., D2[y−1] or D2[y+1]) is determined according to the first valid signal and the second valid signal.


In order to illustrate operation S440, reference is made to FIG. 5, and FIG. 5 is a schematic diagram illustrating an enlarged view of a portion of the region 221 in FIG. 2D according to some embodiments of the present disclosure. As shown in FIG. 5, the region 221 may be divided into a sub-region 501, a sub-region 502, and a sub-region 503. The sub-region 501 indicates a voltage interval that contains −0.25 times the reference voltage VREF. The sub-region 502 is located between a left boundary of the region 221 and the sub-region 501. The sub-region 503 is located between a right boundary of the region 221 and the sub-region 501. The voltage (or the digital code) corresponding to the sub-region 503 is higher than the voltage (or the digital code) corresponding to the sub-region 502. For example, the sub-region 503 corresponds to the predetermined digital code D2[y+1], the sub-region 501 corresponds to the predetermined digital code D2[y], and the sub-region 502 corresponds to the predetermined digital code D2[y−1].


As mentioned above, if the control signals VC[1]-VC[2] have the second logic values (e.g., logic values of 0), it indicate that the quantization of the comparator circuit 201 can be rapidly completed in the predetermined phase. Under this condition, a difference between the signal S1 (or the previous stage residue signal) and the reference voltage VREF may be large, and thus the signal S1 may not be located in the sub-regions 501, 502, or 503 (which may be located at outside those sub-regions). Accordingly, the control logic circuit 134 may not set the digital code DOUT to be one of the predetermined digital codes D2[1]-D2[X].


If the control signals VC[1]-VC[2] have the first logic values (e.g., the logic value of 1), it indicates that the quantization of the comparator 201 is unable to be completed in the predetermined phase. Under this condition, the signal S1 (or the previous stage residue signal) may be really close to the reference voltage VREF, and thus may be located in the sub-region 501. Accordingly, the control logic circuit 134 may set the digital code DOUT to be the first predetermined digital code (e.g., the predetermined digital code D2[y]).


If the control signal VC[1] has the first logic value and the control signal C[2] has the second logic value, it indicates that the processing time of the quantization of the comparator 201 is close to exceed the predetermined phase. Under this condition, the signal S1 (or the previous stage residue signal) may be close to the reference voltage VREF, and thus may be located in the sub-region 502 or the sub-region 503. Accordingly, the control logic circuit 134 may set the digital code DOUT to be the second predetermined digital code (e.g., the predetermined digital code D2[y−1] or the predetermined digital code D2[y+1]).


In some embodiments, in response to the control signal VC[1] having the first logic value and the control signal C[2] having the second logic value, the control logic circuit 134 may randomly set the second predetermined digital code to be one of the predetermined digital code D2[y−1] or the predetermined digital code D2[y+1]. For example, in some embodiments, the calibration circuitry 130 may further include a pseudo random number generator circuit (not shown) which is configured to generate a pseudo random number. The control logic circuit 134 may set the second predetermined digital code to be the predetermined digital code D2[y−1] in response to the pseudo random number having the first logic value. Alternatively, the control logic circuit 134 may set the second predetermined digital code to be the predetermined digital code D2[y+1] in response to the pseudo random number having the second logic value.


In some embodiments, in response to the control signal VC[1] having the first logic value and the control signal C[2] having the second logic value, the control logic circuit 134 may randomly set the second predetermined digital code to be one of the predetermined digital code D2[y−1] or the predetermined digital code D2[y+1] according to output signals, which are generated by the converter circuitry 120[1] according to the quantization. Taking the quantization of the comparator circuit 201 as an example, in response to the control signal VC[1] having the first logic value and the control signal C[2] having the second logic value, the control logic circuit 134 may set the second predetermined digital code according to output signals (e.g., the output signal VO3 and/or the output signal VO4) from adjacent comparator circuit(s) in the converter circuitry 120[1] (which may be, for example, the comparator circuit 202).


For example, if the comparator circuit 202 determines that the signal S1 is higher than the reference voltage VREF2, the output signal VO3 has the first logic value and the output signal VO4 has the second logic value. Under this condition, the control logic circuit 134 may set the second predetermined digital code to be the predetermined digital code D2[y+1]. Alternatively, if the comparator circuit 202 determines that the signal S1 is not higher than the reference voltage VREF2, the output signal VO3 has the second logic value and the output signal VO4 has the first logic value. Under this condition, the control logic circuit 134 may set the second predetermined digital code to be the predetermined digital code D2[y−1].


The above examples are given with reference to the sub-analog to digital converter circuit including two comparator circuits, but the present disclosure is not limited thereto. In the sub-analog to digital converter circuit that includes three or more comparator circuits, the control logic circuit 134 may set the second predetermined digital code to be the predetermined digital code D2[y+1] or the predetermined digital code D2[y−1] according to output signals from comparator circuits configured to identify (i.e., compare) adjacent voltage ranges.


The above description of the signal conversion method 400 includes exemplary operations, but the operations of the signal conversion method 400 are not necessarily performed in the order described above. Operations of the signal conversion method 400 can be added, replaced, changed order, and/or eliminated, or the operations of the signal conversion method 400 can be executed simultaneously or partially simultaneously as appropriate, in accordance with the spirit and scope of various embodiments of the present disclosure.


The number of circuit components in the above embodiments are given for illustrative purposes, and the present disclosure is not limited thereto. For example, the pipeline analog to digital converter 100 may include more converter circuitries. Alternatively, the sub-analog to digital converter circuit 121 may include more comparator circuits. Correspondingly, the detection circuit 132 may include more logic circuits, delay circuits, and flip flop circuits.


As described above, the pipeline analog to digital converter and the signal conversion method in some embodiments of the present disclosure may detect whether quantization of each stage of converter circuitry is completed to generate digital information indicating different processing time, and determine whether to replace the final output digital code to be a specific digital code in predetermined digital codes according to that digital information. As a result, inaccurate digital codes can be prevented from being generated by each stage of converter circuitry.


Various functional components or blocks have been described herein. As will be appreciated by persons skilled in the art, in some embodiments, the functional blocks will preferably be implemented through circuits (either dedicated circuits, or general purpose circuits, which operate under the control of one or more processors and coded instructions), which will typically comprise transistors or other circuit elements that are configured in such a way as to control the operation of the circuitry in accordance with the functions and operations described herein. As will be further appreciated, the specific structure or interconnections of the circuit elements will typically be determined by a compiler, such as a register transfer language (RTL) compiler. RTL compilers operate upon scripts that closely resemble assembly language code, to compile the script into a form that is used for the layout or fabrication of the ultimate circuitry. Indeed, RTL is well known for its role and use in the facilitation of the design process of electronic and digital systems.


The aforementioned descriptions represent merely the preferred embodiments of the present disclosure, without any intention to limit the scope of the present disclosure thereto. Various equivalent changes, alterations, or modifications based on the claims of the present disclosure are all consequently viewed as being embraced by the scope of the present disclosure.

Claims
  • 1. A pipeline analog to digital converter, comprising: a plurality of converter circuitries configured to sequentially convert an input signal into a plurality of first digital codes, wherein a first converter circuitry in the plurality of converter circuitries is configured to perform a quantization according to a first signal to generate a first corresponding digital code in the plurality of first digital codes, and the first signal is a signal, which is processed by the first converter circuitry, of the input signal and a previous stage residue signal; anda calibration circuitry configured to combine the plurality of first digital codes to output a second digital code, detect whether the quantization is completed to generate a first valid signal and a second valid signal, and determine whether to set the second digital code to be one of a first predetermined digital code or a second predetermined digital code according to the first valid signal and the second valid signal, wherein the second valid signal is a delay signal of the first valid signal.
  • 2. The pipeline analog to digital converter of claim 1, wherein the calibration circuitry comprises: a detection circuit configured to detect whether the quantization is completed to generate the first valid signal, delay the first valid signal to generate the second valid signal, and store the first valid signal and the second valid signal according to a clock signal, in order to generate a plurality of control signals; anda control logic circuit configured to combine the plurality of first digital codes to generate the second digital code and determine whether to set the second digital code to be the first predetermined digital code or the second predetermined digital code according to the plurality of control signals.
  • 3. The pipeline analog to digital converter of claim 2, wherein the detection circuit comprises: a logic gate circuit configured to generate the first valid signal according to a plurality of output signals from the first converter circuitry;a delay circuit configured to delay the first valid signal to generate the second valid signal; anda plurality of flip flop circuits configured to receive the first valid signal and the second valid signal according to the clock signal, in order to generate the plurality of control signals.
  • 4. The pipeline analog to digital converter of claim 3, wherein the first converter circuitry performs the quantization according to the clock signal to generate the plurality of output signals.
  • 5. The pipeline analog to digital converter of claim 3, wherein the logic gate circuit is a XNOR gate circuit.
  • 6. The pipeline analog to digital converter of claim 2, wherein the detection circuit is configured to store the first valid signal to be a first control signal in the plurality of control signals according to the clock signal, and store the second valid signal to be a second control signal in the plurality of control signals according to the clock signal, and if the first control signal is different from the second control signal, the control logic circuit is configured to set the second digital code to be the second predetermined digital code.
  • 7. The pipeline analog to digital converter of claim 6, wherein if each of the first control signal and the second control signal has a first logic value, the control logic circuit is configured to set the second digital code to be the first predetermined digital code.
  • 8. The pipeline analog to digital converter of claim 7, wherein if each of the first control signal and the second control signal has a second logic value, the control logic circuit does not set the second digital code to be the first predetermined digital code or the second predetermined digital code.
  • 9. The pipeline analog to digital converter of claim 2, wherein the first converter circuitry comprises: a multiplying digital to analog converter circuit configured to process the first corresponding digital code and the first signal according to a first clock signal to generate a current stage residue signal,wherein the detection circuit is configured to generate the plurality of control signals according to a second clock signal, and the second clock signal is the same as the first clock signal or is a delay signal of the first clock signal.
  • 10. The pipeline analog to digital converter of claim 1, wherein the first converter circuitry is further configured to process the first signal according to the first corresponding digital code to generate a current stage residue signal, and during a testing phase, the calibration circuitry is further configured to store a maximum value generated by at least one of the plurality of converter circuitries according to the current stage residue signal when the first converter circuitry generates the first corresponding digital code having a first value, and store a minimum value is generated by the at least one of the plurality of converter circuitries according to the current stage residue signal when the first converter circuitry generates the first corresponding digital code having a second value, in order to generate the first predetermined digital code.
  • 11. The pipeline analog to digital converter of claim 10, wherein the first value and the second value are successive values, and the second value is greater than the first value.
  • 12. The pipeline analog to digital converter of claim 10, wherein the first predetermined digital codes is determined according to the minimum value, the maximum value, a third value, and a fourth value, the third value is a product of the first value and a weighted value, and the fourth value is a product of the second value and the weighted value.
  • 13. The pipeline analog to digital converter of claim 10, wherein the second predetermined digital code is a first digital code corresponding to the first value or a second digital code corresponding to the second value.
  • 14. The pipeline analog to digital converter of claim 13, wherein the calibration circuitry is further configured to randomly set the second predetermined digital code to be the first digital code or the second digital code, or is configured to set the second predetermined digital code to be the first digital code or the second digital code according to a plurality of output signals that are generated by the first converter circuitry according to the quantization.
  • 15. A signal conversion method, comprising: sequentially converting, by a plurality of converter circuitries, an input signal into a plurality of first digital codes, wherein a first converter circuitry in the plurality of converter circuitries is configured to perform a quantization according to a first signal to generate a first corresponding digital code in the plurality of first digital codes, and the first signal is a signal, which is processed by the first converter circuitry, of the input signal and a previous stage residue signal;combining the plurality of first digital codes to output a second digital code; anddetecting whether the quantization is completed to generate a first valid signal and a second valid signal, wherein the second valid signal is a delay signal of the first valid signal; anddetermining whether to set the second digital code to be one of a first predetermined digital code or a second predetermined digital code according to the first valid signal and the second valid signal.
  • 16. The signal conversion method of claim 15, wherein detecting whether the quantization is completed to generate the first valid signal and the second valid signal comprises: detecting whether the quantization is completed to generate the first valid signal;delaying the first valid signal to generate the second valid signal; andstoring the first valid signal and the second valid signal according to a clock signal to generate a plurality of control signals.
  • 17. The signal conversion method of claim 16, wherein determining whether to set the second digital code to be one of the first predetermined digital code or the second predetermined digital code according to the first valid signal and the second valid signal comprises: determining whether to set t the second digital code to be the first predetermined digital code or the second predetermined digital code according to the plurality of control signals.
  • 18. The signal conversion method of claim 15, wherein the first converter circuitry is further configured to process the first signal according to the first corresponding digital code to generate a current stage residue signal, and the signal conversion method further comprises: during a testing phase, storing a maximum value generated by at least one of the plurality of converter circuitries according to the current stage residue signal when the first converter circuitry generates the first corresponding digital code having a first value;during the testing phase, storing a minimum value generated by the at least one of the plurality of converter circuitries according to the current stage residue signal when the first converter circuitry generates the first corresponding digital code having a second value; anddetermining the first predetermined digital code according to the minimum value, the maximum value, a third value, and a fourth value.
  • 19. The signal conversion method of claim 18, wherein the first value and the second value are successive values, the second value is greater than the first value, the third value is a product of the first value and a weighted value, and the fourth value is a product of the second value and the weighted value.
  • 20. The signal conversion method of claim 18, wherein the second predetermined digital code is a first digital code corresponding to the first value or a second digital code corresponding to the second value, and the signal conversion method further comprises: setting the second predetermined digital code to be the first digital code or the second digital code randomly; orsetting the second predetermined digital code to be the first digital code or the second digital code according to a plurality of output signals that are generated by the first converter circuitry according to the quantization.
Priority Claims (1)
Number Date Country Kind
110118690 May 2021 TW national