WO2006102313A2 - Systems and methods for companding adc-dsp-dac combinations - Google Patents

Systems and methods for companding adc-dsp-dac combinations Download PDF

Info

Publication number
WO2006102313A2
WO2006102313A2 PCT/US2006/010204 US2006010204W WO2006102313A2 WO 2006102313 A2 WO2006102313 A2 WO 2006102313A2 US 2006010204 W US2006010204 W US 2006010204W WO 2006102313 A2 WO2006102313 A2 WO 2006102313A2
Authority
WO
WIPO (PCT)
Prior art keywords
input
output
signal
dsp
coupled
Prior art date
Application number
PCT/US2006/010204
Other languages
French (fr)
Other versions
WO2006102313A3 (en
Inventor
Ari Klein
Yannis Tsividis
Original Assignee
The Trustees Of Columbia University In The City Of New York
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 The Trustees Of Columbia University In The City Of New York filed Critical The Trustees Of Columbia University In The City Of New York
Publication of WO2006102313A2 publication Critical patent/WO2006102313A2/en
Publication of WO2006102313A3 publication Critical patent/WO2006102313A3/en
Priority to US11/901,661 priority Critical patent/US7602320B2/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/50Conversion to or from non-linear codes, e.g. companding
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/18Automatic control for modifying the range of signals the converter can handle, e.g. gain ranging
    • H03M1/186Automatic control for modifying the range of signals the converter can handle, e.g. gain ranging in feedforward mode, i.e. by determining the range to be selected directly from the input signal

Definitions

  • This invention relates to the use of a technique called "companding" with digital signal processing. More specifically, this invention relates to using companding to resize the dynamic range of an input signal so that the signal is better suited for processing by a digital signal processor (DSP).
  • DSP digital signal processor
  • Floatingpoint DSPs There are typically two types of DSPs, floating-point DSPs and fixed-point DSPs.
  • a floating-point DSP uses a certain number of bits to represent the mantissa of a signal's value and another set of bits to represent the exponent of the signal's value. For example, for a large signal, which may be quantified as 1126.4, which is 1.1 times 2 10 , a floating point representation may be 1.1 for the mantissa and 10 for the exponent.
  • Floatingpoint DSPs thus provide the ability to represent a very wide range of values, but with a precision that is limited by the number of bits used to represent the mantissa.
  • a fixed-point DSP uses all of its bits to represent a signal's value.
  • the precision of the fixed-point DSP is determined by dividing its range by the number of discrete values that can be represented by the available bits in the DSP. Thus, for example, if a DSP is to process signals having a range of 0-16 and it has three available bits, which can represent eight discrete values, then the least significant bit carries a value of two.
  • Fixed-point DSPs can experience problems, however, with signals that are not sized well to the DSP.
  • the DSP that can only handle signals having values up to 2,097,152, so a signal with the value of 3,676,000 will not be properly processed.
  • the signal's value is small (e.g., 10) and changes to the signal's value are small (e.g., +/- 1.4) compared to the range of the fixed-point DSP (e.g., 2,097, 152)
  • quantization noise from rounding problems may result in a degradation of signal quality because the least significant bit is larger than, or a large portion of, the changes to the signal's value.
  • floating-point DSP In contrast, in a floating-point DSP, the mantissa and exponent may be used to represent decimal values so that rounding errors are minimized.
  • floating-point DSPs are used in applications where the range of a signal's value varies. This is because the floating-point DSPs can adjust to the change in range by using exponent bits. Nevertheless, it is often desirable to use fixed-point DSPs instead, because fixed-point DSPs typically consume less power, are cheaper, and are fabricated in less chip area compared to floating-point DSPs.
  • a process called companding is used in conjunction with fixed-point devices to resize a signal to make use of the available range of these devices.
  • companding is used to improve the signal-to- noise and distortion ratio of a signal.
  • information loss associated with quantization and rounding errors can be reduced in some embodiments.
  • certain embodiments feature an input multiplier, an analog-to-digital converter (ADC), a digital signal processor (DSP), a digital- to-analog converter (DAC), an output multiplier, and a controller.
  • ADC analog-to-digital converter
  • DSP digital signal processor
  • DAC digital- to-analog converter
  • the input multiplier has a first input that receives an input signal, a second input, and an output.
  • the ADC has an input that is coupled to the output of the input multiplier, and an output.
  • the DSP has a first input that is coupled to the output of the ADC, a second input, and an output.
  • the DAC has an input coupled to the output of the DSP, and an output.
  • the output multiplier has a first input coupled to the output of the DAC, a second input, and an output.
  • the controller has an input that receives the input signal, a first output that is coupled to the second input of input multiplier, a second output that is coupled to the second input of output multiplier, and a third output coupled to the second input of the DSP, wherein the input signal is resized by the input multiplier.
  • certain embodiments feature an input means, a means for providing an analog-to-digital converter (ADC), a means for providing a digital signal processor (DSP), a means for providing a digital-to-analog converter (DAC), an output means for providing a multiplier function, and a means for controlling.
  • the input means provides a multiplier function and has a first input that receives an input signal, second input and an output.
  • the means for providing an ADC has an input that is coupled to the output of the input multiplier, and an output.
  • the means for providing DSP has a first input that is coupled to the output of the means for providing an ADC, a second input, and an output.
  • the means for providing a DAC has an input coupled to the output of the means for providing a DSP, and an output.
  • the output means provides a multiplier function and has a first input coupled to the output of the means for providing a DAC, a second input, and an output.
  • the means for controlling has an input that receives the input signal, a first output that is coupled to the second input of input means, a second output that is coupled to the second input of output means, and a third output coupled the second input of the means for providing a DSP, wherein the input signal is resized by the input means.
  • certain embodiments feature a method for processing an analog input signal with fixed-point devices including: resizing the analog input signal based on information provided by a controller; converting the resized analog input signal to a digital signal; processing the digital signal based in part on information provided by the controller converting the processed digital signal to an analog signal; and resizing the analog signal.
  • certain embodiments feature a compressor, a nonlinear digital signal processor (DSP), and an expander.
  • the compressor has an input coupled to the input signal, and an output.
  • the nonlinear DSP has an input that is coupled to the output of the compressor, and an output.
  • the expander has an input coupled to the output of the DSP, wherein the input signal is resized by the compressor according to a function.
  • FIG. 1 is a graphic representation of a non-linear function used in accordance with certain embodiments of the present invention
  • FIG. 2 is a schematic of a companding fixed-point digital signal processing system in accordance with certain embodiments of the present invention
  • FIG. 3 is a schematic of a companding system in accordance with certain embodiments of the present invention
  • FIG. 4 is a schematic of a companding controller in accordance with certain embodiments of the present invention
  • FIG. 5 is a graphical representation of a signal in accordance with certain embodiments of the present invention
  • FIGS. 6 A and 6B are schematics of fixed-point digital signal processing systems in accordance with certain embodiments of the present invention.
  • FIG. 7 is a schematic of a system for sharing an analog-to-digital converter in accordance with certain embodiments of the present invention.
  • FIG. 8 is a schematic of a system for sharing a digital-to-analog converter (DAC) in accordance with certain embodiments of the present invention.
  • DAC digital-to-analog converter
  • FIG. 9 is a schematic of a system for sharing a digital signal processor in accordance with certain embodiments of the present invention.
  • FIG. 10 is a schematic of a multiply DAC in accordance with certain embodiments of the present invention.
  • FIG. 11 is a schematic of a multiply DAC with supporting devices in accordance with certain embodiments of the present invention.
  • FIG. 12 is a schematic of a simple digital reverberator, used as a case study to illustrate benefits of companding, in accordance with certain embodiments of the present invention.
  • FIG. 13 is a graphical representation of signal-to-noise-plus-distortion ratios for processing with companding versus without companding in accordance with certain embodiments of the present invention
  • FIG. 14 is a schematic of a companding ADC-DSP-DAC system in accordance with certain embodiments of the present invention
  • FIG. 15 is a schematic of a general function companding DSP system in accordance with certain embodiments of the present invention.
  • FIG. 16 is a schematic of a general function companding system with a controller in accordance with certain embodiments of the present invention.
  • FIG. 17 is a graphical representation of signal-to-noise-plus-distortion ratios for processing with instantaneous companding versus without companding in accordance with certain embodiments of the present invention.
  • FIG. 18 is a schematic of a prior art fixed-point digital signal processing system.
  • systems and methods for resizing a signal for use with a fixed-point DSP are provided. More specifically, a process called companding is used in conjunction with a fixed-point DSP to resize a signal.
  • companding an input signal is compressed so that the dynamic range of the compressed signal is reduced compared to that of the input signal. Then, at some later point in time, the dynamic range of the compressed signal is expanded.
  • the compression and expansion of the signal can be either positive or negative. Therefore, the compressor can act as an expander on the front end and the expander can act as a compressor on the back end.
  • the current invention extends the companding method disclosed in U.S. Patent No. 6,389,445, which is hereby incorporated by reference herein in its entirety, to systems including an analog-to-digital converter (ADC), a DSP, and a digital-to-analog converter (DAC).
  • ADC analog-to-digital converter
  • DSP digital-to-analog converter
  • DAC digital-to
  • FIG. 18 illustrates a prior art system 100 used in digital signal processing.
  • System 100 includes an input 102, an ADC 104, a DSP 106, a DAC 108, and an output 110.
  • An analog input signal may be placed on input 102 to enter ADC 104.
  • ADC 104 converts the analog input signal into a digital signal.
  • the digital signal is processed by DSP 106 and then that processed signal is converted back to an analog signal by DAC 108.
  • the analog signal exits system 100 on output 110 and may be used by other devices or applications not shown in FIG. 18.
  • ADC 104, DSP 106, and DAC 108 have been implemented using floating-point or fixed-point devices.
  • a signal is represented using mantissa bits and exponent bits, where the mantissa bits quantify the value of a signal and the exponent bits provide information on how to scale the mantissa bits.
  • all of the bits of ADC 104, DSP 106, and DAC 108 are used to represent the value of a signal. Thus, if the analog input signal is larger than the maximum value of fixed-point ADC 104, information will be lost.
  • system 100 may be desirable to implement system 100 with fixed-point devices, such as a fixed-point DSP 106, and with as few bits as possible in applications where large amounts of computation are needed, such as multimedia. This may be the case, for example, because fixed-point computation is typically faster than floating-point computation.
  • Some embodiments of the present invention use companding to provide the benefits of a fixed-point device system, while reducing the quantization noise and information loss associated with system 100.
  • a nonlinear function may be used to compress the dynamic range of an input signal.
  • Other functions such as time-invariant functions, can be used in some embodiments of the invention as well.
  • An example of a typical normalized nonlinear compressing function is illustrated in FIG. 1 by line 150.
  • Line 150 is a compressing function because, for example, all inputs between 0.25 and 1 give outputs between 0.75 and 1, so the dynamic range of the input signal is compressed.
  • the dynamic range of the input signal may later be expanded by using the inverse of the compressing function given by line 150.
  • a compression function may be developed by using a compression law. There are many possible choices for the compression law.
  • One standard logarithm-based compression law is the ⁇ -law, which is shown below.
  • a logarithm-based compression law benefits from the characteristic that the signal-to-noise ratio at the output is independent of the input signal's amplitude.
  • 255.
  • SQNR signal-to-quantization noise ratio
  • FIG. 2 illustrates a companding fixed-point digital signal processing system 200 in accordance with certain embodiments of the present invention.
  • System 200 includes a controller 210, an optional delay circuit 212, an input multiplier 214, a fixed-point ADC 216, a fixed-point DSP 218, a fixed-point DAC 220, and an output multiplier 222.
  • controller 210 receives an input signal and derives certain control signals Vj 226, V 0 228, and V 1 ... V N 230.
  • Input control signal Vi 226 provides information to input multiplier 214 on how to adjust the size of the input signal prior to that signal reaching ADC 216.
  • the input signal then passes through ADC 216, which converts the input signal from analog to digital format producing a digital signal.
  • the digital input signal is then processed by DSP 218, which generally requires control inputs V 1 ... V N 230, for reasons to be discussed shortly.
  • the processing may include implementing a filter, creating audio effects, and/or reducing signal noise.
  • the processed signal enters DAC 220, which converts the output signal from digital to analog format.
  • the analog output signal is then adjusted by output multiplier 222 according to information provided by output control signal V 0 228.
  • delay circuit 212 may be added before input multiplier 214 to delay the input signal while controller 210 calculates the control signals.
  • input multiplier 214 either expands or compresses the dynamic range of the analog input signal before it reaches ADC 216.
  • input multiplier 214 can be implemented as a linear amplifier.
  • input multiplier 214 may be used to reduce rounding noise by sizing input signal 208 to take advantage of the available range of ADC 216. Rounding error can occur because ADC 216, DSP 218, and DAC 220 have a specific number of quantization levels since they are fixed-point devices and a signal passing through these devices is approximated to one of these levels. If the signal is small relative to the available range of the device, then whatever difference exists between the signal and the closest quantization level will be added to or subtracted from the signal resulting in quantization or rounding error.
  • the companding performed in this invention adjusts the signal so that the signal can better take advantage of the full available ranges of ADC 216, DSP 218, and DAC 220. Adjusting the signal improves signal-to-quantization noise ratio by reducing the difference between the signal and the closest quantization level, which is desirable in most applications.
  • system 200 may incorporate dynamically changing functions in DSP 218, if no control signals are provided to DSP 218, then there may be time- varying distortion that can change the correspondence or mapping of the input signal to the output signal in time. For example, time-varying distortion can arise when two multipliers are not correctly matched in time, and the expansion performed by the second multiplier does not correspond to the correct portion of the signal compressed by the first multiplier. This can be seen in the example shown in FIG. 3.
  • the desired output of the system is u(n-k). If the input is multiplied by g(n) in multiplier 310 at the input to DSP 308, and by l/g(n) in multiplier 312 at the output of DSP 308, these multiplications do not "cancel," as the companding system's output is (g(n-k)/g(n))u(n-k) rather than u(n-k). Thus, the system has been affected by a time varying distortion g(n - k)/g(n) that occurs from a mismatch in the multipliers 310 and 312.
  • Certain embodiments of this invention address the above-mentioned time varying distortion problem by taking the time-invariant DSP and introducing time varying adjustments in the DSP as well as in the multipliers so that the overall system remains completely or at least substantially time-invariant.
  • adjustments would be provided to make the output equal to u(n - k); in general, the adjustments would be made in multipliers 310 and 312 as well as in DSP 308. Therefore, time-varying behavior can be introduced within the system to reduce the quantization error and improve the performance of the signal processing, while the output signal of the overall system shows little to no time-varying distortion.
  • control signals Vi ...V N 230 may be used in internal points of DSP 218 to adjust the digital signal passing through DSP 218.
  • control signals Vi ...V N 230 provide DSP 218 with information on how to adjust the digital signal to account for companding.
  • DSP 218 can be adjusted according to control signals Vi... VN 230, which may implement a form of digital companding.
  • Digital companding uses the same principle as analog companding, but is implemented on a digital signal so that the digital signal is processed close to or at the full extent of the available range at internal points of DSP 218.
  • Digital companding may be used within DSP 218, with adjustments coming from control signals Vi ...V N 230, to remove unwanted time-varying distortion, in certain embodiments.
  • the time-varying distortion may arise from analog companding, which takes place at input multiplier 214 and output multiplier 222, for example.
  • the invention performs both analog and digital companding on input signal 208 with control signals 226, 228, and 230.
  • controller 210 An example of controller 210 described in connection with FIG. 2 is now described in greater detail with reference to FIG. 4.
  • controller 210 includes two DACs (DAC 2 418 and DAC 3 410), ADC 2 412, DSP Replicant 414 (which is also a fixed-point DSP, similar to DSP 218), and one or more envelope extractors 416.
  • an envelope extractor samples a signal and provides a measurement of the signal's range or amplitude over a specified period of time.
  • the envelope is a measurement of the boundaries a signal ranges between during a given period of time. For example, if the maximum intensity of a signal is 3 volts and the minimum intensity is 1 volt, then its signal envelope would be 2 volts.
  • An example of a signal envelope is shown in FIG. 5.
  • the input signal enters controller 210 and is converted to a digital signal by ADC 2 412.
  • the digital signal then enters envelope extractors 416, that then output a digital control signal (input envelope) to DAC 3 410.
  • Envelope extractors 416 may be embodied as a single envelope extractor which detects multiple signals, or as multiple envelope extractors with each detecting one or more signals.
  • the input envelope is an analog input control signal Vi 420, which can be used to adjust multiplier 214 (FIG. X).
  • Envelope extractors 416 measure some of the internal signal states of DSP Replicant
  • the modified digital signal is detected by envelope extractors 416 and a digital output control signal (output envelope) is produced.
  • the output envelope is converted to an analog output control signal V 0 422 by DAC 2 418 which is used to control multiplier 222 (FIG. 2).
  • control signals Vi 420, V 0 422, and Vi ... V N 424 are based on envelope extractors 416 that detect how input signal 408 passes through fixed-point DSP Replicant 414.
  • DSP Replicant 414 in combination with envelope extractor 416, the envelope of input signal 408 can be measured, along with the envelopes of a subset of the states in DSP Replicant 414 and output signal 426.
  • controller 210 uses DSP Replicant 414 and envelope extractors 416 to regulate control signals V; 420, V 0 422, and V 1 ... V N 424 so the measured envelope of the input signal is adjusted to approach the maximum allowable envelope of at least one of ADC 216, DSP 218, and DAC 220 without exceeding it, thereby avoiding distortion and clipping.
  • DSP Replicant 414 may also use software algorithms within DSP 218 to act upon control signals V 1 ... V N 424 to control at least some of the states of DSP 218 and to ensure that signals in DSP 218 are sized to take advantage of the range of the DSP 218.
  • a DSP such as DSP 218 or DSP Replicant 414
  • DSP 218 or DSP Replicant 414 has a number of states that correspond in some manner to the number of delays present in the DSP. Those states can be represented by state equations or state vectors.
  • Control signals Vi ... V N 424 may be formed by using envelope extractors 416 to measure the envelope of the signal present at some number of the states in DSP Replicant 414.
  • Control signals V 1 ... V N 424 can then be used to adjust the signals at some number of the states present in DSP 218.
  • distortion can result in a system when an input signal is multiplied by a time- varying signal, and the output signal is multiplied by the reciprocal of this time- varying signal, but there is no correction made to at least some of the internal states of the DSP.
  • the correction made to the internal states can be done through control signals 230 of FIG. 2.
  • q(n) is zero
  • the state equations of system 600 are of the form:
  • multipliers 652 and 654 are similar to multipliers 214 and 222, respectively, where q(n) 656 represents quantization error from ADC 216, and where DSP 658 is similar to DSP 218.
  • system 650 is fed by the same input u(ri) as system 600 and produces the same zero-state output y(n) as system 600, but companding is introduced into system 650 with a modified u (ri) at the input to DSP 658, a modified y (n) at the output from DSP 658, and modified state variables x i( ⁇ ).
  • Equations 2 show the correspondence of variables between system 600 and system 650 below:
  • Equations 2 where e,,( ⁇ ), e y (n), and e Xi Qi) are control signals, may be similar to control signals 226, 228,
  • equations 2 are equations 1 and 230, respectively, of FIG. 2, and may be related to the envelope of signals in system 600.
  • equations 1 are equations 1 and 230, respectively, of FIG. 2, and may be related to the envelope of signals in system 600.
  • equations 2 are equations 1 and produces the state equations of system 650, which can be shown to be:
  • Equations 4 As shown in the modified system 650 in FIG. 6B and in equations 2, 3 and 4, internal signals u Qi) ⁇ 9 (ri), a nd x ,-( «) can be adjusted by control signals e u Qi), e y Q ⁇ ) and e ⁇ . ( «). Further,
  • control signals ⁇ ?,,(«), e y Q ⁇ ) and e Xi Qi) are derived from the input to the system, as
  • modified system 650 becomes internally nonlinear, while its external behavior is similar to system 600.
  • the input-output behavior of systems 600 and 650 may be different from one another if quantization error q(n) 618 is introduced as a non-zero entity.
  • quantization error present from ADC 412 still causes signal envelopes measured by DSP Replicant 414 to suffer from quantization noise.
  • DSP Replicant 414 is only used to give a relative measurement of how the signal will pass through a fixed-point DSP, such as DSP 218.
  • DSP 218 a fixed-point DSP
  • the signal envelopes can only be determined within what would normally be the rounding or quantization error for an input signal to a fixed-point system, these envelopes can still be used to better size the corresponding signal for when it will pass through DSP 218. Because the rounding error is typically much smaller than the full range of a fixed-point device, this rounding error is usually acceptable for the purposes of generating control signals.
  • ADC 216 and ADC 2 412 can be combined into a single ADC 710 using multiplexer 712 and demultiplexer 714 as shown in FIG. 7.
  • the signals enter a multiplexer (MUX) 712 that directs the signals into ADC 710.
  • a demultiplexer (DEMUX) 714 routes the signal to the correct output.
  • MUX 712 and DEMUX 714 may be controlled by controller 716 to ensure their switching is coordinated.
  • the control of MUX 712 and DEMUX 714 can be, fox- example, time-based, where each input is switched into ADC 710 for a specified amount of time and then switched out for an amount of time.
  • MUX 712 and DEMUX 714 can be used as well.
  • DAC 220,DAC 2 418, and DAC 3 410 can be combined into a single DAC 810 using a multiplexing scheme as shown in FIG. 8.
  • the multiplexing involved in FIG. 8 is similar to that of FIG. 7.
  • a MUX 812 is at the input and DEMUX 814 is at the output of DSP 810.
  • MUX 812 and DEMUX 814 may be controlled by a controller 816, which, for example, can implement time-based or priority-based switching as described above.
  • a multiplying DAC 1010 may be used instead of DAC 220 and multiplier 222 as shown in FIG. 10.
  • Multiplying DAC 1010 takes the digital signal 1012 inputted to it (e.g., from DSP 218), as well as control signal V 0 1114 (e.g., from controller 210), and outputs a modified signal 1016.
  • DACs 220, 410, and 418 and output multiplier 222 may also be combined using MUXs 1118 and 1120.
  • MUX 1118 may be used to switch the signals normally inputted into DAC 220, DAC 2 418, and DAC 3 410 into multiplying DAC 1114.
  • MUX 1120 may be used to switch multiplying value V 0 or a constant value, such as one (for the signals that should not be modified) into multiplying DAC 1114.
  • DEMUX 1116 may be used to route the signals normally outputted from DAC 220, DAC 2 418, and DAC 3 410 from multiply DAC 1114 to the appropriate locations in system 200.
  • controller 1112 may be used to regulate MUXs 1118 and 1120, and DEMUX 1116, and supply a constant value to input into multiply DAC 1114 (such as one, when the signal should not be modified).
  • An example of an implementation of the invention is companding on a simple reverberator 1200. This simple reverberator, without companding, is shown in FIG. 12 (using a Matlab/Simulink representation).
  • Reverberator 1200 can be implemented by a DSP, such as DSP 218, and includes adders 1210, 1212, and 1214, k delay element 1216, and coefficient multipliers 1218 and 1220.
  • the following example applies the math and equations described above to these embodiments of the invention.
  • the state equations for reverberator 1200 which are found by taking the states at the outputs of k delay element 1216, are:
  • X i ( n 4- 1 ) ⁇ Q.8x k (n) + 0.2u ( ⁇ )
  • N be the number of bits used to store the companded variables on the left-hand side of equation 6. Since these variables are properly companded according to certain embodiments of the invention, they have roughly constant envelopes, so N may be chosen small without resulting in large quantization noise. Unfortunately, the individual terms in the sums of equation 6 are not companded, so these terms may not have constant envelopes, and if only N bits were used to store these terms, significant quantization noise would result. Since, in many N-bit fixed-point DSPs, N-bit multiplications require 2N-bit additions, the N- bit DSPs would generally support 2N-bit addition and temporary storage of 2N-bit values.
  • the individual terms in the sums of equation 6 are temporarily stored and added using 2N-bits, and the results, which are the properly companded variables on the left-hand side of equation 6, are then stored in memory and multiplied by appropriate gains using only N bits.
  • this method can be used in other instances of signal manipulation and processing where such a situation is presented.
  • a system using two of the reverberators of FIG. 12 was simulated in Matlab/Simulink with a sample rate of 44.1 kHz; the first stage had a k delay element 1216 with k - 2000 and the second stage had a k delay element 1216 with k - 4410.
  • Controller 210 of system 200 was of a form similar to that shown in FIG. 4. The simulations were run in a fixed-point mode with 8, 9, 10, and 11 bit systems, and the same precision was used for all the parts of controller 210, which are shown in FIG. 4. For the purposes of this example, all the outputs of envelope extractors 416 were made to be at least a small non-negative amount (to avoid possible division by 0 in, for example, multiplier 214).
  • FIG. 14 illustrates a companding ADC-DSP-DAC circuit 1400 utilizing lookup tables in accordance with certain embodiments of the present invention.
  • Companding ADC-DSP- DAC circuit 1400 includes a compressor element 1410, an ADC 1412, a modified DSP 1414, a DAC 1416, and an expander element 1418.
  • Compressor element 1410 and expander element 1418 modify the signal according to a general function and an inverse of that general function, respectively. This signal modification may be implemented with a lookup table, a specialized piece of hardware, or any other suitable mathematical device.
  • Modified DSP 1414 may also use nonlinear lookup tables to introduce internal nonlinearities and to ensure that signals in the DSP take advantage of the full range available.
  • ADC 1412 and DAC 1416 are similar in operation to ADC 216 and DAC 220 of FIG. 2. FIG.
  • Companding DSP circuit 1500 illustrates a companding DSP circuit 1500 where a generalized function is used for compression and expansion in accordance with certain embodiments of the present invention.
  • Companding DSP circuit 1500 includes a compressor element 1510, a modified DSP 1512, an expander element 1514, and a (conceptual) quantization noise adder 1516.
  • Compressor 1510 and expander 1514 perform similar signal manipulations as multipliers 214 and 222 of FIG. 2, multipliers 310 and 312 of FIG. 3, and multipliers 652 and 654 of FIG. 6B, when these multipliers are multiplying the signal with a general function and its inverse.
  • the lookup tables may be implemented in a controller, as will be explained later with reference to FIG. 16.
  • the compressor element may be used to perform both compression and/or expansion of a given signal, and the expander element may be used to reverse such compression and/or expansion as appropriate.
  • line 150 shows that a signal is expanded when it is small and compressed when it is large.
  • a multiplier such as 214
  • a compressor such as 1410 implementing a function such as line 150 would perform both compression and expansion on a signal.
  • g(y) may be selected to compress the signal dynamic range and g A (v) is the function that re-expands the signal dynamic range.
  • corresponds to the amount of compression.
  • the base of the logarithm is not specified because the bases of the logarithms in the numerator and denominator are the same.
  • the logarithms are shown as base 2, and are therefore written as Ig.
  • ⁇ and ⁇ ( ⁇ ) are assumed to be normalized between -1 and 1. If the numbers in the DSP are to be signed integers, then ⁇ is scaled by 2 '( - 2N'1 ⁇ and g( ⁇ ) is scaled by
  • g(v) takes an uncompressed 2N-bit number as an input and outputs a compressed N-bit number.
  • g(v) may be implemented with an analog circuit at the input of the ADC
  • g " *(v) may be implemented with an analog circuit at the output of the DAC.
  • g(y) is incorporated into the ADC by using a nonlinear ADC
  • g "1 O) is incorporated into the DAC using a nonlinear DAC.
  • Certain embodiments of the invention implement instantaneous companding through the use of lookup tables.
  • controller 210 of FIG. 2 may be eliminated and lookup tables used instead to introduce nonlinear signal modifications. These nonlinear signal modifications can be performed by multipliers (such as multipliers 214 and 222), by other specialized hardware (such as a comparator that looks up the input to find the corresponding function manipulated output), and by the DSP (such as DSP 218).
  • Equations 9 are implemented on an N-bit fixed-point processor 1512, and a technique for minimizing quantization errors is presented in accordance with certain embodiments of the invention.
  • the general function, g(v) may be chosen to allow ⁇ (ri), y (n), and x (n) to take advantage of full range of processor 1512, and to be stored in N-bit registers without causing too much quantization error.
  • an N-bit DSP supports 2N-bit addition and 2N-bit numbers are a supported "accumulator data-type.”
  • these 2N-bit numbers are stored temporarily and added (or subtracted), but they are not stored in registers. Rather, they are typically used only in the time step during which they are generated.
  • the g A (v) function is implemented on DSP 1512 using one or more lookup tables and any coefficient multipliers, such as a ⁇ b it q, and d, which are absorbed into the one or more lookup tables.
  • the lookup table outputs a 2N-bit number which represents ⁇ g ⁇ l (v) instead of storing g ⁇ l (v) in an iV-bit register and later multiplying it by ⁇ .
  • the benefit of this is that quantization error is reduced by expanding g ⁇ ! (v) through a multiplication with the coefficient gain.
  • the lookup table for the general function, g(v) takes an uncompressed 2N-bit number as an input and outputs a compressed N-bit number.
  • the lookup table for the inverse function, g -1 (v), which outputs ⁇ g ⁇ l (v) in certain embodiments, takes a compressed N-bit number as input and outputs an uncompressed 2N-bit number.
  • the input to and output of modified DSP 1512 are compressed N-bit numbers, which allows the use of an N-bit ADC, DSP, and DAC in some embodiments.
  • the generation of the lookup tables in DSP 1512 may occur before runtime, so that it does not have to occur in real-time.
  • floating-point arithmetic can be used to generate the lookup table correspondences.
  • the lookup table in some embodiments as discussed below, there are 2 2 ⁇ possible inputs, but only 2 N possible outputs because the g(v) function takes a 2N-bit integer as an input and outputs an N-bit integer. As long as each 2N-bit integer gives a distinct N-bit integer, 2 ⁇ 2N-bit integers may be used.
  • the lookup table can store 2N-bit integers, for example, by using 2 registers for each integer. A lookup is done by finding the 2N-bit integer in the table's input column that is closest to the input by using a binary search, for example, and then the corresponding N-bit integer is outputted.
  • the input and output columns of the g(v) lookup table may be flipped.
  • each entry of the output column is multiplied by a and the result is rounded to the nearest 2N-bit number.
  • the input column may be eliminated if the input is first offset so that the lowest possible input value is zero such that the table becomes an array with the input being the array index.
  • each ag "x (v) lookup table may be 2 ⁇ 2NWtS. Bi some embodiments, this memory requirement may be eased by using less rows in the lookup tables. However, using less rows can increase quantization errors, so manipulating the number of rows in the lookup tables is a way to tradeoff memory requirement for performance.
  • the companding system may consist of a cascade of companding DSP circuits. Because the output of each of the companding states is properly companded, the output may be passed directly to the next companding stage without modification. In certain embodiments further simplification is available. For example, if the output of the i th stage is multiplied by a coefficient of 1 in the expander then the result can be passed to the (i + l) th stage directly, saving an application of g(v) followed by g ⁇ l (v). In some embodiments, when the coefficient is not 1, code implementing a 2N-bit multiplication using allowed N-bit operations on a DSP may be written instead of using an application of g(v) followed by g "1 Cv).
  • FIG. 16 illustrates a controller-based general function companding system 1600 in accordance with certain embodiments of the present invention.
  • Companding system 1600 includes an input signal 1608, a controller 1610, an input multiplier 1612, an ADC 1614, a modified DSP 1616, a DAC 1618, a multiplier 1620, a general function signal 1622, an inverse general function signal 1624, input/output signals 1626, and a digital signal 1628.
  • Controller 1610 uses input 1608 along with a lookup table to select or other specialized hardware to produce a general function signal to modify input signal 1608 at multiplier 1612.
  • multiplier 1620 uses input/output signals 1626 to select or to produce the necessary nonlinear companding modifications for its internal signals.
  • the second equation of equations 10 illustrates that for k - 1 of the internal DSP states, no applications of g(v) may be necessary. This is expected for a y fc-delay block provided that the general functions corresponding to the states of the k- delay block have the same functional form (e.g., the ⁇ law function is used for each of the k states). This provides intuitive justification for using the same functional form for all the states of a &-delay block, since if the input to a /c-delay block is properly companded, then all W
  • This example reverberator system was simulated in a cascade of two stages, each of them being a simple reverberator 1200 of FIG. 12.
  • g(y) and g "1 O) were given by equations 7 and 8, and because one of the coefficients is 1 that coefficient may be passed directly between the cascaded stages eliminating certain processing requirements.

