Claims
- 1. A zero-flag generator for digital adder with n-bits of input data including a one-bit input carry signal for producing output sum signal and an output carry signal comprising:
- means for detecting said output sum no later than the production of said sum from said adder, comprising:
- a plurality of logic combinations of only Exclusive-OR (XOR) gates and AND gates: having individual inputs for each of said bits which are the same as the individual inputs for the corresponding bits of said adder for outputting the logic combination signals XORi and ANDi, where i=0,1, . . . ,n-1, for each of said bits, and
- a decoder for decoding the outputs of said logic gate combinations with an carry to generate a zero-flag in accordance to the number of combinations of said input carry and said logic combination signals for said zero-flag to be zero.
- 2. A zero-flag generator as described in claim 1, where each of said logic gate combinations comprises only an XOR gate and an AND gate.
- 3. A zero-flag generator as described in claim 2, wherein logic gate combinations are implemented with gate arrays.
- 4. A zero-flag generator as described in claim 2, wherein said decoder decoding outputs of said logic gate combinations is a programmable logic array (PLA).
- 5. A zero-flag generator as described in claim 2, wherein said conditions for said zero-flag to be zero with addends a.sub.i and augends b.sub.i (where i=0,1,2, . . . ,n-1) and the carry signal to the least significant bit CIN are:
- case 1: XOR.sub.i =1 (i=0.1, . . . ,n-1), AND.sub.i =0 (i=0,1, . . . ,n-1),CIN=1;
- case 2: XOR.sub.i =1 (i=1,2, . . . ,n-1), AND.sub.i =1 (i=0), CIN=0, XOR.sub.i =0, (i=0), AND.sub.i =0 (i=1,2, . . . ,n-1);
- case 3: XOR.sub.i =1 (i=2,3, . . . ,n-1), AND.sub.i =1 (i=1), CIN=0, XOR.sub.i =0 (i=0,1), AND.sub.i =0 (i=0,2,3, . . . ,n-1);
- case 4: XOR.sub.i =1 (i=3,4, . . . ,n-1), AND.sub.i =1 (i=2), CIN=0, XOR.sub.i =0 (i=0,1,2), AND.sub.i =0 (i=0,1,3, . . . ,n-1);
- case n: XOR.sub.i =1 (i=n-1), AND.sub.i =1 (i=n-2), CIN=0, XOR.sub.i =0 (i=0,1, . . . ,n-2), AND.sub.i =0 (i0,1, . . . ,n-3,n-1);
- case n+1: XOR.sub.i =0 (i=0,1, . . . ,n-1), AND.sub.i =1 (i=n-1), CIN=0; . . .
- case n+2: XOR.sub.i =0 (i=0,1, . . . ,n-1), AND.sub.i =0 (i=0,1, . . . ,n-1), CIN=0.
- 6. A zero-flag generator as described in claim 5, wherein said different in claim 6 are decoded with a PLA using the different conditions for zero-flag of said XOR gates and said AND gates in each case as inputs to the AND planes of said PLA and output of the OR plane of said PLA as said zero-flag signal.
Parent Case Info
This application is a continuation of application Ser. No. 07/915,289, filed Jul. 20, 1992, abandoned.
US Referenced Citations (4)
Number |
Name |
Date |
Kind |
3983382 |
Weinberger |
Sep 1976 |
|
4878189 |
Kawada |
Oct 1989 |
|
4947359 |
Vassiliadis et al. |
Aug 1990 |
|
5020016 |
Nakano et al. |
May 1991 |
|
Continuations (1)
|
Number |
Date |
Country |
Parent |
915289 |
Jul 1992 |
|