Programmable logic array adder

Information

  • Patent Grant
  • 4348736
  • Patent Number
    4,348,736
  • Date Filed
    Tuesday, July 22, 1980
    44 years ago
  • Date Issued
    Tuesday, September 7, 1982
    42 years ago
Abstract
This specification discloses a multi digit binary adder embodied in programmable logic arrays (PLAs). The particular programmable logic array used here has a separate two-bit decoder for receiving each like order pairs of digits A.sub.i, B.sub.i of two n digit binary numbers A.sub.0, A.sub.1 . . . A.sub.n-1 and B.sub.0, B.sub.1 . . . B.sub.n-1 plus a carry C.sub.in. The decoders generate an output signal called a minterm on a different line for each of the four possible combinations A.sub.i .multidot.B.sub.i, A.sub.i .multidot.B.sub.i, A.sub.i .multidot.B.sub.i and A.sub.i .multidot.B.sub.i of the true and complement of each pair. The minterms from the decoders are fed to an array called the product term generator or AND array which generates product termsf.sub.p =f.sub.0 (A.sub.0,B.sub.0).multidot.f.sub.1 (A.sub.1,B.sub.1).multidot. . . . .multidot.f.sub.n-1 (A.sub.n-1,B.sub.n-1).multidot.f.sub.n (C.sub.in)The product terms are fed to a second array called a sums of product terms generator or OR array that sums product terms f.sub.p. A series of latches is last in the sequence of logic elements making up the PLA. These latches each perform an Exclusive-OR function to generate a sum bit S.sub.i that is an Exclusive-OR of two functions supplied by the OR array to the inputs of the latches to generate a sum S.sub.0, S.sub.1 . . . S.sub.n-1 plus a carry C.sub.out for the adder at the output of the PLA. The adder is optimized for a PLA with latches that perform an Exclusive-OR function and is more efficient than known adders embodied in PLAs, in which the output latches perform an AND function.
Description

BACKGROUND OF THE INVENTION
The present invention relates to adders and more particularly relates to adders which are embodied in programmable logic arrays.
The performing of logic in an array of identical circuit elements each located at a unique intersection of an input and output line in a grid of intersecting input and output lines is well known. There are many such arrangements of arrays for performing logic. One of them is called a programmable logic array (PLA). An example of one type of PLA can be seen in Cox et al U.S. Pat. No. 3,987,287. In this PLA input decoders generate minterms and feed them into a first array called a product term generator or an AND array to generate product terms which are functions of the inputs to the decoders. These product terms are fed to a second array called a sums of product terms generator or OR array so as to increase the number of functions that can be performed using these product terms without geometrically increasing the size of the AND array needed to perform these functions. The output of the OR array is fed to latches so that both sequential and combinatorial logic can be performed using this PLA.
The logical function performed by these latches is usually an AND function, as shown in co-pending application Ser. No. 866,689 filed Jan. 3, 1978, entitled, "Programmable Logic Array Adder" now issued into U.S. Pat. No. 4,157,590. However, in certain PLAs the latches perform an Ex-OR function. Pages 3653 to 3655 of the May 1975 issue of the IBM Technical Disclosure Bulletin describe an adder which is embodied in PLAs of this type. While such an adder is useful, it has no advantage over an adder embodied in a programmable logic array in which the latches performed an AND function.
THE INVENTION
In accordance with the present invention a new carry lookahead adder is provided using programmable logic arrays with output latches that perform an Ex-OR function. This adder is more efficient than presently known adders embodied in PLAs having latches that perform AND functions. This adder has means for feeding every line order set of digits A.sub.i, B.sub.i of two multi digit numbers A.sub.0, A.sub.1, . . . A.sub.n-1 and B.sub.0, B.sub.1 . . . B.sub.n-1 into a separate two bit decoder of a PLA and including circuit means in the product term and sum of product term generating arrays to generate any order sum digit S.sub.i of a binary sum of two numbers S.sub.0, S.sub.1 . . . S.sub.n-1 as the output of one of the latches of the PLA in accordance with either of the following two formulas: ##STR1##
Other improvements are in the generating of the carry out digit and in the arrangement of the strings of sum digits to produce the most efficient use of product terms. Therefore it is an object of the present invention to generate a new adder for embodiment in programmable logic array structures.
It is another object of the invention to generate a new adder for use in a programmable logic array structure that has latches that perform an Ex-OR function.
It is a further object of the invention to provide an array logic adder which requires less product terms than known array logic adders.





