Claims
- 1. A method of generating a zero detect flag at the output of an adder adding a first vector a(i) and a second vector b(i) to gerprate a third vector k(i), which is a sum of said first and second vectors wherein i is an integer between 0 and n-1 indicating a bit number and n is the number of bits in the vector, the method comprising the steps of:
- generating a fourth vector v(i) vector in accordance with the formula:
- v(i)=(p(i)k(i)g(i);
- wherein p(i) is the carry propagation vector p(i)=a(i).sym.b(i), and g(i) is the carry generation vector a(i)b(i);
- generating a fifth vector w(i) in accordance with the formula:
- w(i)=(p(i+1).sym.k(1+i);
- generating a sixth vector z(i) in accordance with the formula:
- z(i)=v(i-1).sym.w(i-1);
- and adding bits of vector z(i) together bit by bit to obtain a zero detection flag z.
- 2. The method of claim 1 wherein said steps of generating and adding are performed in logic.
- 3. The method of claim 2 wherein the logic comprises a portion of a multiply-accumulate unit.
- 4. The method of claim 3 wherein the multiply-accumulate unit forms a part of an audio data processing system.
- 5. A method for generating a carry propagation function in response to the received vectors a(i) and b(i), where i is an integer between 0 and n-1 indicating a bit number and n is the number of bits in the vector, the method comprising the steps of:
- generating a vector p2(i) in accordance with the formula:
- p2(i)=a(i)b(i);
- generating a vector v(i) in accordance with the formula:
- v(i)=p2(i)k(i)g(i)where k(i)=a(i)+b(i) is the sum of vectors a(i)+b(i) and g(i) is a carry generation vector, g(i)=a(i)b(i);
- generating a vector w(i) in accordance with the formula:
- w(i)=g(1+i)p2(i+1).sym.k(1+i);
- generating a zero detection vector in accordance with the formula:
- z(i)=v(i-1).sym.w(i-1);
- adding the bits of vector z(i) together bit by bit to obtain a zero detection result z for vector k(i);
- if the detection result is a zero, performing the substeps of:
- generating a vector VZ in accordance with the formula:
- vz(i)=2p(i)g(i)=p2(i);
- and
- generating a vector wz(i) in accordance with the formula:
- wz(i)=g(1+i)p2(i1);
- and
- if the detection result is a one, performing the substeps of:
- generating a vector v0(i) in accordance with the formula:
- v0(i)=g(i);
- and
- generating a vector w0(i) in accordance with the formula:
- w0(i)=g(1+i)p2(i+1).
- 6.
- 6. The method of claim 5 wherein the propagation function is generated within a multiply-accumulate unit.
- 7. The method of claim 6 wherein the multiply-accumulate unit comprises a portion of a digital signal processor.
- 8. The method of claim 7 wherein the digital signal processor comprises a portion of an audio decoder.
CROSS-REFERENCE TO RELATED APPLICATION
The following co-pending and co-assigned application contains related information and is hereby incorporated by reference: Ser. No. 08/970,979, entitled "DIGITAL AUDIO DECODING CIRCUITRY, METHODS AND SYSTEMS" filed Nov. 14, 1997;
US Referenced Citations (4)
Number |
Name |
Date |
Kind |
5270955 |
Bosshart et al. |
Dec 1993 |
|
5561619 |
Watanabe et al. |
Oct 1996 |
|
5581496 |
Lai et al. |
Dec 1996 |
|
5586069 |
Dockers |
Dec 1996 |
|