Abstract

Systems and methods for resizing a signal for use with a fixed-point DSP are provided. More specifically, a process called companding is used in conjunction with fixed- point devices to resize a signal to make use of the available range of these devices. In some embodiments, companding is used to improve the signal-to-noise and distortion ratio. Also, information loss associated with quantization and rounding errors can be reduced in some embodiments.

Description

SYSTEMS AND METHODS FOR COMPANDING ADC-DSP-DAC COMBINATIONS
Cross-Reference to Related Applications
This application claims the benefit of U.S. Provisional Patent Applications Nos. 60/663,056, filed March 18, 2005, and 60/782,213, filed October 19, 2005, which are hereby incorporated by reference herein in their entireties.
Background of the Invention
This invention relates to the use of a technique called "companding" with digital signal processing. More specifically, this invention relates to using companding to resize the dynamic range of an input signal so that the signal is better suited for processing by a digital signal processor (DSP).
There are typically two types of DSPs, floating-point DSPs and fixed-point DSPs. Generally, a floating-point DSP uses a certain number of bits to represent the mantissa of a signal's value and another set of bits to represent the exponent of the signal's value. For example, for a large signal, which may be quantified as 1126.4, which is 1.1 times 210, a floating point representation may be 1.1 for the mantissa and 10 for the exponent. Floatingpoint DSPs thus provide the ability to represent a very wide range of values, but with a precision that is limited by the number of bits used to represent the mantissa.
Unlike a floating-point DSP, a fixed-point DSP uses all of its bits to represent a signal's value. The precision of the fixed-point DSP is determined by dividing its range by the number of discrete values that can be represented by the available bits in the DSP. Thus, for example, if a DSP is to process signals having a range of 0-16 and it has three available bits, which can represent eight discrete values, then the least significant bit carries a value of two. Fixed-point DSPs can experience problems, however, with signals that are not sized well to the DSP. For example, in a 21 -bit fixed point system, if the least significant bit is set to 1, the DSP that can only handle signals having values up to 2,097,152, so a signal with the value of 3,676,000 will not be properly processed. As another example, if the signal's value is small (e.g., 10) and changes to the signal's value are small (e.g., +/- 1.4) compared to the range of the fixed-point DSP (e.g., 2,097, 152), quantization noise from rounding problems may result in a degradation of signal quality because the least significant bit is larger than, or a large portion of, the changes to the signal's value. In contrast, in a floating-point DSP, the mantissa and exponent may be used to represent decimal values so that rounding errors are minimized. Currently, floating-point DSPs are used in applications where the range of a signal's value varies. This is because the floating-point DSPs can adjust to the change in range by using exponent bits. Nevertheless, it is often desirable to use fixed-point DSPs instead, because fixed-point DSPs typically consume less power, are cheaper, and are fabricated in less chip area compared to floating-point DSPs.
Therefore, it is desirable to provide fixed-point DSPs that can be used in applications where the range of a signal's value varies, without the problems typically associated with fixed-point DSPs, such as significant quantization noise or overflow.
Summary of the Invention
Systems and methods for resizing a signal for use with a fixed-point DSP are provided in certain embodiments of the invention. More specifically, a process called companding is used in conjunction with fixed-point devices to resize a signal to make use of the available range of these devices. In some embodiments companding is used to improve the signal-to- noise and distortion ratio of a signal. Also, information loss associated with quantization and rounding errors can be reduced in some embodiments. In accordance with the present invention, certain embodiments feature an input multiplier, an analog-to-digital converter (ADC), a digital signal processor (DSP), a digital- to-analog converter (DAC), an output multiplier, and a controller. The input multiplier has a first input that receives an input signal, a second input, and an output. The ADC has an input that is coupled to the output of the input multiplier, and an output. The DSP has a first input that is coupled to the output of the ADC, a second input, and an output. The DAC has an input coupled to the output of the DSP, and an output. The output multiplier has a first input coupled to the output of the DAC, a second input, and an output. And, the controller has an input that receives the input signal, a first output that is coupled to the second input of input multiplier, a second output that is coupled to the second input of output multiplier, and a third output coupled to the second input of the DSP, wherein the input signal is resized by the input multiplier.
Further in accordance with the present invention, certain embodiments feature an input means, a means for providing an analog-to-digital converter (ADC), a means for providing a digital signal processor (DSP), a means for providing a digital-to-analog converter (DAC), an output means for providing a multiplier function, and a means for controlling. The input means provides a multiplier function and has a first input that receives an input signal, second input and an output. The means for providing an ADC has an input that is coupled to the output of the input multiplier, and an output. The means for providing DSP has a first input that is coupled to the output of the means for providing an ADC, a second input, and an output. The means for providing a DAC has an input coupled to the output of the means for providing a DSP, and an output. The output means provides a multiplier function and has a first input coupled to the output of the means for providing a DAC, a second input, and an output. And, the means for controlling has an input that receives the input signal, a first output that is coupled to the second input of input means, a second output that is coupled to the second input of output means, and a third output coupled the second input of the means for providing a DSP, wherein the input signal is resized by the input means.
Still further in accordance with the present invention, certain embodiments feature a method for processing an analog input signal with fixed-point devices including: resizing the analog input signal based on information provided by a controller; converting the resized analog input signal to a digital signal; processing the digital signal based in part on information provided by the controller converting the processed digital signal to an analog signal; and resizing the analog signal.
Yet further in accordance with the present invention, certain embodiments feature a compressor, a nonlinear digital signal processor (DSP), and an expander. The compressor has an input coupled to the input signal, and an output. The nonlinear DSP has an input that is coupled to the output of the compressor, and an output. The expander has an input coupled to the output of the DSP, wherein the input signal is resized by the compressor according to a function.
Brief Description of the Drawings
The above and other advantages of the present invention will be apparent upon consideration of the following detailed description, taken in conjunction with accompanying drawings, in which like reference characters refer to like parts throughout, and in which: FIG. 1 is a graphic representation of a non-linear function used in accordance with certain embodiments of the present invention;
FIG. 2 is a schematic of a companding fixed-point digital signal processing system in accordance with certain embodiments of the present invention; FIG. 3 is a schematic of a companding system in accordance with certain embodiments of the present invention;
FIG. 4 is a schematic of a companding controller in accordance with certain embodiments of the present invention; FIG. 5 is a graphical representation of a signal in accordance with certain embodiments of the present invention;
FIGS. 6 A and 6B are schematics of fixed-point digital signal processing systems in accordance with certain embodiments of the present invention;
FIG. 7 is a schematic of a system for sharing an analog-to-digital converter in accordance with certain embodiments of the present invention;
FIG. 8 is a schematic of a system for sharing a digital-to-analog converter (DAC) in accordance with certain embodiments of the present invention;
FIG. 9 is a schematic of a system for sharing a digital signal processor in accordance with certain embodiments of the present invention; FIG. 10 is a schematic of a multiply DAC in accordance with certain embodiments of the present invention;
FIG. 11 is a schematic of a multiply DAC with supporting devices in accordance with certain embodiments of the present invention;
FIG. 12 is a schematic of a simple digital reverberator, used as a case study to illustrate benefits of companding, in accordance with certain embodiments of the present invention.
FIG. 13 is a graphical representation of signal-to-noise-plus-distortion ratios for processing with companding versus without companding in accordance with certain embodiments of the present invention; FIG. 14 is a schematic of a companding ADC-DSP-DAC system in accordance with certain embodiments of the present invention;
FIG. 15 is a schematic of a general function companding DSP system in accordance with certain embodiments of the present invention;
FIG. 16 is a schematic of a general function companding system with a controller in accordance with certain embodiments of the present invention;
FIG. 17 is a graphical representation of signal-to-noise-plus-distortion ratios for processing with instantaneous companding versus without companding in accordance with certain embodiments of the present invention; and
FIG. 18 is a schematic of a prior art fixed-point digital signal processing system.
Detailed Description of the Invention
In certain embodiments of the present invention, systems and methods for resizing a signal for use with a fixed-point DSP are provided. More specifically, a process called companding is used in conjunction with a fixed-point DSP to resize a signal. In companding, an input signal is compressed so that the dynamic range of the compressed signal is reduced compared to that of the input signal. Then, at some later point in time, the dynamic range of the compressed signal is expanded. For the purposes of this invention, the compression and expansion of the signal can be either positive or negative. Therefore, the compressor can act as an expander on the front end and the expander can act as a compressor on the back end. The current invention extends the companding method disclosed in U.S. Patent No. 6,389,445, which is hereby incorporated by reference herein in its entirety, to systems including an analog-to-digital converter (ADC), a DSP, and a digital-to-analog converter (DAC).
FIG. 18 illustrates a prior art system 100 used in digital signal processing. System 100 includes an input 102, an ADC 104, a DSP 106, a DAC 108, and an output 110. An analog input signal may be placed on input 102 to enter ADC 104. ADC 104 converts the analog input signal into a digital signal. The digital signal is processed by DSP 106 and then that processed signal is converted back to an analog signal by DAC 108. The analog signal exits system 100 on output 110 and may be used by other devices or applications not shown in FIG. 18. In prior art system 100, ADC 104, DSP 106, and DAC 108 have been implemented using floating-point or fixed-point devices. When floating-point devices are used throughout system 100 (so that ADC 104, DSP 106, and DAC 108 are floating-point devices) a signal is represented using mantissa bits and exponent bits, where the mantissa bits quantify the value of a signal and the exponent bits provide information on how to scale the mantissa bits. In a fixed-point configuration of system 100, all of the bits of ADC 104, DSP 106, and DAC 108 (except possibly a sign bit) are used to represent the value of a signal. Thus, if the analog input signal is larger than the maximum value of fixed-point ADC 104, information will be lost. Likewise, if the analog input signal is small compared to the maximum value of a fixed- point ADC, rounding errors may occur resulting in quantization noise and in a loss of information. In some systems, this loss of information may result in an audible degradation of sound quality, such as a hiss, where the analog input signal was music.
It may be desirable to implement system 100 with fixed-point devices, such as a fixed-point DSP 106, and with as few bits as possible in applications where large amounts of computation are needed, such as multimedia. This may be the case, for example, because fixed-point computation is typically faster than floating-point computation. Some embodiments of the present invention use companding to provide the benefits of a fixed-point device system, while reducing the quantization noise and information loss associated with system 100.
In companding, a nonlinear function may be used to compress the dynamic range of an input signal. Other functions, such as time-invariant functions, can be used in some embodiments of the invention as well. An example of a typical normalized nonlinear compressing function is illustrated in FIG. 1 by line 150. Line 150 is a compressing function because, for example, all inputs between 0.25 and 1 give outputs between 0.75 and 1, so the dynamic range of the input signal is compressed. The dynamic range of the input signal may later be expanded by using the inverse of the compressing function given by line 150.
A compression function may be developed by using a compression law. There are many possible choices for the compression law. One standard logarithm-based compression law is the μ-law, which is shown below. A logarithm-based compression law benefits from the characteristic that the signal-to-noise ratio at the output is independent of the input signal's amplitude.
t \ " J — i i —°s{ ini-b —«) χ~ < L? -^ U f(v) = -η{-v) = lQgfl-μo)
7 log(l+μ) υ < 0
Line 150 of FIG. 1 illustrates a μ-law function when μ = 255. Typically, increasing μ increases the amount of compression, which tends to improve the signal-to-quantization noise ratio (SQNR) for small inputs by increasing the usable dynamic range. However, this increase in the dynamic range comes at the expense of the SQNR for large inputs or for the peak signal inputs.
FIG. 2 illustrates a companding fixed-point digital signal processing system 200 in accordance with certain embodiments of the present invention. System 200 includes a controller 210, an optional delay circuit 212, an input multiplier 214, a fixed-point ADC 216, a fixed-point DSP 218, a fixed-point DAC 220, and an output multiplier 222. In operation, controller 210 receives an input signal and derives certain control signals Vj 226, V0228, and V1... VN 230. Input control signal Vi 226 provides information to input multiplier 214 on how to adjust the size of the input signal prior to that signal reaching ADC 216. The input signal then passes through ADC 216, which converts the input signal from analog to digital format producing a digital signal. The digital input signal is then processed by DSP 218, which generally requires control inputs V1... VN 230, for reasons to be discussed shortly. In some embodiments the processing may include implementing a filter, creating audio effects, and/or reducing signal noise. After processing by DSP 218, the processed signal enters DAC 220, which converts the output signal from digital to analog format. The analog output signal is then adjusted by output multiplier 222 according to information provided by output control signal V0228. According to various embodiments of the invention, delay circuit 212 may be added before input multiplier 214 to delay the input signal while controller 210 calculates the control signals.
In general, input multiplier 214 either expands or compresses the dynamic range of the analog input signal before it reaches ADC 216. In some embodiments, input multiplier 214 can be implemented as a linear amplifier. Typically, input multiplier 214 may be used to reduce rounding noise by sizing input signal 208 to take advantage of the available range of ADC 216. Rounding error can occur because ADC 216, DSP 218, and DAC 220 have a specific number of quantization levels since they are fixed-point devices and a signal passing through these devices is approximated to one of these levels. If the signal is small relative to the available range of the device, then whatever difference exists between the signal and the closest quantization level will be added to or subtracted from the signal resulting in quantization or rounding error. The companding performed in this invention adjusts the signal so that the signal can better take advantage of the full available ranges of ADC 216, DSP 218, and DAC 220. Adjusting the signal improves signal-to-quantization noise ratio by reducing the difference between the signal and the closest quantization level, which is desirable in most applications. Because system 200 may incorporate dynamically changing functions in DSP 218, if no control signals are provided to DSP 218, then there may be time- varying distortion that can change the correspondence or mapping of the input signal to the output signal in time. For example, time-varying distortion can arise when two multipliers are not correctly matched in time, and the expansion performed by the second multiplier does not correspond to the correct portion of the signal compressed by the first multiplier. This can be seen in the example shown in FIG. 3.
As illustrated in FIG. 3, in which DSP 308 simply delays its input by k samples, if the input to the system is u(n), the desired output of the system is u(n-k). If the input is multiplied by g(n) in multiplier 310 at the input to DSP 308, and by l/g(n) in multiplier 312 at the output of DSP 308, these multiplications do not "cancel," as the companding system's output is (g(n-k)/g(n))u(n-k) rather than u(n-k). Thus, the system has been affected by a time varying distortion g(n - k)/g(n) that occurs from a mismatch in the multipliers 310 and 312.
Certain embodiments of this invention address the above-mentioned time varying distortion problem by taking the time-invariant DSP and introducing time varying adjustments in the DSP as well as in the multipliers so that the overall system remains completely or at least substantially time-invariant. In the example provided in FIG. 3, adjustments would be provided to make the output equal to u(n - k); in general, the adjustments would be made in multipliers 310 and 312 as well as in DSP 308. Therefore, time-varying behavior can be introduced within the system to reduce the quantization error and improve the performance of the signal processing, while the output signal of the overall system shows little to no time-varying distortion.
Looking back at FIG. 2, time-varying distortion may be addressed by control signals Vi ...VN 230. Control signals V1... VN 230 may be used in internal points of DSP 218 to adjust the digital signal passing through DSP 218. For example, control signals Vi ...VN 230 provide DSP 218 with information on how to adjust the digital signal to account for companding. In some embodiments, DSP 218 can be adjusted according to control signals Vi... VN 230, which may implement a form of digital companding. Digital companding uses the same principle as analog companding, but is implemented on a digital signal so that the digital signal is processed close to or at the full extent of the available range at internal points of DSP 218.
Digital companding may be used within DSP 218, with adjustments coming from control signals Vi ...VN 230, to remove unwanted time-varying distortion, in certain embodiments. The time-varying distortion may arise from analog companding, which takes place at input multiplier 214 and output multiplier 222, for example. In some embodiments, the invention performs both analog and digital companding on input signal 208 with control signals 226, 228, and 230.
An example of controller 210 described in connection with FIG. 2 is now described in greater detail with reference to FIG. 4. One embodiment of controller 210 is shown in FIG. 4 and includes two DACs (DAC2418 and DAC3 410), ADC2412, DSP Replicant 414 (which is also a fixed-point DSP, similar to DSP 218), and one or more envelope extractors 416. Generally speaking, an envelope extractor samples a signal and provides a measurement of the signal's range or amplitude over a specified period of time. The envelope is a measurement of the boundaries a signal ranges between during a given period of time. For example, if the maximum intensity of a signal is 3 volts and the minimum intensity is 1 volt, then its signal envelope would be 2 volts. An example of a signal envelope is shown in FIG. 5.
In operation, the input signal enters controller 210 and is converted to a digital signal by ADC2412. The digital signal then enters envelope extractors 416, that then output a digital control signal (input envelope) to DAC3 410. Envelope extractors 416 may be embodied as a single envelope extractor which detects multiple signals, or as multiple envelope extractors with each detecting one or more signals. After passing through DAC3 410, the input envelope is an analog input control signal Vi 420, which can be used to adjust multiplier 214 (FIG. X). Envelope extractors 416 measure some of the internal signal states of DSP Replicant
414 and output digital DSP control signals Vi ...VN- After performing certain DSP processing in DSP Replicant 414 in response to the digital signal exiting ADC2 412, the modified digital signal is detected by envelope extractors 416 and a digital output control signal (output envelope) is produced. The output envelope is converted to an analog output control signal V0422 by DAC2418 which is used to control multiplier 222 (FIG. 2).
In the embodiment of controller 210 shown in FIG. 4, control signals Vi 420, V0422, and Vi ... VN 424 are based on envelope extractors 416 that detect how input signal 408 passes through fixed-point DSP Replicant 414. By using DSP Replicant 414 in combination with envelope extractor 416, the envelope of input signal 408 can be measured, along with the envelopes of a subset of the states in DSP Replicant 414 and output signal 426.
As shown in FIG. 4, controller 210 uses DSP Replicant 414 and envelope extractors 416 to regulate control signals V; 420, V0 422, and V1... VN 424 so the measured envelope of the input signal is adjusted to approach the maximum allowable envelope of at least one of ADC 216, DSP 218, and DAC 220 without exceeding it, thereby avoiding distortion and clipping. DSP Replicant 414 may also use software algorithms within DSP 218 to act upon control signals V1... VN 424 to control at least some of the states of DSP 218 and to ensure that signals in DSP 218 are sized to take advantage of the range of the DSP 218.
Generally speaking, a DSP, such as DSP 218 or DSP Replicant 414, has a number of states that correspond in some manner to the number of delays present in the DSP. Those states can be represented by state equations or state vectors. Control signals Vi ... VN 424 may be formed by using envelope extractors 416 to measure the envelope of the signal present at some number of the states in DSP Replicant 414. Control signals V1... VN 424 can then be used to adjust the signals at some number of the states present in DSP 218. In some embodiments, it may be possible to mitigate distortion introduced to input signal 208 by implementing digital companding to only some of the states in DSP 218 (and the signals associated with these states). An example of this is when control signals Vj ... VN 230 use less than N signals for an N state DSP 218, and still control distortion in DSP 218.
As shown in FIG. 3, distortion can result in a system when an input signal is multiplied by a time- varying signal, and the output signal is multiplied by the reciprocal of this time- varying signal, but there is no correction made to at least some of the internal states of the DSP. As explained above, the correction made to the internal states can be done through control signals 230 of FIG. 2. Some of the general theoretical foundations of how control signals can reduce quantization noise in signal processing via companding are described in a 1997 IEEE paper by Yannis Tsividis entitled "Externally Linear, Time- Invariant Systems and Their Application to Companding Signal Processors" which is hereby incorporated by reference herein in its entirety.
A mathematical explanation of how control signals can be used to implement companding is given below for a general system, such as system 200 of FIG. 2, with reference to equations 1-4 and FIGs. 6 A and 6B. A more specific implementation, where a DSP implements a reverberator, is provided further below and applies the equations and ideas presented in this more general explanation.
To start, consider a linear, time-invariant (LTI) discrete-time mth order system 600 as shown in FIG. 6A which includes a single input u(ή) 612, state vector x(n) = (Xi(n)) for DSP 614, a single output y(ή) 616, and quantization error q(n) 618 of an ADC (not shown) between u(n) 612 and DSP 614. Initially, assuming that q(n) is zero, the state equations of system 600 are of the form:
sφ. + l) = Ax(n) + Bu[n) *s x * Equations 1 where A = (α#) is an m x m matrix, B = (b,) is an m x l column vector, C = (c,) is an lxm row vector, and d is a scalar. System 600 with q{n) equal to zero describes an ideal embodiment of system 100 in FIG. 1, where ADC 104 and DAC 108 are of infinite resolution (i.e., there is no quantization error). Certain embodiments of the present invention, such as system 200, are represented by a modified system 650 of FIG. 6B, where multipliers 652 and 654 are similar to multipliers 214 and 222, respectively, where q(n) 656 represents quantization error from ADC 216, and where DSP 658 is similar to DSP 218. In FIG. 6B, system 650 is fed by the same input u(ri) as system 600 and produces the same zero-state output y(n) as system 600, but companding is introduced into system 650 with a modified u (ri) at the input to DSP 658, a modified y (n) at the output from DSP 658, and modified state variables x i(ή).
Equations 2 show the correspondence of variables between system 600 and system 650 below:
Figure imgf000015_0001
Equations 2 where e,,(ή), ey(n), and eXi Qi) are control signals, may be similar to control signals 226, 228,
and 230, respectively, of FIG. 2, and may be related to the envelope of signals in system 600. Substituting equations 2 into equations 1 produces the state equations of system 650, which can be shown to be:
0M = £*<«) + rfW«(n) Equations 3
where A = a //(«.), B = S ,-(«), C = CjQi), and d Qi) have the same dimensions as A, B, C and
d, but are their companded counterparts. After some algebra, the elements of A , B , C , and
d are found to be given by:
Figure imgf000016_0001
Equations 4 As shown in the modified system 650 in FIG. 6B and in equations 2, 3 and 4, internal signals u Qi)^ 9 (ri), and x ,-(«) can be adjusted by control signals euQi), eyQι) and e^. («). Further,
these internal signals can be scaled dynamically to other desired values without disturbing output y(n).
If control signals <?,,(«), eyQϊ) and eXi Qi) are derived from the input to the system, as
shown in FIG. 2, modified system 650 becomes internally nonlinear, while its external behavior is similar to system 600. The input-output behavior of systems 600 and 650 may be different from one another if quantization error q(n) 618 is introduced as a non-zero entity.
In the case where a non-zero quantization error q( n) is used, the input to DSP 614 (FIG. 6A) becomes uQi) + qQi) and the input to DSP 658 (FIG. 6B) becomes en AQi)uQi) + qQi). Scaling the envelope of input uQi) by a factor of
Figure imgf000016_0002
varies the input uQi) by a factor of <2U '1Qi), while the quantization error q(n) remains the same. This can be used to improve the signal-to-quantization-error ratio by a factor of eu Λ(n) when the input u{n) is smaller than the full range of a DSP because the quantization error is introduced after the scaling and remains the same, while the signal is increased relative to the quantization error. Similar results may be obtained for errors due to limited-precision fixed-point arithmetic in a DSP.
In some embodiments of the invention, quantization error present from ADC 412 still causes signal envelopes measured by DSP Replicant 414 to suffer from quantization noise. These errors are not a serious problem because DSP Replicant 414 is only used to give a relative measurement of how the signal will pass through a fixed-point DSP, such as DSP 218. Thus, even if the signal envelopes can only be determined within what would normally be the rounding or quantization error for an input signal to a fixed-point system, these envelopes can still be used to better size the corresponding signal for when it will pass through DSP 218. Because the rounding error is typically much smaller than the full range of a fixed-point device, this rounding error is usually acceptable for the purposes of generating control signals.
In suitable embodiments of the present invention, ADC 216 and ADC2412 can be combined into a single ADC 710 using multiplexer 712 and demultiplexer 714 as shown in FIG. 7. As illustrated, the signals enter a multiplexer (MUX) 712 that directs the signals into ADC 710. At the other end of ADC 710, a demultiplexer (DEMUX) 714 routes the signal to the correct output. MUX 712 and DEMUX 714 may be controlled by controller 716 to ensure their switching is coordinated. The control of MUX 712 and DEMUX 714 can be, fox- example, time-based, where each input is switched into ADC 710 for a specified amount of time and then switched out for an amount of time. Other methods for controlling the switching of MUX 712 and DEMUX 714 can be used as well. Another method, for example, is priority switching where each input is assigned a priority and when multiple signals are competing for access to ADC 710, the signal with the highest priority will gain access. Once the request of the highest priority input line is fulfilled, the next highest priority input is granted access.
Similarly, DAC 220,DAC2418, and DAC3 410 can be combined into a single DAC 810 using a multiplexing scheme as shown in FIG. 8. The multiplexing involved in FIG. 8 is similar to that of FIG. 7. As shown, a MUX 812 is at the input and DEMUX 814 is at the output of DSP 810. MUX 812 and DEMUX 814 may be controlled by a controller 816, which, for example, can implement time-based or priority-based switching as described above. Likewise, it may be desirable to combine DSP 218 and DSP Replicant 414 into a DSP
910 as shown in FIG. 9. This arrangement is similar to that in FIGS. 7 and 8 in that MUX 912, DEMUX 914, and controller 916 may be used to route the signals.
A multiplying DAC 1010 may be used instead of DAC 220 and multiplier 222 as shown in FIG. 10. Multiplying DAC 1010 takes the digital signal 1012 inputted to it (e.g., from DSP 218), as well as control signal V0 1114 (e.g., from controller 210), and outputs a modified signal 1016.
As shown in FIG. 11, DACs 220, 410, and 418 and output multiplier 222 may also be combined using MUXs 1118 and 1120. MUX 1118 may be used to switch the signals normally inputted into DAC 220, DAC2418, and DAC3 410 into multiplying DAC 1114. MUX 1120 may be used to switch multiplying value V0 or a constant value, such as one (for the signals that should not be modified) into multiplying DAC 1114. DEMUX 1116 may be used to route the signals normally outputted from DAC 220, DAC2418, and DAC3 410 from multiply DAC 1114 to the appropriate locations in system 200. Finally, controller 1112 may be used to regulate MUXs 1118 and 1120, and DEMUX 1116, and supply a constant value to input into multiply DAC 1114 (such as one, when the signal should not be modified). An example of an implementation of the invention is companding on a simple reverberator 1200. This simple reverberator, without companding, is shown in FIG. 12 (using a Matlab/Simulink representation). Reverberator 1200 can be implemented by a DSP, such as DSP 218, and includes adders 1210, 1212, and 1214, k delay element 1216, and coefficient multipliers 1218 and 1220. The following example applies the math and equations described above to these embodiments of the invention. The state equations for reverberator 1200, which are found by taking the states at the outputs of k delay element 1216, are:
X i ( n 4- 1 ) = ~Q.8xk (n) + 0.2u (π ) Xi{n -j- V) = j-4_i (n). 2< i<k y(n ) ' = l .8jSk (n) + 0.Sιt{n )
Equations 5 When equations 5 are put in the form of equations 1, the following is determined: αM_i = 1 for 2 < i < k; αu = -0.8; b\ - 0.2; ck = 1.8; d = 0.8. All other entries in A, B and C are zero. From equations 5, x,(n + 1) = x,.\(n) for 2 < i < k. It follows that xt(n) = xι(n + 1 - k). From these relations and equations 2, it can be shown that the following corresponding set of relations also hold: eXl (n + 1) = eH_λ Qi) for 2 < i <k, and eXk (n) = eΑ (« + 1 - k). Using this
corresponding set of relations in equations 4, the following is obtained:
Figure imgf000019_0001
All other entries in A , B , and C are zero. The state equations 3 for the reverberator become:
y y JM J Equations 6 As seen above, it can be shown that k - 1 of the k control signals corresponding to the k states of the k-delay element 1216 are cancelled out in the ratios of equations 4. This occurs for every k-delay element 1216, since properly companding the input of a k-delay element ensures that all the internal states of this element are also properly companded. Thus, using this approach, it is possible to eliminate control signals for the intermediate state variables and use fewer control signals (such as control signals 230) to remove time-varying distortion and other forms of distortion.
Let N be the number of bits used to store the companded variables on the left-hand side of equation 6. Since these variables are properly companded according to certain embodiments of the invention, they have roughly constant envelopes, so N may be chosen small without resulting in large quantization noise. Unfortunately, the individual terms in the sums of equation 6 are not companded, so these terms may not have constant envelopes, and if only N bits were used to store these terms, significant quantization noise would result. Since, in many N-bit fixed-point DSPs, N-bit multiplications require 2N-bit additions, the N- bit DSPs would generally support 2N-bit addition and temporary storage of 2N-bit values. Therefore, in some embodiments of the invention, the individual terms in the sums of equation 6 are temporarily stored and added using 2N-bits, and the results, which are the properly companded variables on the left-hand side of equation 6, are then stored in memory and multiplied by appropriate gains using only N bits. As one skilled in the art would appreciate, this method can be used in other instances of signal manipulation and processing where such a situation is presented. A system using two of the reverberators of FIG. 12 was simulated in Matlab/Simulink with a sample rate of 44.1 kHz; the first stage had a k delay element 1216 with k - 2000 and the second stage had a k delay element 1216 with k - 4410. For this two-stage reverberator, certain embodiments of system 100 of FIG. 1 and companding system 200 of FIG. 2 were simulated using a sinusoidal input. Controller 210 of system 200 was of a form similar to that shown in FIG. 4. The simulations were run in a fixed-point mode with 8, 9, 10, and 11 bit systems, and the same precision was used for all the parts of controller 210, which are shown in FIG. 4. For the purposes of this example, all the outputs of envelope extractors 416 were made to be at least a small non-negative amount (to avoid possible division by 0 in, for example, multiplier 214). This approach does not catch all nuances of the envelope variations of the signals , so the resulting companding signals can have some envelope variation; nevertheless, good results are obtained from the companding system 200 relative to system 100, as can be seen in FIG. 13. Since detecting the envelope at time-step no requires knowledge of input signal 208 at time-step no+1, a single-sample delay (optional delay 212) was used to make envelope detection a causal process. FIG. 14 illustrates a companding ADC-DSP-DAC circuit 1400 utilizing lookup tables in accordance with certain embodiments of the present invention. Companding ADC-DSP- DAC circuit 1400 includes a compressor element 1410, an ADC 1412, a modified DSP 1414, a DAC 1416, and an expander element 1418. Compressor element 1410 and expander element 1418 modify the signal according to a general function and an inverse of that general function, respectively. This signal modification may be implemented with a lookup table, a specialized piece of hardware, or any other suitable mathematical device. Modified DSP 1414 may also use nonlinear lookup tables to introduce internal nonlinearities and to ensure that signals in the DSP take advantage of the full range available. ADC 1412 and DAC 1416 are similar in operation to ADC 216 and DAC 220 of FIG. 2. FIG. 15 illustrates a companding DSP circuit 1500 where a generalized function is used for compression and expansion in accordance with certain embodiments of the present invention. Companding DSP circuit 1500 includes a compressor element 1510, a modified DSP 1512, an expander element 1514, and a (conceptual) quantization noise adder 1516. Compressor 1510 and expander 1514 perform similar signal manipulations as multipliers 214 and 222 of FIG. 2, multipliers 310 and 312 of FIG. 3, and multipliers 652 and 654 of FIG. 6B, when these multipliers are multiplying the signal with a general function and its inverse. In some embodiments, the lookup tables may be implemented in a controller, as will be explained later with reference to FIG. 16.
Notwithstanding the names given to the compressor element and the expander element, the compressor element may be used to perform both compression and/or expansion of a given signal, and the expander element may be used to reverse such compression and/or expansion as appropriate. Looking at FIG. 1, for example, line 150 shows that a signal is expanded when it is small and compressed when it is large. Thus, a multiplier (such as 214) or a compressor (such as 1410) implementing a function such as line 150 would perform both compression and expansion on a signal.
As mentioned above, a general function, g(y), may be selected to compress the signal dynamic range and g A(v) is the function that re-expands the signal dynamic range. An example of a compression characteristicis the μ law, which was given above and reproduced below:
Figure imgf000022_0001
„,(,,, \ — _Λ,('_7Λ — lθg(l-μυ) ^ Λ l {υ) - I K v) — log(l+/(.) ' υ < U
where μ corresponds to the amount of compression. As shown above, the base of the logarithm is not specified because the bases of the logarithms in the numerator and denominator are the same. For the rest of this discussion, the logarithms are shown as base 2, and are therefore written as Ig. In addition, υ and γ(υ) are assumed to be normalized between -1 and 1. If the numbers in the DSP are to be signed integers, then υ is scaled by 2'(-2N'1\ and g(υ) is scaled by
2N4 because the g(v) function takes an uncompressed 2N-bit number as an input and outputs a compressed N-bit number. Given the above, g(v) is given by:
Figure imgf000023_0001
Equations 7
Inverting equations 7 to get the inverse function, g ~J(v) gives:
s-i W = a!^i(2 i - 1) β≥o ff- W β-(-«) ^ ^=1(2=^=^ - 1). W < 0 Equations 8
Depending on the embodiment, g(v) may be implemented with an analog circuit at the input of the ADC, and g "*(v) may be implemented with an analog circuit at the output of the DAC. In some embodiments, g(y) is incorporated into the ADC by using a nonlinear ADC and g "1O) is incorporated into the DAC using a nonlinear DAC. Certain embodiments of the invention implement instantaneous companding through the use of lookup tables. Thus, controller 210 of FIG. 2 may be eliminated and lookup tables used instead to introduce nonlinear signal modifications. These nonlinear signal modifications can be performed by multipliers (such as multipliers 214 and 222), by other specialized hardware (such as a comparator that looks up the input to find the corresponding function manipulated output), and by the DSP (such as DSP 218).
In explaining how to implement these lookup tables, a general function with no specific form is used. However, these functions may be chosen to minimize quantization error from ADC quantization effects and fixed-point arithmetic. An example of such a quantization error minimizing function is illustrated in FIG. 1 and equations 7 and 8. For the purposes of this explanation, only a single-input, single-output case is considered herein. As one skilled in the art would appreciate, the invention can be extended to build a multiple- input, multiple-output device or any variation thereof. Furthermore, single variable general functions are considered such that the i"' function of G(x(n)) is only a function of Xj(ή). The general functions, in this discussion, are also chosen to have the same functional form so that there is only one invertible general function, g A(v), where v is a scalar; the ith function of G(x(n)) is X1(V) = g(Xi(nJ), Gu(u(n)) is ύ (n) = g(u(n)\ and Gy(y(n)) is, y (n) = g(y(n)). As one skilled in the art would appreciate, more complex nonlinear functions may be used with various embodiments of the invention.
An explanation of how to implement the lookup tables begins with expanding and generalizing equations 3 from above to give equations (for 1 < i < m) of the form:
y(n) = gt∑SLτ <ψrΨi{n)) + rlg-l(u(n)))
Equations 9
Equations 9 are implemented on an N-bit fixed-point processor 1512, and a technique for minimizing quantization errors is presented in accordance with certain embodiments of the invention. When implementing a companding N-bit fixed-point processor 1512, the general function, g(v) may be chosen to allow ύ (ri), y (n), and x (n) to take advantage of full range of processor 1512, and to be stored in N-bit registers without causing too much quantization error. However, this cannot be assumed for g -1(v) (i.e., g Λ(xj(n)), g Λ(ύ (ή)), and g ' l{y (n))) because these are x}{n), u(n), and y(ή), respectively, and so storing them in N-bit registers may lead to quantization distortion if they do not take advantage of the full range of the register. A technique to avoid this involves manipulating certain properties of an N-bit fixed-point DSP.
Typically,- to allow for N-bit multiplication, an N-bit DSP supports 2N-bit addition and 2N-bit numbers are a supported "accumulator data-type." In such cases, typically, these 2N-bit numbers are stored temporarily and added (or subtracted), but they are not stored in registers. Rather, they are typically used only in the time step during which they are generated. In some embodiments, the g A(v) function is implemented on DSP 1512 using one or more lookup tables and any coefficient multipliers, such as aψ bit q, and d, which are absorbed into the one or more lookup tables. Thus, if the desired signal is α g ~ (v) the corresponding lookup table outputs a 2N-bit number which represents α g ~l(v) instead of storing g ~l(v) in an iV-bit register and later multiplying it by α. The benefit of this is that quantization error is reduced by expanding g ~!(v) through a multiplication with the coefficient gain. In some embodiments, the lookup table for the general function, g(v), takes an uncompressed 2N-bit number as an input and outputs a compressed N-bit number. The lookup table for the inverse function, g -1(v), which outputs α g ~l(v) in certain embodiments, takes a compressed N-bit number as input and outputs an uncompressed 2N-bit number. Thus, in this setup, the input to and output of modified DSP 1512 are compressed N-bit numbers, which allows the use of an N-bit ADC, DSP, and DAC in some embodiments.
The generation of the lookup tables in DSP 1512 may occur before runtime, so that it does not have to occur in real-time. In certain embodiments where the lookup tables are generated before runtime, floating-point arithmetic can be used to generate the lookup table correspondences. In developing the lookup table in some embodiments as discussed below, there are 2 possible inputs, but only 2N possible outputs because the g(v) function takes a 2N-bit integer as an input and outputs an N-bit integer. As long as each 2N-bit integer gives a distinct N-bit integer, 2Ν 2N-bit integers may be used. The exact mapping of the 2N-bit integers to the distinct N-bit integers does not impact the companding DSP circuit as long as the mapping is done in a consistent fashion. In some embodiments of the invention, the lookup table can store 2N-bit integers, for example, by using 2 registers for each integer. A lookup is done by finding the 2N-bit integer in the table's input column that is closest to the input by using a binary search, for example, and then the corresponding N-bit integer is outputted. In certain embodiments, every application or device using g(v) may use the same lookup table, so that only one instance of g(v) is stored in memory. The total memory requirement for the g(v) lookup table is 2N(2N +N) = 2N3Nbits.
In developing a lookup table for g "1OX the input and output columns of the g(v) lookup table may be flipped. In some embodiments, to obtain the ag Λ(v) lookup table, each entry of the output column is multiplied by a and the result is rounded to the nearest 2N-bit number. There are 2N entries, one for every possible N-bit integer, so the lookups may be implemented directly, which is efficient since no search is required. Furthermore, the input column may be eliminated if the input is first offset so that the lowest possible input value is zero such that the table becomes an array with the input being the array index. If the input is in two's complement initially, offsetting may be accomplished through a bitwise exclusive-or with one followed by N - 1 zeros, thus inverting the most significant bit. The memory requirement for each ag "x(v) lookup table may be 2^2NWtS. Bi some embodiments, this memory requirement may be eased by using less rows in the lookup tables. However, using less rows can increase quantization errors, so manipulating the number of rows in the lookup tables is a way to tradeoff memory requirement for performance.
In some embodiments, the companding system may consist of a cascade of companding DSP circuits. Because the output of each of the companding states is properly companded, the output may be passed directly to the next companding stage without modification. In certain embodiments further simplification is available. For example, if the output of the ith stage is multiplied by a coefficient of 1 in the expander then the result can be passed to the (i + l)th stage directly, saving an application of g(v) followed by g ~l(v). In some embodiments, when the coefficient is not 1, code implementing a 2N-bit multiplication using allowed N-bit operations on a DSP may be written instead of using an application of g(v) followed by g "1Cv). FIG. 16 illustrates a controller-based general function companding system 1600 in accordance with certain embodiments of the present invention. Companding system 1600 includes an input signal 1608, a controller 1610, an input multiplier 1612, an ADC 1614, a modified DSP 1616, a DAC 1618, a multiplier 1620, a general function signal 1622, an inverse general function signal 1624, input/output signals 1626, and a digital signal 1628. Controller 1610 uses input 1608 along with a lookup table to select or other specialized hardware to produce a general function signal to modify input signal 1608 at multiplier 1612. A similar process occurs with multiplier 1620, where digital signal 1628 is used to select or to produce an inverse general function signal 1624, which may also include a gain component. Modified DSP 1616 uses input/output signals 1626 to select or to produce the necessary nonlinear companding modifications for its internal signals.
An example of another implementation of the invention using instantaneous companding is shown using simple reverberator 1200 of FIG. 12. Applying equations 9 to simple reverberator 1200 the following is obtained:
h(n + 1 ) = g{~0 B{r x (Mn)) + 0.2crl (.Hn)Y) 2'i tn 4- J ) = £i -i (ιι), 2</<7f y(rή == g(1.8g-Hϊk(>ή) + 0.$g-1(U.(jή)) . Equations 10
As seen above in the earlier examples, the second equation of equations 10 illustrates that for k - 1 of the internal DSP states, no applications of g(v) may be necessary. This is expected for a yfc-delay block provided that the general functions corresponding to the states of the k- delay block have the same functional form (e.g., the μ law function is used for each of the k states). This provides intuitive justification for using the same functional form for all the states of a &-delay block, since if the input to a /c-delay block is properly companded, then all W
the internal states of this block are also be properly companded, so no applications of nonlinear functions should be necessary for k- 1 of these states.
The α coefficients used for the inverse operation are determined from equations 10. Because four different coefficients appear, namely 0.8, -0.8, 0.2, and 1.8, four a g "1O) lookup tables may be used to implement the companding system. The number of lookup tables may be reduced, though, by modifying the system equation recognizing that 1.8 = 1 + 0.8 and 0.2 = 1 - 0.8, and using 2N-bit subtraction. The following equivalent system results:
s'lUi + 1) = glfTι(Φ)) ~~ 0&β~JUt[n)) ~~ (ISg-^fhln))} *jt(π + J.) = a:i_i(»). 2÷- i≤k
Figure imgf000028_0001
Equations 11
Thus, only two lookup tables are necessary: one for g "1O) and one for 0.8g "1O)- This type of system equation modification may be applicable for most systems because parameters are generally closely related due to the system topologies typically used in applications.
This example reverberator system was simulated in a cascade of two stages, each of them being a simple reverberator 1200 of FIG. 12. The simulated system was run at a sampling rate of 44.1 kHz, and the equations for each stage of the companding system were given by equations 11, with k = 2000 for the first stage and k = 4410 for the second stage. In addition, g(y) and g "1O) were given by equations 7 and 8, and because one of the coefficients is 1 that coefficient may be passed directly between the cascaded stages eliminating certain processing requirements. Some simulation results are illustrated for a sinusoidal input signal in FIG. 17 including a no companding line 1710, a companding with μ = 15 line 1712, a companding with μ = 63 line 1714, a companding with μ = 255 line 1716, and a companding with μ = 1023 line 1718. As illustrated, the SΝDR for the non-companding system varies in proportion to the input signal, whereas the SNDR of the companding systems (such as μ = 63 and greater) stays relatively constant over the range of input values shown.
The above schemes increase the performance of fixed-point DSPs through the use of companding, so that the DSPs suffer less from rounding noise when the signal envelope is small, and from clipping when the signal envelope is large. Introducing this invention into various signal-processing applications, instead of floating-point DSPs, may result in lower power consumption, smaller device size, and lower-cost devices.
Although the present invention has been described and illustrated in the foregoing exemplary embodiments, it is understood that the present disclosure has been made only by way of example, and that numerous changes in the details of implementation of the invention may be made without departing from the spirit and scope of the invention, which is limited only by the claims which follow.

