WO2002023728A2 - Method and apparatus for mismatched shaping of an oversampled converter - Google Patents

Method and apparatus for mismatched shaping of an oversampled converter Download PDF

Info

Publication number
WO2002023728A2
WO2002023728A2 PCT/US2001/028384 US0128384W WO0223728A2 WO 2002023728 A2 WO2002023728 A2 WO 2002023728A2 US 0128384 W US0128384 W US 0128384W WO 0223728 A2 WO0223728 A2 WO 0223728A2
Authority
WO
WIPO (PCT)
Prior art keywords
sub
codes
code
digital input
density
Prior art date
Application number
PCT/US2001/028384
Other languages
French (fr)
Other versions
WO2002023728A3 (en
Inventor
Todd Lee Brooks
David Seng Poh Ho
Kevin L. Miller
Eric Fogleman
Original Assignee
Broadcom Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Broadcom Corporation filed Critical Broadcom Corporation
Publication of WO2002023728A2 publication Critical patent/WO2002023728A2/en
Publication of WO2002023728A3 publication Critical patent/WO2002023728A3/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/06Continuously compensating for, or preventing, undesired influence of physical parameters
    • H03M1/0617Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence
    • H03M1/0634Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence by averaging out the errors, e.g. using sliding scale
    • H03M1/0656Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence by averaging out the errors, e.g. using sliding scale in the time domain, e.g. using intended jitter as a dither signal
    • H03M1/066Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence by averaging out the errors, e.g. using sliding scale in the time domain, e.g. using intended jitter as a dither signal by continuously permuting the elements used, i.e. dynamic element matching
    • H03M1/067Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence by averaging out the errors, e.g. using sliding scale in the time domain, e.g. using intended jitter as a dither signal by continuously permuting the elements used, i.e. dynamic element matching using different permutation circuits for different parts of the digital signal
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/66Digital/analogue converters
    • H03M1/74Simultaneous conversion
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/66Digital/analogue converters
    • H03M1/74Simultaneous conversion
    • H03M1/742Simultaneous conversion using current sources as quantisation value generators
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M3/00Conversion of analogue values to or from differential modulation
    • H03M3/30Delta-sigma modulation
    • H03M3/458Analogue/digital converters using delta-sigma modulation as an intermediate step
    • H03M3/464Details of the digital/analogue conversion in the feedback path
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M3/00Conversion of analogue values to or from differential modulation
    • H03M3/30Delta-sigma modulation
    • H03M3/50Digital/analogue converters using delta-sigma modulation as an intermediate step
    • H03M3/502Details of the final digital/analogue conversion following the digital delta-sigma modulation

Definitions

  • the present invention relates to sigma-delta digital to analog converters
  • DACs digital to analog converters
  • present invention relates to mismatch shaping networks for use in multi -bit DACs.
  • Sigma-delta modulators sample the analog signal at a rate that is orders of magnitude greater than the highest frequency present. Sigma-delta modulators use the technique of oversampling and noise shaping to move most of the quantization noise outside the band of the signal. The out of band noise may then be filtered out such that the signal to noise ratio (SNR) within the signal band is significantly increased.
  • SNR signal to noise ratio
  • a method and apparatus for performing dynamic element matching is disclosed in Leung, U.S. Patent 5,406,283, entitled "Multi-bit oversampled DAC with dynamic element matching.”
  • the Leung patent discloses a technique for cyclically selecting successive different permutations of the unit elements for converting each value of the output digital signal thereby canceling the mismatching between unit elements.
  • the digital complexity of such a method increases tremendously with the number of bits in the digital output.
  • a typical implementation of such a system requires an encoder for each value of output digital signal, a memory element or pointer for each digital value and a MxM cross-point switch, where M is the number of unit elements. Therefore, as the number of unit elements doubles the encoder and memory elements required increases by a factor of two but the cross-point switch complexity and hardware increases by a factor of four, or more generally as a square term.
  • An embodiment of the present invention is directed to a method and apparatus for spectrally shaping mismatch errors in a multi-bit digital to analog converter (DAC) constructed from K separate multi-element sub-DACs, where K and the number of elements in each sub-DAC are each preferably greater than two.
  • a received digital input code is split into a set of K sub-codes corresponding to the digital input code.
  • the set of K sub-codes can have one of at least N different sub-code orders that specify an order of each of the K subcodes with respect to one another, where N > 2.
  • a sum of the K sub-codes equals the digital input code.
  • One of the at least N different sub-code orders is selected using a shuffling algorithm. Then, each sub-code in the set of K sub-codes is output in accordance with the selected sub-code order.
  • each of the K sub-codes is not different than any of the other K-l sub-codes within the set of K sub-codes by more than one level.
  • the shuffling algorithm is a dynamic element mismatch shaping algorithm.
  • the selecting the one of the at least N different sub-code orders is performed using the dynamic element mismatch shaping algorithm.
  • the selecting of the one of the at least N different sub-code orders based on (1) one or more sub-code orders that were previously selected, and/or (2) a pseudo random code.
  • each sub-code in the set of K sub-codes is provided to a respective one of K shufflers in accordance with the selected sub-code order.
  • Each of the K sub-codes is then separately shuffled using the respective shuffler to thereby produce K separate multi-bit shuffled density codes.
  • each of the K shuffled density codes is then provided to a respective one of K multi-element sub-digital-to-analog converters (sub-DACs), in accordance with the selected sub-code order.
  • sub-DACs sub-digital-to-analog converters
  • Each of the K multi-element sub- DACs. is driven using the respective one of the K shuffled density codes.
  • a plurality of analog signals are thereby produced and combined to produce a combined analog signal representative of the received digital input signal.
  • a range signal is produced based on a received digital input code.
  • the range signal specifies which one of a plurality of ranges the digital input code is within.
  • a density code is then produced.
  • the density code specifies a level within the range expressed by the range signal.
  • the producing of the density code may include selecting one of a plurality of orders for the density code using a shuffling algorithm, wherein each of the orders specify an order of bits in the density code. Preferably, as these steps are repeated, each one of the different orders, on average, is selected substantially the same number of times.
  • the range signal and the density code are then combined to thereby produce a plurality of sub-codes.
  • a sum of the plurality of sub-codes equals the digital input code.
  • Each of the plurality of sub-codes are preferably shuffled to produce a plurality of shuffled sub-codes.
  • Each of the plurality of shuffled subcodes is then provided to a respective multi-element sub-digital-to-analog converter (sub-DAC).
  • the sub-DACs convert the shuffled sub-codes to analog signals, the sum of which equal the received digital input code from which the range and density signal were produced.
  • a digital input code having a first value VI is received.
  • a second digital value V2 is then produced, wherein V2 equals a greatest integer less than VI ⁇ K, where K > 2.
  • a third digital value V3 is produced, where V3 equals VI modulo K.
  • a shuffled density code is produced based on the third digital value V3.
  • the shuffled density code includes K bits each of which has a value of 0 or 1. An order of the K bits with respect to one another is based on a shuffling algorithm.
  • V2 is separately added to each of the K bits to produce K separate further digital outputs V4 j .... V4 K .
  • Each of the K separate further digital outputs V4,....V4 K can then be provided to one of K separate shufflers.
  • Each of the digital outputs V4,....V4 K is then shuffled using one of the K shufflers to produce a respective shuffled subcode, thereby producing K shuffled sub-codes for each digital input code.
  • Each of the K shuffled sub-codes is then provided to a separate one of K multi-bit sub-digital-to-analog converters (sub-DACs).
  • the sub-DACs are used to convert each of the K shuffled sub-codes to analog signals, thereby producing a plurality of analog signals.
  • the plurality of analog signals are then combined to produce a combined analog signal that is representative of the first value VI .
  • FIG. 1 illustrates an exemplary environment including a digital sigma delta modulator, in which the present invention can be useful
  • FIG. 2 illustrates an exemplary environment including an analog sigma delta modulator, in which the present invention can be useful
  • FIG. 3 is a high level block diagram that includes a mismatch shaping network, according to an embodiment of the present invention
  • FIG. 4 is a block diagram that illustrates details of the code splitter and code shuffler of the mismatch shaping network of FIG. 3, according to an embodiment of the present invention
  • FIG. 4 is a block diagram that illustrates details of the code splitter and code shuffler of the mismatch shaping network of FIG. 3, according to an embodiment of the present invention
  • FIG. 5 is a block diagram that illustrates additional details of the code splitter and code shuffler of the mismatch shaping network in FIG. 3, according to an embodiment of the present invention
  • FIG. 6 is a block diagram that illustrates additional details of the shufflers of the code splitter and code shuffler in FIG. 5, according to an embodiment of the present invention
  • FIG. 7 is a state diagram that is useful for explaining the state machines of the shufflers in FIG. 6, according to an embodiment of the present invention
  • FIG. 8 is a block diagram of a state machine of the shuffler in FIG. 6, according to an embodiment of the present invention
  • FIG. 9 is a block diagram of the adder block of the code splitter and code shuffler in FIG.
  • FIG. 10 is a block diagram that illustrates additional details of the shufflers of the mismatch shaping network in FIG. 3;
  • FIG. 11 is an implementation of the MUX shown in FIG. 5, according to an embodiment of the present invention.
  • FIG. 12 illustrates an exemplary implementation of an adder that can be
  • FIG. 13 is a block diagram of showing an alternative embodiment of a mismatch shaping network
  • FIG. 14 is a block diagram illustrating a first implementation of the mismatch shaping network of FIG. 13
  • FIG. 15 is a block diagram illustrating a second implementation of the mismatch shaping network of FIG. 13
  • FIGS. 16-18 are flow diagrams illustrating methods of the present invention.
  • FIG. 1 shows an exemplary environment in which the present invention is useful. More specifically, FIG. 1 shows an exemplary multi-bit sigma-delta ( ⁇ ) digital to analog converter (DAC) 102.
  • Multi-bit ⁇ DAC 102 includes a digital interpolation filter 106, a differencer 110, a digital loop filter 114, a digital quantizer 118, a multi-bit DAC 122 and an analog filter 126.
  • Differencer 110, digital loop filter 114 and digital quantizer 118, arranged with a feedback loop as shown in FIG. 1, is often referred to as a digital ⁇ modulator 130.
  • Digital interpolation filter 106 receives a digital input signal 104, which is for example a 32 bit digital signal containing audio information. Filter 106 outputs an interpolated digital signal 108. Differencer 110 subtracts a feedback signal 120 from interpolated digital signal 108 to produce an error signal 112. Digital loop filter 114 filters error signal 112 to produce a filtered error signal 116. Digital quantizer 118 quantizes signal 116 into a predetermined number of levels and outputs multi-bit signal 120 (e.g., a 5 bit signal having 17 levels, binary 00000 through binary 10000). As mentioned above, multi-bit signal 120 is used in a feedback loop (and thus, is also referred to as feedback signal 120) to produce error signal 112.
  • multi-bit signal 120 is used in a feedback loop (and thus, is also referred to as feedback signal 120) to produce error signal 112.
  • Multi-bit signal 120 is also provided to multi-bit DAC 122, which performs mismatch shaping, for example, in accordance with an embodiment of the present invention.
  • Multi-bit DAC 122 outputs an analog signal 124 that is preferably filtered by analog filter 126 (e.g., a low pass or band pass filter) to produce a filtered analog signal 128.
  • Filtered analog signal 128 can be used, for example, to drive a speaker to produce an audio output.
  • FIG. 2 shows another exemplary environment in which the present invention is useful. More specifically, FIG. 2 shows a multi-bit sigma-delta ( ⁇ ) analog to digital converter (ADC) 202.
  • ADC analog to digital converter
  • Multi-bit ⁇ ADC includes a differencer 206, an analog loop filter 210, a multi-bit ADC 214 a multi -bit DAC 218 (arranged in a feed back loop), and a digital decimator filter 222.
  • Differencer 206, analog loop filter 210, multi-bit ADC 214 and multi-bit DAC 218 arranged in the feed back loop as shown in FIG. 2, is often referred to as an analog ⁇ modulator 230.
  • Differencer 206 receives an analog input signal 204, and subtracts an analog feedback signal 220 from input signal 204 to produce an error signal 208.
  • Analog loop filter 210 filters error signal 208 to produce a filtered error signal 212.
  • Multi-bit ADC 214 converts the analog signal 212 to a multi-bit digital signal 216 (e.g., a 5 bit signal having 17 levels, binary 00000 through binary 10000).
  • Multi-bit digital signal 216 is provided to digital decimator filter 222, which produces a decimated digital output signal 224.
  • Multi-bit digital signal 216 is also provided to multi-bit DAC 218, which performs mismatch shaping, for example, in accordance with an embodiment of the present invention.
  • the analog signal 220 produced by multi-bit DAC 218 is used as a feedback signal (and thus, is also referred to as feedback signal 220).
  • the present invention provides a mismatch shaping network for multi-bit DAC 122, which receives a multi-bit digital signal 120 from digital ⁇ modulator 130.
  • the present invention can also provide a mismatch shaping network for multi-bit DAC 218 (used in the feedback loop), which receives a multi-bit digital signal 216 from multi-bit ADC 214 of analog ⁇ modulator 230.
  • the present invention is used to spectrally shape mismatch errors associated with multi-bit DACs 122 and 218.
  • FIG. 3 shows a block diagram of a multi-bit DAC 300 (e.g., multi-bit
  • mismatch shaping network 302 includes a code splitter & code shuffler (CSCS) 306, and four separate shufflers 310a, 310b, 310c and 310d.
  • Multi-bit DAC 300 receives a digital input signal 304 (e.g., multi-bit digital signal 120 or 216) and converts it to an analog output signal 314 representative of the digital input signal 304.
  • mismatch shaping hereafter also refers to the shaping of mismatches in analog circuitry between sub-DACs (e.g., 312a, 312b, 312c and 312d) as well as the shaping of mismatches in analog unit elements within each sub-DAC.
  • a shuffler is hereafter defined as a block which receives a digital input signal and produces an output digital density signal in which the order of the ones and zeros in the output digital density signal is not correlated to the digital input signal (and thus, the outputs of shufflers are also referred to as shuffled density codes).
  • a shuffling algorithm is the algorithm used by a shuffler to produce such an uncorrelated output based on an input signal.
  • a shuffler is a dynamic element mismatch circuit that implements a dynamic element mismatch shaping algorithm. This type of shuffler implementation typically includes one or more memory elements to track the order of the ones and zeros produced previously in the output digital density signal.
  • Another shuffler implementation either includes a pseudo-random sequence generator to generate a pseudo-random sequence or it receives a pseudo-random sequence.
  • the pseudo- random sequence is used to randomize the location of the ones and zeros in the output digital density sequence.
  • a shuffler may also use a combination of dynamic element mismatch circuitry and a pseudo random sequence to ensure that the order of the ones and zeros in the output digital density signal is not correlated to the digital input signal.
  • the density of a digital signal (and more specifically the density of digital words of the digital signal) specifies how many of the bits in a word are a specific bit or logic value (i.e., logic one).
  • a four bit word can have a density of zero, l/4th, l A, 3 /4th or one. More specifically, the four bit word "0000” has a density of 0/4th (i.e., zero).
  • the four bit word “l l l l” has a density of 4/4th (i.e, one).
  • CSCS 306 can for example receive digital input signal 304 from a digital ⁇ modulator (e.g., digital ⁇ modulator 130) or from a multi-bit ADC (e.g., multi-bit ADC 214) of an analog ⁇ modulator (e.g., analog ⁇ modulator 230).
  • a digital ⁇ modulator e.g., digital ⁇ modulator 130
  • a multi-bit ADC e.g., multi-bit ADC 214
  • analog ⁇ modulator e.g., analog ⁇ modulator 230
  • the present invention can be used in an environment that does not include a ⁇ modulator.
  • FIG. 1 if digital ⁇ modulator 130 were replaced with a simple quantizer, CSCS 306 would receive digital input signal 304 directly from the quantizer.
  • Each digital word of digital signal 304 shall often be referred to herein as a digital input code, or simply as an input code.
  • CSCS 306 splits each digital input code into four subcodes 308a, 308b, 308c and 308d (also referred to collectively as a "set of subcodes"), and provides each of the four sub-codes 308a, 308b, 308c and 308d to one of the four separate shufflers 310a, 310b, 310c and 310d.
  • CSCS 306 splits input code 304 into the four sub-codes 308a, 308b, 308c and 308d as equitably as possible (i.e., so each of the four sub-codes is not different than any of the other three sub-codes by more than one level, as will be clear from example shown below).
  • the sum of the four sub-codes 308a, 308b, 308c and 308d is equal to digital input code 304.
  • the way codes are split is dependent on the incoming digital input code 304 as well as one or more memory elements that track how that particular code was previously split.
  • a particular sub-code is preferably cycled to each of the multiple shufflers 310a, 310b, 310c and 3 lOd to implement mismatch shaping at the sub-code level.
  • Specific implementations of CSCS 306 are described in detail below. Provided first is a more detailed overview of CSCS 306 (also referred to simply as "splitter 306").
  • each input code 304 is as equitably split as possible into four sub-codes 308a, 308b, 308c and 308d.
  • the first sub-code of 2 may initially be assigned to first shuffler 310a.
  • the second sub-code of 2 may initially be assigned to second shuffler 310b
  • the third sub-code of 2 may initially be assigned to third shuffler 310c
  • the last sub-code of 1 may be initially assigned to fourth shuffler 31 Od.
  • CSCS 306 may then cycle back the next time a code of seven appears as the input, depending on the specific implementation. No memory elements are needed for an input code of eight, since each of the four shufflers will always be assigned a value of two.
  • Table 1 is a splitter sub-code table illustrating the way splitter 306 may split digital input code 304 into four separate sub-codes.
  • the first column of Table 1 identifies the possible values of digital input code 304.
  • digital input code 304 in this example is a seventeen level code.
  • the next four columns of Table 1 specify the members (i.e., values) of the subcode sets that correspond to the input codes in the first column.
  • the sub-code set corresponding to an input code of seven includes values 2, 2, 2 and 1, as mentioned above.
  • the last column of Table 1 lists the total number of different sub-code combinations that can be produced when an input code is split.
  • an incoming code of seven can be split into four sub-code combinations, 2+2+2+ 1 , 2+2+ 1+2, 2+1 +2+2 and 1 +2+2+2. Notice that for each input code, the members of the corresponding sub-code set remain the same. Only the sub-code order associated with the set changes (i.e, the order of the sub-codes in the set with respect to one another). Accordingly, a sub-code "combination" can be thought of as a sub-code set associated with a sub-code order. Thus, the last column of Table 1 can be thought of as specifying the number of different sub-code orders that can be associated with a sub-code set.
  • an incoming code of six can be split into four subcodes with six different combinations, namely, 2+2+1+1, 2+1+1+2, 1+1+2+2, 2+1+2+1, 1+2+1+2 and 1+2+2+1. Therefore, if an input code of six appears six times in a row, the splitter may cycle through all the available combinations. However, use of all six combinations may not be necessary because the inventors have determined that for each digital input code 304 having six available combinations (i.e., inputs codes 2, 6, 10 and 14, as shown in Table 1), sufficient mismatch shaping performance is achieved using just two or four of the six possible combinations. This can simplify the implementation of splitter 306.
  • shufflers 310a, 310b, 310c and 31 Od are converted to shuffled density codes by shufflers 310a, 310b, 310c and 31 Od.
  • the individual sub-code is preferably shuffled using dynamic element mismatch techniques combined with a pseudo random sequence. This combination can be used to provide minimal correlation between sub-codes and the order of the ones and zeros in the output digital density signal produce by each shuffler 310.
  • An exemplary implementation of shufflers 310, according to an embodiment of the present invention, is explained below with reference to FIG. 10.
  • each of the shufflers e.g., 310a
  • shuffles one of the four sub-codes e.g., 308a
  • produce a four-bit shuffled density code e.g., 311a
  • Each of the four separate 1-bit outputs which is either HIGH or LOW, is provided to an analog unit element.
  • Each analog unit element is shown as a triangle in FIG. 3.
  • Each group of four analog unit elements can be thought of as a four element sub-DAC 312, which is also referred to as a multi-bit sub-DAC.
  • Sub-DACs 312a, 312b, 312c and 312d are nominally identical multi-level sub-DACs that have non-ideal gain and offset.
  • the outputs (311a, 311b, 311c and Sl id) of each shuffler 310a, 310b, 310c and 310d drives one of the four separate four element sub-DACs 312a, 312b, 312c and 312d.
  • CSCS 306 has the effect of moving the in-band component of error energy due to the effect of gain mismatch errors in sub-DACs 312a, 312b, 312c, and 312d to out-of-band frequencies.
  • CSCS 306 provides mismatch shaping of mismatch errors between sub-DACs and/or it whitens the error energy resulting from mismatch errors between sub-DACs and spreads the error energy throughout the frequency band from DC to fs/2 (where fs represents the sample rate of the sub-DACs). This substantially reduces the component of in-band error energy due to mismatch between the sub-DACs.
  • the shufflers 310a, 310b, 310c, and 310d provide mismatch shaping of element mismatch errors within each sub-DAC and/or whiten the error energy resulting from mismatch errors between elements in each sub-DAC and spread the error energy throughout the frequency band from DC to fs/2. This substantially reduces the component of in-band error energy due to mismatch errors between elements in each sub-DAC.
  • the combination of CSCS 306 and shufflers 310a, 310b, 310c, and 31 Od is to reduce the in-band component of all the error energy associated with mismatch errors in sub-DACs 312a, 312b, 312c, and 312d.
  • FIG.3 there are sixteen ( 16) analog unit elements (shown as triangles) being driven (i.e., flipped or switched).
  • the analog unit element When the input to an analog unit element is HIGH, the analog unit element will output a first analog value (e.g., 100 ⁇ A), and the element is considered ON (i.e., flipped or switched on).
  • the analog unit element When the input to an analog unit element is LOW, the analog unit element will output a second analog value (e.g., 0 ⁇ A), and the element is considered OFF (i.e., flipped or switched off).
  • the plurality of elements are said to be "mismatched" if each of the plurality of unit elements does not output the exact same first and second analog values as the other unit elements.
  • a first element when a first element is ON it may output 104 ⁇ A, where a second element may output 98 ⁇ A when ON, and a third element may output 111 ⁇ A when ON.
  • the present invention performs mismatch shaping to overcome or compensate for such mismatch.
  • the outputs of the sixteen (16) analog unit elements are added together, for example, on a wire, to produce an analog output 314 that is representative of the digital input 304.
  • each of the unit elements (shown as triangles) are evenly weighted such that if the elements were perfectly matched, then the first analog value associated with each of the elements would be equal, and the second analog value associated with each of the elements would be equal.
  • analog output 314 can have one of seventeen (17) different states (also referred to as levels or values).
  • the first level is when none of the sixteen elements are ON
  • the second level is when only one of the sixteen elements are ON
  • the third level is when two of the sixteen elements are ON
  • .... the seventeenth level is when all sixteen elements are ON.
  • Five (5) binary bits are required to represent the seventeen different levels (even though five binary bits can represent up to thirty two levels).
  • digital input 304 is a seventeen level unsigned binary input. Accordingly, digital input 304 is shown as a five (5) bit binary word that can have a value between binary 00000 (decimal zero) and binary 10000 (decimal 16).
  • digital input 304 need only include four (4) binary bits that can have a value between binary 0000 (decimal zero) and binary l l l l (decimal 15).
  • digital input signal 304 can alternatively be a signed binary input or a thermometer-code input.
  • digital input signal 304 need not be a binary signal.
  • the above described exemplary embodiment of the mismatch shaping network of the present invention is shown as splitting a digital input code into four sub-codes, which are each provided to one of four separate shufflers.
  • a digital input code can be split into a different number of subcodes (i.e., other than four) while still being within the spirit and scope of the present invention.
  • the digital input code is split into more than two sub-codes.
  • a shuffler may be provided for each sub-code. For example, if the digital input code is split into three sub-codes, then three shufflers may be used.
  • shufflers other than 4-term shufflers can be used.
  • FIG.4 shows another block diagram of multi-bit DAC 300, also a referred to as an L-level DAC, where L is preferably greater than two (i.e., L > 2).
  • FIG. 4 is useful for explaining the operation of CSCS 306.
  • CSCS 306 includes a range selector 402, a density generator 404 and a combiner 406, each of which is discussed below.
  • Range selector 402 receives digital input signal 304 and determines wliich one of a plurality of predetermined ranges digital input signal 304 is within.
  • Each digital word of digital input signal 304 represents one of L-levels (i.e., digital input signal 304 is an L-level signal), where L is preferably greater than two (i.e., L > 2).
  • Range selector 402 outputs a range signal 410 specifying the determined range of digital input signal 304. For example, assume digital input signal 304 is a 17 level signal (e.g., a binary word between 00000 and 10000, inclusive). Also assume that there are five (e.g., 0 - 4) predetermined ranges:
  • range selector 304 receives a digital input signal 304 that equals binary 00101 (decimal 5), then range signal 310 will indicate that the digital input signal 304 is within the 1 st range. Notice that one of the ranges (i.e., the 4 th range) includes only one possible value. [0064] If digital input signal 304 is a binary signal, then range selector 402 can make its level determination based on only the most significant bits (MSBs) of digital input signal 304. Continuing with the example where digital input signal 304 can be a binary word between 00000 and 10000, range selector 402 need only receive the three MSBs of digital input signal 304 to makes its level determination.
  • MSBs most significant bits
  • range selector 402 can be implemented as a binary to one-of encoder (also referred to as a one-of selector)- If range selector 402 is implemented as a binary to one-of encoder, then range signal 410 can be a multi-bit signal, where only one of the multiple bits is HIGH at one time.
  • range signal can be a five bit (non-binary) signal, where: 00001 represents the 0 th range; 00010 represents the 1 st range; 00100 represents the 2 nd range; 01000 represents the 3 rd range; 10000 represents the 4 th range. This will be explained in more detail below.
  • Density generator 404 produces a K bit density signal 412 that indicates a level within the range expressed by range signal 410. Stated another way, density signal 412 indicates a difference between digital input signal 404 and the beginning value of a range. Density generator 404 produces density signal 412 based on digital input signal 304 and/or a modulo signal 408 produced by range selector 402. Continuing with the example where digital input signal 304 equals binary 00101 (decimal 5), which is within the 1 st range, density signal 412 will specify that digital input signal 304 is greater than the beginning of the 1 st range (i.e., 4) by a value of one (1). Thus, assuming for example that density signal 412 is a four bit density code, density signal 412 can be either 1000, 0100, 0010 or 0001 (each having a density of l/4th).
  • digital input signal 304 is greater than the beginning of the 1 st range by a value of two (i.e., if digital input signal 304 has a value of 6, then density signal 412 would have a density of 2/4th (i.e., either 1100, 0011, 1010, 0101, 1001 or 0110).
  • density signal 412 would have a density of 3 /4th (i.e., either 0111, 1011, 1101 or 1110).
  • density signal 412 would have a density of 0/4th (i.e., 0000).
  • density generator 410 can produce density signal 412 based on the least significant bits (LSBs) of digital input signal 304, Continuing with the example where digital input signal 304 can be a binary word between 00000 and 10000, then density generator 404 need only receive the two LSBs of digital input signal 304 to produce density signal 412.
  • LSBs least significant bits
  • K 4-bit density signal
  • density signal 412 equals 0001, 0010, 0100 or 1000, which represents a density of l/4th. This will be explained in more detail below.
  • density generator 404 For a given value of digital input code 304 (or for a given value of modulo signal 408), density generator 404 preferably produces a pattern of possible density codes such that, on average, each density code occurs approximately the same number of times. For example, if digital input signal 304 has a value of five (e.g., binary 00101) four times in a row, then density generator 404 should produce a pattern of all variations 0001, 0010, 0100 and 1000, such that, on average, these four codes are produced approximately the same number of times.
  • Combiner 406 produces K separate sub-codes based on both range signal
  • K is preferably greater than two (i.e., K > 2).
  • the sum of the K sub-codes equals the digital input signal 304. Additionally, each of the K sub-codes are as equal to one another as possible, as explained above with reference to Table 1.
  • range signal 410 specifies that digital input signal 304 is within the 1 st range
  • density signal 412 specifies a density of 1 /4th, as explained above. Because range signal 410 specifies that digital input signal 304 is within the 1 st range, combiner 406 knows that the sub-codes should be made up of ones (Is) and twos (2s). Because density signal 412 specifies a density of l/4th, combiner 406 knows that one of the four sub-codes should be a two (2) and the remaining three sub-codes should be a one (1).
  • combiner 406 This causes combiner 406 to produce a pattern of the various combinations for each value of digital input signal 304 such that each possible sub-code for each value of digital input signal 304 occurs, on average, approximately the same number of times. For example, if digital input signal 304 has a value of five, four times in a row, combiner 406 cycles through the possible sub-code outputs 2+1+1+1, 1+2+1+1, 1+1+2+1 and 1+1+1+2.
  • Density generator 404 preferably produces the possible density codes in a pseudo random fashion so that the next four times digital input signal 304 equals five, the pattern occurs in a different order.
  • the patterns produces with the various sub-code combinations have the effect of averaging the error of each multi-bit sub-DAC, or equivalently moving the effect of the errors to out of band frequencies.
  • the shufflers (310) mismatch shape each individual multi-bit sub-DAC so that the total effect is that substantially all errors are moved out of band.
  • mismatch shaping network 302 A first implementation of mismatch shaping network 302 will now be described with reference to FIGS. 5 - 10.
  • CSCS 306 also referred to as splitter 306
  • x ⁇ 4> represents the most significant bit (MSB).
  • x ⁇ 0> represents the least significant bit (LSB).
  • the term x ⁇ 2:0> for example, refers to the 2 nd through 0 th bits.
  • CSCS 306 includes a binary to one- of encoder 501, four separate shufflers 502a, 502b, 502c and 502d, a multiplexor (MUX) 506, and an adder block 510.
  • MUX multiplexor
  • the inputs to binary to one-of encoder 501 are x ⁇ 4>, x ⁇ 3> and x ⁇ 2> (also referenced as x ⁇ 4:2>), which are the tliree (3) MSBs of digital input 304.
  • the binary to one-of encoder 501 is an implementation of range selector 402 discussed above in connection with FIG. 4.
  • the "xeq" output of binary to one-of encoder 501 is an implementation of range signal 410, also discussed above in connection with FIG. 4.
  • the "xeq" output of binary to one-of encoder 501 is based on the decimal value of the three MSBs of binary digital signal 304. That is: when x ⁇ 4:2> has a value 4, xeq4 is HIGH; when x ⁇ 4:2> has a value 3, xeq3 is HIGH; when x ⁇ 4:2> has a value 2, xeq2 is HIGH, when x ⁇ 4:2> has a value 1, xeql is HIGH, and when x ⁇ 4:2> has a value 0, xeqO is HIGH.
  • xeqO is HIGH when x ⁇ 4>, x ⁇ 3> and x ⁇ 2> are all LOW (i.e., xeqO - x ⁇ 4 > • x ⁇ 3 > • x ⁇ 2 > ).
  • x ⁇ 4:2> equals binary 000 (i.e., xeqO is HIGH), when input code 304 (i.e., x ⁇ 4:0>) equals binary 00000 (i.e., 0), 00001 (i.e., 1), 00010 (i.e., 2), or 00011 (i.e., 3). Stated another way, xeqO is HIGH when digital input signal 304 is within the 0 th range (0-3).
  • xeql The output referred to as xeql is HIGH when x ⁇ 4> and x ⁇ 3> are LOW, and x ⁇ 2> is HIGH (i.e., xeql - x ⁇ 4>-x ⁇ 3>-x ⁇ 2> ).
  • x ⁇ 4:2> equals binary 001 (i.e., xeql is HIGH), when input code 304 (i.e., x ⁇ 4:0>) equals binary 00100 (i.e., 4), 00101 (i.e., 5), 00110 (i.e., 6), or 00111 (i.e., 7). Stated another way, xeql is HIGH when digital input signal 304 is within the 1 st range (4-7).
  • x ⁇ 4:2> equals binary 011 (i.e., xeq3 is HIGH), when input code 304 (i.e., x ⁇ 4:0>) equals binary 01100 (i.e., 12), 01101 (i.e., 13), OHIO (i.e., 14), or 01111 (i.e., 15). Stated another way, xeq3 is HIGH when digital input signal 304 is within the 3 rd range (12-15).
  • xeq4 is HIGH when x ⁇ 4> is high, and x ⁇ 2> and x ⁇ 3> are LOW (i.e., xeq4 - x ⁇ 4> -x ⁇ 3> • x ⁇ 2> ).
  • x ⁇ 4:2> equals binary 100 (i.e., xeq4 is HIGH), only when input code 304 (i.e., x ⁇ 4:0>) equals binary 10000 (i.e., 16). Stated another way, xeq4 is HIGH when digital input signal 305 is within the 4 th range (16).
  • Binary to one-of encoder 501 enables only one of four (4) separate shufflers 502a, 502b, 502c and 502d at one time, because only one of xeqO, xeql, xeq2 and ⁇ eq3 can be HIGH at one time.
  • shuffler 502a is enabled only when xeqO is HIGH, and thus, when input code 304 (i.e., x ⁇ 4:0>) equals binary 00000 (i.e., 0), 00001 (i.e., 1), 00010 (i.e., 2), or 00011 (i.e., 3), as explained above.
  • Shuffler 502b is enabled only when xeql is HIGH, and thus, when input code 304 (i.e., x ⁇ 4:0>) equals binary 00100 (i.e., 4), 00101 (i.e., 5), . 00110 (i.e., 6), or 00111 (i.e., 7).
  • Shuffler 502c is enabled only when xeq2 is HIGH, and thus, when input code 304 (i.e., x ⁇ 4:0>) equals binary 01000 (i.e., 8), 01001 (i.e., 9), 01010 (i.e., 10), or 01011 (i.e., 11).
  • Shuffler 502d is enabled only when xeq3 is HIGH, and thus, when input code 304 (i.e., x ⁇ 4:0>) equals binary 01100 (i.e., 12), 01101 (i.e., 13), OH IO (i.e., 14), or 01111 (i.e., 15).
  • each shuffler 502a, 502b, 502c and 502d when enabled, shuffles the value represented by the two LSBs x ⁇ l :0> of digital input 304, and outputs a respective four bit shuffled density code (not a binary word) 504a, 504b, 504c and 504d.
  • MUX 506 Based on which of xeq3 :xeq0 is HIGH, MUX 506 provides a four bit shuffled density code 504a, 504b, 504c or 504d to Adder block 510 as four bit density code 508.
  • MUX 506 can be replaced with four OR gates, as shown in FIG. 11 (with the outputs of the four OR gates making up four bit density code 508).
  • shufflers 502a, 502b, 502c and 502d together with MUX 506 are an implementation of density generator 404, discussed above in connection with FIG. 4.
  • four bit density code 508 is an implementation of density signal 412, also discussed above in comiection with FIG. 4.
  • Adder block 510 based in part on which of xeq4:xeq0 is HIGH, outputs sub-codes 308a, 308b, 308c and 308d as four (4) separate three (3) bit binary outputs (that are provided to shufflers 310a, 310b, 310c, 3 lOd, as shown in FIG. 3). Outputs 308a, 308b, 308c and 308d are based in part on four bit density code 508 when one of xeq3 :xeq0 is HIGH.
  • Adder block 510 is an implementation of combiner 406, discussed above in connection with FIG. 4. Adder block 510 is discussed in more detail below with reference to FIG. 9.
  • shufflers 502a, 502b, 502c and 502d of code splitter 306 shall be described with reference to FIG. 6.
  • shuffler 502a is enabled when xeqO is HIGH
  • shuffler 502b is enabled when xeql is HIGH
  • shuffler 502c is enabled when xeq2 is HIGH
  • shuffler 502c is enabled when xeq3 is HIGH.
  • Each shuffler 502a, 502b, 502c and 502d is essentially the same, and thus, shall be described generically, with reference to FIG 6, as shuffler 502.
  • a binary to one-of encoder 601 including tliree (3) AND gates.
  • the inputs to binary to one-of encoder 601 are x ⁇ l> and x ⁇ 0> (also references as x ⁇ l :0>), which are the two LSBs of digital input signal 304, and EN (enable).
  • the "xeq' " output of binary to-one encoder 601 is based on the decimal value of the two LSBs of digital input signal 304.
  • the output referred to as xeq3' is HIGH when x ⁇ l> and x ⁇ 0> are HIGH; the output referred to as xeq2' is HIGH when x ⁇ l> is HIGH and x ⁇ 0> is LOW; and the output referred to as xeql' is HIGH when x ⁇ l> LOW and x ⁇ 0> is HIGH.
  • Binary to one-of encoder 601 enables one of tliree (3) separate four-state state machines 602a, 602b and 602c (also referred to simply as "state machines"). Only one of the four-state state machines is enabled at one time, because only one of xeql', xeq2' and xeq3' can be HIGH at one time.
  • Each state machine 602a, 602b and 602c when enabled, outputs a respective two bit binary word 604a, 604b and 604d that is representative of one of four possible states (i.e., binary 00, 01, 10 and 11).
  • the state machines are designed such that they cycle through the four possible states so that each state appears at the output of a specific state machine (e.g., state machine 602a) once every four times that particular state machine is enabled.
  • Each state machine utilizes a pseudo random dither code such that it cycles through the four possible states in a pseudo random manner. Additional details of an exemplary embodiment of the state machines 602a, 602b and 602c are described with reference to FIGS. 7 and 8.
  • Each two-bit binary word 606a, 606b or 606c is used to select one of four different four bit shuffled density codes from a respective RAM 606a, 606b and 606c.
  • state machine 602c selects one of the four possible density code outputs 0111, 1011, 1101, and 1110 (not binary) that can be selected from RAM 606c. Each of these outputs has a density of 3/4th.
  • x ⁇ l :0> equals binary 11 (i.e., xeq3' is HIGH) when input code 304 (i.e., x ⁇ 4:0>) equals binary 01111 (i.e., 15), 01011 (i.e.,11), 00111 (i.e., 7), or 00011 (i.e., 3).
  • Table 1 there are four possible combinations associated with each of these input codes 304.
  • the sub-code set for each of these input codes 304 includes three of the higher value sub-codes and one of the lower value sub-codes.
  • state machine 602b selects one of the four possible density code outputs 0011, 1100, 1010, and 0101 (not binary) that can be selected from RAM 606b. Each of these outputs has a density of 2/4th.
  • x ⁇ l :0> equals binary 10 (i.e., xeq2' is HIGH) when input code 304 (i.e., x ⁇ 4:0>) equals binary 01110 (i.e., 14), 01010 (i.e.,10), 00110 (i.e., 6), or 00010 (i.e., 2).
  • input code 304 i.e., x ⁇ 4:0>
  • 01110 i.e., 14
  • 01010 i.e.,10
  • 00110 i.e., 6
  • 00010 i.e., 2
  • Table 1 there are six possible combinations associated with each of these input codes 304. As mentioned above, the inventors have determined that for each of these input codes 304, sufficient mismatch shaping performance is achieved using j ust four of the six possible combinations, or using just two of the six possible combinations.
  • State machine 602b selects one of four outputs rather than selecting one of six outputs or selecting one of two outputs, because this results in a convenient implementation.
  • An implementation choosing one of four outputs enables the use of an identical state machine implementation for state machine 602b as that used for state machines 602a and 602c.
  • One of ordinary skill in the art would appreciate from the description herein how to modify state machine 602b so that it selects one of six outputs or so that it selects one of two outputs.
  • the sub-code set for each of these input codes 304 includes two of the higher value sub-codes and two of the lower value sub-codes.
  • state machine 602a selects one of the four possible density code outputs 0001, 0010, 0100, and 1000 (not binary) that can be selected from RAM 606a. Each of these outputs has a density of l/4th.
  • x ⁇ l :0> equals binary 01 (i.e., xeql' is HIGH) when input code 304 (i.e., x ⁇ 4:0>) equals binary 01101 (i.e., 13), 01001 (i.e., 9), 00101 (i.e., 5), or 00001 (i.e., 1).
  • the sub-code set for each of these input codes 304 includes one of the higher value sub-codes and three of the lower value sub-codes.
  • OR gate 608 As shown at the right of FIG. 6, one of the twelve possible density codes are output from an OR gate 608 as four bit density code (not a binary word) 504, based on x ⁇ 0:l> and the enabled state machine.
  • OR gate 608 is actually implemented using four OR gates.
  • each of the three AND gates shown at the right in FIG. 6 are implemented using four AND gates. These logic gates are shown as they are to avoid unnecessary clutter in the figures.
  • x ⁇ 0> and x ⁇ l> are both LOW (i.e., when the two LSBs x ⁇ l :0> equals binary 00)
  • the four bit shuffled density code 504 equals 0000 (not binary).
  • x ⁇ l :0> equals binary 00 when input code 304 (i.e., x ⁇ 4:0>) equals binary 10000 (i.e., 16), 01100 (i.e., 12), 01000 (i.e., 8), 00100 (i.e., 4), or 00000 (i.e., 0).
  • output code 504 equals 0000 (density code).
  • Table 1 there is only one possible combination associated with each of these input codes 304.
  • the sub-code set for each of these input codes 304 includes only the lower value of the two possible values for the corresponding range.
  • Each of the shufflers 502a, 502b, 502c and 502d of CSCS 306 are shown as being implemented using tliree separate 4-state state machines 602a, 602b, 602c.
  • shufflers 302a, 302b, 302c and 302d can also be implemented using 4-state state machines. Accordingly, the exemplary embodiment of a 4-state state machine (also simply referred to as a "state machine") explained with reference to FIGS. 7 and 8 can be used in shufflers 502a, 502b, 502c, 502d and/or shufflers 302a, 302b, 302c, 302d.
  • each state machine receives an enable (EN) signal and a pseudo random dither signal (DI), and outputs a two bit binary signal (e.g., 604a, 604b, 604c) that is one of four states (i.e., 00, 01, 10 and 11).
  • the state machines are preferably designed such that they produce a pattern of the four possible states in a pseudo random manner such that, on average, each of the four states occurs approximately the same number of times.
  • the exemplary state machine outputs a next state based: on a previous state; a pseudo random dither signal (also simply referred to as a dither signal); and a variable that shall be referred to a toggling pass signal.
  • the next or previous state can be either 00, 01 , 10 or 11. If, for example, the state is 01 , then the most significant bit (MSB) of the state is 0, and the least significant bit (LSB) of the state is 1.
  • MSB most significant bit
  • LSB least significant bit
  • Table 2 is a state table for an exemplary state machine (e.g., 602a, 602b, 602c).
  • FIG. 7 is a state diagram 700 that is consistent with the state table of
  • FIG. 8 shows an exemplary circuit of a four state state machine (e.g., 602a) that implements state diagram 700 (and thus, the state table of Table 2).
  • the state machine of FIG. 8 is implemented using tliree flip flops 802, 804 and 806, two AND gates, an OR gate, and an exclusive OR gate.
  • this circuit implements the state diagram 700 shown in FIG. 7.
  • One of ordinary skill in the art would also appreciate that other equivalent circuit diagrams can be used to implement the state table of Table 2.
  • Adder block 510 receives a density code 508 from MUX 506, when one of xeq3 :xeq0 is HIGH. When xeq4 is LOW, density code 508 is equal to one of 504a, 504b, 504c and 504d, depending on which of xeq3:xeq0 is HIGH. Based on density code 508, Adder block 510 outputs four (4) separate binary sub-codes 308a, 308b, 308c and 308d, the sum of which equals digital input code 304.
  • adder block 510 When xeq4 is HIGH, adder block 510 outputs four binary sub-codes 504a, 504b, 504c and 504d all having a value of four (i.e., binary 100).
  • sub-codes 308a, 308b, 308c and 308d differ from each other by no more than one level. For example, if 304 has a value of fifteen (i.e., binary 01111), then three of the four binary sub-codes will have a value of four (i.e., binary 100), and one of the four binary sub-codes will have a value of tliree (i.e., binary 011), as shown in Table 1.
  • shuffled density code 508 that specifies which tliree of sub-codes 308a, 308b, 308c and 308d are equal to four (i.e., binary 100), and which one of the sub-codes is equal to three (i.e., binary 011).
  • adder block 510 An exemplary implementation of adder block 510 is shown in FIG. 9.
  • adder block 510 includes adders 902a, 902b, 902c and 902d.
  • OR gate 910 passes forward a two bit code 913, which identical to two-bit code x ⁇ 3:2>, when x ⁇ 4> is LOW.
  • OR gate 910 passes forward a two bit code 913 consisting of bits "11 ", when x ⁇ 4> is HIGH.
  • Each adder 902a, 902b, 902c and 902d adds the two bits x ⁇ 3:2> (or "11" if x ⁇ 4> is a "1" bit) to a respective one of the bits of 4 bit density code 508 (i.e., to 508 ⁇ 0>, 508 ⁇ 1>, 508 ⁇ 2> and 508 ⁇ 3>, respectively) to produce sub-codes 308a, 308b, 308c and 308d.
  • An exemplary implementation of adders 902 is shown in FIG. 12.
  • FIG. 11 is an implementation of MUX 506 of FIG. 5, according to an embodiment of the present invention.
  • Four separate 4 bit shuffled density codes 504a, 504b, 504c and 504d are received at the input of MUX 506.
  • only one of the four shufflers 502a, 502b, 502c and 502d can be enabled at the same time. Therefore, only one of the four 4 bit signals 504a, 504b, 504c and 504d at the output of the shufflers can be non-zero, while the other three 4 bit signals are all equal to "0000".
  • OR gates 1105a, 1105b, 1105c and 1105d select the non-zero shuffled density code signal received at the input of MUX 506 from among all four of the shuffled density code signals 504a, 504b, 504c and 504d.
  • OR gates 1105a, 1105b, 1105c and 1105d pass forward a 4 bit shuffled density code 508 ⁇ 0>, 508 ⁇ 1>, 508 ⁇ 2> and 508 ⁇ 3>, which is equal to the non-zero shuffled density code signal received at the input of MUX 506.
  • OR gates 1105a, 1105b, 1105c and 1105d pass forward a 4 bit density code equal to "l l l l".
  • CSCS 306 generates four separate sub-codes 308a,
  • 308b, 308c and 308d from digital input code 304 (e.g., splits each digital input code 304 into four separate sub-codes 308a, 308b, 308c and 308d), the sum of which equal input code 304.
  • the four sub-codes 308a, 308b, 308c and 308d preferably differ from one another by no more than one level (i.e., input code 304 is preferably split as equitably as possible into the four sub-codes 308a, 308b, 308c and 308d).
  • CSCS 306 For each digital input code 304 having the same distinct level, CSCS 306 produces a set of the four sub-codes 308a, 308b, 308c, and 308d that may have one of a plurality of different sub-code orders with respect to each other. For example, if digital input code 304 represents a distinct level of 13, then the members of the set of sub-codes are 3, 3, 3, and 4. There are four possible sub-code orders of these sub-code members. These are: 3,3,3,4; 3,3,4,3; 3,4,3,3; and 4,3,3,3. The sub-code members in these four sets are equivalent (i.e. 3 sub-code members equal to 3 and one sub-code member equal to 4), but the order for each set is different.
  • the selection of the sub-code order for each digital input code 304 having the same distinct level is preferably based upon a combination of a digital code stored in one or memory elements and a digital pseudo-random code.
  • the digital code e.g., stored in one or more memory elements, provides information about one or more previously selected sets of the sub-codes provided by CSCS 306.
  • Selection of the sub-code order, based on a digital code stored in one or more memory elements or based upon a digital pseudo-random code, is referred to hereafter as code shuffling.
  • sub-code 308a, 308b, 308c, and 308d are preferably passed to each of multiple shufflers 310a, 310b, 310c, and 310d.
  • These shufflers produce output digital density signals 311 a, 311b, 311c, and 311 d in which the order of the ones and zeros in each output digital density signal is not correlated to the levels represented with each of the sub-codes.
  • An exemplary embodiment of shufflers 310a, 310b, 310c, and 31 Od shall now be described with reference to Fig. 10.
  • Each shuffler 310a, 310b, 310c, and 31 Od is essentially the same, and thus, shall be described generically as shuffler 310.
  • a binary to one-of encoder 1001 including four (4) AND gates.
  • the inputs to binary to one-of encoder 1001 are x ⁇ 2>, x ⁇ l> and x ⁇ 0> (which are the three (3) LSBs of digital input 304).
  • the "xeq" " output of binary to-one encoder 1001 is based on the value of the binary input of the tliree LSBs of digital signal 304.
  • the output referred to as xeq4" is HIGH when x ⁇ 2> is HIGH, and x ⁇ l> and x ⁇ 0> are LOW;
  • the output referred to as xeq3" is HIGH when x ⁇ 2> is LOW, and x ⁇ l> and x ⁇ 0> are HIGH;
  • the output referred to as xeq2" is HIGH when x ⁇ 2> and x ⁇ 0> are LOW, and x ⁇ l> is HIGH;
  • the output referred to as xeql " is HIGH when x ⁇ 2> and x ⁇ l> are LOW, and x ⁇ 0> is HIGH.
  • Binary to one-of encoder 1001 enables one of three (3) separate four-state state machines 1002a, 1002b and 1002c (also referred to simply as "state machines"). Only one of the state machines is enabled at one time, because only one of xeql", xeq2" and xeq3" can be HIGH at one time. xeq4" is only HIGH when digital input 304 equals binary 10000, which means all sixteen analog elements should be ON. When all sixteen analog elements are ON, no mismatch shaping of the elements is required.
  • Each state machine 1002a, 1002b and 1002c when enabled, outputs a respective two bit binary word 1004a, 1004b and 1004d that is representative of one of four possible states (i.e., 00, 01, 10 and 11).
  • the state machines are designed to produce patterns of the four possible states, preferably in a pseudo random manner, such that each state occurs on average at the output of a specific state machine once every four times that particular state machine is enabled.
  • State machines 1002a, 1002b and 1002c are similar to (and can even be identical to) state machines 602a, 602b and 602c. Details of an exemplary embodiment of a state machine have been discussed above with reference to FIGS. 7 and 8.
  • Each two-bit binary word 1006a, 1006b or 1006d is used to select one of four different four bit shuffled density codes from a respective RAM 1006a, 1006b or 1006c.
  • x ⁇ 2:0> equals binary 011 (i.e., xeq3" is HIGH), for example, when input code 304 (i.e., x ⁇ 4:0>) equals binary 01011 (i.e., H) or 00011 (i.e., 3).
  • the four possible density code outputs 0011 , 1100, 1010, and 0101 that can be selected from RAM 1006b each have a shuffled density code of 2/4th.
  • One of these outputs are selected when state machine 1002b is enabled by xeq2" being HIGH.
  • x ⁇ 2:0> equals binary 010 (i.e., xeq2" is HIGH), for example, when input code 304 (i.e., x ⁇ 4:0>) equals binary 01010 (i.e., 10) or 00010 (i.e., 2).
  • Shufflers 502a, 502b, 502c, 502d and/or shufflers 302a, 302b, 302c, 302d may also be implemented using many different dynamic element matching (DEM) structures, and should not be limited to the specific implementations of FIG. 6 and FIG. 10.
  • EDM dynamic element matching
  • any of the dynamic element mismatching structures described in the following patents, each of which is incorporated by reference, may be used to implement Shuffler 1310: U.S. Patent No. 5,404,142 (Adams et al), entitled “Data-Directed Scrambler For Multi-Bit Noise Shaping D/A Converters"; U.S. Patent No.
  • mismatch shaping network 302 shall now be summarized and also explained with a few examples.
  • code splitter 306 includes four code shufflers 502a, 502b, 502c and 502d. Based on the three MSBs of input code 304, code splitter 306 can determine whether the input code 304 has a value between 0 and 3 inclusive (i.e., 0-3), 4-7, 8-11, 12-15 or has a value of 16. Code splitter 306 accomplishes that by determining which of the four shufflers 502a, 502b, 502c and 502d should be enabled based on the tliree MSBs of input code 304.
  • each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 0 (binary 000) or 1 (binary 001).
  • each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 1 (binary 001) or 2 (binary 010).
  • each of the four sub-codes sub-codes 308a, 308b, 308c and 308d will have a value of 2 (binary 010) or 3 (binary 011). [0127] If304 has avalue 12-15, then xeq3 is HIGH, and shuffler 502d is enabled.
  • each of the four sub-codes sub-codes 308a, 308b, 308c and 308d will have a value of 3 (binary 011) or 4 (binary 100).
  • Each four term-shuffler which includes multiple four-state state machines, outputs a four bit density code based on the two LSBs of input code 304.
  • Each density code has a density of either 0/4th, l/4th, 2/4th or 3/4th.
  • the four bit density code defines how many of the four sub-codes should have a first value (e.g., 0) and how many should have a second value (e.g. 1).
  • the four bit density code output from shuffler 502a defines how many of the four sub-codes should have a value of 0 (binary 000) or a value of 1 (binary 001).
  • the sub-codes are added up they will equal the input code 304.
  • each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 1 (binary 001) or 0 (binary 000).
  • Shuffler 502a based on the two LSBs of input code 304 outputs a density code 504a.
  • the two LSBs of binary 00011 are binary 11. Referring to FIG.
  • digital input code 304 has a value of 10 (binary
  • 304 has a value 8-11 (i.e., is within the 2 nd range), xeq2 is HIGH, and shuffler 502c is enabled.
  • each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 2 (binary 010) or 3 (binary 011).
  • the four bit density code 504c output from shuffler 502c defines how many of the four sub-codes have a value of 3 (binary 011) and how many have a value of 2 (binary 010).
  • the four bit density code 504c will have a density of 2/4th, which means two of the four sub-codes should have a value of 3 (binary 011) and two of the four sub-codes should have a value of 2 (binary 010).
  • the four bit density code having a density of 2/4th can be 0011, 1100, 1010 or 0101.
  • the selection of one of the four density codes is based on previous density codes output when 304 had a value 10, and based on a pseudo random dither code.
  • the four bit density code output from one of shufflers 502a, 502b, 502c or 502d (or the four bit density code 1111 if 304 has a value of 16) is provided to Adder block 510 as density code 508.
  • Adder block 510 Based on the four bit density code 508, and the three MSBs of input code 304, Adder block 510 outputs four separate 3 bit binary sub-codes 308a, 308b, 308c and 308d, the sum of which equal input code 304.
  • shufflers 310a, 310b, 310c and 310d are provided to a respective one of shufflers 310a, 310b, 310c and 310d.
  • input code 304 has a value of 10
  • two of the four shufflers 310a, 310b, 310c and 31 Od will receive a sub-code having a value of 3 (i.e., binary 011) and two of the four shufflers 310a, 310b, 310c and 310d will receive a sub-code having a value of 2 (i.e, binary 010).
  • Each shuffler 310a, 310b, 310c and 31 Od which has been explained with reference to FIG. 10, will output a respective shuffled density code 311a, 311b, 311c and 31 Id, each of which drives a respective four element sub-DAC 312a, 312b, 312c and 312d.
  • Each shuffled density code 311 a, 311 b, 311 c and 311 d has a density of 0/4th (i.e., 0), l/4th, 2/4th, 3/4th, or 4/4th (i.e., 1), depending on the value of the respective sub-codes 308a, 308b, 308c and 308d.
  • the density code is l/4th, which can be 0001, 0010, 0100 or 1000. If a sub-code has a value of 2, then the density is 2/4th, which can be 0011, 1100, 1010 or 0101. As a second alternative, the density of 2/4th required when the sub-code value is 2 can be provided using the following set of four density codes: 0110, 1001, 1010, or 0101. As a third alternative, the density of 2/4th required when the sub-code value is 2 can be provided using the following set of four density codes: 0110, 1001, 0011, 1100.
  • any one of these three sets of 4 density codes may be used to provide a density of 2/4th when the sub-code value is 2. If a sub-code has a value of 3, then the density is 3/4th, which can be 0111, 1011, 1101 or 1110. In each of these cases, the selection of one of the four density codes is based on previous density codes output when a specific sub-code was received by a specific shuffler 310, and based on a pseudo random dither code. If a sub-code has a value of 4 (binary 100), then the density code is 4/4th (i.e., 1), which can only be 1111. Similarly, if a sub-code has a value of 0 (binary 000), then the density is 0/4th (i.e., 0), which can only be 0000.
  • shufflers 310a and 310b will output respective shuffled density codes 31 la and 311b, each having a density of 3/4th.
  • Shufflers 310c and 310d will output respectively shuffled density codes 311c and 3 l id, each having a density of 2/4th. This will cause ten (10) of the sixteen (16) unit elements (shown as triangles in FIG. 3) to be turned ON, thereby generating an analog output 314 representative of digital input 304.
  • the specific density code selected by each of shufflers 310a, 310b, 310c and 310d is based on previous density codes output when a specific shuffler previously received the sub-code now being received, and based on a pseudo random dither code.
  • the specific ten (10) of the sixteen (16) unit elements turned ON each time code 304 has a value of 10 is in a pseudo random pattern such that all possible variations of 10 elements out of the 16 elements have been used and, on average, all possible variations occur a substantially equal number of times.
  • mismatch shaping network 302 A second embodiment of mismatch shaping network 302 will now be described with reference to FIG. 13.
  • the code splitter and code shuffler 306 of FIG. 13 includes only one shuffler (i.e., shuffler 1310), as opposed to four shufflers (i.e., shufflers 502a, 502b, 502c and 502d, or shufflers 1102a, 1102b, 1102c and 1102d). It will be appreciated from the following description that the mismatch shaping network 302 of FIG. 13 can therefore be implemented using fewer logic gates than the previously described embodiments.
  • a truncation block 1302 produces a truncation output
  • Truncation block 1302 is an implementation of range selector 402. [0141] Digital input signal 304 is also provided to a modulo block 1306, which produces a modulo signal 1308.
  • Modulo block 1306 performs a modulo function (i.e., x modulo K), which is equal to x minus the product of K times the next integer smaller than x divided by K (unless x divided by K is an integer, in that case x modulo K equals zero).
  • modulo signal 1308 is equal to the value of digital input signal 304 (i.e., X) modulo four (i.e., K).
  • Modulo signal 1308 is an implementation of modulo signal 408.
  • Modulo signal 1308 is provided to a K-term shuffler 1310.
  • Shuffler 1310 outputs a K-bit shuffled density code 1311.
  • density code 1311 is a four-bit density code, which is also referred to as z ⁇ 3:0>.
  • shuffler 1310 produces patterns of the possible density codes, preferably in a pseudo random fashion, such that each density code occurs approximately the same number of times.
  • shuffler 1310 should produce a pattern of all possible variations of a l/4th density code signal: 0001 , 0010, 0100 and 1000. The next four times modulo signal 1310 equals one, shuffler 1310 preferably produces patterns of the possible variations in a different order.
  • Shuffler 1310 is an implementation of density generator 404.
  • Each bit of K-bit shuffled density code 1311 is separately added to truncation output 1304, to produce sub-codes 308.
  • bit z ⁇ 0> (of density code 1311) and truncation output 1304 are added by adder 1312a to produce first sub-code 308a.
  • First subcode 308a is provided to a K term shuffler, illustrated here as shuffler 310a.
  • bit z ⁇ l> (of density code 1311) and truncation output 1304 are added by adder 1312b to produce second sub-code 308b.
  • Second sub-code 308b is provided to shuffler 310b.
  • bit z ⁇ 2> (of density code 1311) and truncation output 1304 are added by adder 1312c to produce third sub-code 308c.
  • Third sub-code 308c is provided to shuffler 310c.
  • bit z ⁇ 3> (of density code 1311) and truncation output 1304 are added by adder 1312c to produce fourth sub-code 308d.
  • Fourth sub-code 308d is provided to shuffler 310d.
  • Adders 1312a, 1312b, 1312c and 1312d are an implementation of combiner 406.
  • 310a, 31 Ob, 310c and 31 Od used in this mismatch shaping network embodiment can be implemented using the embodiment of a shuffler described in detail above with reference to FIG. 10.
  • digital input signal 304 is a sixteen (16) level input signal that can be equal to binary 0000 (decimal 0) through binary l l l l (decimal 16).
  • digital input signal 304 is a seventeen (17) level input signal that can be equal to binary 00000 (decimal 0) through binary 10000 (decimal 17).
  • digital input signal 304 (also referred to as x ⁇ 3:0>) is a sixteen (16) level input signal that can be equal to binary 0000 (decimal 0) through binary l l l l (decimal 16), as just mentioned above.
  • the function of truncation block 1302 is accomplished by simply taking the two MSBs (i.e., x ⁇ 3 :2>) of digital input signal 304 to produce range signal 1304.
  • range signal 1304 is an implementation of range signal 410.
  • modulo block 1306 is accomplished simply by talcing the two LSBs (i.e., x ⁇ l :0>) of digital input signal 304 to produce modulo signal 1308.
  • modulo signal 1308 is an implementation of modulo signal 408.
  • Modulo signal 1308 is provided to a shuffler 1310, which outputs a 4-bit shuffled density code 1311 (also referred to as z ⁇ 3 :0>).
  • shuffler 1310 produces patterns of the possible density codes, preferably in a pseudo random fashion, such that each density code occurs approximately the same number of times.
  • Shuffler 1310 can be implemented using the shuffler described above in detail with reference to FIG. 6.
  • Each bit of 4-bit shuffled density code 1311 (i.e., z ⁇ 3:0>) is separately added to truncation output 1304 (i.e., x ⁇ 3:2>), to produce sub-codes 308a, 308b, 308c and 308d. More specifically, bit z ⁇ 0> (of density code 1311) and truncation output 1304 are added by adder 1312a to produce first sub-code 308a. First subcode 308a is provided to shuffler 310a. Similarly, bit z ⁇ l> (of density code 1311) and truncation output 1304 are added by adder 1312b to produce second sub-code 308b.
  • Second sub-code 308b is provided to shuffler 310b. Similarly, bit z ⁇ 2> (of density code 1311) and truncation output 1304 are added by adder 1312c to produce third sub-code 308c. Third sub-code 308c is provided to shuffler 310c. Similarly, bit z ⁇ 3> (of density code 1311) and truncation output 1304 are added by adder 1312d to produce fourth sub-code 308d. Fourth subcode 308d is provided to shuffler 310d. The sum of the four sub-codes 308a, 308b, 308c and 308d equals digital input code 304. Adders 1312a, 1312b, 1312c and 1312d are an implementation of combiner 406. Adders 1312a, 1312b, 1312c and 1312d can be implemented, for example, using the adder shown in FIG. 12.
  • shuffler 1310 is used in place of four shufflers (502a,
  • shufflers 310a, 310b, 310c and 3 lOd perform mismatch shapes for one of the multi-element sub-DACs 312a, 312b, 312c and 312d.
  • the shufflers 310a, 310b, 310c and 310d can be implemented using the embodiment of a shuffler described in detail above with reference to FIG. 10.
  • Shuffler 1310 can be implemented using the embodiment of a shuffler described in detail above with reference to Fig. 6. If the shuffler described with reference to Fig. 6 is used to implement shuffer 1310 then the EN signal in Fig. 6 should be connected to a HIGH level so the this shuffler is always enabled.
  • Shufflers 31 Oa, 31 Ob, 310c, 31 Od, and 1310 may also be implemented using many different dynamic element matching (DEM) structures, and should not be limited to the specific implementations of FIG. 6 and FIG. 10.
  • DEM dynamic element matching
  • any of the dynamic element matching structures described in the patents and papers that have been incorporated by reference above, may be used to implement shuffler 1310.
  • One of ordinary skill in the art will appreciate how any of these DEM structures may be used to implement Shuffler 310am 310b, 310c, 310d, and 1310.
  • embodiments of the present invention allows small DEM circuits of low-complexity (that can only, by themselves, be used with very small DACs) to be used in DACs with very large numbers of elements.
  • the additional complexity added for this capability is small.
  • digital input signal 304 is a seventeen (17) level input signal that can be equal to binary 00000 (decimal 0) through binary 10000 (decimal 17).
  • This second embodiment although very similar to the first embodiment, is slightly more complex because the 17 th level (i.e., binary 10000) is a special case that must be dealt with.
  • the truncation function of truncation block 1302 is accomplished by OR-ing x ⁇ 4> (the MSB of digital input signal 304) with x ⁇ 3:0>. This will cause the output (y ⁇ 3:0>) of OR gate 1502 (which is actually four OR gates) to be equal to x ⁇ 3 :0> in every instance except when digital input signal 304 has a binary value 10000 (decimal value 17), i.e., when x ⁇ 4> equals bit 1. When x ⁇ 4> equals bit 1, then output y ⁇ 3 :0> will equal l l l l .
  • the two MSBs of y ⁇ 3:0> i.e., y ⁇ 3:2>
  • range signal 1304 is an implementation of range signal 410.
  • modulo block 1306 is accomplished by adding x ⁇ 4> and the two LSBs of y ⁇ 3:0> (i.e., y ⁇ l :0>) to produce modulo signal 1308.
  • Modulo signal 1308 will be equal to x ⁇ l :0> in every instance except when digital input signal 304 has a binary value 10000 (decimal 17), i.e., when x ⁇ 4> equals binary bit 1.
  • y ⁇ l :0> will equal binary bits 11, the sum of which is binary bits 100.
  • modulo signal 1308 equals binary bits 100 (decimal 4).
  • modulo signal 1308 is an implementation of modulo signal 408.
  • Shuffler 1310 can be implemented using the shuffler described above in detail with reference to Fig. 6. Shuffler 1310 may also be implemented using any known dynamic element matching (DEM) structure, such as those described in the patents that have been incorporated by reference above. One of ordinary skill in the art will appreciate how any of these DEM structures may be used to implement Shuffler 1310.
  • DEM dynamic element matching
  • the density code output (i.e., density signal 1311, in this embodiment) is density code l l l l.
  • shufflers 310a, 310b, 310c and 31 Od are provided to respective shufflers 310a, 310b, 310c and 31 Od.
  • shufflers 31 Oa, 310b, 310c and 31 Od perform mismatch shapes for one of the multi-element sub-DACs.
  • the shufflers 310a, 310b, 310c and 31 Od can be implemented using the embodiment of a shuffler described in detail above with reference to FIG. 10, or other known DEM structures.
  • shuffler 1310 is used to move the effects of errors produced by the multi-element sub-DACs to out of band frequencies.
  • shuffler 1310 can be implemented using the shuffler described above in detail with reference to FIG. 6.
  • any dynamic element matching (DEM) algorithm known in the art can be used in place of shuffler 1310 to spectrally shape the gain mismatch errors.
  • EDM dynamic element matching
  • FIG. 13 for example, if the multi-bit DAC 300 is constructed from of K multi-element sub-DACs 312, any K-element DEM encoder can be used in place of shuffler 1310.
  • FIGS. 16, 17 and 18 are flow diagrams that are useful for describing an overview of the operation of embodiments of the present invention. More specifically, FIGS. 16, 17 and 18 are useful for describing methods of mismatch shaping according to embodiments of the present invention.
  • a method 1600 of the present invention starts when a digital input code (e.g., of signal 304) is received at a step 1602.
  • a digital input code e.g., of signal 304
  • the digital input code is slit into a set of K sub-codes corresponding to the digital input code.
  • the set of K sub-codes can have one of at least N different sub-code orders that specify an order of each of the K subcodes with respect to one another, wherein N > 2.
  • a sum of the K sub-codes equals the digital input code received at step 1602.
  • each of the K sub-codes is not different than any of the other K-l sub-codes within the set of K sub-codes by more than one level.
  • one of the at least N different sub-code orders is selected using a shuffling algorithm.
  • the shuffling algorithm can be a dynamic element mismatch shaping algorithm, as discussed above.
  • the selecting of the one of the at least N different sub-code orders is based on: (1) one or more sub-code orders that were previously selected, and/or (2) a pseudo random code. Steps 1604 and 1606 may occur simultaneously, and thus, may be combined into one step.
  • each sub-code in the set of K sub-codes is output in accordance with the selected sub-code order.
  • each of the K sub-codes is provided directly to one of K sub-DACs that convert the sub-codes to analog signals without any additional shuffling.
  • each sub-code in the set ofK subcodes is provided to a respective one of K shufflers in accordance with the selected sub-code order.
  • each of the K sub-codes are separately shuffled using the respective one of the K shufflers to thereby produce K separate multi -bit shuffled density codes.
  • each of the K shuffled density codes are provided to a respective one of K multi-element sub- digital-to-analog converters (sub-DACs), in accordance with the selected subcode order.
  • each of the K multi-element sub-DACs are driven using the respective one of the K shuffled density codes.
  • Each of the K multielement sub-DACs produce analog outputs, which are combined (e.g., added) to produce an analog signal that is representative of the digital signal received at step 1602.
  • method 1600 can be used to spectrally shape gain mismatch errors in a multi-bit DAC constructed from K separate multi-element sub-DACs. More specifically, each of the K shuffled density codes can be provided to a respective one of the K sub-DACs. Each of the sub-DACs converts its respective received multi-level sub-codes into multiple analog signals. All of the analog signals output from the K sub-DACs are then combined to produce an analog signal (i.e., the output of the multi-bit DAC) representative of the digital input code. These steps are repeated for each digital input code of a digital input signal. In this manner, a digital input signal is converted to an analog signal in such a way that mismatch errors, due to mismatch of the elements, are moved to out of band frequencies.
  • this embodiment of the present invention starts when a digital input code is received, at a step 1702.
  • the digital input code can be received, for example, from a digital sigma-delta modulator, or from a multi-bit analog-to-digital converted of an analog sigma- delta modulator.
  • a range signal is produced based on the digital input code.
  • the range signal specifies which one of a plurality of ranges the digital input code is within.
  • a density code is produced.
  • the density code specifies a level within the range expressed by the range signal.
  • the density signal can be produced based on the digital input code (e.g., based on a portion of digital input code).
  • a modulo signal (that specifies a difference between the digital input code and a lower end of the range specified by the range signal) is produced.
  • the density signal can then be produced based on the modulo signal.
  • step 1706 includes selecting one of a plurality of orders for the density code using a shuffling algorithm. Each of the orders specify an order of bits in the density code.
  • This shuffling algorithm can be a dynamic element mismatch shaping algorithm, many of which were discussed above.
  • the one of the plurality of orders for the density code can be selected based on at least one of: (1) one or more orders that were previously selected, and/or (2) a pseudo random code.
  • the order is preferably selected such that, as these steps are repeated, on average, each one of the different orders is selected substantially the same number of times.
  • each of the plurality of sub-codes is provided directly to one of a plurality of sub-DACs that convert the subcodes to analog signals without any additional shuffling.
  • each of the plurality of sub-codes are shuffled to produce a plurality of shuffled sub-codes.
  • each of the plurality of shuffled sub-codes are provided to a respective multi-element sub-digital-to- analog converter (sub-DAC).
  • each of the multi-element sub-DACs are driven using the respective one of the shuffled sub-codes.
  • Each of the multi-element sub-DACs produce analog outputs, which are combined (e.g., added) to produce an analog signal that is representative of the digital signal received at step 1702.
  • Steps of method 1700 can be though of a method for mismatch shaping, according to an embodiment of the present invention.
  • method 1700 can be used to spectrally shape gain mismatch errors in a multi-bit DAC constructed from a plurality of separate multi-element sub-DACs. More specifically, each of the shuffled sub-codes can be provided to a respective one of a plurality of sub-DACs. Each of the sub- DACs converts its respective received sub-code into multiple analog signals. All of the analog signals output from the plurality of sub-DACs are then combined to produce an analog signal (i.e., the output of the multi-bit DAC) representative of the digital input code.
  • an analog signal i.e., the output of the multi-bit DAC
  • an embodiment of the present invention starts when multi-level digital input code having a first value VI, is received at a step 1802.
  • a second digital value V2 is produced, wherein V2 equals a greatest integer less than VI ⁇ K, where K > 2.
  • a third digital value V3 is produced, wherein V3 equals a VI modulo K.
  • a shuffled density code is produced based on the third digital value V3.
  • the shuffled density code includes K bits each of which has a value of 0 or 1.
  • An order of the K bits with respect to one another is based on a shuffling algorithm. Exemplary algorithms and corresponding implementations have been discussed above.
  • V2 is added to each of the K bits to produce K separate further digital outputs V4 , .... V4 K .
  • each the K separate further digital outputs V4, .... V4 K is provided to one of K separate shufflers.
  • each the K separate further digital outputs V4,....V4 K is shuffled to produce K shuffled sub-codes.
  • each of the K shuffled sub-codes is provided to a respective one of K multi-element sub-digital-to-analog converters (sub-DACs).
  • sub-DACs sub-digital-to-analog converters
  • each of the multi-element sub-DACs are driven using the respective one of the shuffled sub-codes.
  • Each of the multi-element sub-DACs thereby produce analog outputs, which are combined (e.g., added) to produce an analog output signal that is representative of the digital signal received at step 1802.
  • method 1800 can be though of as a method for mismatch shaping, according to an embodiment of the present invention.
  • method 1800 can be used to spectrally shape gain mismatch errors in a multi-bit DAC constructed from K separate multi-element sub-DACs. More specifically, each of the shuffled density codes can be provided to a respective one of K sub-DACs. Each of the K sub-DACs converts its respective received density code into multiple analog signals. All of the analog signals output from the K sub-DACs are then combined to produce an analog signal (i.e., the output of the multi-bit DAC) representative of the digital input code. Steps of method 1800 are repeated for each digital input code of a digital input signal.

Abstract

Methods and apparatuses for spectrally shaping mismatch errors in a multi-bit digital to analog converter (DAC). In an embodiment, the multi-bit DAC is constructed from K separate multi-element sub-DACs, where K and the number of elements in each sub-DAC are each preferably greater than two. A received digital input code is split into a set of K sub-codes corresponding to teh digital input code. The set of K sub-codes can have one of at least N different sub-code orders that specify an order of each of the K sub-codes with respect to one another, where N > 2. A sum of the K sub-codes equals the digital input code. One of the at least N different sub-code orders is selected using a shuffling algorithm. Then, each sub-code in the set of K sub-codes is output in accordance with the selected sub-code order.

Description

METHOD AND APPARATUS FOR MISMATCHED SHAPING OF AN OVERSAMPLED CONVERTER
BACKGROUND OF THE INVENTION
Field of the Invention
The present invention relates to sigma-delta digital to analog converters
(DACs), and more particularly to methods and apparatuses for mismatch shaping of an oversampled converter. Even more specifically, the present invention relates to mismatch shaping networks for use in multi -bit DACs. Background Art
[0004] It is known to process analog signals using digital circuitry. Typically, such circuitry converts analog signal to binary values, arithmetically manipulates the binary values with binary circuitry to perform filtering and digital signal processing, and then converts the processed binary values back into analog signals (e.g., for sound reproduction). To minimize the circuitry required to convert the analog signals to binary values, sigma-delta modulators are often utilized.
[0005] Sigma-delta modulators sample the analog signal at a rate that is orders of magnitude greater than the highest frequency present. Sigma-delta modulators use the technique of oversampling and noise shaping to move most of the quantization noise outside the band of the signal. The out of band noise may then be filtered out such that the signal to noise ratio (SNR) within the signal band is significantly increased.
[0006] The use of a multi-bit sigma-delta DAC lowers the in-band and out of band quantization noise as compared to single bit modulators with single bit DACs. However, multi-bit modulators typically require multi-bit DACs with highly linear performance. The linearity of a multi-bit DAC is typically limited by how precise analog elements, such as capacitors, resistors or current sources, can be matched. The linearity performance of analog components fabricated with standard CMOS techniques is less than 13 bits. Therefore, mismatch shaping circuitry is often utilized to improve the linearity performance of the analog components. Mismatch shaping circuitry shapes the mismatches in the analog unit elements to substantially reduce errors in the signal band of ah oversampling converter.
[0007] A method and apparatus for performing dynamic element matching is disclosed in Leung, U.S. Patent 5,406,283, entitled "Multi-bit oversampled DAC with dynamic element matching." The Leung patent discloses a technique for cyclically selecting successive different permutations of the unit elements for converting each value of the output digital signal thereby canceling the mismatching between unit elements. However, the digital complexity of such a method increases tremendously with the number of bits in the digital output. For example, a typical implementation of such a system requires an encoder for each value of output digital signal, a memory element or pointer for each digital value and a MxM cross-point switch, where M is the number of unit elements. Therefore, as the number of unit elements doubles the encoder and memory elements required increases by a factor of two but the cross-point switch complexity and hardware increases by a factor of four, or more generally as a square term.
[0008] In addition, there is a possibility for pattern noise to occur since the unit elements are cyclically selected. For example, if the same code is output each time and if there are mismatches on the unit elements, a spur may occur at a frequency given by the inverse of the cyclical selection period.
[0009] Therefore, it would be advantageous to provide a method and apparatus for mismatch shaping of oversampled data converters that does not suffer from the above described design complexity and pattern noise errors.
BRIEF SUMMARY OF THE INVENTION
[0010] An embodiment of the present invention is directed to a method and apparatus for spectrally shaping mismatch errors in a multi-bit digital to analog converter (DAC) constructed from K separate multi-element sub-DACs, where K and the number of elements in each sub-DAC are each preferably greater than two. A received digital input code is split into a set of K sub-codes corresponding to the digital input code. The set of K sub-codes can have one of at least N different sub-code orders that specify an order of each of the K subcodes with respect to one another, where N > 2. A sum of the K sub-codes equals the digital input code. One of the at least N different sub-code orders is selected using a shuffling algorithm. Then, each sub-code in the set of K sub-codes is output in accordance with the selected sub-code order.
[0011] In an embodiment of the present invention, each of the K sub-codes is not different than any of the other K-l sub-codes within the set of K sub-codes by more than one level.
[0012] According to an embodiment of the present invention, the shuffling algorithm is a dynamic element mismatch shaping algorithm. In this embodiment, the selecting the one of the at least N different sub-code orders is performed using the dynamic element mismatch shaping algorithm.
[0013] In an embodiment of the present invention, the selecting of the one of the at least N different sub-code orders based on (1) one or more sub-code orders that were previously selected, and/or (2) a pseudo random code.
[0014] In an embodiment, each sub-code in the set of K sub-codes is provided to a respective one of K shufflers in accordance with the selected sub-code order. Each of the K sub-codes is then separately shuffled using the respective shuffler to thereby produce K separate multi-bit shuffled density codes. In an embodiment, each of the K shuffled density codes is then provided to a respective one of K multi-element sub-digital-to-analog converters (sub-DACs), in accordance with the selected sub-code order. Each of the K multi-element sub- DACs. is driven using the respective one of the K shuffled density codes. A plurality of analog signals are thereby produced and combined to produce a combined analog signal representative of the received digital input signal.
[0015] According to an embodiment of the present invention, a range signal is produced based on a received digital input code. The range signal specifies which one of a plurality of ranges the digital input code is within. A density code is then produced. The density code specifies a level within the range expressed by the range signal. The producing of the density code may include selecting one of a plurality of orders for the density code using a shuffling algorithm, wherein each of the orders specify an order of bits in the density code. Preferably, as these steps are repeated, each one of the different orders, on average, is selected substantially the same number of times.
[0016] The range signal and the density code are then combined to thereby produce a plurality of sub-codes. A sum of the plurality of sub-codes equals the digital input code. Each of the plurality of sub-codes are preferably shuffled to produce a plurality of shuffled sub-codes. Each of the plurality of shuffled subcodes is then provided to a respective multi-element sub-digital-to-analog converter (sub-DAC). The sub-DACs convert the shuffled sub-codes to analog signals, the sum of which equal the received digital input code from which the range and density signal were produced.
[0017] In an embodiment of the present invention, a digital input code having a first value VI is received. A second digital value V2 is then produced, wherein V2 equals a greatest integer less than VI ÷ K, where K > 2. Additionally, a third digital value V3 is produced, where V3 equals VI modulo K. Next, a shuffled density code is produced based on the third digital value V3. The shuffled density code includes K bits each of which has a value of 0 or 1. An order of the K bits with respect to one another is based on a shuffling algorithm. Then, V2 is separately added to each of the K bits to produce K separate further digital outputs V4 j .... V4K. A sum of the K separate further digital outputs equals the first k value VI [i.e., ∑ V4, = VI] . l= \
[0018] Each of the K separate further digital outputs V4,....V4K can then be provided to one of K separate shufflers. Each of the digital outputs V4,....V4K is then shuffled using one of the K shufflers to produce a respective shuffled subcode, thereby producing K shuffled sub-codes for each digital input code.
[0019] Each of the K shuffled sub-codes is then provided to a separate one of K multi-bit sub-digital-to-analog converters (sub-DACs). The sub-DACs are used to convert each of the K shuffled sub-codes to analog signals, thereby producing a plurality of analog signals. The plurality of analog signals are then combined to produce a combined analog signal that is representative of the first value VI .
BRIEF DESCRIPTION OF THE DRAWINGS
[0020] These and other features, aspects, and advantages of the present invention will become better understood with regard to the following description, appended claims, and accompanying drawings where: [0021] FIG. 1 illustrates an exemplary environment including a digital sigma delta modulator, in which the present invention can be useful; [0022] FIG. 2 illustrates an exemplary environment including an analog sigma delta modulator, in which the present invention can be useful; [0023] FIG. 3 is a high level block diagram that includes a mismatch shaping network, according to an embodiment of the present invention; [0024] FIG. 4 is a block diagram that illustrates details of the code splitter and code shuffler of the mismatch shaping network of FIG. 3, according to an embodiment of the present invention; [0025] FIG. 5 is a block diagram that illustrates additional details of the code splitter and code shuffler of the mismatch shaping network in FIG. 3, according to an embodiment of the present invention; [0026] FIG. 6 is a block diagram that illustrates additional details of the shufflers of the code splitter and code shuffler in FIG. 5, according to an embodiment of the present invention; [0027] FIG. 7 is a state diagram that is useful for explaining the state machines of the shufflers in FIG. 6, according to an embodiment of the present invention; [0028] FIG. 8 is a block diagram of a state machine of the shuffler in FIG. 6, according to an embodiment of the present invention; [0029] FIG. 9 is a block diagram of the adder block of the code splitter and code shuffler in FIG. 5, according to an embodiment of the present invention; [0030] FIG. 10 is a block diagram that illustrates additional details of the shufflers of the mismatch shaping network in FIG. 3; [0031] FIG. 11 is an implementation of the MUX shown in FIG. 5, according to an embodiment of the present invention;
[0032] FIG. 12 illustrates an exemplary implementation of an adder that can be
) used in various embodiments of the present invention;
[0033] FIG. 13 is a block diagram of showing an alternative embodiment of a mismatch shaping network; [0034] FIG. 14 is a block diagram illustrating a first implementation of the mismatch shaping network of FIG. 13; [0035] FIG. 15 is a block diagram illustrating a second implementation of the mismatch shaping network of FIG. 13; and [0036] FIGS. 16-18 are flow diagrams illustrating methods of the present invention.
DETAILED DESCRIPTION OF THE INVENTION
[0037]
Table of Contents
I. Exemplary Environments
II. High Level Overview of Present Invention
III. High Level Overview of Code Splitter and Code Shuffler
A. Range Selector
B. Density Generator
C. Combiner
IV. First Detailed Embodiment of Mismatch Shaping Network
A. Code Splitter and Code Shuffler
1. Binary-to-One Encoder
2. Shufflers of the Code Splitter and Code Shuffler
3. Four-State State Machines
4. Adder Block
5. MUX
B . Shufflers of Mismatch Shaping Network
C. Summary of First Embodiment
V. Second Embodiment of Mismatch Shaping Network
A. High Level Overview of Second Embodiment
B. First Implementation
C. Second Implementation
D. Variations on Second Embodiment
VI. Flow Diagrams
VII. Conclusion
[0038] The following description is of the best modes presently contemplated for practicing the invention. This description is not to be taken in a limiting sense but is made merely for the purpose of describing the general principles of the invention. The scope of the invention should be ascertained with reference to the claims. In the description of the invention that follows, like numerals or reference designators will be used to refer to like parts or elements throughout.
I. Exemplary Environments
[0039] FIG. 1 shows an exemplary environment in which the present invention is useful. More specifically, FIG. 1 shows an exemplary multi-bit sigma-delta (ΣΔ) digital to analog converter (DAC) 102. Multi-bit ΣΔ DAC 102 includes a digital interpolation filter 106, a differencer 110, a digital loop filter 114, a digital quantizer 118, a multi-bit DAC 122 and an analog filter 126. Differencer 110, digital loop filter 114 and digital quantizer 118, arranged with a feedback loop as shown in FIG. 1, is often referred to as a digital ΣΔ modulator 130.
[0040] Digital interpolation filter 106 receives a digital input signal 104, which is for example a 32 bit digital signal containing audio information. Filter 106 outputs an interpolated digital signal 108. Differencer 110 subtracts a feedback signal 120 from interpolated digital signal 108 to produce an error signal 112. Digital loop filter 114 filters error signal 112 to produce a filtered error signal 116. Digital quantizer 118 quantizes signal 116 into a predetermined number of levels and outputs multi-bit signal 120 (e.g., a 5 bit signal having 17 levels, binary 00000 through binary 10000). As mentioned above, multi-bit signal 120 is used in a feedback loop (and thus, is also referred to as feedback signal 120) to produce error signal 112. Multi-bit signal 120 is also provided to multi-bit DAC 122, which performs mismatch shaping, for example, in accordance with an embodiment of the present invention. Multi-bit DAC 122 outputs an analog signal 124 that is preferably filtered by analog filter 126 (e.g., a low pass or band pass filter) to produce a filtered analog signal 128. Filtered analog signal 128 can be used, for example, to drive a speaker to produce an audio output. [0041] FIG. 2 shows another exemplary environment in which the present invention is useful. More specifically, FIG. 2 shows a multi-bit sigma-delta (ΣΔ) analog to digital converter (ADC) 202. Multi-bit ΣΔ ADC includes a differencer 206, an analog loop filter 210, a multi-bit ADC 214 a multi -bit DAC 218 (arranged in a feed back loop), and a digital decimator filter 222. Differencer 206, analog loop filter 210, multi-bit ADC 214 and multi-bit DAC 218 arranged in the feed back loop as shown in FIG. 2, is often referred to as an analog ΣΔ modulator 230.
[0042] Differencer 206 receives an analog input signal 204, and subtracts an analog feedback signal 220 from input signal 204 to produce an error signal 208. Analog loop filter 210 filters error signal 208 to produce a filtered error signal 212. Multi-bit ADC 214 converts the analog signal 212 to a multi-bit digital signal 216 (e.g., a 5 bit signal having 17 levels, binary 00000 through binary 10000). Multi-bit digital signal 216 is provided to digital decimator filter 222, which produces a decimated digital output signal 224. Multi-bit digital signal 216 is also provided to multi-bit DAC 218, which performs mismatch shaping, for example, in accordance with an embodiment of the present invention. The analog signal 220 produced by multi-bit DAC 218 is used as a feedback signal (and thus, is also referred to as feedback signal 220).
[0043] Referring back to FIG. 1, the present invention provides a mismatch shaping network for multi-bit DAC 122, which receives a multi-bit digital signal 120 from digital ΣΔ modulator 130. Referring to FIG. 2, the present invention can also provide a mismatch shaping network for multi-bit DAC 218 (used in the feedback loop), which receives a multi-bit digital signal 216 from multi-bit ADC 214 of analog ΣΔ modulator 230. Stated another way, the present invention is used to spectrally shape mismatch errors associated with multi-bit DACs 122 and 218.
[0044] The above described exemplary environments are useful for showing how the present invention can be used. However, these exemplary environments are not meant to be limiting. One of ordinary skill in the art will appreciate from the following description that the present invention can be used in many other environments.
II. High Level Overview of Present Invention
[0045] FIG. 3 shows a block diagram of a multi-bit DAC 300 (e.g., multi-bit
DAC 122 or 218) that includes a mismatch shaping network 302 (also known as a dynamic element matching encoder). According to an embodiment of the present invention, mismatch shaping network 302 includes a code splitter & code shuffler (CSCS) 306, and four separate shufflers 310a, 310b, 310c and 310d. Multi-bit DAC 300 receives a digital input signal 304 (e.g., multi-bit digital signal 120 or 216) and converts it to an analog output signal 314 representative of the digital input signal 304. As will be appreciated from the following description, the term "mismatch shaping" hereafter also refers to the shaping of mismatches in analog circuitry between sub-DACs (e.g., 312a, 312b, 312c and 312d) as well as the shaping of mismatches in analog unit elements within each sub-DAC.
[0046] A shuffler is hereafter defined as a block which receives a digital input signal and produces an output digital density signal in which the order of the ones and zeros in the output digital density signal is not correlated to the digital input signal (and thus, the outputs of shufflers are also referred to as shuffled density codes). A shuffling algorithm is the algorithm used by a shuffler to produce such an uncorrelated output based on an input signal. For example, one common implementation of a shuffler is a dynamic element mismatch circuit that implements a dynamic element mismatch shaping algorithm. This type of shuffler implementation typically includes one or more memory elements to track the order of the ones and zeros produced previously in the output digital density signal. Another shuffler implementation either includes a pseudo-random sequence generator to generate a pseudo-random sequence or it receives a pseudo-random sequence. In this second shuffler implementation the pseudo- random sequence is used to randomize the location of the ones and zeros in the output digital density sequence. A shuffler may also use a combination of dynamic element mismatch circuitry and a pseudo random sequence to ensure that the order of the ones and zeros in the output digital density signal is not correlated to the digital input signal.
[0047] The density of a digital signal (and more specifically the density of digital words of the digital signal) specifies how many of the bits in a word are a specific bit or logic value (i.e., logic one). Four bit words will be used to explain this concept. A four bit word can have a density of zero, l/4th, lA, 3 /4th or one. More specifically, the four bit word "0000" has a density of 0/4th (i.e., zero). The four bit words "0001 ", "0010", "0100" and "1000", each have a density of l/4th. The four bit words "0011", "0110", "1100", "1001", "1010" and "0101", each have a density of 2/4th (i.e., y2). The fourbitwords "1110", "1101", "1011" and "0111", each have a density of 3/4th. The four bit word "l l l l" has a density of 4/4th (i.e, one).
[0048] Referring back to FIGS. 1 and 2, CSCS 306 can for example receive digital input signal 304 from a digital ΣΔ modulator (e.g., digital ΣΔ modulator 130) or from a multi-bit ADC (e.g., multi-bit ADC 214) of an analog ΣΔ modulator (e.g., analog ΣΔ modulator 230). Alternatively, the present invention can be used in an environment that does not include a ΣΔ modulator. For example, referring to FIG. 1, if digital ΣΔ modulator 130 were replaced with a simple quantizer, CSCS 306 would receive digital input signal 304 directly from the quantizer. These are just a few example environments in which the present invention can be used.
[0049] Each digital word of digital signal 304 shall often be referred to herein as a digital input code, or simply as an input code. Referring again to FIG. 3, in this exemplary embodiment CSCS 306 splits each digital input code into four subcodes 308a, 308b, 308c and 308d (also referred to collectively as a "set of subcodes"), and provides each of the four sub-codes 308a, 308b, 308c and 308d to one of the four separate shufflers 310a, 310b, 310c and 310d. [0050] CSCS 306 splits input code 304 into the four sub-codes 308a, 308b, 308c and 308d as equitably as possible (i.e., so each of the four sub-codes is not different than any of the other three sub-codes by more than one level, as will be clear from example shown below). The sum of the four sub-codes 308a, 308b, 308c and 308d (i.e., the sum of the set of sub-codes) is equal to digital input code 304. According to an embodiment of the present invention, the way codes are split (i.e., the order of the sub-codes with respect to one another) is dependent on the incoming digital input code 304 as well as one or more memory elements that track how that particular code was previously split. A particular sub-code is preferably cycled to each of the multiple shufflers 310a, 310b, 310c and 3 lOd to implement mismatch shaping at the sub-code level. Specific implementations of CSCS 306 are described in detail below. Provided first is a more detailed overview of CSCS 306 (also referred to simply as "splitter 306").
[0051] As mentioned above, each input code 304 is as equitably split as possible into four sub-codes 308a, 308b, 308c and 308d. For example, an incoming code of seven may initially be split into four sub-codes 2, 2, 2, 1, where 2+2+2+1=7 (notice that each of the four sub-codes is not different than any of the other three sub-codes by more than one level). In addition, the first sub-code of 2 may initially be assigned to first shuffler 310a. Similarly, the second sub-code of 2 may initially be assigned to second shuffler 310b, the third sub-code of 2 may initially be assigned to third shuffler 310c, and the last sub-code of 1 may be initially assigned to fourth shuffler 31 Od. The next time a code of seven is input into CSCS 306 it may be split into 2+2+1+2, the next time 2+1+2+2, and the next time 1+2+2+2. CSCS 306 may then cycle back the next time a code of seven appears as the input, depending on the specific implementation. No memory elements are needed for an input code of eight, since each of the four shufflers will always be assigned a value of two.
[0052] Table 1 is a splitter sub-code table illustrating the way splitter 306 may split digital input code 304 into four separate sub-codes. The first column of Table 1 identifies the possible values of digital input code 304. As can be seen from the table, digital input code 304 in this example is a seventeen level code. The next four columns of Table 1 specify the members (i.e., values) of the subcode sets that correspond to the input codes in the first column. For example, the sub-code set corresponding to an input code of seven includes values 2, 2, 2 and 1, as mentioned above. The last column of Table 1 lists the total number of different sub-code combinations that can be produced when an input code is split. For example, as mentioned above an incoming code of seven can be split into four sub-code combinations, 2+2+2+ 1 , 2+2+ 1+2, 2+1 +2+2 and 1 +2+2+2. Notice that for each input code, the members of the corresponding sub-code set remain the same. Only the sub-code order associated with the set changes (i.e, the order of the sub-codes in the set with respect to one another). Accordingly, a sub-code "combination" can be thought of as a sub-code set associated with a sub-code order. Thus, the last column of Table 1 can be thought of as specifying the number of different sub-code orders that can be associated with a sub-code set.
[0053] In another example, an incoming code of six can be split into four subcodes with six different combinations, namely, 2+2+1+1, 2+1+1+2, 1+1+2+2, 2+1+2+1, 1+2+1+2 and 1+2+2+1. Therefore, if an input code of six appears six times in a row, the splitter may cycle through all the available combinations. However, use of all six combinations may not be necessary because the inventors have determined that for each digital input code 304 having six available combinations (i.e., inputs codes 2, 6, 10 and 14, as shown in Table 1), sufficient mismatch shaping performance is achieved using just two or four of the six possible combinations. This can simplify the implementation of splitter 306.
[0054]
Table 1 : Splitter Sub-code Table
Figure imgf000015_0001
Figure imgf000016_0001
[0055] In the described exemplary embodiment, sub-codes 308a, 308b, 308c and
308d are converted to shuffled density codes by shufflers 310a, 310b, 310c and 31 Od. At each shuffler 310a, 310b, 310c and 31 Od, the individual sub-code is preferably shuffled using dynamic element mismatch techniques combined with a pseudo random sequence. This combination can be used to provide minimal correlation between sub-codes and the order of the ones and zeros in the output digital density signal produce by each shuffler 310. An exemplary implementation of shufflers 310, according to an embodiment of the present invention, is explained below with reference to FIG. 10.
[0056] In the described exemplary embodiment, the four shufflers 310a, 310b,
310c and 310d process each of the sub-codes 308a, 308b, 308c and 308d. More specifically, each of the shufflers (e.g., 310a) shuffles one of the four sub-codes (e.g., 308a) to produce a four-bit shuffled density code (e.g., 311a) made up of four separate 1-bit outputs. Each of the four separate 1-bit outputs, which is either HIGH or LOW, is provided to an analog unit element. Each analog unit element is shown as a triangle in FIG. 3. Each group of four analog unit elements can be thought of as a four element sub-DAC 312, which is also referred to as a multi-bit sub-DAC. Sub-DACs 312a, 312b, 312c and 312d are nominally identical multi-level sub-DACs that have non-ideal gain and offset. The outputs (311a, 311b, 311c and Sl id) of each shuffler 310a, 310b, 310c and 310d drives one of the four separate four element sub-DACs 312a, 312b, 312c and 312d.
[0057] The various sub-code combinations produced by CSCS 306 has the effect of moving the in-band component of error energy due to the effect of gain mismatch errors in sub-DACs 312a, 312b, 312c, and 312d to out-of-band frequencies. CSCS 306 provides mismatch shaping of mismatch errors between sub-DACs and/or it whitens the error energy resulting from mismatch errors between sub-DACs and spreads the error energy throughout the frequency band from DC to fs/2 (where fs represents the sample rate of the sub-DACs). This substantially reduces the component of in-band error energy due to mismatch between the sub-DACs. The shufflers 310a, 310b, 310c, and 310d provide mismatch shaping of element mismatch errors within each sub-DAC and/or whiten the error energy resulting from mismatch errors between elements in each sub-DAC and spread the error energy throughout the frequency band from DC to fs/2. This substantially reduces the component of in-band error energy due to mismatch errors between elements in each sub-DAC. The combination of CSCS 306 and shufflers 310a, 310b, 310c, and 31 Od is to reduce the in-band component of all the error energy associated with mismatch errors in sub-DACs 312a, 312b, 312c, and 312d.
[0058] In the example embodiment shown in FIG.3 , there are sixteen ( 16) analog unit elements (shown as triangles) being driven (i.e., flipped or switched). When the input to an analog unit element is HIGH, the analog unit element will output a first analog value (e.g., 100 μA), and the element is considered ON (i.e., flipped or switched on). When the input to an analog unit element is LOW, the analog unit element will output a second analog value (e.g., 0 μA), and the element is considered OFF (i.e., flipped or switched off). The plurality of elements are said to be "mismatched" if each of the plurality of unit elements does not output the exact same first and second analog values as the other unit elements. For example, when a first element is ON it may output 104 μA, where a second element may output 98 μA when ON, and a third element may output 111 μA when ON. The present invention performs mismatch shaping to overcome or compensate for such mismatch. As shown in FIG. 3, the outputs of the sixteen (16) analog unit elements are added together, for example, on a wire, to produce an analog output 314 that is representative of the digital input 304. In this example, each of the unit elements (shown as triangles) are evenly weighted such that if the elements were perfectly matched, then the first analog value associated with each of the elements would be equal, and the second analog value associated with each of the elements would be equal. Accordingly, in this exemplary embodiment, analog output 314 can have one of seventeen (17) different states (also referred to as levels or values). For example, the first level is when none of the sixteen elements are ON, the second level is when only one of the sixteen elements are ON, the third level is when two of the sixteen elements are ON, .... and the seventeenth level is when all sixteen elements are ON. Five (5) binary bits are required to represent the seventeen different levels (even though five binary bits can represent up to thirty two levels). In the exemplary embodiment disclosed, digital input 304 is a seventeen level unsigned binary input. Accordingly, digital input 304 is shown as a five (5) bit binary word that can have a value between binary 00000 (decimal zero) and binary 10000 (decimal 16). If only sixteen (16) of the seventeen (17) possible states were utilized, then digital input 304 need only include four (4) binary bits that can have a value between binary 0000 (decimal zero) and binary l l l l (decimal 15). One of ordinary skill in the art should appreciate that digital input signal 304 can alternatively be a signed binary input or a thermometer-code input. One of ordinary skill in the art should also appreciate that digital input signal 304 need not be a binary signal.
[0060] The above described exemplary embodiment of the mismatch shaping network of the present invention is shown as splitting a digital input code into four sub-codes, which are each provided to one of four separate shufflers. However, one of ordinary skill in the art will appreciate from the following description that a digital input code can be split into a different number of subcodes (i.e., other than four) while still being within the spirit and scope of the present invention. Preferably, the digital input code is split into more than two sub-codes. A shuffler may be provided for each sub-code. For example, if the digital input code is split into three sub-codes, then three shufflers may be used. One of ordinary skill in the art will also appreciate that shufflers other than 4-term shufflers can be used.
[0061] One of ordinary skill in the art will also appreciate that this invention may be useful without the benefit of shufflers at the output of CSCS 306 to shuffle each of the sub-codes. Depending upon the sub-DAC implementation, gain mismatch errors between sub-DACs may produce more in-band error energy than element mismatch errors within each sub-DAC. In this case it may be advantageous to reduce the overall complexity of the mismatch shaping circuitry by not including shufflers at the output of CSCS 306. One of ordinary skill in the art will also recognize that an obvious extension of this invention may be obtained by connecting the output of a code splitter and code shuffler, for example CSCS 306, to additional codes splitter and code shuffler blocks which further split each of the sub-codes into finer sub-codes.
III. High Level Overview of Code Splitter and Code Shuffler
[0062] FIG.4 shows another block diagram of multi-bit DAC 300, also a referred to as an L-level DAC, where L is preferably greater than two (i.e., L > 2). FIG. 4 is useful for explaining the operation of CSCS 306. As shown in FIG. 4, CSCS 306 includes a range selector 402, a density generator 404 and a combiner 406, each of which is discussed below.
A. Range Selector
[0063] Range selector 402 receives digital input signal 304 and determines wliich one of a plurality of predetermined ranges digital input signal 304 is within. Each digital word of digital input signal 304 represents one of L-levels (i.e., digital input signal 304 is an L-level signal), where L is preferably greater than two (i.e., L > 2). Range selector 402 outputs a range signal 410 specifying the determined range of digital input signal 304. For example, assume digital input signal 304 is a 17 level signal (e.g., a binary word between 00000 and 10000, inclusive). Also assume that there are five (e.g., 0 - 4) predetermined ranges:
0) values between 0 and 3, inclusive;
1) values between 4 and 7, inclusive;
2) values between 8 and 11 , inclusive;
3) values between 12 and 15, inclusive; and
4) value 16.
If, for example, range selector 304 receives a digital input signal 304 that equals binary 00101 (decimal 5), then range signal 310 will indicate that the digital input signal 304 is within the 1st range. Notice that one of the ranges (i.e., the 4th range) includes only one possible value. [0064] If digital input signal 304 is a binary signal, then range selector 402 can make its level determination based on only the most significant bits (MSBs) of digital input signal 304. Continuing with the example where digital input signal 304 can be a binary word between 00000 and 10000, range selector 402 need only receive the three MSBs of digital input signal 304 to makes its level determination. For example: MSBs 000 represent the 0th range; MSBs 001 represents the 1 st range; MSBs 010 represents the 2nd range; MSBs 011 represents the 3rd range; and MSBs 100 represents the 4th range. In such an embodiment, range selector 402 can be implemented as a binary to one-of encoder (also referred to as a one-of selector)- If range selector 402 is implemented as a binary to one-of encoder, then range signal 410 can be a multi-bit signal, where only one of the multiple bits is HIGH at one time. For example, if there are five ranges, as in above example, then range signal can be a five bit (non-binary) signal, where: 00001 represents the 0th range; 00010 represents the 1st range; 00100 represents the 2nd range; 01000 represents the 3rd range; 10000 represents the 4th range. This will be explained in more detail below.
B. Density Generator
[0065] Density generator 404 produces a K bit density signal 412 that indicates a level within the range expressed by range signal 410. Stated another way, density signal 412 indicates a difference between digital input signal 404 and the beginning value of a range. Density generator 404 produces density signal 412 based on digital input signal 304 and/or a modulo signal 408 produced by range selector 402. Continuing with the example where digital input signal 304 equals binary 00101 (decimal 5), which is within the 1st range, density signal 412 will specify that digital input signal 304 is greater than the beginning of the 1st range (i.e., 4) by a value of one (1). Thus, assuming for example that density signal 412 is a four bit density code, density signal 412 can be either 1000, 0100, 0010 or 0001 (each having a density of l/4th).
[0066] Assuming, for example, digital input signal 304 is greater than the beginning of the 1st range by a value of two (i.e., if digital input signal 304 has a value of 6, then density signal 412 would have a density of 2/4th (i.e., either 1100, 0011, 1010, 0101, 1001 or 0110). Similarly, if digital input signal 304 is greater than the beginning of the 1st range by a value of three (i.e., if digital input signal 304 has a value of 7), then density signal 412 would have a density of 3 /4th (i.e., either 0111, 1011, 1101 or 1110). If the digital input signal 304 is equal to the beginning of the 1st range (i.e., if digital input signal 304 has a value of 4), then density signal 412 would have a density of 0/4th (i.e., 0000).
[0067] If digital input signal 304 is a binary signal, then density generator 410 can produce density signal 412 based on the least significant bits (LSBs) of digital input signal 304, Continuing with the example where digital input signal 304 can be a binary word between 00000 and 10000, then density generator 404 need only receive the two LSBs of digital input signal 304 to produce density signal 412. Again, assuming density signal 412 is a 4-bit density signal (e.g., K = 4): if the two LSBs are 00, then density signal 412 equals 0000 to represent a density of zero (0); if the two LSBs are 01, then density signal 412 equals 0001, 0010, 0100 or 1000, to represent a density of l/4th; if the two LSBs are 10, then density signal 412 equals 0011 , 1100, 1010, 0101 , 0110, or 1001 , to represent a density of 2/4th; or if the two LSBs are 11, then density signal 412 equals 0111, 1011, 1101 or 1110, to represent a density of 3/4th. Thus, if digital input signal 304 is the binary word 00101 (decimal 5) (and the two LSBs are 01), then density signal 412 equals 0001, 0010, 0100 or 1000, which represents a density of l/4th. This will be explained in more detail below.
[0068] For a given value of digital input code 304 (or for a given value of modulo signal 408), density generator 404 preferably produces a pattern of possible density codes such that, on average, each density code occurs approximately the same number of times. For example, if digital input signal 304 has a value of five (e.g., binary 00101) four times in a row, then density generator 404 should produce a pattern of all variations 0001, 0010, 0100 and 1000, such that, on average, these four codes are produced approximately the same number of times.
C. Combiner
[0069] Combiner 406 produces K separate sub-codes based on both range signal
410 and density signal 412. K is preferably greater than two (i.e., K > 2). The sum of the K sub-codes equals the digital input signal 304. Additionally, each of the K sub-codes are as equal to one another as possible, as explained above with reference to Table 1.
[0070] Assume that combiner 402 produces four separate sub-codes (i.e., K = 4) based on range signal 410 and density signal 412, and that digital input signal 304 is a 17 level digital signal (i.e., L = 17). Referring back to Table 1, discussed above: if digital input signal 304 is in the 0th range (i.e., between decimal 0 and 3, inclusive), then the sub-codes are made up of zeros (0s) and ones (Is); if digital input signal 304 is in the 1 st range (i.e., between decimal 4 and 7, inclusive), then the sub-codes are made up of ones (Is) and twos (2s); if digital input signal 304 is in the 2nd range (i.e., between decimal 8 and 11 , inclusive), then the sub-codes are made up of twos (2s) and threes (3s); if digital input signal 304 is in the 3rd range (i.e., between decimal 12 and 15, inclusive) then the sub-codes are made up of threes (3 s) and fours (4s); and if digital input signal 304 is in the 4th range (i.e., decimal 16), then the sub-codes are all equal to four (4). Combiner 406 determines the two possible values (e.g., one and two) of the sub-codes, based on range signal 410. Combiner 406 determines the ratio of these two values based on density signal 412. This will be explained with the following example.
[0071] Continuing with the example where digital input signal 304 equals binary
00101 (decimal 5), range signal 410 specifies that digital input signal 304 is within the 1st range, and density signal 412 specifies a density of 1 /4th, as explained above. Because range signal 410 specifies that digital input signal 304 is within the 1st range, combiner 406 knows that the sub-codes should be made up of ones (Is) and twos (2s). Because density signal 412 specifies a density of l/4th, combiner 406 knows that one of the four sub-codes should be a two (2) and the remaining three sub-codes should be a one (1). Stated another way, density signal 412 specifies that l/4th of the sub-codes should have the higher of the two possible sub-code values, and that the remainder of the sub-codes should have the lower of the two possible sub-codes. Note that the sum of these sub-codes equals the value of digital input code (e.g., 2+1+1+1 = 5). [0072] As mentioned above, for a given value of digital input code 304 (or for a given value of modulo signal 408), density generator 404 produces a pattern of possible density codes such that each density code occurs, on average, approximately the same number of times. This causes combiner 406 to produce a pattern of the various combinations for each value of digital input signal 304 such that each possible sub-code for each value of digital input signal 304 occurs, on average, approximately the same number of times. For example, if digital input signal 304 has a value of five, four times in a row, combiner 406 cycles through the possible sub-code outputs 2+1+1+1, 1+2+1+1, 1+1+2+1 and 1+1+1+2. Density generator 404 preferably produces the possible density codes in a pseudo random fashion so that the next four times digital input signal 304 equals five, the pattern occurs in a different order.
[0073] The patterns produces with the various sub-code combinations have the effect of averaging the error of each multi-bit sub-DAC, or equivalently moving the effect of the errors to out of band frequencies. The shufflers (310) mismatch shape each individual multi-bit sub-DAC so that the total effect is that substantially all errors are moved out of band.
IV. First Detailed Embodiment of Mismatch Shaping Network
[0074] A first implementation of mismatch shaping network 302 will now be described with reference to FIGS. 5 - 10.
A. Code Splitter and Code Shuffler
[0075] An exemplary embodiment of CSCS 306 (also referred to as splitter 306) shall now be described with reference to FIG. 5. In this description, the term "x<n>" refers to the nth bit of five bit digital input 304, wherein n = 0, 1, 2, 3 or 4. x<4> represents the most significant bit (MSB). x<0> represents the least significant bit (LSB). The term x<2:0>, for example, refers to the 2nd through 0th bits.
[0076] In the drawings specifically, when a numeral describing a bus is in parentheses, e.g., (4), the numeral represents a number of bits in a density code. When a numeral describing a bus is not in parentheses, e.g., 4, then the number represents a number of bits in a binary code.
[0077] In the embodiment shown in FIG. 5, CSCS 306 includes a binary to one- of encoder 501, four separate shufflers 502a, 502b, 502c and 502d, a multiplexor (MUX) 506, and an adder block 510. Each of these features will be explained below.
1. Binary-to-One Encoder
[0078] At the left of FIG. 5 is shown binary to one-of encoder 501 including five
(5) AND gates. The inputs to binary to one-of encoder 501 are x<4>, x<3> and x<2> (also referenced as x<4:2>), which are the tliree (3) MSBs of digital input 304. The binary to one-of encoder 501 is an implementation of range selector 402 discussed above in connection with FIG. 4.
[0079] The "xeq" output of binary to one-of encoder 501 is an implementation of range signal 410, also discussed above in connection with FIG. 4. In this embodiment, the "xeq" output of binary to one-of encoder 501 is based on the decimal value of the three MSBs of binary digital signal 304. That is: when x<4:2> has a value 4, xeq4 is HIGH; when x<4:2> has a value 3, xeq3 is HIGH; when x<4:2> has a value 2, xeq2 is HIGH, when x<4:2> has a value 1, xeql is HIGH, and when x<4:2> has a value 0, xeqO is HIGH.
[0080] More specifically, the output referred to as xeqO is HIGH when x<4>, x<3> and x<2> are all LOW (i.e., xeqO - x < 4 > • x < 3 > • x < 2 > ).
Referring to Table 1, x<4:2> equals binary 000 (i.e., xeqO is HIGH), when input code 304 (i.e., x<4:0>) equals binary 00000 (i.e., 0), 00001 (i.e., 1), 00010 (i.e., 2), or 00011 (i.e., 3). Stated another way, xeqO is HIGH when digital input signal 304 is within the 0th range (0-3). [0081] The output referred to as xeql is HIGH when x<4> and x<3> are LOW, and x<2> is HIGH (i.e., xeql - x<4>-x< 3>-x<2> ). Referring to
Table 1, x<4:2> equals binary 001 (i.e., xeql is HIGH), when input code 304 (i.e., x<4:0>) equals binary 00100 (i.e., 4), 00101 (i.e., 5), 00110 (i.e., 6), or 00111 (i.e., 7). Stated another way, xeql is HIGH when digital input signal 304 is within the 1st range (4-7). [0082] The output referred to as xeq2, is HIGH when x<4> and x<2> are LOW, and x<3> is HIGH (i.e., xeq2 = x<4>'X< 3> -x<2> ). Referring to
Table 1, x<4:2> equals binary 010 (i.e., xeq2 is HIGH), when input code 304 (i.e., x<4:0>) equals binary 01000 (i.e., 8), 01001 (i.e., 9), 01010 (i.e., 10), or 01011 (i.e., 11). Stated another way, xeq2 is HIGH when digital input signal 304 is within the 2nd range (8-11). [0083] The output referred to as xeq3 is HIGH when x<4> is LOW, and x<2> and x<3> are HIGH (i.e., xeq3 = x< 4>-x< 3>-x< 2>). Referring to
Table 1, x<4:2> equals binary 011 (i.e., xeq3 is HIGH), when input code 304 (i.e., x<4:0>) equals binary 01100 (i.e., 12), 01101 (i.e., 13), OHIO (i.e., 14), or 01111 (i.e., 15). Stated another way, xeq3 is HIGH when digital input signal 304 is within the 3 rd range (12-15). [0084] The output referred to as xeq4 is HIGH when x<4> is high, and x<2> and x<3> are LOW (i.e., xeq4 - x < 4> -x < 3> • x <2> ). Referring to Table
1 , x<4:2> equals binary 100 (i.e., xeq4 is HIGH), only when input code 304 (i.e., x<4:0>) equals binary 10000 (i.e., 16). Stated another way, xeq4 is HIGH when digital input signal 305 is within the 4th range (16). [0085] Binary to one-of encoder 501 enables only one of four (4) separate shufflers 502a, 502b, 502c and 502d at one time, because only one of xeqO, xeql, xeq2 and χeq3 can be HIGH at one time. More specifically, shuffler 502a is enabled only when xeqO is HIGH, and thus, when input code 304 (i.e., x<4:0>) equals binary 00000 (i.e., 0), 00001 (i.e., 1), 00010 (i.e., 2), or 00011 (i.e., 3), as explained above. Shuffler 502b is enabled only when xeql is HIGH, and thus, when input code 304 (i.e., x<4:0>) equals binary 00100 (i.e., 4), 00101 (i.e., 5), . 00110 (i.e., 6), or 00111 (i.e., 7). Shuffler 502c is enabled only when xeq2 is HIGH, and thus, when input code 304 (i.e., x<4:0>) equals binary 01000 (i.e., 8), 01001 (i.e., 9), 01010 (i.e., 10), or 01011 (i.e., 11). Shuffler 502d is enabled only when xeq3 is HIGH, and thus, when input code 304 (i.e., x<4:0>) equals binary 01100 (i.e., 12), 01101 (i.e., 13), OH IO (i.e., 14), or 01111 (i.e., 15). [0086] As mentioned above, when digital input 304 equals binary 10000 (i.e., the seventeenth level), all sixteen analog elements (represented by triangles) of multi- bit DAC 300 (FIG. 3) should be ON. When all sixteen analog elements are ON, no mismatch shaping of the elements is required. Accordingly, there is no need to associate a shuffler with xeq4, as is shown in FIG. 5. Stated another way, when xeq4 is HIGH, input code 304 (i.e., x<4:0>) equals binary 1000, and there is no need to enable a shuffler.
2. Shufflers of the Code Splitter and Code Shuffler
[0087] In this exemplary embodiment, each shuffler 502a, 502b, 502c and 502d, when enabled, shuffles the value represented by the two LSBs x<l :0> of digital input 304, and outputs a respective four bit shuffled density code (not a binary word) 504a, 504b, 504c and 504d. Based on which of xeq3 :xeq0 is HIGH, MUX 506 provides a four bit shuffled density code 504a, 504b, 504c or 504d to Adder block 510 as four bit density code 508. If each shuffler 502a, 502b, 502c and 502d is designed such that its output is LOW when it is not enabled, then MUX 506 can be replaced with four OR gates, as shown in FIG. 11 (with the outputs of the four OR gates making up four bit density code 508). Collectively, shufflers 502a, 502b, 502c and 502d together with MUX 506 (e.g., made up of four OR gates) are an implementation of density generator 404, discussed above in connection with FIG. 4. Accordingly, four bit density code 508 is an implementation of density signal 412, also discussed above in comiection with FIG. 4.
[0088] Adder block 510, based in part on which of xeq4:xeq0 is HIGH, outputs sub-codes 308a, 308b, 308c and 308d as four (4) separate three (3) bit binary outputs (that are provided to shufflers 310a, 310b, 310c, 3 lOd, as shown in FIG. 3). Outputs 308a, 308b, 308c and 308d are based in part on four bit density code 508 when one of xeq3 :xeq0 is HIGH. However, when xeq4 is HIGH (which only happens when digital input 304 equals binary 10000), each three bit binary output 308a, 308b, 308c and 308d equals binary 100 (decimal 4). As mentioned above, the sum of the four sub-codes 308a, 308b, 308c and 308d is equal to digital input code 304. Additionally, as mentioned above, input code 304 is as equitably split as possible into the four sub-codes 308a, 308b, 308c and 308d. Adder block 510 is an implementation of combiner 406, discussed above in connection with FIG. 4. Adder block 510 is discussed in more detail below with reference to FIG. 9.
[0089] The shufflers 502a, 502b, 502c and 502d of code splitter 306 shall be described with reference to FIG. 6. Referring back to FIG. 5, shuffler 502a is enabled when xeqO is HIGH, shuffler 502b is enabled when xeql is HIGH, shuffler 502c is enabled when xeq2 is HIGH, and shuffler 502c is enabled when xeq3 is HIGH. Each shuffler 502a, 502b, 502c and 502d is essentially the same, and thus, shall be described generically, with reference to FIG 6, as shuffler 502.
[0090] At the left of FIG. 6 is shown a binary to one-of encoder 601 including tliree (3) AND gates. The inputs to binary to one-of encoder 601 are x<l> and x<0> (also references as x<l :0>), which are the two LSBs of digital input signal 304, and EN (enable). The "xeq' " output of binary to-one encoder 601 is based on the decimal value of the two LSBs of digital input signal 304. More specifically, the output referred to as xeq3' is HIGH when x<l> and x<0> are HIGH; the output referred to as xeq2' is HIGH when x<l> is HIGH and x<0> is LOW; and the output referred to as xeql' is HIGH when x<l> LOW and x<0> is HIGH. That is: when x<l :0> has a value 3 (i.e., binary 11), xeq3' is HIGH; when x<l :0> has a value 2 (i.e., binary 10), xeq2' is HIGH; and when x<l :0> has a value 1 (i.e., binary 01), xeql' is HIGH. When x<l :0> has a value of 0 (i.e., binary 00), then the output 504 of shuffler 502 will be zero (i.e., 4 bit density code 0000).
[0091] Binary to one-of encoder 601 enables one of tliree (3) separate four-state state machines 602a, 602b and 602c (also referred to simply as "state machines"). Only one of the four-state state machines is enabled at one time, because only one of xeql', xeq2' and xeq3' can be HIGH at one time.
[0092] Each state machine 602a, 602b and 602c, when enabled, outputs a respective two bit binary word 604a, 604b and 604d that is representative of one of four possible states (i.e., binary 00, 01, 10 and 11). The state machines are designed such that they cycle through the four possible states so that each state appears at the output of a specific state machine (e.g., state machine 602a) once every four times that particular state machine is enabled. Each state machine utilizes a pseudo random dither code such that it cycles through the four possible states in a pseudo random manner. Additional details of an exemplary embodiment of the state machines 602a, 602b and 602c are described with reference to FIGS. 7 and 8.
[0093] Each two-bit binary word 606a, 606b or 606c, is used to select one of four different four bit shuffled density codes from a respective RAM 606a, 606b and 606c.
[0094] When xeq3' is HIGH, state machine 602c selects one of the four possible density code outputs 0111, 1011, 1101, and 1110 (not binary) that can be selected from RAM 606c. Each of these outputs has a density of 3/4th. Referring to Table 1, x<l :0> equals binary 11 (i.e., xeq3' is HIGH) when input code 304 (i.e., x<4:0>) equals binary 01111 (i.e., 15), 01011 (i.e.,11), 00111 (i.e., 7), or 00011 (i.e., 3). As shown in Table 1, there are four possible combinations associated with each of these input codes 304. As also shown, in Table 1, the sub-code set for each of these input codes 304 includes three of the higher value sub-codes and one of the lower value sub-codes. [0095] When xeq2' is HIGH, state machine 602b selects one of the four possible density code outputs 0011, 1100, 1010, and 0101 (not binary) that can be selected from RAM 606b. Each of these outputs has a density of 2/4th. Referring to Table 1 , x<l :0> equals binary 10 (i.e., xeq2' is HIGH) when input code 304 (i.e., x<4:0>) equals binary 01110 (i.e., 14), 01010 (i.e.,10), 00110 (i.e., 6), or 00010 (i.e., 2). As shown in Table 1 , there are six possible combinations associated with each of these input codes 304. As mentioned above, the inventors have determined that for each of these input codes 304, sufficient mismatch shaping performance is achieved using j ust four of the six possible combinations, or using just two of the six possible combinations. State machine 602b selects one of four outputs rather than selecting one of six outputs or selecting one of two outputs, because this results in a convenient implementation. An implementation choosing one of four outputs enables the use of an identical state machine implementation for state machine 602b as that used for state machines 602a and 602c. One of ordinary skill in the art would appreciate from the description herein how to modify state machine 602b so that it selects one of six outputs or so that it selects one of two outputs. As shown in Table 1, the sub-code set for each of these input codes 304 includes two of the higher value sub-codes and two of the lower value sub-codes.
[0096] When xeql' is HIGH, state machine 602a selects one of the four possible density code outputs 0001, 0010, 0100, and 1000 (not binary) that can be selected from RAM 606a. Each of these outputs has a density of l/4th. Referring to Table 1, x<l :0> equals binary 01 (i.e., xeql' is HIGH) when input code 304 (i.e., x<4:0>) equals binary 01101 (i.e., 13), 01001 (i.e., 9), 00101 (i.e., 5), or 00001 (i.e., 1). As shown in Table 1, there are four possible combinations associated with each of these input codes 304. As also shown in Table 1, the sub-code set for each of these input codes 304 includes one of the higher value sub-codes and three of the lower value sub-codes.
[0097] As shown at the right of FIG. 6, one of the twelve possible density codes are output from an OR gate 608 as four bit density code (not a binary word) 504, based on x<0:l> and the enabled state machine. One of ordinary skill in the art will understand that OR gate 608 is actually implemented using four OR gates. Similarly, each of the three AND gates shown at the right in FIG. 6 are implemented using four AND gates. These logic gates are shown as they are to avoid unnecessary clutter in the figures. [0098] When x<0> and x<l> are both LOW (i.e., when the two LSBs x<l :0> equals binary 00), then the four bit shuffled density code 504 equals 0000 (not binary). Referring to Table 1, x<l :0> equals binary 00 when input code 304 (i.e., x<4:0>) equals binary 10000 (i.e., 16), 01100 (i.e., 12), 01000 (i.e., 8), 00100 (i.e., 4), or 00000 (i.e., 0). As mentioned above, when x<l :0> equals binary 00, output code 504 equals 0000 (density code). As shown in Table 1, there is only one possible combination associated with each of these input codes 304. As also shown in Table 1, the sub-code set for each of these input codes 304 includes only the lower value of the two possible values for the corresponding range.
3. Four-State State Machines
[0099] Each of the shufflers 502a, 502b, 502c and 502d of CSCS 306 are shown as being implemented using tliree separate 4-state state machines 602a, 602b, 602c. As will be explained below, shufflers 302a, 302b, 302c and 302d can also be implemented using 4-state state machines. Accordingly, the exemplary embodiment of a 4-state state machine (also simply referred to as a "state machine") explained with reference to FIGS. 7 and 8 can be used in shufflers 502a, 502b, 502c, 502d and/or shufflers 302a, 302b, 302c, 302d.
[0100] Referring back to FIG. 6, each state machine (e.g., 602a, 602b, 602c) receives an enable (EN) signal and a pseudo random dither signal (DI), and outputs a two bit binary signal (e.g., 604a, 604b, 604c) that is one of four states (i.e., 00, 01, 10 and 11). As mentioned above, the state machines are preferably designed such that they produce a pattern of the four possible states in a pseudo random manner such that, on average, each of the four states occurs approximately the same number of times.
[0101] The exemplary state machine outputs a next state based: on a previous state; a pseudo random dither signal (also simply referred to as a dither signal); and a variable that shall be referred to a toggling pass signal. The next or previous state can be either 00, 01 , 10 or 11. If, for example, the state is 01 , then the most significant bit (MSB) of the state is 0, and the least significant bit (LSB) of the state is 1. Table 2 is a state table for an exemplary state machine (e.g., 602a, 602b, 602c).
[0102]
Table 2: Four-State State Table
Figure imgf000032_0001
[0103] FIG. 7 is a state diagram 700 that is consistent with the state table of
Table 2. FIG. 8 shows an exemplary circuit of a four state state machine (e.g., 602a) that implements state diagram 700 (and thus, the state table of Table 2). As shown, the state machine of FIG. 8 is implemented using tliree flip flops 802, 804 and 806, two AND gates, an OR gate, and an exclusive OR gate. One of ordinary skill in the art would understand how this circuit implements the state diagram 700 shown in FIG. 7. One of ordinary skill in the art would also appreciate that other equivalent circuit diagrams can be used to implement the state table of Table 2.
[0104] The above discussed state table, diagram, and circuit has been provided as an example that is not meant to be limiting. One of ordinary skill in the art would understand that alternative systems and methods for producing patterns of multiple states (e.g., four states) can be used while still being with in the spirit and scope of the present invention.
[0105] Provided above is an exemplary embodiment of the shufflers 502a, 502b,
502c and 502d. One of ordinary skill in the art will appreciate that alternative four-term dynamic gain mismatch shaping encoders can be used in place of the above described shufflers 502a, 502b, 502c and 502d, while still being within the spirit and scope of the present invention.
4. Adder Block
[0106] Referring back to FIG. 5, Adder block 510 receives a density code 508 from MUX 506, when one of xeq3 :xeq0 is HIGH. When xeq4 is LOW, density code 508 is equal to one of 504a, 504b, 504c and 504d, depending on which of xeq3:xeq0 is HIGH. Based on density code 508, Adder block 510 outputs four (4) separate binary sub-codes 308a, 308b, 308c and 308d, the sum of which equals digital input code 304. When xeq4 is HIGH, adder block 510 outputs four binary sub-codes 504a, 504b, 504c and 504d all having a value of four (i.e., binary 100). [0107] As mentioned above, sub-codes 308a, 308b, 308c and 308d differ from each other by no more than one level. For example, if 304 has a value of fifteen (i.e., binary 01111), then three of the four binary sub-codes will have a value of four (i.e., binary 100), and one of the four binary sub-codes will have a value of tliree (i.e., binary 011), as shown in Table 1. Continuing with the example where 304 has a value of fifteen (i.e., binary 01111), it is shuffled density code 508 that specifies which tliree of sub-codes 308a, 308b, 308c and 308d are equal to four (i.e., binary 100), and which one of the sub-codes is equal to three (i.e., binary 011).
[0108] An exemplary implementation of adder block 510 is shown in FIG. 9.
Referring to FIG. 9, adder block 510 includes adders 902a, 902b, 902c and 902d. OR gate 910 passes forward a two bit code 913, which identical to two-bit code x<3:2>, when x<4> is LOW. OR gate 910 passes forward a two bit code 913 consisting of bits "11 ", when x<4> is HIGH. Each adder 902a, 902b, 902c and 902d adds the two bits x<3:2> (or "11" if x<4> is a "1" bit) to a respective one of the bits of 4 bit density code 508 (i.e., to 508<0>, 508<1>, 508<2> and 508<3>, respectively) to produce sub-codes 308a, 308b, 308c and 308d. An exemplary implementation of adders 902 is shown in FIG. 12.
5. MUX
[0109] FIG. 11 is an implementation of MUX 506 of FIG. 5, according to an embodiment of the present invention. Four separate 4 bit shuffled density codes 504a, 504b, 504c and 504d are received at the input of MUX 506. Referring to FIG. 5, only one of the four shufflers 502a, 502b, 502c and 502d can be enabled at the same time. Therefore, only one of the four 4 bit signals 504a, 504b, 504c and 504d at the output of the shufflers can be non-zero, while the other three 4 bit signals are all equal to "0000". OR gates 1105a, 1105b, 1105c and 1105d select the non-zero shuffled density code signal received at the input of MUX 506 from among all four of the shuffled density code signals 504a, 504b, 504c and 504d. When x<4> is LOW, OR gates 1105a, 1105b, 1105c and 1105d pass forward a 4 bit shuffled density code 508<0>, 508<1>, 508<2> and 508<3>, which is equal to the non-zero shuffled density code signal received at the input of MUX 506. When x<4> is HIGH, OR gates 1105a, 1105b, 1105c and 1105d pass forward a 4 bit density code equal to "l l l l".
B. Shufflers of Mismatch Shaping Network
[0110] As described above, CSCS 306 generates four separate sub-codes 308a,
308b, 308c and 308d from digital input code 304 (e.g., splits each digital input code 304 into four separate sub-codes 308a, 308b, 308c and 308d), the sum of which equal input code 304. Also, as described above, the four sub-codes 308a, 308b, 308c and 308d preferably differ from one another by no more than one level (i.e., input code 304 is preferably split as equitably as possible into the four sub-codes 308a, 308b, 308c and 308d). For each digital input code 304 having the same distinct level, CSCS 306 produces a set of the four sub-codes 308a, 308b, 308c, and 308d that may have one of a plurality of different sub-code orders with respect to each other. For example, if digital input code 304 represents a distinct level of 13, then the members of the set of sub-codes are 3, 3, 3, and 4. There are four possible sub-code orders of these sub-code members. These are: 3,3,3,4; 3,3,4,3; 3,4,3,3; and 4,3,3,3. The sub-code members in these four sets are equivalent (i.e. 3 sub-code members equal to 3 and one sub-code member equal to 4), but the order for each set is different. The selection of the sub-code order for each digital input code 304 having the same distinct level (e.g. 13) is preferably based upon a combination of a digital code stored in one or memory elements and a digital pseudo-random code. The digital code, e.g., stored in one or more memory elements, provides information about one or more previously selected sets of the sub-codes provided by CSCS 306. Selection of the sub-code order, based on a digital code stored in one or more memory elements or based upon a digital pseudo-random code, is referred to hereafter as code shuffling. As described above, sub-code 308a, 308b, 308c, and 308d are preferably passed to each of multiple shufflers 310a, 310b, 310c, and 310d. These shufflers produce output digital density signals 311 a, 311b, 311c, and 311 d in which the order of the ones and zeros in each output digital density signal is not correlated to the levels represented with each of the sub-codes. An exemplary embodiment of shufflers 310a, 310b, 310c, and 31 Od shall now be described with reference to Fig. 10. Each shuffler 310a, 310b, 310c, and 31 Od is essentially the same, and thus, shall be described generically as shuffler 310.
[0111] At the left of FIG. 10 is shown a binary to one-of encoder 1001 including four (4) AND gates. The inputs to binary to one-of encoder 1001 are x<2>, x<l> and x<0> (which are the three (3) LSBs of digital input 304). The "xeq" " output of binary to-one encoder 1001 is based on the value of the binary input of the tliree LSBs of digital signal 304. More specifically, the output referred to as xeq4" is HIGH when x<2> is HIGH, and x<l> and x<0> are LOW; the output referred to as xeq3" is HIGH when x<2> is LOW, and x<l> and x<0> are HIGH; the output referred to as xeq2" is HIGH when x<2> and x<0> are LOW, and x<l> is HIGH; and the output referred to as xeql " is HIGH when x<2> and x<l> are LOW, and x<0> is HIGH.
[0112] Binary to one-of encoder 1001 enables one of three (3) separate four-state state machines 1002a, 1002b and 1002c (also referred to simply as "state machines"). Only one of the state machines is enabled at one time, because only one of xeql", xeq2" and xeq3" can be HIGH at one time. xeq4" is only HIGH when digital input 304 equals binary 10000, which means all sixteen analog elements should be ON. When all sixteen analog elements are ON, no mismatch shaping of the elements is required.
[0113] Each state machine 1002a, 1002b and 1002c, when enabled, outputs a respective two bit binary word 1004a, 1004b and 1004d that is representative of one of four possible states (i.e., 00, 01, 10 and 11). The state machines are designed to produce patterns of the four possible states, preferably in a pseudo random manner, such that each state occurs on average at the output of a specific state machine once every four times that particular state machine is enabled. State machines 1002a, 1002b and 1002c are similar to (and can even be identical to) state machines 602a, 602b and 602c. Details of an exemplary embodiment of a state machine have been discussed above with reference to FIGS. 7 and 8.
[0114] Each two-bit binary word 1006a, 1006b or 1006d, is used to select one of four different four bit shuffled density codes from a respective RAM 1006a, 1006b or 1006c.
[0115] The four possible density code outputs 0111, 1011, 1101, and 1110 that can be selected from RAM 1004c each have a shuffled density code of 3/4th. One of these outputs are selected when state machine 1002c is enabled by xeq3" being HIGH. Referring to Table 1, x<2:0> equals binary 011 (i.e., xeq3" is HIGH), for example, when input code 304 (i.e., x<4:0>) equals binary 01011 (i.e., H) or 00011 (i.e., 3).
[0116] The four possible density code outputs 0011 , 1100, 1010, and 0101 that can be selected from RAM 1006b each have a shuffled density code of 2/4th. One of these outputs are selected when state machine 1002b is enabled by xeq2" being HIGH. Referring to Table 1, x<2:0> equals binary 010 (i.e., xeq2" is HIGH), for example, when input code 304 (i.e., x<4:0>) equals binary 01010 (i.e., 10) or 00010 (i.e., 2).
[0117] The four possible density code outputs 0001, 0010, 0100, and 1000 that can be selected from RAM 1006a each have a shuffled density code of l/4th. One of these outputs are selected when state machine 1002a is enabled by xeql " being HIGH. Referring to Table 1, x<2:0> equals binary 001 (i.e., xeql" is HIGH), for example, when input code 304 (i.e., x<4:0>) equals binary 01001 (i.e., 9) or 00001 (i.e., 1).
[0118] As shown, when xeq4" is HIGH, the density code output is always l l l l, having a shuffled density code of 4/4th (i.e., 1). Referring to Table 1, x<2:0> equals binary 100 (i.e., xeq4" is HIGH) when input code 304 (i.e., x<4:0>) equals binary 01100 (i.e., 12) or 00100 (i.e., 4). [0119] As shown at the right of FIG. 10, one of the thirteen possible shuffled density codes are output from an OR gate (actually implemented as four OR gates) as four bit shuffled density code (not a binary word) 311. When x<2:0> equals binary 000 (i.e., 0), then four bit density code 311 is equal to 0000. Referring back to FIG. 3, four bit shuffled density code 311 is provided to a 4 element sub-DAC 312.
[0120] Provided above is an exemplary embodiment of the shufflers 310a, 310b,
310c and 3 lOd. One of ordinary skill in the art will appreciate that alternative dynamic element mismatch shaping encoders can be used in place of the above described shufflers 310a, 310b, 310c and 31 Od, while still being within the spirit and scope of the present invention.
[0121] Shufflers 502a, 502b, 502c, 502d and/or shufflers 302a, 302b, 302c, 302d may also be implemented using many different dynamic element matching (DEM) structures, and should not be limited to the specific implementations of FIG. 6 and FIG. 10. For example, any of the dynamic element mismatching structures described in the following patents, each of which is incorporated by reference, may be used to implement Shuffler 1310: U.S. Patent No. 5,404,142 (Adams et al), entitled "Data-Directed Scrambler For Multi-Bit Noise Shaping D/A Converters"; U.S. Patent No. 5,406,283 (Leung), entitled "Multi-bit Oversampled DAC with Dynamic Element Matching" ; U.S . Patent No. 5 ,684,482 (Galton), entitled "Spectral Shaping of Circuit Errors In Digital-to-Analog Converters; and U.S. Patent No. 5,221,926 (Jackson), entitled "Circuit and Method for Cancelling Nonlinearity Error Associated with Component Value Mismatches in a Data Converter". Other possible dynamic element mismatch shaping structures that can be used with the present invention, include, but are not limited to, those disclosed in the following references, each of which are incorporated herein by reference: Sehreier "An empirical study of high-order, single-bit delta sigma modulators," IEEE Trans, on Circuits andSys. II: Analog and Digital Sig. Proc. , vol.40, no. 8, pp.461 -466, August 1993 ; Carley et al. , "A 16 bit order noise-shaping D/A converter, IEEE Proc. CICC, pp. 21.7.1-21.7.4, 1988; Baird et al. "Improved ΣΔ DAC linearity using data weighted averaging," Proceedings of the IEEE International Symposium on Circuits and Systems, May, 1995; Baird et al. , Linearity enhancement of multi-bit ΣΔ A/D and D/A converters using data weighted averaging," IEEE Trans, on Circuits and Systems II: Analog and Digital Signal Processing, vol.42, no. 12, pp. 753-762, Dec. 1995. One of ordinary skill in the art will appreciate how any of these DEM structures may be used to implement Shuffler 310am 310b, 310c, 3 lOd, and 1310.
C. Summary of First Embodiment
[0122] The above described embodiment of mismatch shaping network 302 shall now be summarized and also explained with a few examples.
[0123] Referring back to FIGS. 3 and 5, code splitter 306 includes four code shufflers 502a, 502b, 502c and 502d. Based on the three MSBs of input code 304, code splitter 306 can determine whether the input code 304 has a value between 0 and 3 inclusive (i.e., 0-3), 4-7, 8-11, 12-15 or has a value of 16. Code splitter 306 accomplishes that by determining which of the four shufflers 502a, 502b, 502c and 502d should be enabled based on the tliree MSBs of input code 304.
[0124] More specifically, if 304 has a value 0-3, then xeqO is HIGH, and shuffler
502a is enabled. When this occurs, each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 0 (binary 000) or 1 (binary 001).
[0125] If 304 has a value 4-7, then xeql is HIGH, and shuffler 502b is enabled.
When this occurs, each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 1 (binary 001) or 2 (binary 010).
[0126] If 304 has a value 8-11, then xeq2 is HIGH, and shuffler 502c is enabled.
When this occurs, each of the four sub-codes sub-codes 308a, 308b, 308c and 308d will have a value of 2 (binary 010) or 3 (binary 011). [0127] If304 has avalue 12-15, then xeq3 is HIGH, and shuffler 502d is enabled.
When this occurs, each of the four sub-codes sub-codes 308a, 308b, 308c and 308d will have a value of 3 (binary 011) or 4 (binary 100).
[0128] Further, if 304 has a value 16, then xeq4 is HIGH, and each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 4 (binary 100).
[0129] This description immediately above is summarized by Table 1.
[0130] Each four term-shuffler, which includes multiple four-state state machines, outputs a four bit density code based on the two LSBs of input code 304. Each density code has a density of either 0/4th, l/4th, 2/4th or 3/4th. The four bit density code defines how many of the four sub-codes should have a first value (e.g., 0) and how many should have a second value (e.g. 1).
[0131] For example, if 304 has a value 0-3 , and thus xeqO is HIGH and shuffler
502a is enabled, then the four bit density code output from shuffler 502a defines how many of the four sub-codes should have a value of 0 (binary 000) or a value of 1 (binary 001). Remember, when the sub-codes are added up they will equal the input code 304.
[0132] In a more specific example, if input code 304 has a value 3 (binary
00011), then xeqO is HIGH, and shuffler 502a is enabled. As explained above, when 304 has a value 0-3 (i.e., within the 0th range), each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 1 (binary 001) or 0 (binary 000). Shuffler 502a, based on the two LSBs of input code 304 outputs a density code 504a. The two LSBs of binary 00011 are binary 11. Referring to FIG. 6 (which shows an exemplary embodiment of four term shufflers 502 in detail), when the two LSBs are binary 11, xeq3' is HIGH, causing four-state state machine 602c to be enabled. Four state-state machine 602c selects one of four density codes that all have a density of 3/4th, which means tliree out of the four sub-codes should have a value of 1 (binary 001) and the remaining one of the four sub-codes should have a value of 0 (binary 000). The four bit density code having a density of 3 /4th can be 0111, 1011, 1101 or 1110. The selection of one of the four density codes is based on previous density codes output when 304 had a value 3, and based on a pseudo random dither code.
[0133] In another example, digital input code 304 has a value of 10 (binary
01010). Thus, 304 has a value 8-11 (i.e., is within the 2nd range), xeq2 is HIGH, and shuffler 502c is enabled. As explained above, when digital input code 304 has a value 8-11, each of the four sub-codes 308a, 308b, 308c and 308d will have a value of 2 (binary 010) or 3 (binary 011). The four bit density code 504c output from shuffler 502c defines how many of the four sub-codes have a value of 3 (binary 011) and how many have a value of 2 (binary 010). For a value of 10 (binary 01010), the four bit density code 504c will have a density of 2/4th, which means two of the four sub-codes should have a value of 3 (binary 011) and two of the four sub-codes should have a value of 2 (binary 010). The four bit density code having a density of 2/4th can be 0011, 1100, 1010 or 0101. The selection of one of the four density codes is based on previous density codes output when 304 had a value 10, and based on a pseudo random dither code.
[0134] Referring specifically to FIG. 5, the four bit density code output from one of shufflers 502a, 502b, 502c or 502d (or the four bit density code 1111 if 304 has a value of 16) is provided to Adder block 510 as density code 508. Based on the four bit density code 508, and the three MSBs of input code 304, Adder block 510 outputs four separate 3 bit binary sub-codes 308a, 308b, 308c and 308d, the sum of which equal input code 304.
[0135] Referring back to FIG. 3 , each of the four sub-codes 308a, 308b, 308c and
308d are provided to a respective one of shufflers 310a, 310b, 310c and 310d. Continuing with the example where input code 304 has a value of 10, two of the four shufflers 310a, 310b, 310c and 31 Od will receive a sub-code having a value of 3 (i.e., binary 011) and two of the four shufflers 310a, 310b, 310c and 310d will receive a sub-code having a value of 2 (i.e, binary 010).
[0136] Each shuffler 310a, 310b, 310c and 31 Od, which has been explained with reference to FIG. 10, will output a respective shuffled density code 311a, 311b, 311c and 31 Id, each of which drives a respective four element sub-DAC 312a, 312b, 312c and 312d. Each shuffled density code 311 a, 311 b, 311 c and 311 d has a density of 0/4th (i.e., 0), l/4th, 2/4th, 3/4th, or 4/4th (i.e., 1), depending on the value of the respective sub-codes 308a, 308b, 308c and 308d. More specifically, if a sub-code has a value of 1 (binaiy 001), then the density code is l/4th, which can be 0001, 0010, 0100 or 1000. If a sub-code has a value of 2, then the density is 2/4th, which can be 0011, 1100, 1010 or 0101. As a second alternative, the density of 2/4th required when the sub-code value is 2 can be provided using the following set of four density codes: 0110, 1001, 1010, or 0101. As a third alternative, the density of 2/4th required when the sub-code value is 2 can be provided using the following set of four density codes: 0110, 1001, 0011, 1100. Any one of these three sets of 4 density codes may be used to provide a density of 2/4th when the sub-code value is 2. If a sub-code has a value of 3, then the density is 3/4th, which can be 0111, 1011, 1101 or 1110. In each of these cases, the selection of one of the four density codes is based on previous density codes output when a specific sub-code was received by a specific shuffler 310, and based on a pseudo random dither code. If a sub-code has a value of 4 (binary 100), then the density code is 4/4th (i.e., 1), which can only be 1111. Similarly, if a sub-code has a value of 0 (binary 000), then the density is 0/4th (i.e., 0), which can only be 0000.
[0137] Continuing with the example where input code 304 has a value of 10, assume sub-codes 308a and 308b each have a value of 3 (binary 011) and subcodes 308c and 308d each have a value of 2 (binary 010). In this example, shufflers 310a and 310b will output respective shuffled density codes 31 la and 311b, each having a density of 3/4th. Shufflers 310c and 310d will output respectively shuffled density codes 311c and 3 l id, each having a density of 2/4th. This will cause ten (10) of the sixteen (16) unit elements (shown as triangles in FIG. 3) to be turned ON, thereby generating an analog output 314 representative of digital input 304.
[0138] The specific density code selected by each of shufflers 310a, 310b, 310c and 310d is based on previous density codes output when a specific shuffler previously received the sub-code now being received, and based on a pseudo random dither code. Thus, the specific ten (10) of the sixteen (16) unit elements turned ON each time code 304 has a value of 10 is in a pseudo random pattern such that all possible variations of 10 elements out of the 16 elements have been used and, on average, all possible variations occur a substantially equal number of times.
V. Second Embodiment of Mismatch Shaping Network
[0139] A second embodiment of mismatch shaping network 302 will now be described with reference to FIG. 13. In contrast to the above discussed embodiments of code splitter and code shuffler 306 shown in FIGS. 5 and 11, the code splitter and code shuffler 306 of FIG. 13 includes only one shuffler (i.e., shuffler 1310), as opposed to four shufflers (i.e., shufflers 502a, 502b, 502c and 502d, or shufflers 1102a, 1102b, 1102c and 1102d). It will be appreciated from the following description that the mismatch shaping network 302 of FIG. 13 can therefore be implemented using fewer logic gates than the previously described embodiments.
A. High Level Overview of Second Embodiment
[0140] In this embodiment, a truncation block 1302 produces a truncation output
1304 based on digital input signal 304. Truncation output 1304 is equal to the greatest integer less than X ÷ K, where K represents the number of multi-bit sub- DACs 312 (K is preferably greater than two) and X represents the value of digital input 304. In the exemplary embodiment shown in FIG. 13, K equals four (i.e., K = 4). Thus, truncation output 1304 is equal to the greatest integer less than the value of the digital input signal 304 (i.e., X) divided by four (i.e., K). Truncation block 1302 is an implementation of range selector 402. [0141] Digital input signal 304 is also provided to a modulo block 1306, which produces a modulo signal 1308. Modulo block 1306 performs a modulo function (i.e., x modulo K), which is equal to x minus the product of K times the next integer smaller than x divided by K (unless x divided by K is an integer, in that case x modulo K equals zero). Thus, in the exemplary embodiment shown in FIG. 13, modulo signal 1308 is equal to the value of digital input signal 304 (i.e., X) modulo four (i.e., K). Modulo signal 1308 is an implementation of modulo signal 408.
[0142] Modulo signal 1308 is provided to a K-term shuffler 1310. In the exemplary embodiment shown in FIG. 13, shuffler 1310 is a shuffler (i.e., K = 4). Shuffler 1310 outputs a K-bit shuffled density code 1311. In the exemplary embodiment, density code 1311 is a four-bit density code, which is also referred to as z<3:0>. For a given value of modulo signal 1308, shuffler 1310 produces patterns of the possible density codes, preferably in a pseudo random fashion, such that each density code occurs approximately the same number of times. For example, if modulo signal 1310 repeatedly has a value of one, then shuffler 1310 should produce a pattern of all possible variations of a l/4th density code signal: 0001 , 0010, 0100 and 1000. The next four times modulo signal 1310 equals one, shuffler 1310 preferably produces patterns of the possible variations in a different order. Shuffler 1310 is an implementation of density generator 404.
[0143] Each bit of K-bit shuffled density code 1311 is separately added to truncation output 1304, to produce sub-codes 308. In the exemplary embodiment of FIG. 13 (i.e., where K = 4), bit z<0> (of density code 1311) and truncation output 1304 are added by adder 1312a to produce first sub-code 308a. First subcode 308a is provided to a K term shuffler, illustrated here as shuffler 310a. Similarly, bit z<l> (of density code 1311) and truncation output 1304 are added by adder 1312b to produce second sub-code 308b. Second sub-code 308b is provided to shuffler 310b. Similarly, bit z<2> (of density code 1311) and truncation output 1304 are added by adder 1312c to produce third sub-code 308c. Third sub-code 308c is provided to shuffler 310c. Similarly, bit z<3> (of density code 1311) and truncation output 1304 are added by adder 1312c to produce fourth sub-code 308d. Fourth sub-code 308d is provided to shuffler 310d. Adders 1312a, 1312b, 1312c and 1312d are an implementation of combiner 406.
[0144] Where K = 4, as in the exemplary embodiment of FIG 13, the shufflers
310a, 31 Ob, 310c and 31 Od used in this mismatch shaping network embodiment can be implemented using the embodiment of a shuffler described in detail above with reference to FIG. 10.
[0145] A first implementation of the third embodiment of the mismatch shaping network 302 will be described with reference to FIG. 14. In the first implementation of FIG. 14, digital input signal 304 is a sixteen (16) level input signal that can be equal to binary 0000 (decimal 0) through binary l l l l (decimal 16). In a second implementation, described with reference to FIG. 15, digital input signal 304 is a seventeen (17) level input signal that can be equal to binary 00000 (decimal 0) through binary 10000 (decimal 17).
B. First Implementation
[0146] Referring to FIG. 14, digital input signal 304 (also referred to as x<3:0>) is a sixteen (16) level input signal that can be equal to binary 0000 (decimal 0) through binary l l l l (decimal 16), as just mentioned above.
[0147] In this embodiment, the function of truncation block 1302 is accomplished by simply taking the two MSBs (i.e., x<3 :2>) of digital input signal 304 to produce range signal 1304. As mentioned above, range signal 1304 is an implementation of range signal 410.
[0148] Similarly, the function of modulo block 1306 is accomplished simply by talcing the two LSBs (i.e., x<l :0>) of digital input signal 304 to produce modulo signal 1308. As mentioned above, modulo signal 1308 is an implementation of modulo signal 408.
[0149] Modulo signal 1308 is provided to a shuffler 1310, which outputs a 4-bit shuffled density code 1311 (also referred to as z<3 :0>). As mentioned above, for a given value of modulo signal 1308, shuffler 1310 produces patterns of the possible density codes, preferably in a pseudo random fashion, such that each density code occurs approximately the same number of times. Shuffler 1310 can be implemented using the shuffler described above in detail with reference to FIG. 6.
[0150] Each bit of 4-bit shuffled density code 1311 (i.e., z<3:0>) is separately added to truncation output 1304 (i.e., x<3:2>), to produce sub-codes 308a, 308b, 308c and 308d. More specifically, bit z<0> (of density code 1311) and truncation output 1304 are added by adder 1312a to produce first sub-code 308a. First subcode 308a is provided to shuffler 310a. Similarly, bit z<l> (of density code 1311) and truncation output 1304 are added by adder 1312b to produce second sub-code 308b. Second sub-code 308b is provided to shuffler 310b. Similarly, bit z<2> (of density code 1311) and truncation output 1304 are added by adder 1312c to produce third sub-code 308c. Third sub-code 308c is provided to shuffler 310c. Similarly, bit z<3> (of density code 1311) and truncation output 1304 are added by adder 1312d to produce fourth sub-code 308d. Fourth subcode 308d is provided to shuffler 310d. The sum of the four sub-codes 308a, 308b, 308c and 308d equals digital input code 304. Adders 1312a, 1312b, 1312c and 1312d are an implementation of combiner 406. Adders 1312a, 1312b, 1312c and 1312d can be implemented, for example, using the adder shown in FIG. 12.
[0151] In this embodiment, shuffler 1310 is used in place of four shufflers (502a,
502b, 502c and 502d or 1102a, 1102b, 1102c and 1102d) used in the previous embodiments to effectively cycle through the various sub-code combinations to average the error of each multi-element sub-DAC 312a, 312b, 312c and 312d. Each of shufflers 310a, 310b, 310c and 3 lOd perform mismatch shapes for one of the multi-element sub-DACs 312a, 312b, 312c and 312d. As mentioned above, the shufflers 310a, 310b, 310c and 310d can be implemented using the embodiment of a shuffler described in detail above with reference to FIG. 10. Shuffler 1310 can be implemented using the embodiment of a shuffler described in detail above with reference to Fig. 6. If the shuffler described with reference to Fig. 6 is used to implement shuffer 1310 then the EN signal in Fig. 6 should be connected to a HIGH level so the this shuffler is always enabled.
[0152] Shufflers 31 Oa, 31 Ob, 310c, 31 Od, and 1310 may also be implemented using many different dynamic element matching (DEM) structures, and should not be limited to the specific implementations of FIG. 6 and FIG. 10. For example, any of the dynamic element matching structures described in the patents and papers that have been incorporated by reference above, may be used to implement shuffler 1310. One of ordinary skill in the art will appreciate how any of these DEM structures may be used to implement Shuffler 310am 310b, 310c, 310d, and 1310.
[0153] As will be appreciated by one of ordinary skill in the art, embodiments of the present invention allows small DEM circuits of low-complexity (that can only, by themselves, be used with very small DACs) to be used in DACs with very large numbers of elements. The additional complexity added for this capability is small.
C. Second Implementation
[0154] Referring now to FIG. 15, digital input signal 304 is a seventeen (17) level input signal that can be equal to binary 00000 (decimal 0) through binary 10000 (decimal 17). This second embodiment, although very similar to the first embodiment, is slightly more complex because the 17th level (i.e., binary 10000) is a special case that must be dealt with.
[0155] In this embodiment, the truncation function of truncation block 1302 is accomplished by OR-ing x<4> (the MSB of digital input signal 304) with x<3:0>. This will cause the output (y<3:0>) of OR gate 1502 (which is actually four OR gates) to be equal to x<3 :0> in every instance except when digital input signal 304 has a binary value 10000 (decimal value 17), i.e., when x<4> equals bit 1. When x<4> equals bit 1, then output y<3 :0> will equal l l l l . The two MSBs of y<3:0> (i.e., y<3:2>) are taken to produce range signal 1304. As mentioned above, range signal 1304 is an implementation of range signal 410.
[0156] Similarly, the function of modulo block 1306 is accomplished by adding x<4> and the two LSBs of y<3:0> (i.e., y<l :0>) to produce modulo signal 1308. Modulo signal 1308 will be equal to x<l :0> in every instance except when digital input signal 304 has a binary value 10000 (decimal 17), i.e., when x<4> equals binary bit 1. When x<4> equals binary bit 1, y<l :0> will equal binary bits 11, the sum of which is binary bits 100. Thus, when x<4> equals binary bit 1 , modulo signal 1308 equals binary bits 100 (decimal 4). As mentioned above, modulo signal 1308 is an implementation of modulo signal 408.
[0157] Shuffler 1310 can be implemented using the shuffler described above in detail with reference to Fig. 6. Shuffler 1310 may also be implemented using any known dynamic element matching (DEM) structure, such as those described in the patents that have been incorporated by reference above. One of ordinary skill in the art will appreciate how any of these DEM structures may be used to implement Shuffler 1310.
[0158] Referring to the exemplary implementation of FIG. 6 and its corresponding discussion, when the input to shuffler 1310 is binary 100 (i.e., decimal 4), the density code output (i.e., density signal 1311, in this embodiment) is density code l l l l.
[0159] In the same matter described above, each bit of 4-bit shuffled density code
1311 (i.e., z<3:0>) is separately added to truncation output 1304 (i.e., x<3:2>), to produce sub-codes 308a, 308b, 308c and 308d. Sub-codes 308a, 308b, 308c and 308d are provided to respective shufflers 310a, 310b, 310c and 31 Od. Each of shufflers 31 Oa, 310b, 310c and 31 Od perform mismatch shapes for one of the multi-element sub-DACs. As mentioned above, the shufflers 310a, 310b, 310c and 31 Od can be implemented using the embodiment of a shuffler described in detail above with reference to FIG. 10, or other known DEM structures.
D. Variations on Second Embodiment [0160] In the above described implementations of the second embodiment of mismatch shaping network 302, shuffler 1310 is used to move the effects of errors produced by the multi-element sub-DACs to out of band frequencies. As mentioned above, shuffler 1310 can be implemented using the shuffler described above in detail with reference to FIG. 6. Alternatively, any dynamic element matching (DEM) algorithm known in the art (and its corresponding implementation) can be used in place of shuffler 1310 to spectrally shape the gain mismatch errors. Referring to FIG. 13, for example, if the multi-bit DAC 300 is constructed from of K multi-element sub-DACs 312, any K-element DEM encoder can be used in place of shuffler 1310.
VI. Flow Diagrams
[0161] FIGS. 16, 17 and 18 are flow diagrams that are useful for describing an overview of the operation of embodiments of the present invention. More specifically, FIGS. 16, 17 and 18 are useful for describing methods of mismatch shaping according to embodiments of the present invention.
[0162] Referring first to FIG. 16, a method 1600 of the present invention starts when a digital input code (e.g., of signal 304) is received at a step 1602.
[0163] At a next step 1604, the digital input code is slit into a set of K sub-codes corresponding to the digital input code. The set of K sub-codes can have one of at least N different sub-code orders that specify an order of each of the K subcodes with respect to one another, wherein N > 2. A sum of the K sub-codes equals the digital input code received at step 1602. In a preferred embodiment, each of the K sub-codes is not different than any of the other K-l sub-codes within the set of K sub-codes by more than one level.
[0164] At a next step 1606, one of the at least N different sub-code orders is selected using a shuffling algorithm. The shuffling algorithm can be a dynamic element mismatch shaping algorithm, as discussed above. In an embodiment discussed in more detail above, the selecting of the one of the at least N different sub-code orders is based on: (1) one or more sub-code orders that were previously selected, and/or (2) a pseudo random code. Steps 1604 and 1606 may occur simultaneously, and thus, may be combined into one step.
[0165] At a step 1608, each sub-code in the set of K sub-codes is output in accordance with the selected sub-code order. In one embodiment, each of the K sub-codes is provided directly to one of K sub-DACs that convert the sub-codes to analog signals without any additional shuffling. However, preferably, at a step 1610 (which can be combined with step 1608), each sub-code in the set ofK subcodes is provided to a respective one of K shufflers in accordance with the selected sub-code order. Then, at a step 1612, each of the K sub-codes are separately shuffled using the respective one of the K shufflers to thereby produce K separate multi -bit shuffled density codes. At a step 1614, each of the K shuffled density codes are provided to a respective one of K multi-element sub- digital-to-analog converters (sub-DACs), in accordance with the selected subcode order. At a step 1616, each of the K multi-element sub-DACs are driven using the respective one of the K shuffled density codes. Each of the K multielement sub-DACs produce analog outputs, which are combined (e.g., added) to produce an analog signal that is representative of the digital signal received at step 1602.
[0166] The above steps can be though of as a method for mismatch shaping, according to an embodiment of the present invention. As can be understood from the descriptions above, method 1600 can be used to spectrally shape gain mismatch errors in a multi-bit DAC constructed from K separate multi-element sub-DACs. More specifically, each of the K shuffled density codes can be provided to a respective one of the K sub-DACs. Each of the sub-DACs converts its respective received multi-level sub-codes into multiple analog signals. All of the analog signals output from the K sub-DACs are then combined to produce an analog signal (i.e., the output of the multi-bit DAC) representative of the digital input code. These steps are repeated for each digital input code of a digital input signal. In this manner, a digital input signal is converted to an analog signal in such a way that mismatch errors, due to mismatch of the elements, are moved to out of band frequencies.
[0167] Additional details and variations of method 1600 can be appreciated from the various embodiments described above.
[0168] Referring now to FIG. 17, this embodiment of the present invention starts when a digital input code is received, at a step 1702. As mentioned above, the digital input code can be received, for example, from a digital sigma-delta modulator, or from a multi-bit analog-to-digital converted of an analog sigma- delta modulator.
[0169] At a step 1704, a range signal is produced based on the digital input code.
The range signal specifies which one of a plurality of ranges the digital input code is within.
[0170] At a step 1706, a density code is produced. The density code specifies a level within the range expressed by the range signal. The density signal can be produced based on the digital input code (e.g., based on a portion of digital input code). In another embodiment, a modulo signal (that specifies a difference between the digital input code and a lower end of the range specified by the range signal) is produced. The density signal can then be produced based on the modulo signal. Preferably, step 1706 includes selecting one of a plurality of orders for the density code using a shuffling algorithm. Each of the orders specify an order of bits in the density code. This shuffling algorithm can be a dynamic element mismatch shaping algorithm, many of which were discussed above. In an embodiment of the present invention, the one of the plurality of orders for the density code can be selected based on at least one of: (1) one or more orders that were previously selected, and/or (2) a pseudo random code. The order is preferably selected such that, as these steps are repeated, on average, each one of the different orders is selected substantially the same number of times.
[0171] At a step 1708, the range signal and the density signal are combined to thereby produce a plurality of sub-codes. A sum of the plurality of sub-codes equals the digital input code. In one embodiment, each of the plurality of sub- codes is provided directly to one of a plurality of sub-DACs that convert the subcodes to analog signals without any additional shuffling. However, preferably, at a step 1710, each of the plurality of sub-codes are shuffled to produce a plurality of shuffled sub-codes. Then, at a step 1712, each of the plurality of shuffled sub-codes are provided to a respective multi-element sub-digital-to- analog converter (sub-DAC). At a step 1714, each of the multi-element sub- DACs are driven using the respective one of the shuffled sub-codes. Each of the multi-element sub-DACs produce analog outputs, which are combined (e.g., added) to produce an analog signal that is representative of the digital signal received at step 1702.
[0172] Steps of method 1700 can be though of a method for mismatch shaping, according to an embodiment of the present invention. As can be understood from the descriptions above, method 1700 can be used to spectrally shape gain mismatch errors in a multi-bit DAC constructed from a plurality of separate multi-element sub-DACs. More specifically, each of the shuffled sub-codes can be provided to a respective one of a plurality of sub-DACs. Each of the sub- DACs converts its respective received sub-code into multiple analog signals. All of the analog signals output from the plurality of sub-DACs are then combined to produce an analog signal (i.e., the output of the multi-bit DAC) representative of the digital input code. These steps are repeated for each digital input code of a digital input signal. In this manner, a digital input signal is converted to an analog signal in such a way that mismatch errors, due to mismatch of the elements, are moved to out of band frequencies. Additional details and variations of method 1700 can be appreciated from the various embodiments described above.
[0173] Referring now to FIG. 18, an embodiment of the present invention starts when multi-level digital input code having a first value VI, is received at a step 1802.
[0174] At a step 1804, a second digital value V2 is produced, wherein V2 equals a greatest integer less than VI ÷ K, where K > 2. [0175] At a step 1806, a third digital value V3 is produced, wherein V3 equals a VI modulo K.
[0176] At a next step 1808, a shuffled density code is produced based on the third digital value V3. The shuffled density code includes K bits each of which has a value of 0 or 1. An order of the K bits with respect to one another is based on a shuffling algorithm. Exemplary algorithms and corresponding implementations have been discussed above.
[0177] At a step 1810, V2 is added to each of the K bits to produce K separate further digital outputs V4 , .... V4K. A sum of the K separate further digital outputs
equals the first value VI [i.e., J V4l = VI] i=\
[0178] At a next step 1812, each the K separate further digital outputs V4, .... V4K is provided to one of K separate shufflers.
[0179] Atanext step 1814, each the K separate further digital outputs V4,....V4K is shuffled to produce K shuffled sub-codes.
[0180] At a step 1816, each of the K shuffled sub-codes is provided to a respective one of K multi-element sub-digital-to-analog converters (sub-DACs).
[0181] At a step 1818, each of the multi-element sub-DACs are driven using the respective one of the shuffled sub-codes. Each of the multi-element sub-DACs thereby produce analog outputs, which are combined (e.g., added) to produce an analog output signal that is representative of the digital signal received at step 1802.
[0182] Similarly, the steps of method 1800 can be though of as a method for mismatch shaping, according to an embodiment of the present invention. As can be understood from the descriptions above, method 1800 can be used to spectrally shape gain mismatch errors in a multi-bit DAC constructed from K separate multi-element sub-DACs. More specifically, each of the shuffled density codes can be provided to a respective one of K sub-DACs. Each of the K sub-DACs converts its respective received density code into multiple analog signals. All of the analog signals output from the K sub-DACs are then combined to produce an analog signal (i.e., the output of the multi-bit DAC) representative of the digital input code. Steps of method 1800 are repeated for each digital input code of a digital input signal. In this manner, a digital input signal is converted to an analog signal in such a way that mismatch errors, due to mismatch of the elements, are moved to out of band frequencies. Additional details of method 1800 can be appreciated from the various embodiments described above, especially the embodiments discussed in connection with FIGS. 13, 14 and 15.
VII. Conclusion
[0183] While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example, and not limitation. It will be apparent to persons skilled in the relevant art that various changes in form and detail can be made therein without departing from the spirit and scope of the invention. For example, many of the above described exemplary embodiments of the mismatch shaping network of the present invention are shown as splitting a digital input code into four sub-codes, which are each provided to one of four separate shufflers. However, one of ordinary skill in the art will appreciate from the above description that a digital input code can be split into a different number of sub-codes (i.e., other than four) while still being within the spirit and scope of the present invention. Additionally, one of ordinary skill in the art will appreciate from the above description that each of the shufflers can shuffle more or fewer than four terms as appropriate.
[0184] The present invention has been described above with the aid of functional building blocks and flow diagrams illustrating the performance of specified functions and relationships thereof. The boundaries of these functional building blocks and the steps of flow diagrams have often been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed. Any such alternate boundaries are thus within the scope and spirit of the claimed invention. For example, the function of code splitter and code shuffler 306 can be separate into two functional blocks where the splitting occurs first and then the shuffling occurs second. This separating of these functions is also intended to be covered by the present invention. One skilled in the art will recognize that these functional building blocks can be implemented by discrete components, application specific integrated circuits, processors executing appropriate software and the like or any combination thereof. Thus, the breadth and scope of the present invention should not be limited by any of the above- described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.