THE DRAWINGS
These and other objects of the invention will be apparent from the particular description of the preferred embodiment of the invention of which:
FIG. 1 is a schematic representation of an adder;
FIG. 2 is a diagram showing an adder in accordance with the present invention;
FIG. 3 is a table showing logical functions that can be performed in the AND array of a programmable logic array being fed by two-bit decoders;
FIG. 4 is a diagram showing the arrangement of strings of product terms in adders in accordance with the present invention fabricated in a conventional PLA arrangement;
FIG. 5 is a block diagram comparing two input and four input special decoders;
FIGS. 6A and 6B are diagrams of an adder arranged in accordance with the present invention where four and five bit decoders are used to accept the input terms;
FIG. 7 is a diagram illustrating string sizes for the decoder of FIG. 6;
FIG. 8 is a diagram of a decoder that can be used with the adder of FIG. 6;
FIG. 9 is a diagram of an AND array using a reduced number of elements in the adder of FIG. 6;
FIG. 10 is a diagram of a special decoder for low order bit positions in the adder of FIG. 6;
FIG. 11 is a diagram of a special decoder for positions 12 and 13 of the adder of FIG. 6, and;
FIGS. 12A and 12B are diagrams of a compressed 16 bit adder.





EMBODIMENT OF THE INVENTION
FIG. 1 shows two n-bit numbers A.sub.0 A.sub.1 . . . A.sub.n-1 and B.sub.0 B.sub.1 . . . B.sub.n-1 being added together with an input carry C.sub.in, by circuitry to produce an n-bit sum S.sub.0 S.sub.1 . . . S.sub.n-1 and an output carry C.sub.out. The circuitry 8 performing the adder function is in the form of programmable logic arrays (PLAs) shown schematically in FIG. 2.
In FIG. 2 corresponding bits of two 8-bit numbers A.sub.0, A.sub.1 . . . A.sub.7 and B.sub.0, B.sub.1 . . . B.sub.7 are fed in pairs to 2-bit decoders 10. The decoders 10 each generate a pulse on a different one of four output lines for each of the four possible combinations of the true and complement of the input bits A.sub.i and B.sub.i supplied to them. Each output line of any decoder 10 is connected to a separate input line of an AND array 12. The blocks 14 in FIG. 2 represent the intersection of each set of four input lines from one decoder 10 with an output line 16. Within each block 14 there are four possible NOR gate connections. These NOR gates are used to connect any or all of the input lines of the set to the output line 16 passing through the block 14. Selective connection of the input lines to the output line allows one of 16 different logical functions to be performed in any block on the two inputs A.sub. i and B.sub.i to one of the decoders 10 and placed on that output line by the combination of the decoders and the NOR gates within one of the blocks 14.
The different logical functions are shown in the table of FIG. 3. In the table, each of the four columns represents one of the input lnes in a four input line set of the AND array. The heading on the columns indicates the combination of true and/or complements of the inputs A.sub.i and B.sub.i fed to the decoder 10 connected to that set of input lines which produces a pulse on the input line represented by the column. The legend on the sixteen rows of the table are all the possible functions that can be performed in the two inputs A.sub.i and B.sub.i to the decoder. The squares formed by the intersection of a row and column each represents an intersection between the input line represented by the column and the output line passing through the block. The number 1 in any square indicates there must be a connection between the input line and the output line at that intersection to generate the function indicated by the legend for that row while the number 0 in the box indicates that there must be no connection to generate that function. Of the 16 possible functions only 6 are of interest in the performance of addition in accordance with the present invention. These are marked G.sub.i ; G.sub.i ; P.sub.i ; P.sub.i ; H.sub.i and H.sub.i in FIG. 3. Performing logic operations using arrays and 2-bit decoders in this manner is well known and can be found in Cox et al U.S. Pat. No. 3,987,287, issued Oct. 19, 1976.
Now referring solely to FIG. 2, the row of the AND array represents a product term. For example, row 3 in FIG. 2 contains the product term H.sub.6 G.sub.7, where H.sub.6 is a function of the inputs (A.sub.6, B.sub.6) and G.sub.7 is a function of (A.sub.7, B.sub.7). A blank in any box 14 represents a "don't care" condition in the generation of the product term. The output line 16 for each row of the AND array is connected to an input line of an OR array 18. Each box 20 in the OR array represents the intersection of one of the input lines of the OR array with one of the output lines of the OR array. A 1 in any one box indicates a connection in the form of a NOR circuit between the input line and the output line at that intersection. An empty box 20 means there is no connection between the intersection of input and output lines represented by that particular box. Thus, each column of boxes 20 in the OR array 18 represents the OR of sum of the product terms in the AND array connected to the output line by the NOR circuits as denoted by the 1's in the boxes of the column. For example, the left-most column of the OR array represents the OR of the product terms shown in rows 23 through 25.
Pairs of adjacent OR columns are X-ORed into polarity-hold latches 22. The outputs of the Exclusive-OR circuits 22 are the outputs of the PLAs and the outputs of the adder. Thus, the output C.sub.out is the X-OR of the two left-most OR columns.
With this type of PLA, an adder design will now be developed, so that each output represents an X-OR of two functions, each function representing an OR of product terms. A product term will be an AND of functions of the individual bit position inputs to the adder, and the input carry.
Product term=f.sub.0 (AO,BO).multidot.f.sub.1 (A1,B1).multidot. . . . f.sub.n-1 (A.sub.n-1,B.sub.n-1).multidot.f.sub.n (C.sub.in) (1)
The functions performed on corresponding bits A.sub.i and B.sub.i of the n bit inputs to the adder by the decoders 10 and the NOR circuits in one of the boxes 14 in the AND array are: ##EQU1##
Using known carry-look ahead methods, any carry and its complement can be expressed as: ##EQU2##
A sum bit can be expressed as a function of the preceding carry and expanded to a function of some distant carry. ##EQU3## where G.sub.i+1.sup.j =carry-generate condition for bit group i+1 through j (high-to-low order)
H.sub.i+j.sup.j =strict carry-propagate condition (mutually exclusive with G.sub.i+1.sup.j)
GH.sub.i+1.sup.j =G.sub.i+1.sup.j +H.sub.i+1.sup.j =inclusive carry-propagate condition ##EQU4## Note that the product terms in the bottom half of the upper bracketed expression of equation (9), H.sub.i .multidot.G.sub.i+1, etc. are common with some of the product terms of equation (3). This means that the sum and carry of the same bit position share some product terms. Similarly for equations (8) and (4).
Equations (8) and (9) indicate that an intermediate carry can service a string of several succeeding (next higher-order) sum bits. Furthermore, only one polarity of the intermediate carry is needed. For example, given the positive-polarity intermediate carry, C.sub.i, of equation (3), the following three negative-polarity sum bits can be generated according to equation (8) as a function of C.sub.i. ##EQU5## However, in equation (12) the product term in right bracket H.sub.i-2 can be replaced with an existing product term for equation (11) namely, H.sub.i-2 .multidot.P.sub.i-1. In sums higher than S.sub.i-3 the successive H factors namely, H.sub.i-3, H.sub.i-4 and so on are also replaceable by product terms from preceding sums namely, H.sub.i-3 .multidot.H.sub.i-2 *.multidot.P.sub.i-1, H.sub.i-4 .multidot.H.sub.i-3 .multidot.H.sub.i-2 *.multidot.P.sub.i-1 and so on. Similarly for a positive string of sums H.sub.i-2 could be replaced by an existing product term H.sub.i-2 .multidot.G.sub.i-1, H.sub.i-3 could be replaced by H.sub.i-3 .multidot.H.sub.i-2 **.multidot.G.sub.i-1, etc. Note that the first sum S.sub.i-1 needs only one additional product term, H.sub.i-1. The second sum needs two additional product terms, H.sub.i-2 .multidot.P.sub.i-1 and H.sub.i-2 .multidot.P.sub.i-1. Because the negative polarity S.sub.i-1 was selected, the term H.sub.i-1 is shared between S.sub.i-1 and S.sub.i-2. The third sum needs four additional product terms, four in the left bracket. A fourth sum would take six additional product terms, the next one eight, then ten, etc. The total number of additional product terms needed by a string of K sum bits is:
1+2+4+6+ . . . +2(K-1)=K.sup.2 -K+1 (13)
To this number we add the additional product terms needed by the carry out of the high-order sum bit of the string, noting that this carry, C.sub.i-k, shares some of the product terms of the high-order sum of the string. The number of additional product terms needed by C.sub.i-k is:
(L+K+1)-(K-1)=L+2 (14)
where L=the number of low-order bit positions up to but not including the present string
(L+K+1)=the total number of product terms needed for C.sub.i-k.
(K-1)=the number of product terms C.sub.i-k shares with S.sub.i-k.
The total number of additional product terms, T, needed by the string of sums and its output carry is the sum of equations (13) and (14):
T=K.sup.2 -K+1+(L+2)=K.sup.2 -K+3+L (15)
Normalizing to the size of the string, K, we get: ##EQU6## The breakeven point for going to the next longer string occurs when T/K is equal for both K as well as (K+1). Therefore, ##EQU7## so that ##EQU8## and
L=K.sup.2 +K-3 (17)
The transition points at which it pays to go to the next larger string is given by equation (17) and listed in the following table: ##EQU9## In other words, after three low-order bit positions, the next string is equally efficient at 2 or 3. After nine bit positions, the next string size is equally efficient at 3 or 4, etc.
The span of bit positions covered by adjacent strings of the same size is: ##EQU10##
In other words, when we determine after L bit positions that the next string size can be increased from K to K+1, we can assign two such strings in sequence before a string of K+2 can be justified. The exception is the low-order string of 1 which will be described later. The optimal string assignment is therefore: 1 string of 1, 1 string of 2, followed by pairs of strings of next integer values (2 strings of 3, 2 strings of 4, etc.)
Note that the negative-polarity carry C.sub.i-k shares product terms with the high-order sum bit of string S.sub.i-k. Similarly the positive-polarity C.sub.i-k would share product terms with the high-order sum bit of the positive-polarity string S.sub.i-k. Opposite polarities do not share product terms. As a result, successive strings are of opposite polarity, noting that the negative-polarity sum bits are functions of a positive-polarity carry, and vice versa.
A further reduction in product terms is achieved with the high-order string. Here, the output carry of the string is C.sub.out, the output carry of the adder, which is expressed as an X-OR of two functions, using the highest-order intermediate carry already available, C.sub.j+1. ##EQU11##
For a positive-polarity high-order string, we get: ##EQU12## Note that only one additional product term is needed for C.sub.out (i.e., G.sub.0) or for C.sub.out (i.e., P.sub.0). The remaining product terms are shared with those of S.sub.0 or S.sub.0, respectively. Again, the H.sub.0, H.sub.1, etc. of the second bracket can be replaced by product terms already available in the sums of the string as described previously. Therefore, the total number of additional product terms needed for the high-order string of K is:
T.sub.high =K.sup.2 -K+2 (22)
A special low-order string of one in the low-order bit, using three product terms, H.sub.low .multidot.C.sub.in, H.sub.low .multidot.C.sub.in, and P.sub.low, are generated as follows:
S.sub.low ={H.sub.low .multidot.C.sub.in }V{H.sub.low .multidot.C.sub.in }(23)
C.sub.low =P.sub.low V{H.sub.low .multidot.C.sub.in } (24)
Alternatively, the complements may be used:
S.sub.low ={H.sub.low .multidot.C.sub.in }V{H.sub.low .multidot.C.sub.in }(25)
C.sub.low =G.sub.low V{H.sub.low .multidot.C.sub.in } (26)
For a low-order string of 2 or greater, the number of unique product terms includes the product term C.sub.in (or C.sub.in) plus the unique product terms normally required of a positive (negative) string of sums and its output carry.
The optimum low-order string size is one or two. This leads to the following empirical procedure for assigning string sizes: We begin with a low-order string of one (the smaller of the two optimal sizes), followed by a single string of two and pairs of strings of three, four, etc. If the bit positions of the adder are exhausted when the high-order string is equal to or one greater than the adjacent string, the first-pass string assignment is final. If the high-order string is less than the adjacent string, the latter becomes the new high-order string and the former high-order string is deemed a remainder to be absorbed by the intermediate strings as follows: First, the low-order string of 1 is increased to 2, the next string of 2 is increased to 3, the higher-order of the two strings of 3 is increased to 4, the higher-order of the next pair of intermediate strings is increased by one, etc., until the remainder is exhausted.
The following table illustrates the procedure for assigning optimum strings. The assignment is not necessarily unique. For some adder sizes other optima are possible. For example, the 8-bit adder of FIG. 7 can also be implemented with 25 product terms using string sizes 2, 3, 2, and 1, high-to-low order.
______________________________________First-pass String Assignment(Nos. are string sizes) Final String Assignment______________________________________ 5 4 4 3 3 2 1 5 5 4 4 3 3 2 1 no change5 5 5 4 4 3 3 2 1 + 1 5 4 4 3 3 2 1 5 4 4 3 3 2 2 + + 2 5 4 4 3 3 2 1 5 4 4 3 3 3 2 + + + 3 5 4 4 3 3 2 1 5 4 4 4 3 3 2 + + + + 4 5 4 4 3 3 2 1 5 5 4 4 3 3 2______________________________________ + above numbers marks strings to be increased by one. / through numbers marks remainder to be absorbed.
FIG. 4 illustrates the arrangement of strings and the product terms needed for 8, 16 and 32 bit adders.
Above is described a preferred embodiment of the invention. A number of modifications can be made in this embodiment without departing from the scope of the invention. For instance when the carry out is expanded in terms of a distant carry using the carry lookahead method such as in equation (3) the H's used in expanding may be replaced by P's. Similarly when the complement of the carry, C, is so expanded as in equation (4) the H's may be replaced by G's. These same rules hold for the carry expansion for the sum bits, S, in equations (8) and (9). This is because
G.sub.i +H.sub.i .multidot.G.sub.i+1 =G.sub.i +P.sub.i .multidot.G.sub.i+1
and
P.sub.i +H.sub.i .multidot.P.sub.i+1 =P.sub.i +G.sub.i .multidot.P.sub.i+1
In making such substitutions attention must be paid to the sharing of product terms and for this reason not all suitable H's are replaced in the equations. In equations (3) and (4) some of the high order H's would not be replaced to permit their sharing in the corresponding sum bit. Of course, in equations (8) and (9) the left-most H's in the product terms of sum bits can not be replaced because of lack of equivalence.
Further reduction in the number of product terms for an adder is obtained using 4-input or higher-input decoders while preserving the generality of the use of the PLA. A product term is not defined as the AND of functions of input groups, an input group comprising the inputs of a decoder. Using standard decoders, however results in a wider AND array and more costly decoding. For example, a 4-input decoder replacing two 2-input decoders doubles the number of decoder outputs from 8 to 16, an 8-input decoder replacing four 2-input decoders increases the number of decoder outputs from 16 to 256, etc. In the limit, a single decoder accepting all adder inputs becomes a conventional memory decoder, while each product term can represent any function of the decoder inputs without the need of an OR array. In short, the single decoder with the AND array comprise a complete ROM (read-only memory) whose outputs are any desired logic functions of the inputs.
Special decoders, however, permit more inputs per decoder without expanding the width of the AND array or at most only moderately expanding it. One type of special decoder produces elementary symmetric functions to take advantage of symmetry such as exists between the pair of adder inputs of a typical adder bit position. The decoder generates the unique values of the combined weights of its inputs. For example, two pairs of adder inputs of adjacent bit positions have relative weights of 2, 2, 1, and 1. They enter the special decoder which generates 7 elementary symmetric functions representing the combined input values ranging from 0 to 6. Any adder function of the 4 inputs can be generated from a combination of the 7 decoder outputs.
FIG. 5 compares 2-input and 4-input special decoders showing the generated outputs. It is noted that replacing a pair of 2-input special decoders with one 4-input special decoder increases the number of decoder outputs from 6 to 7. By contrast, with conventional decoders, the number of outputs doubles--from 8 to 16.
The width of the AND arry can be further reduced by customizing each decoder to produce only those functions that the product terms require, particularly for decoders with a large number of inputs. For example, an 8-input special decoder which accepts four adjacent pairs of adder inputs of relative weights 8, 8, 4, 4, 2, 2, 1, and 1, produces 31 elementary symmetric functions representing weights 0 through 30. However, the number of different functions of these inputs actually needed by the product terms of a 32-bit adder varies from 6 to 10. In other words, the width of the AND array is actually less for 8-input custom decoders than for decoders with fewer inputs. At the same time, the number of product terms is also reduced. The price for reducing the AND array in both dimensions is a set of more complex functions produced by the custom decoders.
A custom decoder is particularly useful for the low-order inputs with which the input carry may be combined into one decoder.
A 16-bit adder, shown in FIG. 6 will be used to demonstrate the effect of using 4- and 5-input decoders for adder designs. The equations defining this adder are as follows. ##EQU13##
A 5-input custom decoder is used for the inputs comprising the input carry, C.sub.in, and the two pairs of inputs to the low-order bit positions 14 and 15. The remaining decoders accept 4 inputs each, comprising pairs of inputs of adjacent bit positions.
Adder outputs are again grouped in strings of adjacent sum bits. The low-order string includes the two positive low-order sum bits. They exit directly from the custom 5-input decoder. A negative output carry from the string is also generated from the 5-input decoder as a single product term to help generate the next positive string of sum bits. Equations (27a), (27b), and (27c) express positive low-order string outputs for an n-bit adder.
S.sub.n-1 =H.sub.n-1 V C.sub.in (27a)
S.sub.n-2 =H.sub.n-2 V (G.sub.n-1 +P.sub.n-1 .multidot.C.sub.in) (27b)
C.sub.n-2 =P.sub.n-2 +G.sub.n-2 .multidot.P.sub.n-1 +G.sub.n-2 .multidot.G.sub.n-1 .multidot.C.sub.in (27c)
while equations (28a), (28b), and (28c) express negative low-order string outputs.
S.sub.n-1 =H.sub.n-1 V C.sub.in (28a)
S.sub.n-2 =H.sub.n-2 V (P.sub.n-1 +G.sub.n- .multidot.C.sub.in) (28b)
C.sub.n-2 =G.sub.n-2 +P.sub.n-2 .multidot.G.sub.n-1 +P.sub.n-2 .multidot.P.sub.n-1 .multidot.C.sub.in (28c)
A positive intermediate string is generated according to equation (29) and a negative string according to equation (30). ##EQU14##
(A single asterisk attached to the strict propagate function, H.sub.a.sup.a+1*, means that G.sub.a.sup.a+1 may be used as don't-care conditions to simplify H.sub.a.sup.a+1, e.g., GH.sub.a.sup.a+1 may be substituted for H.sub.a.sup.a+1. Similarly, a double asterisk, H.sub.a.sup.a+1**, means GH.sub.a.sup.a+1 may be used as don't-care conditions, e.g., G.sub.a.sup.a+1 may be substituted. The principle has already been applied to single-bit propagate functions where P or G were substituted for H, and is also extendable to multi-bit propagate functions.) The sum equations follow from equations (3) and (4) applied to 4-input decoders. The expression H.sub.i.sup.j normally represented by the sum of product terms H.sub.i +---+H.sub.j is actually represented by an equivalent sum of product terms already available in the left brackets of the sum bits.
The output carry of the string, equations (31) and (32) is of opposite polarity to the sums, so that the succeeding string of sums would continue the polarity of the present string of sums. Positive strings of sums are arbitrarily selected for the 16-bit adder of FIG. 6. ##EQU15##
When the string size exceeds 4, an alternative equation for the high-order sum bit of the intermediate string may be used, as in equations (33) and (34). ##EQU16##
The left bracket is one product term larger than that of equation (29) or (30), but the output carry of the string can share some of the product terms of the left bracket of the sum. The saving exceeds one product term for a string size greater than 4. However, the output carry of the string must be of the same polarity as the sum bit to enable sharing. In turn, succeeding strings would be of opposite polarity. It should also be noted that the output carry of the string using equation (31) or (32) should be modified to reflect this sharing. A shared product term will use H.sub.i .multidot.H.sub.i+1 * or H.sub.i .multidot.H.sub.i+1 ** instead of H.sub.i.sup.i+1* or H.sub.i.sup.i+1**, respectively, to reflect the fact that H.sub.i of the sum bit S.sub.i must remain intact without substitution.
For the high-order string, sum bits are generated as for an intermediate string, while the output carry is generated according to equations (35), (36), (37) or (38). ##EQU17##
For a high-order string of 2 or 4, no product term sharing of the left bracket of C.sub.out or C.sub.out and the left bracket of S.sub.0 or S.sub.0, is possible, so that the selected output carry can be of the same polarity as the high-order sum bit. Therefore, equation (35) or (37) is used with S.sub.0 or S.sub.0, respectively. For a high-order string of 6 or greater, such sharing becomes economical, so that equation (36) or (38) is used with S.sub.0 or S.sub.0, respectively, making the output carry of opposite polarity to that of the high-order sum bit.
String sizes are optimized in a manner similar to that used earlier but based on the following number of unique product terms per string. ##EQU18##
An empirical procedure for optimally assigning string sizes begins at the low end with two strings of 2, three strings of 4, followed by sets of four strings each of next higher even size. When the number of bit positions are exhausted after a string has been assigned according to this procedure, or after one additional string of the highest size already assigned, the string assignment is final. If the remaining high-order bits comprise a string less than the adjacent string already assigned, the latter becomes the high-order string and the remainder is absorbed by the preceding strings as follows: The high-order string of the low-order set of strings is increased by 2, the high-order string of the next set of strings is increased by 2, etc., until the remainder is absorbed. Table 5 illustrates the procedure.
______________________________________First-pass String Assignment(Nos. are string sizes) Final String Assignment______________________________________4 4 4 2 24 4 4 4 2 2 no change6 4 4 4 2 22/ 6 4 4 4 2 2 6 4 4 4 4 2++4/ 6 4 4 4 2 2 6 6 4 4 4 2______________________________________ + above numbers marks strings to be increased by 2 / through numbers marks remainder to be absorbed
FIG. 7 illustrates the relevant parameters for 8-bit, 16-bit and 32-bit adders, showing 13, 35, and 99 product terms used, respectively.
FIG. 8 illustrates the bit personalization for the various functions of a 4-bit special decoder. The decoder is an elementary symmetric function generator producing positive outputs and driving an AND array consisting of NORs. Note that a maximum of only six switching devices need to be provided for personalizing a function because the function requiring all seven columns to be connected is never used. It is assumed that a switching device located between two adjacent columns can be shared between the two columns. Also note that an elementary symmetric function is not connected if it is included in the desired function, corresponding to the rule for a conventional decoder with positive outputs driving an AND array consisting of NORs. If the AND array is implemented with ANDs the decoder should produce complement outputs.
Other expressions may be substituted for some of those in the AND array of FIG. 6 to reduce the number of device connections. For example, the complement of the inclusive 2-bit propagate function G.sub.i.sup.i+1 may be substituted for the strict propagate function H.sub.i.sup.i+1 without affecting the outputs of the adder. The substitution reduces the maximum number of connections in FIG. 8 from 6 to 4. Rearranging the outputs of the decoder permits reducing the number of devices that need to be provided, even assuming that a device can be shared only between its two adjacent columns. As shown in FIG. 9 only 4 devices are needed for bit positions 10 and 11, and 5 devices for bit positions 8 and 9, to personalize the respective functions.
The 5-input custom decoder for inputs, A.sub.14, B.sub.14, A.sub.15, B.sub.15, and C.sub.in, produces the two low-order sum bits directly, as well as the carry C.sub.14 driving the AND array, as shown in FIG. 10. The positive C.sub.14 is intended for the NOR implementation of the AND array in FIG. 6 where C.sub.14 is needed for several product terms. If the AND array is implemented with ANDs, the custom decoder should generate C.sub.14.
The width of the AND array reduces to 50 columns using the special decoders consisting of 7 elementary symmetric function generators with 7 columns each and the custom decoder with one column for the AND array.
If custom decoders replace the elementary symmetric function generators, the width of the AND array is further reduced. Moreover, still fewer devices are needed and only one device connection is made at the intersection of an AND array row with the outputs of a custom decoder. For example, FIG. 11 shows the custom decoder outputs for bit positions 12 and 13 of the 16-bit adder of FIG. 6, as well as the AND array personalization for the five unique functions the decoder must provide. Again, the decoder generates complement functions to drive a NOR implementation of the AND array. Based on the number of unique functions needed, the total width of the AND array of the 16-bit adder is reduced to 37.
The 16-bit dedicated PLA adder can be further compressed horizontally and vertically using schemes which eliminate array sections of unconnected devices such as described in Weinberger U.S. Pat. No. 3,975,623. It will be noted in FIG. 6 that the arrays are rather sparsely populated with entries (representing connected devices). For example, the first row contains entries only in the columns of the low-order decoder in the AND array and of the sum bits S.sub.12 and S.sub.13 in the OR array. FIG. 12 illustrates a compressed 16-bit adder. First, the OR array is split into a left and a right part to permit an AND array row to be shared by two product terms. The left and right product terms sharing a row are shown separated with a heavy vertical line. Second, OR array columns are also shared between pairs of outputs, the split in the column shown by a heavy horizontal line. Third, the inputs and outputs are arranged to enable large sections of unused ends of rows of columns to be truncated. The number of AND array rows is reduced to 22, while the combined number of columns is reduced to 57 made up of 10 columns for the left OR array, 8 for the right OR array, and 6+4+6+6+6+6+4+1 for the custom decoder outputs driving the AND array.
Using custom decoders, it is possible to continue the trade-off between decoder complexity and array size. For example, with 4 adder bit position inputs to a decoder, custom decoders of 8 and 9 inputs may be used. The 9-input decoder would be assigned to the low-order 4-bit positions plus the input carry C.sub.in. The decoder would generate the low-order 4 sum bits directly as well as the signal representing the carry out of the decoder inputs to drive the AND array.
When optimum string sizes are used, the number of product terms (and string sizes) needed for an 8-bit, 16-bit, and 32-bit adder is 6 (string sizes 4 and 9), 19 (string sizes 4,4,4, and 4) and 54 (string sizes 8,8,4,4,4, and 4), respectively. For the 32-bit adder the combined number of decoder outputs comprise only 52 columns. With folding, that makes use of two split OR arrays, the adder can be further reduced to 30 rows and 70 columns of which 52 are for the AND array and 18 for the OR arrays.
If carried to the limit in which all inputs to the adder enter a single custom decoder, the "decoder" becomes a custom designed adder without the need of arrays.
Therefore from the description of the preferred embodiment of the invention one skilled in the art will recognize a variety of applications for the invention and appropriate modifications within the scope of the claims.
Claims
  • 1. In a carry look ahead adder for the addition of two multi digit numbers A.sub.0, A.sub.i . . . A.sub.n-1 and B.sub.0, B.sub.1 . . . B.sub.n-1 (0 to n-1 high-to-low order) and an input carry digit C.sub.in to generate a multi digit binary sum S.sub.0, S.sub.1 . . . S.sub.n-1 and a carry out digit C.sub.out using programmable logic arrays each such programmable logic array including a plurality of multi bit input decoders feeding signals to a product term generating array which in turn feeds signals to a sum of product term generating array that supplies signals to Exclusive-OR circuits providing an Exclusive-OR function of two inputs, the improvement comprising:
  • means feeding like order digits A.sub.i, B.sub.i of the two multi digit numbers to the same multi bit input decoder; and
  • circuit means in the product term and sum of product term generating arrays to generate a sum digit S.sub.i as the output of one of the Exclusive-OR circuits in accordance with the following formula: ##EQU19##
  • 2. In a carry look ahead adder for the addition of two multi digit numbers A.sub.0, A.sub.1 . . . A.sub.n-1 and B.sub.0, B.sub.1 . . . B.sub.n-1 (0 to n-1 high-to-low order) and an input carry digit C.sub.in to generate a multi digit binary sum S.sub.0, S.sub.1 . . . S.sub.n-1 and a carry out digit C.sub.out using programmable logic arrays each such programmable logic array including a plurality of multi bit input decoders feeding signals to a product term generating array which in turn feeds signals to a sum of product term generating array that supplies signals to Exclusive-OR circuits providing an Exclusive-OR function of two inputs, the improvement comprising,
  • means feeding like order digits A.sub.i, B.sub.i of the two multi digit numbers to the same multi bit input decoder; and
  • circuit means in the product term and sum of product term generating arrays to generate a sum digit S.sub.i as the output of one of the Exclusive-OR circuits in accordance with the following formula: ##EQU20##
  • 3. In a carry look ahead adder for the addition of two multi digit numbers A.sub.0, A.sub.1 . . . A.sub.n-1 and B.sub.0, B.sub.1 . . . B.sub.n-1 (0 to n-1 high-to-low order) and an input carry digit C.sub.in to generate a multi digit binary sum S.sub.0, S.sub.1, . . . B.sub.n-1 and a carry out digit C.sub.out using programmable logic arrays each such programmable logic array including a plurality of two bit input decoders feeding signals to a product term generating array which in turn feeds signals to a sum of product term generating array that supplies signals to Exclusive-OR circuits providing an Exclusive-OR function of two inputs, the improvement comprising:
  • means feeding like order digits A.sub.i B.sub.i of the two multi digit numbers to the same two bit input decoder; and
  • circuit means in the product term and sum of product term generating arrays to generate an intermediate order sum digit S.sub.i as the output of one of the Exclusive-OR circuits in accordance with the following formula: ##EQU21##
  • 4. In a carry look ahead adder for the addition of two multi digit numbers A.sub.0, A.sub.1 . . . A.sub.n-1 and B.sub.0, B.sub.1 . . . B.sub.n-1 (0 to n-1 high-to-low order) and an input carry digit C.sub.in to generate a multi digit binary sum S.sub.0, S.sub.1 . . . S.sub.n-1 and a carry out digit C.sub.out using programmable logic arrays each such programmable logic array including a plurality of two bit input decoders feeding signals to a product term generating array which in turn feeds signals to a sum of product term generating array that supplies signals to Exclusive-OR circuits providing an Exclusive-OR function of two inputs, the improvement comprising:
  • means feeding like order digits A.sub.i, B.sub.i of the two multi digit numbers to the same two bit input decoder; and
  • circuit means in the product term and sum of product term generating arrays to generate any intermediate order sum digit S.sub.i as the output of one of the Exclusive-OR circuits in accordance with the following formula: ##EQU22##
  • 5. The adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays to generate any intermediate carry C.sub.i according to: ##EQU23##
  • 6. The adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays to generate any intermediate carry C.sub.i according to: ##EQU24##
  • 7. The adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays and exclusive OR circuits generating an output carry C.sub.out equal to: ##EQU25##
  • 8. The adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays and exclusive OR circuits generating an output carry C.sub.out equal to: ##EQU26##
  • 9. The adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays and exclusive OR circuits to generate succeeding sum bits S.sub.j from any intermediate carry C.sub.j+1 as follows: ##EQU27##
  • 10. The adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays and exclusive OR circuits to generate succeeding sum bits S.sub.j from any intermediate carry C.sub.j+l as follows: ##EQU28##
  • 11. The adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays for generating any particular intermediate string of sum bits S.sub.n-l-k, . . . S.sub.n-l-1 having a length set by formula:
  • l=K.sup.2 +K-3
  • where l=the number of low-order bits preceding said string, K=the number of bits in said string.
  • 12. The carry look ahead adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays and exclusive OR circuits generating the low-order carry and sum digits in accordance with the following formulas: ##EQU29##
  • 13. The carry look ahead adder of claim 3 or 4 including circuit means in the product term and sum of product term arrays and exclusive OR circuits generating the low-order carry and sum digits in accordance with the following formulas: ##EQU30##
RELATED APPLICATIONS

This is a continuation of co-pending patent application Ser. No. 948,720 filed Oct. 5, 1978 now abandoned and entitled, "Programmable Logic Array Adder" which in turn was a continuation-in-part of a co-pending application Ser. No. 866,688 now abandoned filed Jan. 3, 1978 and entitled, "Programmable Logic Array Adder".

US Referenced Citations (5)
Number Name Date Kind
3925652 Miller Dec 1975
3983538 Jones Sep 1976
3987287 Cox et al. Oct 1976
3993891 Beck et al. Nov 1976
4157590 Grice et al. Jun 1979
Non-Patent Literature Citations (1)
Entry
Brickman et al., "Programmable Logic Array One-Cycle Split Adder", IBM Tech. Disclosure Bulletin, vol. 17, No. 12, May 1975, pp. 3653-3655.
Continuations (1)
Number Date Country
Parent 948720 Oct 1978
Continuation in Parts (1)
Number Date Country
Parent 866688 Jan 1978