Claims

We claim:
1. A system for signal processing that receives an input signal comprising: an input multiplier, having a first input coupled to the input signal, second input and an output; an analog-to-digital converter (ADC), having an input that is coupled to the output of the input multiplier, and an output; a digital signal processor (DSP), having a first input that is coupled to the output of the ADC, a second input, and an output; a digital-to-analog converter (DAC), having an input coupled to the output of the DSP, and an output; an output multiplier, having a first input coupled to the output of the DAC, a second input, and an output; and a controller, having an input that receives the input signal, a first output that is coupled to the second input of input multiplier, a second output that is coupled to the second input of output multiplier, and a third output coupled the second input of the DSP, wherein the input signal is resized by the input multiplier.
2. The system of claim 1, further comprising an optional delay placed before the input multiplier.
3. The system of claim 1, wherein the controller implements companding to resize the input signal.
4. The system of claim 1, wherein the controller sends information to the DSP to implement digital companding.
5. The system of claim 4, wherein the DSP implements digital companding to counter time- varying distortion.
6. A system for signal processing that receives an input signal comprising: a first means for multiplying, having a first input coupled to the input signal, second input and an output; a means for providing an analog-to-digital converter (ADC), having an input that is coupled to the output of the first means, and an output; a means for providing digital signal processor (DSP), having a first input that is coupled to the output of the means for providing an ADC, a second input, and an output; a means for providing a digital-to-analog converter (DAC), having an input coupled to the output of the means for providing a DSP, and an output; a second means for multiplying, having a first input coupled to the output of the means for providing a DAC, a second input, and an output; and a means for controlling, having an input that receives the input signal, a first output that is coupled to the second input of the first means, a second output that is coupled to the second input of the second means, and a third output coupled the second input of the means for providing a DSP, wherein the input signal is resized by the first means.
7. The system of claim 6, further comprising an optional means for providing delay placed before the first means.
8. The system of claim 6, wherein the means for controlling implements companding to resize the input signal.
9. The system of claim 6, wherein the means for controlling sends information to the means for providing a DSP implement digital companding.
10. The system of claim 9, wherein the means for providing a DSP implements digital companding to counter time-varying distortion.
11. A method for processing an analog input signal with fixed-point devices comprising: W
resizing the analog input signal based on information provided by a controller; converting the resized analog input signal to a digital signal; processing the digital signal based in part on information provided by the controller; converting the processed digital signal to an analog signal; and resizing the analog signal.
12. The method of claim 11, further comprising delaying the input signal before resizing the analog input signal.
13. The method of claim 11, further comprising sending information for implementing digital companding when processing a digital signal.
14. The method of claim 13, wherein digital companding is implemented to counter time-varying distortion.
15. The method of claim 11, wherein the controller uses one or more lookup tables to implement a function.
16. The method of claim 15, wherein the resizing of the analogy signal is implemented using one or more lookup tables.
17. A system for signal processing that receives an input signal comprising: a compressor, having an input coupled to the input signal, and an output; a nonlinear digital signal processor (DSP), having an input that is coupled to the output of the compressor, and an output; and an expander, having an input coupled to the output of the DSP, wherein the input signal is resized by the compressor according to a function.
18. The system of claim 17, wherein the compressor receives multiple signals at a corresponding number of inputs.
19. The system of claim 17, further comprising: an analog-to-digital converter (ADC), having an input coupled to the output of the compressor, and an output coupled to the input of the DSP; and a digital-to-analog converter (DAC), having an input coupled to the output of the DSP, and an output coupled to the input of the expander.
20. The system of claim 17, wherein the compressor and the expander implement the resizing according to a function implemented in a lookup table.
21. The system of claim 17, wherein a lookup table is used in the DSP to make the DSP nonlinear.
PCT/US2006/010204 2005-03-18 2006-03-20 Systems and methods for companding adc-dsp-dac combinations WO2006102313A2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/901,661 US7602320B2 (en) 2005-03-18 2007-09-18 Systems and methods for companding ADC-DSP-DAC combinations

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US66305605P 2005-03-18 2005-03-18
US60/663,056 2005-03-18
US72821305P 2005-10-19 2005-10-19
US60/728,213 2005-10-19

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US11/901,661 Continuation-In-Part US7602320B2 (en) 2005-03-18 2007-09-18 Systems and methods for companding ADC-DSP-DAC combinations