Claims

WHAT IS CLAIMED IS:
1. A method for mismatch shaping comprising the steps of:
(a) receiving a digital input code;
(b) splitting the digital input code into a set of K sub-codes corresponding to the digital input code, wherein the set of K sub-codes can have one of at least N different sub-code orders that specify an order of each of the K sub-codes with respect to one another, wherein N > 2, and wherein a sum of the K sub-codes equals the digital input code;
(c) selecting one of the at least N different sub-code orders using a shuffling algorithm; and
(d) outputting each sub-code in the set of K sub-codes in accordance with the selected sub-code order.
2. The method of claim 1, where each of the K sub-codes is not different than any of the other K-l sub-codes within the set of K sub-codes by more than one level.
3. The method of claim 1, wherein the shuffling algorithm comprises a dynamic element mismatch shaping algorithm, and wherein step (c) comprises selecting the one of the at least N different sub-code orders using the dynamic element mismatch shaping algorithm.
4. The method of claim 1, wherein step (c) comprises selecting the one of the at least N different sub-code orders based on at least one of:
(c.1 ) one or more sub-code orders that were previously selected, and
(c.2) a pseudo random code.
5. The method of claim 1 , wherein step (d) further comprises providing each sub-code in the set of K sub-codes to a respective one of K shufflers in accordance with the selected sub-code order.
6. The method of claim 5, further comprising the step of:
(f) separately shuffling each of the K sub-codes using the respective shuffler to thereby produce K separate multi-bit shuffled density codes.
7. The method of claim 6, further comprising the step of:
(g) providing each of the K shuffled density codes to a respective one of K multi-element sub-digital-to-analog converters (sub-DACs), in accordance with the selected sub-code order; and
(h) driving each of the K multi-element sub-DACs using the respective one of the K shuffled density codes.
8. The method of claim 7, further comprising repeating steps (a) through (h) a plurality of times.
9. The method of claim 1 , further comprising repeating steps (a) through (d) a plurality of times.
10. The method of claim 1, wherein steps (b) and (c) occur simultaneously.
11. The method of claim 1, wherein step (c) comprises selecting the one of the at least N different sub-code orders based on the one or more sub-code orders that were previously selected.
12. The method of claim 1, wherein step (c) comprises selecting the one of the at least N different sub-code orders based on the pseudo random code.
13. The method of claim 1, wherein step (c) comprises selecting the one of the at least N different sub-code orders based on the one or more sub-code orders that were previously selected and on the pseudo random code.
14. A method for mismatch shaping comprising the steps of:
(a) receiving a sequence of multi-level digital input codes;
(b) splitting each of the multi-level digital input codes into a set of K subcodes corresponding to the multi-level digital input code, wherein the set of K sub-codes can have one of at least N different sub-code orders that specify an order of each of the K sub-codes with respect to one another, wherein N > 2, and wherein a sum of the K sub-codes equals the multi-level digital input code;
(c) for each of the multi-level digital input codes, selecting one of the at least N different sub-code orders using a shuffling algorithm; and
(d) for each of the multi-level digital input codes, outputting each sub-code in the set of K sub-codes in accordance with the selected sub-code order.
15. The method of claim 14, where each of the K sub-codes is not different than any of the other K-l sub-codes within the set of K sub-codes by more than one level.
16. The method of claim 14, wherein the shuffling algorithm comprises a dynamic element mismatch shaping algorithm, and wherein step (c) comprises, for each of the multi-level digital input codes, selecting the one of the at least N different sub-code orders using the dynamic element mismatch shaping algorithm.
17. The method of claim 14, wherein step (c) comprises, for each of the multilevel digital input codes, selecting the one of the at least N different sub-code orders based on at least one of: (c.1 ) one or more sub-code orders that were previously selected, and
(c.2) a pseudo random code.
18. The method of claim 14, wherein step (d) further comprises providing each sub-code in the set of K sub-codes to a respective one of K shufflers in accordance with the selected sub-code order.
19. The method of claim 18, further comprising the step of:
(f) separately shuffling each of the K sub-codes using the respective shuffler to thereby produce K separate multi-bit shuffled density codes.
20. The method of claim 19, further comprising the step of:
(g) providing each of the K shuffled density codes to a respective one of K multi-element sub-digital-to-analog converters (sub-DACs), in accordance with the selected sub-code order; and
(h) driving each of the K multi-element sub-DACs using the respective one of the K shuffled density codes.
21. The method of claim 19, further comprising repeating steps (a) through (h) a plurality of times.
22. The method of claim 14, further comprising repeating steps (a) through (d) a plurality of times.
23. The method of claim 14, wherein steps (b) and (c) occur simultaneously.
24. A method for mismatch shaping comprising the steps of: (a) receiving a sequence of digital input codes, wherein each of the plurality of digital input codes represents one of L distinct levels, wherein each of the plurality of digital input codes representing a same one of the L distinct levels is associated with a set of K sub-codes including K sub-code members that can have one of a plurality of different sub-code orders that specify an order of each of the K sub-codes with respect to one another, wherein L is an integer greater than K, and K is an integer greater than 2, wherein a sum of each set of K sub-codes equals one of the L different digital input codes with which the set of K sub-codes is associated, and wherein each of the sub-codes within each set of K sub-codes is not different than any of the other K-l sub-codes within the set of K subcodes by more than one level; and (b) for each digital input code,
(b.1) selecting a set of K sub-codes based on a level of the digital input code, and
(b.2) selecting one of the plurality of different sub-code orders using a shuffling algorithm.
25. A method for mismatch shaping, comprising the steps of:
(a) receiving a digital input code that can represent one of L distinct levels;
(b) splitting the digital input code into K separate sub-codes that can represent one of N distinct levels, where L > N > 2, and L > K > 2, a sum of the K separate sub-codes equaling the digital input code;
(c) specifying an order of the K separate sub-codes using a shuffling algorithm;
(d) shuffling each of the K separate sub-codes to produce K shuffled subcodes; and (e) outputting the K shuffled sub-codes in accordance with the specified order, wherein each of the K shuffled sub-codes is representative of one of the K sub-codes.
26. The method of claim 25, wherein the shuffling algorithm comprises a dynamic element mismatch shaping algorithm, and wherein step (c) comprises specifying the order of the K separate sub-code using the dynamic element mismatch shaping algorithm.
27. The method of claim 25, wherein step (c) comprises specifying the order of the K separate sub-code based on at least one of:
(c .1 ) one or more sub-code orders that were previously selected, and
(c.2) a pseudo random code; and
28. The method of claim 25, further comprising the step of: providing the K shuffled sub-codes to K multi-element sub-digital-to- analog converters (sub-DACs) in accordance with the specified order.
29. The method of claim 28, wherein each of the K multi-element sub-DACs includes N-l substantially equal weighted unit elements.
30. The method of claim 29, wherein each shuffled sub-code comprises anN- 1 bit density code, and wherein each of the unit elements converts a bit of a density code into an analog signal.
31. The method of claim 29, further comprising the step of combining the resultant analog signals into a combined analog signal representative of the digital input signal.
32. The method of claim 28, wherein each of the multi-element sub-DACs comprises binary weighted elements.
33. The method of claim 28, wherein each multi-element sub-DAC comprises N-l elements, where N-l > 2.
34. The method of claim 25, wherein K = 4.
35. The method of claim 25, further comprising the step of providing the K shuffled sub-codes directly to L-l elements.
36. An apparatus for mismatch shaping, comprising: means for receiving a sequence of digital input codes, wherein each of the digital input codes represents one of L distinct levels, wherein each of the of digital input codes representing a same one of the L distinct levels is associated with a set of K sub-codes including K sub-code members that can have one of a plurality of different sub-code orders that specify an order of each of the K sub-codes with respect to one another, wherein L is an integer greater than K, and K is an integer greater than 2, wherein a sum of each set of K sub-codes equals one of the L different digital input codes with which the set of K sub-codes is associated, and wherein each of the sub-codes within each set of K sub-codes is not different than any of the other K-l sub-codes within the set of K subcodes by more than one level; and a code splitter and code shuffler to select a set of K sub-codes based on a level of the digital input code, and to select one of the plurality of different subcode orders using a shuffling algorithm.
37. An apparatus for mismatch shaping, comprising: a code splitter and code shuffler (CSCS) to spit a received digital input code into K separate sub-codes that can represent one of N distinct levels and to specify an order of the K separate sub-codes using a shuffling algoritlim, wherein L > N > 2, L > K > 2, and a sum of the K separate sub-codes equaling the digital input code; and
K shufflers, each to receive one of the K separate sub-codes in accordance with the specified order, and each to shuffle the received one of the K separate sub-codes to thereby produce K shuffled sub-codes that are output in accordance with the specified order, wherein each of the K shuffled sub-codes is representative of one of the K sub-codes.
38. The apparatus of claim 37, wherein the CSCS comprises a dynamic element mismatch shaping circuit that is used to specify the order of the K separate sub-codes.
39. The apparatus of claim 37, wherein the CSCS specifies the order of the K separate sub-codes based on at least one of:
(a) one or more sub-code orders that were previously selected, and
(b) a pseudo random code.
40. The apparatus of claim 37, wherein each of the K shufflers each comprise a dynamic element mismatch shaping circuit.
41. The apparatus of claim 37, further comprising: K multi-element sub-digital-to-analog converters (sub-DACs) to receive the K shuffled density codes in accordance with the specified order and to produce analog signals therefrom.
42. The apparatus of claim 41, wherein each of the K multi-element sub- DACs includes N-l substantially equal weighted unit elements.
43. The apparatus of claim 42, wherein each shuffled sub-code comprises an N-l bit density code, and wherein each of the unit elements converts a bit of a density code into an analog signal.
44. The apparatus of claim 41 , further comprising a means for combining the analog signals into a combined analog signal representative of the digital input signal.
45. The apparatus of claim 41 , wherein each of the multi-element sub-DACs comprises binary weighted elements.
46. The apparatus of claim 41, wherein each multi-element sub-DAC comprises N-l elements, where N-l > 2.
47. The apparatus of claim 37, wherein K = 4.
PCT/US2001/028384 2000-09-11 2001-09-12 Method and apparatus for mismatched shaping of an oversampled converter WO2002023728A2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US23215500P 2000-09-11 2000-09-11
US23199100P 2000-09-11 2000-09-11
US60/231,991 2000-09-11
US60/232,155 2000-09-11

