Three input split-adder

Abstract: An integrated circuit includes an adder (210) having a first adder circuit (220) for receiving a portion of the operands to be summed, along with corresponding carry-in inputs (250, 252). The first adder circuit provides a sum output (228) and carry-out outputs (254, 256). A second adder circuit (230) receives another portion of the operands to be summed, along with corresponding carry-in inputs (268, 270). Multiplexers (276, 278) between the first and second adder circuits determine whether the carry-in inputs to the second adder circuit are the same the carry-in inputs to the first adder circuit or whether the carry-in inputs to the second adder circuit are independent.

Description: Field of the Invention This invention relates to adders and more particularly to adders in which a split-add operation can be utilized to increase computational throughput. Background of the Invention Addition forms the basis of many processing operations including counting, subtraction, multiplication and filtering. A wide variety of adder circuits that add binary numbers provide an implementation with a trade-off between the speed of completing the addition operation and the amount of hardware, as measured by area required on an integrated circuit, to complete an addition operation. While three binary number representations are available, sign-magnitude, one's complement, and two's complement, computations are more efficient using the two's complement number representation. Adders can be used to accomplish subtraction by generating the two's complement of the subtrahend and adding the minuend. The two's complement of the subtrahend can be generated internal to the adder by providing the subtrahend in one's complement representation and adding one using the carry-in input to the adder. A split adder is an adder that is capable of operating in a non-split mode on operands having a relatively large number of bits, and in split mode is capable of operating as more than one adder on operands having relatively fewer bits. Split adders are employed to take advantage of existing hardware where a tradeoff between precision and the number of adders can be made. and to gain additional computational throughput without requiring additional hardware. Split-adders in which the most significant bit portion of two operands are added in a first portion of an adder, and the least significant bit portions of two operands are added in a second portion of an adder are known. Known split-adders, however, can not accommodate more than two operands as inputs. In JP52-155027 a pair of multi-input adders are described in which the carry-out outputs from one of the pair of adders are input into the second of the pair of adders. Summary of the Invention The present invention therefore provides an adder in accordance with claim 1. In accordance with the invention, an integrated circuit includes an adder having a first adder circuit for receiving a portion of the operands to be summed, along with corresponding carry-in inputs. The first adder circuit provides a sum output and carry-out outputs. A second adder circuit receives another portion of the operands to be summed, along with the corresponding carry-in inputs. Multiplexers between the first and second adder circuits determine whether the carry-in inputs to the second adder circuit are the same as the carry-in inputs to the first adder circuit or whether the carry-in inputs to the second adder circuit are independent. Brief Description of the Drawing Figure 1 is a schematic diagram of an illustrative embodiment of an adder in accordance with the present invention: Figure 2 is a schematic diagram of an alternate illustrative embodiment of an adder in accordance with the present invention, having separate carry-in inputs for each stage of split operation; and Figure 3 is a schematic diagram of yet another alternative illustrative embodiment of an adder in accordance with the present invention, illustrating more than two adders in the split mode. Detailed Description A schematic diagram of an illustrative embodiment of a three-input adder 10 capable of being operated in split-mode operation as more than one adder with multiplexing between the adders, where each of the adders in split mode operation has more than two operand inputs, is shown in Figure 1. Adder 10 may be fabricated as part of an integrated circuit, such as a microprocessor, microcontroller or digital signal processor. Adder 10 may be comprised of more than one multiple input adder, for example split adder 20 and split adder 30. The less significant bits of each of operands A, B and C are provided as inputs 22, 24 and 26 respectively to adder 20 operating as a three input adder. The more significant bits of each of operands A, B and C are provided as inputs 32, 34 and 36 respectively to adder 30 operating as a three-input adder. Each adder 20 and 30 receives as many carry-in inputs as it provides carry-out outputs. Typically the number of carry-in inputs and carry-out outputs is one less than the number of operands. The operands may be compressed from I to two inputs by an 1:2 compressor, not shown. See Computer Arithmetic Algorithms by I. Koren. Carry-in inputs 50 and 52 are provided to adder 20 and also as first inputs to respective multiplexers 60 and 58. Adder 20 operating as a three-input adder produces carry-out outputs 54 and 56 which provide, respectively, second inputs to multiplexers 60 and 58. A mode select signal 62 provides the carry select input to multiplexers 60 and 58. The carry select input takes on one of two states and determines which of the inputs to multiplexers 60 and 58 are selected as their respective outputs 70 and 68. Outputs 70 and 68 provide the carry-in inputs to three-input adder 30. Adder 20 operating as a three-input adder is a lower bit adder that receives inputs 22, 24 and 26 as well as carry-in inputs 50 and 52. Adder 20 provides a multiple bit sum 28 as an output that is the sum of the inputs. Adder 20 also provides carry-out outputs 54 and 56. Adder 30 is a higher bit adder that receives inputs 32, 34 and 36 as well as carry-in inputs 70 and 68. Adder 30 operating as a three-input adder provides a multiple bit sum 38 as an output that is the sum of the inputs. Adder 30 also provides carry-out outputs 72 and 74. Adders 20 and 30 may be any type of adder and may be operated as a single adder, or in a split-add mode as two independent adders, each with less precision than when operated as a single adder. In the single adder mode of operation, the lower order bits of each of the operands to be added are provided to adder 20 and the higher order bits of each of the operands to be added are provided to adder 30. In a preferred embodiment, each of adders 20 and 30 are capable of adding operands having the same number of bits, although the invention is not limited thereto. An example will be described in which three n-bit operands are added, with half of the bits (n/2 bits) of each operand provided to each adder, although the invention is not limited thereto. For example, input 22 can represent the low order n/2 bits of input A, with input 32 representing the high order n/2 bits of input A. Input 24 can represent the low order n/2 bits of input B, with input 34 representing the high order n/2 bits of input B. Similarly, input 26 can represent the low order n/2 bits of input C, with input 36 representing the high order n/2 bits of input C. In operation as a single adder, carry-in inputs 50 and 52 are provided to adder 20. For addition operations, carry-in inputs 50 and 52 are typically zero. Thus, the carry-out outputs 54 and 56 from adder 20 become the carry-in inputs 70 and 68 to adder 30. Adder 20 operating as a three input adder receives inputs 22, 24 and 26 as well as carry-in inputs 50 and 52. Adder 20 provides as outputs a multiple bit sum output 28 representing n/2 of the lower order bits in the sum and carry-out outputs 54 and 56. The carry-out outputs from adder 20 are provided, based on the state of mode select signal 62, through multiplexers 60 and 58 as outputs 70 and 68 which are carry-in inputs to adder 30. One skilled in the art would know how to generate a mode select signal having two states to accomplish the desired selection. Adder 30 provides a sum output representing n/2 high order bits in the sum and carry-out outputs 72 and 74. When m operands, each having n-bits, are added, the sum can have as many as [n+(m-1)] bits. Thus the sum of the operands provided to adders 20 and 30 is represented by the sum output 28 from adder 20, concatenated with the sum output 38 from adder 30. Carry-out outputs 72 and 74 are used to calculate the highest order bit of the summation. Continuing the above example, with adder 10 operating in split-adder operation, adder 20 is capable of adding three operands, with adder 30 being capable of also adding three independent operands, albeit operands in the split-adder operation can have a total of as many bits as operands added by adder 10 operated as a single adder. For example, in split-adder mode, the number of additions can be doubled by adders 20 and 30 operating independently of each other, where half of the precision of operating adders 20 and 30 as a single adder is required. In split adder operation, operand inputs 22, 24 and 26 as well as carry-in inputs 50 and 52 are provided to adder 20. Adder 20 provides a multiple bit sum 28 that is the sum of operands 22, 24 and 26, as well as carry-in inputs 50 and 52. Adder 20 also provides carry-out outputs 54 and 64 which may be used elsewhere in the system. Carry-out outputs 54 and 56 are used to determine whether an overflow has occurred and possibly determine the highest order bit of the summation. Mode select signal 62 is generated to have one of two states to select inputs 64 and 66 as outputs from multiplexers 60 and 58. One skilled in the art would know how to generate a mode select signal having two states to accomplish the desired selection. In this manner, inputs 64 and 66 provide the carry-in inputs 70 and 68 to adder 30. Operand inputs 32, 34 and 36 as well as carry-in inputs 70 and 68 are combined in adder 30 to provide multiple bit sum 38 that is the sum of the operand inputs and carry-in inputs. Adder 30 also provides carry-out outputs 72 and 74 which may be used elsewhere in the system. Carry-out outputs 72 and 74 are used to determine whether an overflow has occurred and possibly determine the highest order bit of the summation. An alternative embodiment adder 210 is shown in the schematic diagram of Figure 2. In adder 210, multiplexers 276 and 278 respectively are provided between carry-in input 250 and multiplexer 260 as well as between carry-input 252 and multiplexer 258. Multiplexers 276 and 278 permit carry-in inputs 282 and 284 to be provided to adder 230 operating as a three-input adder, independent of carry-in inputs 250 and 252, by select input 280 selecting as outputs from multiplexers 276 and 278 carry-in inputs 282 and 284. One skilled in the art would know how to generate a mode select signal having two states to accomplish the desired carry-in input selection. In addition, multiplexers 260 and 258 through carry-select input 262 select outputs 264 and 266 from multiplexers 276 and 278 as carry-in inputs 270 and 268 to adder 230 operating as a three-input adder. An alternative embodiment adder 310 is shown in the schematic diagram of Figure 3 in which adder 310 can be split into three adders. The adders need not have the same number of bits in each operand. Adders 320, 330 and 340 are similar to adders 20 and 30 illustrated in Figure 1 and described above. Adder 320 receives three multiple bit inputs 322, 324 and 326 as well as carry-in inputs 350 and 352. Adder 320 combines the inputs to produce a sum output 328 and carry-out outputs 354 and 356. Carry-out outputs 354 and 356 are passed by multiplexers 360 and 358 to be carry-in inputs 368 and 370 when select input 362 is in a first state corresponding to the single adder mode, and when select input 362 is in a second state corresponding to the split adder mode, carry-in inputs 350 and 352 are selected as the carry-inputs 368 and 370. Adder 330 operating as a three-input adder receives three multiple bit inputs 332, 334 and 336 as well as carry-in inputs 368 and 370. Adder 330 combines the inputs to produce a sum output 338 and carry-out outputs 372 and 374. Carry-out outputs 372 and 374 from three-input adder 330 are passed by multiplexers 376 and 378 to be carry-in inputs 386 and 388 when select input 380 is in a first state corresponding to the single adder mode, and when select input 380 is in a second state corresponding to the split adder mode, carry-in inputs 382 and 384 are selected as the carry-in inputs 386 and 388, respectively. Adder 340 operating as a three-input adder receives three multiple bit inputs 342, 344 and 346 as well as carry-in inputs 386 and 388. Adder 340 combines the inputs to produce a sum output 348 and carry-out outputs 390 and 392. Carry-out outputs 372 and 374 are passed by multiplexers 376 and 378 to be carry-in inputs 386 and 388 when select input 380 is in a first state corresponding to the single adder mode, and when select input 380 is in a second state, carry-in inputs 382 and 384 are selected as the carry-in inputs 386 and 388 to three input adder 340, independent of the carry-in inputs to adders 320 and 330. Select inputs 362 and 380 may operate as if the same signal were applied to each or different signals are applied to each. One skilled in the art would know how to generate one or more mode select signals having two states to accomplish the desired selection. In this manner, in single mode operation adder 310 includes adders 320, 330 and 340 operating as a single adder with carry-out outputs from adder 320 provided to adder 330 as carry-in inputs, and carry-out outputs from adder 330 are provided to adder 340 as carry-in inputs. The sum of the operands and carry-in inputs provided to adders 320, 330 and 340 is represented by the sum output 328 from adder 320 concatenated with the sum output 338 from adder 330 concatenated with the sum output 348 from adder 340. Carry-out outputs 390 and 392 from adder 340 are used to calculate the highest order bit in the summation. While the invention in various embodiments have been described as adding multiple inputs to form a sum output, the invention as claimed is not limited thereto. Based on the disclosure, one skilled in the art could subtract one or more operands from the operands or operand. This could be accomplished, for example, by presenting the operands to be subtracted to an adder in one's-complement form and setting a corresponding carry-in input to be a logic high. Various embodiments of the invention, in the single adder mode would have the carry-in input to the high order bit adder corresponding to the operand or operands to be subtracted set to a logic high. In the split adder mode of operation, through appropriate multiplexing, any of the operands could be subtracted from one or more of the other operands. The carry-in inputs to the high order bit adder need not be present when operands are to be added only.