Publications (2)

Publication Number Publication Date
WO2006102313A2 true WO2006102313A2 (en) 2006-09-28
WO2006102313A3 WO2006102313A3 (en) 2007-03-15

Family

ID=37024523

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2006/010204 WO2006102313A2 (en) 2005-03-18 2006-03-20 Systems and methods for companding adc-dsp-dac combinations

Country Status (2)

Country Link
US (1) US7602320B2 (en)
WO (1) WO2006102313A2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009111500A2 (en) * 2008-03-03 2009-09-11 Qualcomm Incorporated System and method of reducing power consumption for audio playback
US8717211B2 (en) 2010-11-30 2014-05-06 Qualcomm Incorporated Adaptive gain adjustment system
EP2327163B1 (en) * 2008-07-30 2016-11-16 Micro Motion, Inc. Data translation system and method

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8054912B2 (en) * 2007-08-21 2011-11-08 Texas Instruments Incorporated Large-dynamic-range lookup table for a transmitter predistorter and system and method employing the same
US20090319987A1 (en) * 2008-06-19 2009-12-24 Bartz Christopher T Automatic Fixed Point Code Generation
US8788277B2 (en) * 2009-09-11 2014-07-22 The Trustees Of Columbia University In The City Of New York Apparatus and methods for processing a signal using a fixed-point operation
US10050680B2 (en) * 2010-06-07 2018-08-14 Entropic Communications, Llc Method and apparatus for real time multiplexing with transmitter and antenna array elements
CN103176005A (en) * 2011-12-24 2013-06-26 鸿富锦精密工业(深圳)有限公司 System and method for processing signals
US9831843B1 (en) 2013-09-05 2017-11-28 Cirrus Logic, Inc. Opportunistic playback state changes for audio devices
US9774342B1 (en) 2014-03-05 2017-09-26 Cirrus Logic, Inc. Multi-path analog front end and analog-to-digital converter for a signal processing system
US10284217B1 (en) 2014-03-05 2019-05-07 Cirrus Logic, Inc. Multi-path analog front end and analog-to-digital converter for a signal processing system
US9306588B2 (en) 2014-04-14 2016-04-05 Cirrus Logic, Inc. Switchable secondary playback path
US10785568B2 (en) 2014-06-26 2020-09-22 Cirrus Logic, Inc. Reducing audio artifacts in a system for enhancing dynamic range of audio signal path
US9596537B2 (en) 2014-09-11 2017-03-14 Cirrus Logic, Inc. Systems and methods for reduction of audio artifacts in an audio system with dynamic range enhancement
US9503027B2 (en) 2014-10-27 2016-11-22 Cirrus Logic, Inc. Systems and methods for dynamic range enhancement using an open-loop modulator in parallel with a closed-loop modulator
US10303538B2 (en) * 2015-03-16 2019-05-28 Microsoft Technology Licensing, Llc Computing system issue detection and resolution
US9959856B2 (en) 2015-06-15 2018-05-01 Cirrus Logic, Inc. Systems and methods for reducing artifacts and improving performance of a multi-path analog-to-digital converter
US9955254B2 (en) 2015-11-25 2018-04-24 Cirrus Logic, Inc. Systems and methods for preventing distortion due to supply-based modulation index changes in an audio playback system
US9543975B1 (en) 2015-12-29 2017-01-10 Cirrus Logic, Inc. Multi-path analog front end and analog-to-digital converter for a signal processing system with low-pass filter between paths
US9880802B2 (en) 2016-01-21 2018-01-30 Cirrus Logic, Inc. Systems and methods for reducing audio artifacts from switching between paths of a multi-path signal processing system
US9998826B2 (en) * 2016-06-28 2018-06-12 Cirrus Logic, Inc. Optimization of performance and power in audio system
US10545561B2 (en) 2016-08-10 2020-01-28 Cirrus Logic, Inc. Multi-path digitation based on input signal fidelity and output requirements
US10263630B2 (en) 2016-08-11 2019-04-16 Cirrus Logic, Inc. Multi-path analog front end with adaptive path
US9813814B1 (en) 2016-08-23 2017-11-07 Cirrus Logic, Inc. Enhancing dynamic range based on spectral content of signal
US9780800B1 (en) 2016-09-19 2017-10-03 Cirrus Logic, Inc. Matching paths in a multiple path analog-to-digital converter
US9762255B1 (en) 2016-09-19 2017-09-12 Cirrus Logic, Inc. Reconfiguring paths in a multiple path analog-to-digital converter
US9929703B1 (en) 2016-09-27 2018-03-27 Cirrus Logic, Inc. Amplifier with configurable final output stage
US9967665B2 (en) 2016-10-05 2018-05-08 Cirrus Logic, Inc. Adaptation of dynamic range enhancement based on noise floor of signal
US10321230B2 (en) 2017-04-07 2019-06-11 Cirrus Logic, Inc. Switching in an audio system with multiple playback paths
US10008992B1 (en) 2017-04-14 2018-06-26 Cirrus Logic, Inc. Switching in amplifier with configurable final output stage
US9917557B1 (en) 2017-04-17 2018-03-13 Cirrus Logic, Inc. Calibration for amplifier with configurable final output stage
US10693485B1 (en) * 2019-03-22 2020-06-23 Avago Technologies International Sales Pte. Limited Adaptive background ADC calibration

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4785418A (en) * 1986-08-29 1988-11-15 International Business Machines Corporation Proportional automatic gain control
US5808574A (en) * 1991-05-29 1998-09-15 Pacific Microsonics, Inc. Systems for achieving enhanced frequency resolution
US20030112088A1 (en) * 1999-11-29 2003-06-19 Bizjak Karl L. Compander architecture and methods

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NL293818A (en) * 1962-06-07
US3934190A (en) * 1972-09-15 1976-01-20 Dolby Laboratories, Inc. Signal compressors and expanders
US4430626A (en) * 1979-11-28 1984-02-07 Dbx, Inc. Networks for the log domain
US4713662A (en) * 1986-10-17 1987-12-15 Westinghouse Electric Corp. Modulated digital radio frequency memory
US5757932A (en) * 1993-09-17 1998-05-26 Audiologic, Inc. Digital hearing aid system
US5469508A (en) * 1993-10-04 1995-11-21 Iowa State University Research Foundation, Inc. Audio signal processor
FR2716312B1 (en) * 1994-02-11 1996-03-22 Thomson Csf Continuous phase modulation device by phase locked loop frequency synthesizer.
US6389445B1 (en) 1995-08-31 2002-05-14 The Trustees Of Columbia University In The City Of New York Methods and systems for designing and making signal-processor circuits with internal companding, and the resulting circuits
US5794187A (en) * 1996-07-16 1998-08-11 Audiological Engineering Corporation Method and apparatus for improving effective signal to noise ratios in hearing aids and other communication systems used in noisy environments without loss of spectral information
US5821889A (en) * 1996-11-06 1998-10-13 Sabine, Inc. Automatic clip level adjustment for digital processing
US6542612B1 (en) * 1997-10-03 2003-04-01 Alan W. Needham Companding amplifier with sidechannel gain control
US6081783A (en) * 1997-11-14 2000-06-27 Cirrus Logic, Inc. Dual processor digital audio decoder with shared memory data transfer and task partitioning for decompressing compressed audio data, and systems and methods using the same
JP3338370B2 (en) * 1998-05-14 2002-10-28 株式会社アドバンテスト Frequency analysis method and swept spectrum analyzer using the method
US6262623B1 (en) * 1999-05-28 2001-07-17 Conexant Systems, Inc. Log-domain filter having a variable dynamic range window
US6720817B2 (en) * 2000-02-07 2004-04-13 Mcgill University All NPN class-AB log-domain integrator with supporting input and output circuitry for low-voltage and high-frequency continuous-time filtering
US6639528B1 (en) * 2000-06-30 2003-10-28 Oki Electric Industry Co, Ltd. Apparatus for multi-channel signal processing and communication terminal using the same
US6868162B1 (en) * 2000-11-17 2005-03-15 Mackie Designs Inc. Method and apparatus for automatic volume control in an audio system
EP1715587A4 (en) * 2004-02-10 2009-01-07 Panasonic Corp Encoding/decoding device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4785418A (en) * 1986-08-29 1988-11-15 International Business Machines Corporation Proportional automatic gain control
US5808574A (en) * 1991-05-29 1998-09-15 Pacific Microsonics, Inc. Systems for achieving enhanced frequency resolution
US20030112088A1 (en) * 1999-11-29 2003-06-19 Bizjak Karl L. Compander architecture and methods

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009111500A2 (en) * 2008-03-03 2009-09-11 Qualcomm Incorporated System and method of reducing power consumption for audio playback
WO2009111500A3 (en) * 2008-03-03 2009-12-30 Qualcomm Incorporated System and method of reducing power consumption for audio playback
US9425747B2 (en) 2008-03-03 2016-08-23 Qualcomm Incorporated System and method of reducing power consumption for audio playback
CN101960715B (en) * 2008-03-03 2017-07-21 高通股份有限公司 Reduce the system and method for the power consumption for audio playback
EP2327163B1 (en) * 2008-07-30 2016-11-16 Micro Motion, Inc. Data translation system and method
US8717211B2 (en) 2010-11-30 2014-05-06 Qualcomm Incorporated Adaptive gain adjustment system