Publications (2)

Publication Number Publication Date
WO2002023728A2 true WO2002023728A2 (en) 2002-03-21
WO2002023728A3 WO2002023728A3 (en) 2003-10-09

Family

ID=26925587

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/US2001/028357 WO2002023727A2 (en) 2000-09-11 2001-09-12 Method and apparatus for mismatch shaping of an oversampled converter
PCT/US2001/028384 WO2002023728A2 (en) 2000-09-11 2001-09-12 Method and apparatus for mismatched shaping of an oversampled converter

Family Applications Before (1)

Application Number Title Priority Date Filing Date
PCT/US2001/028357 WO2002023727A2 (en) 2000-09-11 2001-09-12 Method and apparatus for mismatch shaping of an oversampled converter

Country Status (4)

Country Link
US (4) US6577261B2 (en)
EP (1) EP1374406B1 (en)
DE (1) DE60117827T2 (en)
WO (2) WO2002023727A2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010048362A3 (en) * 2008-10-23 2010-06-17 Microchip Technology Incorporated Method and apparatus for dithering in multi-bit sigma-delta digital-to-analog converters
WO2014085161A1 (en) 2012-11-30 2014-06-05 Analog Devices, Inc. Enhanced second order noise shaped segmentation and dynamic element matching technique
EP3537608A1 (en) * 2018-03-08 2019-09-11 Analog Devices Global Unlimited Company Method of linearizing the transfer characteristic by dynamic element matching
US11082056B2 (en) 2018-03-08 2021-08-03 Analog Devices International Unlimited Company Analog to digital converter stage

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6804291B1 (en) * 2000-02-22 2004-10-12 Texas Instruments Incorporated Device and method of digital gain programming using sigma-delta modulator
US6577257B2 (en) * 2000-09-11 2003-06-10 Broadcom Corporation Methods and systems for digital dither
US6531973B2 (en) 2000-09-11 2003-03-11 Broadcom Corporation Sigma-delta digital-to-analog converter
DE60117827T2 (en) * 2000-09-11 2006-11-23 Broadcom Corp., Irvine METHOD AND DEVICE FOR FORMING THE FEH-MATCHING OF A RECYCLED WALKER
US6762702B2 (en) 2002-01-24 2004-07-13 Broadcom Corporation Shuffler apparatus and related dynamic element matching technique for linearization of unit-element digital-to-analog converters
US6795003B2 (en) * 2003-01-30 2004-09-21 Broadcom Corporation Hardware-efficient implementation of dynamic element matching in sigma-delta DAC's
DE10304872B3 (en) * 2003-02-06 2004-09-16 Infineon Technologies Ag Converter arrangement for converting thermometer code into different binary output code has
US6720897B1 (en) * 2003-05-09 2004-04-13 Broadcom Corporation State-delayed technique and system to remove tones of dynamic element matching
US6864819B2 (en) * 2003-05-09 2005-03-08 Broadcom Corporation State delayed technique and system to remove tones of dynamic element matching
US6897797B2 (en) * 2003-09-29 2005-05-24 Utstarcom, Inc. Digital to analog converter with integral intersymbol interference cancellation
US7193548B2 (en) * 2004-01-30 2007-03-20 Hrl Laboratories, Llc Switching arrangement and DAC mismatch shaper using the same
JP3819010B2 (en) * 2004-06-30 2006-09-06 日本テキサス・インスツルメンツ株式会社 Digital encoder and digital / analog converter used therefor
US7042375B1 (en) 2005-03-29 2006-05-09 Broadcom Corporation System and method using dither to tune a filter
US7586429B1 (en) * 2006-05-09 2009-09-08 Marvell International Ltd. Scrambling system for high resolution ditigal-to-analog converter
WO2008014816A1 (en) * 2006-08-01 2008-02-07 Verigy (Singapore) Pte. Ltd. Asynchronous sigma-delta digital-analog converter
US7446688B1 (en) * 2007-05-09 2008-11-04 Windond Electronics Corporation Sequence generation for mismatch-shaping circuits
DE102008015836B4 (en) * 2008-03-27 2013-08-01 Thomas Rode Method and device for the direct digital synthesis of an electrical signal of arbitrary amplitude variation
CN101350622B (en) * 2008-09-10 2012-01-11 华为技术有限公司 Quantizer circuit for DEM algorithm and implementing method
JPWO2010058492A1 (en) * 2008-11-20 2012-04-12 パナソニック株式会社 Delta-sigma modulator and radio communication apparatus
US7965213B1 (en) * 2009-08-21 2011-06-21 Mediatek Inc. Element-selecting method capable of reducing toggle rate of digital to analog converter and module thereof
US8022850B2 (en) * 2009-09-25 2011-09-20 Freescale Semiconductor, Inc. Multiple-bit, digital-to-analog converters and conversion methods
US8494086B2 (en) * 2011-01-14 2013-07-23 Broadcom Corporation Distortion and aliasing reduction for digital to analog conversion
US8410963B2 (en) * 2011-03-23 2013-04-02 Infineon Technologies Ag Data converter circuit and method
US8810443B2 (en) 2012-04-20 2014-08-19 Linear Technology Corporation Analog-to-digital converter system and method
US8970414B2 (en) * 2013-06-24 2015-03-03 Broadcom Corporation Tri-level digital-to-analog converter
US9007242B2 (en) * 2013-06-27 2015-04-14 Realtek Semiconductor Corp. Self-calibrated delta-sigma modulator and method thereof
CN103701465B (en) * 2013-12-02 2016-09-21 苏州上声电子有限公司 A kind of digital loudspeaker system implementation method based on many bits △ Σ modulation and device
EP2993787B1 (en) * 2014-09-05 2020-07-15 Dialog Semiconductor (UK) Ltd Generalized data weighted averaging method for equally weighted multi-bit D/A elements
US9484947B1 (en) * 2015-09-29 2016-11-01 Analog Devices, Inc. Variable length dynamic element matching in digital-to-analog converters
US9735797B2 (en) * 2015-12-15 2017-08-15 Analog Devices, Inc. Digital measurement of DAC timing mismatch error
US9716509B2 (en) 2015-12-15 2017-07-25 Analog Devices, Inc. Digital measurement of DAC switching mismatch error
CN106888016B (en) * 2015-12-15 2018-12-04 深圳市中兴微电子技术有限公司 A kind of current-steering digital-to-analog converter and current steer digital-to-analogue method for transformation
US9954547B1 (en) * 2017-08-03 2018-04-24 Macom Connectivity Solutions, Llc High frequency digital-to-analog conversion by time-interleaving without return-to-zero
US10361731B2 (en) * 2017-11-30 2019-07-23 Hrl Laboratories, Llc Interleaved sigma delta modulator based SDR transmitter
CN109905124B (en) * 2017-12-07 2022-09-30 华大半导体有限公司 Analog-to-digital converter and analog-to-digital conversion method
US10615821B2 (en) 2018-04-30 2020-04-07 Microchip Technology Incorporated Charge-based digital to analog converter with second order dynamic weighted algorithm
JP2021517377A (en) * 2019-02-25 2021-07-15 シェンチェン グーディックス テクノロジー カンパニー リミテッド Data converters and associated analog-to-digital converters, digital-to-analog converters and chips
WO2020186255A1 (en) 2019-03-14 2020-09-17 Mixed Signal Devices Inc. Linearization of digital-to-analog converters (dacs) and analog-to-digital converters (adcs) and associated methods

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5760726A (en) * 1996-08-23 1998-06-02 Motorola, Inc. Digital-to-analog converter with dynamic matching and bit splitting

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4851841A (en) * 1987-10-02 1989-07-25 Crystal Semiconductor Corporation Gain scaling of oversampled analog-to-digital converters
GB8803627D0 (en) 1988-02-17 1988-03-16 Data Conversion Systems Ltd Digital to analogue converter
US5055846A (en) 1988-10-13 1991-10-08 Crystal Semiconductor Corporation Method for tone avoidance in delta-sigma converters
US5406823A (en) * 1991-01-18 1995-04-18 Nam Lee Industries (Pte) Ltd. Method of producing a main frame for a shipping container
GB9209498D0 (en) 1992-05-01 1992-06-17 Univ Waterloo Multi-bit dac with dynamic element matching
US5221926A (en) 1992-07-01 1993-06-22 Motorola, Inc. Circuit and method for cancelling nonlinearity error associated with component value mismatches in a data converter
US5323157A (en) 1993-01-15 1994-06-21 Motorola, Inc. Sigma-delta digital-to-analog converter with reduced noise
US5404142A (en) 1993-08-05 1995-04-04 Analog Devices, Incorporated Data-directed scrambler for multi-bit noise shaping D/A converters
JPH09153806A (en) 1995-11-29 1997-06-10 Sony Corp Signal processor
US5684482A (en) 1996-03-06 1997-11-04 Ian A. Galton Spectral shaping of circuit errors in digital-to-analog converters
EP0922334A2 (en) 1997-06-04 1999-06-16 Koninklijke Philips Electronics N.V. Data compression and expansion of an n-level information signal
JP3852721B2 (en) 1997-07-31 2006-12-06 旭化成マイクロシステム株式会社 D / A converter and delta-sigma type D / A converter
US6215423B1 (en) 1998-08-26 2001-04-10 Motorola Inc. Method and system for asynchronous sample rate conversion using a noise-shaped numerically control oscillator
US6348884B1 (en) * 1999-01-06 2002-02-19 Jesper Steensgaard-Madsen Idle-tone-free mismatch-shaping encoders
US6248884B1 (en) * 1999-06-03 2001-06-19 The Perkin-Elmer Corporation Extended rhodamine compounds useful as fluorescent labels
JP2001352247A (en) 2000-06-09 2001-12-21 Burr-Brown Japan Ltd Method and device for converting signal being modulated in frequency region from digital to analog
US6340940B1 (en) 2000-07-18 2002-01-22 Cirrus Logic, Inc. Digital to analog conversion circuits and methods utilizing single-bit delta-SIGMA modulators and multiple-bit digital to analog converters
DE60117827T2 (en) 2000-09-11 2006-11-23 Broadcom Corp., Irvine METHOD AND DEVICE FOR FORMING THE FEH-MATCHING OF A RECYCLED WALKER
US6531973B2 (en) 2000-09-11 2003-03-11 Broadcom Corporation Sigma-delta digital-to-analog converter
US6426714B1 (en) 2001-06-26 2002-07-30 Nokia Corporation Multi-level quantizer with current mode DEM switch matrices and separate DEM decision logic for a multibit sigma delta modulator

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5760726A (en) * 1996-08-23 1998-06-02 Motorola, Inc. Digital-to-analog converter with dynamic matching and bit splitting

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ADAMS R ET AL: "A 113 dB SNR oversampling DAC with segmented noise-shaped scrambling" SOLID-STATE CIRCUITS CONFERENCE, 1998. DIGEST OF TECHNICAL PAPERS. 1998 IEEE INTERNATIONAL SAN FRANCISCO, CA, USA 5-7 FEB. 1998, NEW YORK, NY, USA,IEEE, US, 5 February 1998 (1998-02-05), pages 62-63,413, XP010278686 ISBN: 0-7803-4344-1 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010048362A3 (en) * 2008-10-23 2010-06-17 Microchip Technology Incorporated Method and apparatus for dithering in multi-bit sigma-delta digital-to-analog converters
US7961125B2 (en) 2008-10-23 2011-06-14 Microchip Technology Incorporated Method and apparatus for dithering in multi-bit sigma-delta digital-to-analog converters
US7961126B2 (en) 2008-10-23 2011-06-14 Microchip Technology Incorporated Method and apparatus for dithering in multi-bit sigma-delta analog-to-digital converters
CN102119489A (en) * 2008-10-23 2011-07-06 密克罗奇普技术公司 Method and apparatus for dithering in multi-bit sigma-delta digital-to-analog converters
US8085176B2 (en) 2008-10-23 2011-12-27 Microchip Technology Incorporated Method and apparatus for dithering in multi-bit sigma-delta digital-to-analog converters
WO2014085161A1 (en) 2012-11-30 2014-06-05 Analog Devices, Inc. Enhanced second order noise shaped segmentation and dynamic element matching technique
CN104813587A (en) * 2012-11-30 2015-07-29 美国亚德诺半导体公司 Enhanced second order noise shaped segmentation and dynamic element matching technique
EP2926459A1 (en) * 2012-11-30 2015-10-07 Analog Devices, Inc. Enhanced second order noise shaped segmentation and dynamic element matching technique
EP2926459A4 (en) * 2012-11-30 2016-07-27 Analog Devices Inc Enhanced second order noise shaped segmentation and dynamic element matching technique
CN104813587B (en) * 2012-11-30 2018-04-10 美国亚德诺半导体公司 The second-order noise shaping branch and dynamic element matching technology of enhancing
EP3537608A1 (en) * 2018-03-08 2019-09-11 Analog Devices Global Unlimited Company Method of linearizing the transfer characteristic by dynamic element matching
US10511316B2 (en) 2018-03-08 2019-12-17 Analog Devices Global Unlimited Company Method of linearizing the transfer characteristic by dynamic element matching
US11082056B2 (en) 2018-03-08 2021-08-03 Analog Devices International Unlimited Company Analog to digital converter stage