Claims: An adder (10) comprising: a first adder circuit (20) for receiving as inputs a plurality, k, of operands (22, 24, 26), k being an integer at least three, the first adder circuit providing k-1 carry-out outputs (54, 56); a second adder circuit (30) for receiving as inputs a plurality, m , of operands (32, 34, 36), m being an integer at least three, and m-1 carry-inputs (68, 70), the second adder circuit providing as outputs a sum that is a sum (38) of the m inputs and the m-1 carry-in inputs, the adder (10) being characterised by the first adder circuit (20) additionally receiving as inputs k -1 carry-in inputs (50, 52) whereby the first adder circuit provides as outputs a sum (28) that is a sum of the k inputs and the k -1 carry-in inputs, and the adder further comprising k -1 first multiplexers (58, 60), each of the k -1 first multiplexers being adapted to receive as inputs a respective one of the k -1 carry-in inputs (50, 52) to the first adder circuit as a first input and a respective one of the k -1 carry-out outputs (54 or 56) from the first adder circuit as a second input, each of the k -1 first multiplexers (58, 60) receiving a respective first select input (62) for selecting one of the first multiplexer inputs as a respective first multiplexer output; such that when the first select input takes on a first state the carry-out outputs from the first adder circuit are provided as carry-in inputs to the second adder circuit and the first adder circuit and second adder circuit operate as a single adder, and when the first select input takes on a second state. the first adder circuit and second adder circuits operate in split mode as independent adders. An adder as recited in claim 1, further characterised in that the number of inputs k to the first adder circuit (20) is the same as the number of inputs m to the second adder circuit (30). An adder as recited in claim 1, further characterised in that the operands are multiple-bit operands, producing a sum that is a multiple-bit sum. An adder as recited in claim 3, further characterised in that the number of bits in the operands (22, 24, 26) provided as inputs to the first adder circuit (20) is the same as the number of bits in the operands (32, 34, 36) provided as inputs to the second adder circuit (30). An adder (210) as recited in claim 1, further characterised by k-1 second multiplexers (276, 278), each of the second multiplexers adapted to receive as a first input one of the k-1 carry-in inputs (250 or 252) and as a second inpuit (282 or 284) a further carry-in input, each second multiplexer (276, 278) also adapted to receive a second select input (280) for selecting one of the second multiplexer inputs as a respective additional multiplexer output (264, 266), the k-1 second multiplexer outputs (264, 266) provided as the respective second inputs to the k-1 multiplexers (260, 258). An adder as recited in claim 1, further characterised in that the second adder circuit (30) further provides m-1 carry-out outputs (372, 374). An adder as recited in claim 6, further characterised by comprising: m-1 third multiplexers (376, 378), each of the m-1 third multiplexers adapted to receive as inputs a respective one of the m-1 carry outputs from the second adder circuit as a first input and a respective additional carry-in input (382, 384) as a second input, each of the m-1 third multiplexers receiving a respective third select input (380) for selecting one of the third multiplexer inputs as a respective third multiplexer output (386, 388); and a third adder circuit (340) for receiving as inputs a plurality, n of operands (342, 344, 346), n being an integer greater than two, and n- 1 carry-in inputs (386, 388), the third adder circuit providing as an output (348) a sum that is a sum of the n multiple-bit inputs (342, 344, 346) and the n-1 carry-in inputs (386, 388). An adder as recited in any of claims 1 through 7, further characterised in that the adder is fabricated as an integrated circuit.

Inventors: MORGAN EDWARD CLAYTON, MORGAN, EDWARD CLAYTON
Applicants: AGERE SYST OPTOELECTRONICS, AGERE SYSTEMS OPTOELECTRONICS GUARDIAN CORPORATION
Application year: 2000
Main classification: G06F7
IPC codes: G06F7