Also Published As

Publication number Publication date
US20080198048A1 (en) 2008-08-21
WO2006102313A3 (en) 2007-03-15
US7602320B2 (en) 2009-10-13

Similar Documents

Publication Publication Date Title
US7602320B2 (en) Systems and methods for companding ADC-DSP-DAC combinations
US4999628A (en) Analog-to-digital converting unit with broad dynamic range
JP2007531393A (en) Low complexity nonlinear filter
US5936870A (en) Arithmetic operating device for digital signal processing and method therefor
US6463451B2 (en) High speed digital signal processor
US6065031A (en) Log converter utilizing offset and method of use thereof
US10296290B2 (en) Digital signal processor
US6314443B1 (en) Double/saturate/add/saturate and double/saturate/subtract/saturate operations in a data processing system
Klein et al. Externally linear time invariant digital signal processors
US20060277246A1 (en) Multiplication circuitry
US20230133360A1 (en) Compute-In-Memory-Based Floating-Point Processor
Klein et al. Instantaneously companding digital signal processors
JP4783319B2 (en) Dynamic range scale circuit
JPS6165362A (en) Digital signal processor
EP1098507A2 (en) Image processing apparatus
KR20220102824A (en) Semiconducor device for calculating non-linear function using a look-up table
JP2000183753A (en) Signal converter and signal conversion method
US20060159277A1 (en) Distortion device
JP2002246913A (en) Data processing device, data processing method and digital audio mixer
JPH07106883A (en) Digital sound volume adjustment device and digital mixing device
JPH07336174A (en) Digital agc device
JP2006114998A (en) Digital signal processing system
JPH08181555A (en) Digital automatic gain controller
JPH0870225A (en) Output characteristic setting device and coefficient setting device
JPH0563509A (en) Digital filter

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

122 Ep: pct application non-entry in european phase

Ref document number: 06748512

Country of ref document: EP

Kind code of ref document: A2