Also Published As

Publication number Publication date
US20040021596A1 (en) 2004-02-05
US6930626B2 (en) 2005-08-16
EP1374406B1 (en) 2006-03-08
DE60117827D1 (en) 2006-05-04
US20020070887A1 (en) 2002-06-13
US6628218B2 (en) 2003-09-30
WO2002023728A3 (en) 2003-10-09
US6577261B2 (en) 2003-06-10
EP1374406A2 (en) 2004-01-02
US20020063647A1 (en) 2002-05-30
US20040252042A1 (en) 2004-12-16
US6771199B2 (en) 2004-08-03
DE60117827T2 (en) 2006-11-23
WO2002023727A3 (en) 2003-10-16
WO2002023727A2 (en) 2002-03-21

Similar Documents

Publication Publication Date Title
EP1374406B1 (en) Method and apparatus for mismatch shaping of an oversampled converter
US5684482A (en) Spectral shaping of circuit errors in digital-to-analog converters
US6531973B2 (en) Sigma-delta digital-to-analog converter
US6611221B1 (en) Multi-bit sigma-delta modulator employing dynamic element matching using adaptively randomized data-weighted averaging
CN101427469B (en) Delta sigma modulators with comparator offset noise conversion
US7030798B2 (en) State-delayed technique and system to remove tones of dynamic element matching
US6583742B1 (en) Digital to analogue converter with dynamic element matching
US20020105453A1 (en) Curcuit, system and method for performing dynamic element matching using bi-directional rotation within a data converter
US6697003B1 (en) System and method for dynamic element matching
CN1535503A (en) Method and appartus for suppressing tones induced by cyclic dynamic element matching (DEM)
WO2002023731A2 (en) Methods and systems for digital dither
WO2010068560A1 (en) System and method for area-efficient dynamic element matching
US6028544A (en) Digital-to-analog converter with noiseshaping modulator, commutator and plurality of unit converters, and method
US7205913B2 (en) Efficient data-directed scrambler for noise-shaping mixed-signal converters
US6753799B2 (en) Randomizer for sigma-delta-type converter
US7511647B2 (en) Dynamic element matching method and device
TWI258924B (en) Spectral shaping dynamic encoder for a ADC
US6720897B1 (en) State-delayed technique and system to remove tones of dynamic element matching
EP1139570B1 (en) Selecting circuit, digital/analog converter and analog/digital converter
JPH08102670A (en) Oversampling d/a converter
Akram Tunable mismatch shaping for bandpass Delta-Sigma data converters

Legal Events

Date Code Title Description
AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase