Abstract:
A multiplier formed as a single integrated circuit chip generates in consecutive clock cycles the single-precision partial products of multiple-precision operands. Provision of an on-chip temporary register and &#34;wrap-back&#34; path avoids transmitting and externally storing intermediate results so that no clock cycles are used solely for data-transfers or other &#34;overhead&#34;. Consecutive double-precision multiplications can be performed concurrently so that complete quadruple-precision products are generated every four cycles.

Description:
CROSS-REFERENCE TO CO-PENDING APPLICATION 
     Related, co-pending application of particular interest to the present invention is U.S. Patent Application Ser. No. 747,073 filed 06/19/85 on behalf of Bernard J. New and Timothy J. Flaherty entitled &#34;Parallel Multiplier Array with Foreshortened Sign Extension&#34;, now U.S. Pat. No. 4,748,582, which description is incorporated herein. 
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     This invention relates to digital electronic multiplier circuits, and more particularly, to a monolithic integrated circuit multiplier, having an on-chip pipeline register and an on-chip wrap-back data path, capable of generating at each clock cycle a single-precision portion of the extended-precision product of the multiple-precision operands. 
     2. Description of Prior Art 
     Typically, arithmetic operations are performed by an integrated circuit arithmetic-logic unit (ALU) having only single-precision capability. Multiple-precision operations are performed by having the ALU repeatedly perform single-precision operations on suitably scaled single-precision operands. Temporary storage of the partial results is provided by registers external to the ALU chip. Scaling operations are also typically performed by external circuitry. Such off-chip data-transfers and the limited, single-precision capability of the ALU require a large number of ALU clock cycles to perform an extended-precision multiplication involving double-precision operands. 
     In addition to slowness, provision in the prior art of external registers and off-chip data paths requires a large number of chips which must be interconnected during board manufacture. This results in larger design and assembly costs, lower reliability, and larger space requirements, than would be the case of a single chip capable of performing extended-precision multiplication. 
     Interest in multiple-precision arithmetic operations has recently been intensified by the need to efficiently perform such operations in a variety of digital signal processing applications such as digital filtering and fast fourier transformations. In addition, the Institute of Electrical and Electronic Engineers (IEEE) has announced a draft standard 10.1 (P754) for 53-bit mantissa double-precision numbers. However, even these important developments do not warrant the use of dedicated central processing units (CPUs) to perform the extended-precision operations. Accordingly, there is an unmet need for a cost-effective, efficient extended-precision multiplier. 
     SUMMARY OF THE INVENTION 
     A monolithic intergrated circuit extended-precision multiplier capable of generating at each clock cycle a single-precision partial-product of multiple-precision operands is provided by the instant invention. An on-chip pipeline (temporary-result) register and an on-chip &#34;wrap-back&#34; path avoids the need for external storage of temporary results or for any off-chip intermediate data transfers. The self-contained multiplier circuit provided by the instant invention can generate in four consecutive clock cycles the four single-precision words comprising the complete product of two double-precision operands. Provision of the temporary register allows initiation of a second multiple-precision multiplication concurrently with the processing of the present multiplication so that a useful result is generated at every clock cycle of the multiplier with no clock cycles being used solely for data-transfers or other &#34;overhead&#34; operations. Accordingly, the multiplier of the instant invention wastes no clock cycles and realizes a very high throughput. 
     In an illustrative embodiment, a multiplier with a clock cycle of 50 nanoseconds capable of processing 64-bit double-precision operands is provided by the instant invention. Thus a 32-bit single-precision partial product word is generated every 50 nanoseconds and the entire 128-bit product is generated in 200 nanoseconds. A 32-×32-bit multiplier array operates on the 32 most-significant bit portion and the 32 least-significant bit portion of the operands which are stored in on-chip 32-bit registers. 
     The least-significant single-precision product word is first formed and stored in the temporary register to provide a two clock-cycle pipeline delay so that the product words remaining from the preceding multiplication can be generated before generation of the product words for the current multiplication. The single-precision &#34;cross-product&#34; words are formed next and subjected to a single clock cycle pipeline delay and are generated following the least-significant product word. The most-significant single-precision product word is last formed and stored in the temporary register to provide a two clock-cycle pipeline delay while the &#34;cross-product&#34; words are being generated and is last generated during the seventh clock cycle following application of the least-significant portions of the operands. However, since these operands were applied concurrently with the generation of the first &#34;cross-product&#34; word from the preceding multiplication, a partial product word is generated at every clock cycle with no interruptions. 
     Multiplexers are provided on the multiplicand and multiplier data paths as well as on the product data path so that the multiple-precision operands and product may be transferred onto and off the chip in 32-bit words. 
    
    
     BRIEF DESCRIPTION OF THE DRAWING 
     FIG. 1 is a functional block diagram of an extended-precision parallel multiplier according to the instant invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     A 32-×32-bit parallel multiplier 10 according to the instant invention is shown in functional block diagram form in FIG. 1. A set of thirty-two input terminals DATA --  IN --  X 0-31  receives a set of signals representing either the least-significant or most-significant portion of the 64-bit multiplicand word which are conducted to an XA register (XA --  REG) 102 via a 32-conductor data bus 104 and to an XB register (XB REG) 106 via a 32-bit conductor data bus 108. (For convenient notation, in the drawings there are many data paths near which there are numbers enclosed by parentheses. These enclosed numbers indicate the width of the adjacent data path, or the number of signals which can be transferred in parallel on the data path. The input control IPC and various other control blocks, while not shown in FIG. 1, nor is their design and operation described in detail herein, are well-known to those skilled in the art.) XA --  REG 102 and XB --  REG 106 receive a control signal from an input control (IPC), not shown, which causes the thirty-two signals applied thereto to be stored in the register. In this manner, the 32 least-significant bits of the multiplicand word are applied first to the DATA --  IN --  X 0-31  terminals of multiplier 10 and stored in the XA --  REG 102 and then the 32-most-significant bits of the multiplicand word are applied to the DATA --  IN --  X 0-31  and stored in the XB --  REG 106. 
     An X multiplexer (X --  MUX) 110 receives the 32-bit contents of the XA --  REG 102 via a 32-bit conductor data bus 112, the 32-bit contents of the XB --  REG 106 via a 32-conductor data bus 114, and the signals applied to the DATA --  IN --  X 0-31  terminals via a 32-conductor data bus 116. The latter being an alternative &#34;feed-through&#34; data path which can be selected by the control signal received by the X --  MUX 110. The X --  MUX 110 receives a control signal from the IPC which causes one of the thirty-two signals conducted on data bus 112, 114 or 116 to be generated on a 32-conductor data bus 118 to a 32-×32-bit multiplier array 120. 
     A set of 32-conductor data busses 134, 138, 142, 144, 146 and 148, multiplexer Y --  MUX 140, and registers YA --REG  132 and YB --  REG 136 is provided to store and transmit the least-significant and most-significant portion of the 64-bit multiplier word applied at a set of thirty-two input terminals DATA --  IN --Y   0-31  to the 32-×32-bit parallel multiplier 10. These elements, as illustrated in FIG. 1, are interconnected and operate in the same manner as the busses, multiplexers and registers described above in connection with the reception, storage and transmission of the 64-bit multiplicand word. In this manner the least- or most-significant 32-bit portion of the multiplier word can be conducted via bus 148 to the 32-×32-bit multiplier array 120. 
     The 32-×32-bit multiplier array 120 is the subject of a related, co-pending application U.S. Ser. No. 747,073 entitled &#34;Parallel Multiplier Array with Foreshortened Sign Extension,&#34;  filed 06/19/85 on behalf of Bernard J. New and Timothy J. Flaherty and assigned to the assignee of the instant application. The multiplier array 120 generates on a 64-conductor data bus 150 the 64-bit partial product word of the 32-bit multiplicand word present on the data bus 118 and the 32-bit multiplier word present on the data bus 148. 
     A 67-bit partial product adder 152 receives at a first input the 64-bit product via the data bus 150. A 67-bit word is conducted to a second input of adder 152 via a 67-conductor data-bus 154 from a multiplexer (MUX) 156. MUX 156 receives a control signal from a control block, not shown, which causes the MUX 156 to select either the 67-bit word conducted on an internal &#34;wrap-back&#34; path via a 67-conductor bus 158 or the 67-bit word conducted on the wrap-back path right-shifted by thirty-two bit positions by a 32-bit shifter 160 and conducted to MUX 156 via bus 162 with thirty-four leading sign-extended bits appended. Alternatively, a 67-bit word consisting of all ZERO&#39;s may be selected by the control signal to cause MUX 156 to apply an all-ZERO word to the second input of adder 152 via bus 154. 
     In this manner, the 67-bit partial-product adder 152 generates on a 67-conductor data bus 164 a 67-bit partial product word formed from the sum of the 64-bit product word generated by the multiplier array 120 and the contents of a 67-bit product register (P --  REG) 166 which receives and stores the most-recently generated partial product via data bus 164, stores the same, and generates on the wrap-back path data bus 158 the 67-bit word stored therein. The 67-bit contents of the P-register 166 may be down-scaled by a factor of 2 32  by the 32-bit shifter 160, as required, before addition to the 64-bit product word as will be described below in connection with Table II. 
     The 67-bit contents of the P-register 166 is also conducted to a first input of an output multiplexer (OUT --  MUX) 168 via a 67-conductor data bus 170. The contents of the least-significant 32 bit positions and the next most-significant 32 bit positions of the P --  REG 166 are conducted to a first and a second set of inputs, respectively, of a temporary multiplexer (T --  MUX) 172 via a 32-conductor data bus 173a and a 32-conductor data bus 173b, respectively. A 32-bit temporary register (T --  REG) 174 connected to the T --  MUX 172 via a 32-conductor data bus 175 receives either the 32 least-significant bit contents of the P-register 166 or the 32 next most-significant bit contents of the P-register 166, respectively, in response to T select (T --  SEL) and format adjust (FA) signals applied to input terminals of multiplier 10 and conducted to the T --  MUX 172, in accordance with Table I, below. The 32-bit contents of the T-register 174 are conducted via a 32-conductor data bus 176 to a second input of the OUT --  MUX 168. At a third input of the OUT --  MUX 168, the 67-bit partial product word generated by the adder 152 is applied via a 67-conductor bus 178. 
     
                       TABLE I______________________________________Source Selection for the ith Bit Position of T REG 174T SEL    FA      Source (via T MUX 172)______________________________________LOW      LOW     Bit Position i-1 of P --REG 166LOW      HIGH    Bit Position i of P --REG 166HIGH     LOW     Bit Position i+ 31 of P --REG 166HIGH     HIGH    Bit Position i+ 32 of P --REG 166______________________________________ 
    
     The T --  REG 174 also receives an enable signal (ENT) applied to an input terminal of multiplier 10 which causes the contents of the T --  REG to be generated on 32-bit conductor 176 during the next-following clock cycle. A result temporarily stored in T --  REG 174 may be accordingly delayed by a selectable number of clock cycles. 
     In response to control signals generated by an output control (OPC), not shown, the OUT --  MUX 168 causes the product of the 64-bit multiplicand and multiplier words applied to multiplier 10 to be generated at a set of thirty-two PROD --  OUT 0-31  terminals of multiplier 10, with the assistance of T-register 174, as will be described below in connection with Table II. 
     The 32-×32-bit parallel multiplier 10 of the instant invention can perform a multiplication of two numbers represented by 64-bit words by sequentially applying first the least-significant, and then the most-significant 32-bit portions of the multiplicand, multiplier, respectively, to the DATA --  IN --  X 0-31 , DATA --  IN --  Y 0-31  terminals, respectively of the multiplier 10. The XA --  REG 102, respectively, the YA --  REG 132, and the XB --  REG 106, respectively, the YB --  REG 136, will then store the least-significant and the most-significant, 32-bit portions of the multiplicand and multiplier words, XW0 and XW1, YW0 and YW1, respectively. A 128-bit product will subsequently be generated by the multiplier 10, represented as four 32-bit product words, PW3, PW2, PW1 and PW0; being respectively the most-significant 32-bit portion PW3, the next most-significant 32-bit portion PW2, the next to least-significant 32-bit portion PW1, and the least-significant 32-bit portion PW0. 
     The resulting product is sequentially generated at the PROD --  OUT 0-31  terminals of the multiplier 10 so that the product word PW0 is first generated, followed by the product words PW1, PW2 and PW3. The full 128-bit product (PROD) being related to the four product words PW0, PW1, PW2 and PW3 by the equation: 
     
         PROD=(PW3 *2.sup.96)+(PW2 *2.sup.64)+(PW1 *2.sup.32)+PW0. 
    
     The value of the signal applied to the terminals, on the data bus, and the contents of the various registers within multiplier 10 during the extended-precision multiplication of two 64-bit numbers is best described with reference to Table II, below. One complete extended-precision multiplication is shown within the dashed lines in Table II beginning with the zeroth cycle of an external clock supplying synchronization signals to multiplier 10, and continuing through the sixth cycle of the clock. The value for the register, bus or terminal whose label appears in the rows of Table II is shown by the entry in the column corresponding to the clock cycle whose label appears at the top of the column. Those entries falling to the left of the left-most dashed line of Table II refer to the values remaining from the preceding extended-precision multiplication while those falling to the right of the right-most dashed line refer to the values pertaining to the next-following extended-precision multiplication. The purpose in showing these preceding and next-following values in Table II is to exhibit the manner in which a full 128-bit product, PROD, consisting of the four 32-bit product words PW0, PW1, PW2 and PW3, can be generated in four consecutinve clock cycles by the multiplier 10 of the instant invention by the application of the multiplicand and multiplier words at a clock cycle during which the previous product word PW1 is currently being generated by the multiplier 10. In this way, by appropriately &#34;pipelining&#34; the input operands, the multiplier 10 of the present invention can generate a complete extended-precision product every four cycles of the external clock. 
     
                                           TABLE II__________________________________________________________________________64- × 64-Bit Multiplication Register, Bus, and Terminal ValuesRegister, Bus    Clock CycleTerminals    012               3     456__________________________________________________________________________ DATA --IN --XXA --REG 102XB --REG 106DATA --IN --YYA --REG 132YB --REG136DATA BUS 150P --REG 166T --REG 174PROD --OUT     ##STR1##         XW0XW1YW0 YW1*XW0YW0ACCPW0                             ##STR2##__________________________________________________________________________ 
    
     As shown in Table II, signals representing the least-significant portion of the multiplicand word, XW0, and the multiplier word, YW0, are applied to the DATA --  IN --  X 0-31  and DATA --  IN --  Y 0-31  terminals, repsectively, of multiplier 10 at clock cycle 0. At the next clock cycle, 1, the XA --  REG 102, the YA --  REG 132, respectively, receive control signals causing these applied data signals to be stored in XA --  REG 102 and YA --  REG 132, respectively, as shown in rows 2 and 5, respectively, of Table II. Also at clock cycle 1, signals representing the most-significant portion of the multiplicand word, XW1, and the multiplier word, YW1, are applied to the DATA --  IN --  X 0-31  and the DATA --  IN --  Y 0-31  terminals, respectively, of multiplier 10. At the next clock cycle, 2, the XB --  REG 106, the YB --  REG 136, respectively, receive control signals causing these applied data signals to be stored in the XB --  REG and the YB --  REG, respectively, as shown in rows 3 and 6, respectively, of Table II. 
     During clock cycle 1, the contents of XA --  REG 102 and YA --  REG 132 are conducted via X --  MUX 110 and Y --  MUX 140, respectively, which have received control signals causing the signals corresponding to the 32-bit words XW0 and YW0, respectively, to be conducted on data busses 118 and 148, respectively, to the 32-×32-bit multiplier array 120. As shown in row 7 of Table II, labelled &#34;DATA BUS 150&#34;, the multiplier array 120 performs a multiplication of the operands XW0 and YW0. The resulting 64-bit product XW0*YW0 is conducted via data bus 150 to the first input of the 67-bit adder 152. MUX 156 receives control signals causing the ZERO input signals applied thereto to be routed to the second input of the 67-bit adder 152. Control signals received by adder 152 cause the 64-bit product XW0*YW0 to PASS unchanged to the 67-bit P --  REG 166, as shown in the 8th row of Table II, labelled &#34;P --  REG 166&#34;. 
     During the clock cycle 2, the contents of XB --  REG 106 and YA --  REG 132 are conducted via X --  MUX 110 and Y --  MUX 140, respectively, which have received control signals causing the signals corresponding to the 32-bit words XW1 and YW0, respectively, to be conducted on data busses 118 and 148, respectively, to the 32-×32-bit multiplier array 120. As shown in row 7 of Table II, labelled &#34;DATA BUS 150&#34;, the multiplier array 120 performs a multiplication of the operands XW1 and YW0. The resulting 64-bit product XW1*YW0 is conducted via data bus 150 to the first input of the 67-bit adder 152. 
     Thirty-two bit shifter 160 receives control signals causing the 67-bit contents of the P --  REG 166 conducted thereto on the wrap-back bus 158 to be right-shifted by 32-bit positions (i.e., the previous product XW0*YW0 is divided by 2 32 ) and the results applied to MUX 156. MUX 156 receives control signals causing the signals corresponding to the resulting scaled producted to be routed to the second input of the 67-bit adder 152. Control signals received by adder 152 cause the 64-bit product XW1*YW0 to be added to the scaled previous product at the second input of adder 152 and the sum stored in the P --  REG 166. These operations are shown in the 8th row of Table II by the entry &#34;S/A&#34; standing for shift of the previous product and add to current product. 
     Also during clock cycle 2, the 32 least-significant bit contents (prior to replacement by the just-mentioned sum) of the 67-bit P --  REG 166 is applied to the 32-bit T --  REG 174, as shown in the 9th row of Table II. This causes the least-significant product word PW0 to be stored temporarily in T --  REG 174, since the results of the preceding 64-×64-bit multiplication has not be completely generated at the PROD --  OUT 0-31  terminals of multiplier 10 as shown by the PW3 entry in the PROD --  OUT row of Table II for clock cycle 2. 
     During e clock cycle 3, the contents of XA --  REG 102 and YB --  REG 136 are conducted via X --  MUX 110 and Y --  MUX 140, respectively, which have received control signals causing the signals corresponding to the 32-bit words XW0 and YW1, respectively, to be conducted on data busses 118 and 148, respectively, to the 32-×32-bit multiplier array 120. As shown in row 7 of Table II, labelled &#34;DATA BUS 150&#34;, the multiplier array 120 performs a multiplication of the operands XW0 and YW1. The resulting 64-bit product XW0*YW1 is conducted via data bus 150 to the first input of the 67-bit adder 152. 
     The MUX 156 receives control signals causing the 67-bit contents of the P --  REG 166 XW1*YW0 conducted thereto on the wrap-back bus 158 to be routed to the second input of the 67-bit adder 152. Control signals received by adder 152 cause the 64-bit product XW0*YW1 to be added to the previous product at the second input of adder 152 and the sum stored in the P --  REG 166. These operations are shown in the 8th row of Table II by the entry &#34;ACC&#34; standing for add the previous product to current product. 
     Also during clock cycle 3, the least-significant product word PW0 stored temporarily in T --  REG 174, to be conducted to OUT --  MUX 168 and control signals received thereby causing the OUT --  MUX 168 to route signals corresponding to PW0 to the PROD --  OUT 0-31  terminals of multiplier 10 as shown by the PW0 entry in the PROD --  OUT row of Table II for clock cycle 3. 
     During clock cycle 4, the contents of XB --  REG 106 and YB --  REG 136 are conducted via X --  MUX 110 and Y --  MUX 140, respectively, which have received control signals causing the signals corresponding to the 32-bit words XW1 and YW1, respectively, to be conducted on data busses 118 and 148, respectively, to the 32-×32-it multiplier array 120. As shown in row 7 of Table II, labelled &#34;DATA BUS 150&#34;, the multiplier array 120 performs a multiplication of the operands XW1 and YW1. The resulting 64-bit product XW1*YW1 is conducted via data bus 150 to the first input of the 67-bit adder 152. 
     Thirty-two bit shifter 160 receives control signals causing the 67-bit contents of the P --  REG 166 XW0*YW1 conducted thereto on the wrap-back bus 158 to be right-shifted by 32-bit positions (i.e., the previous accumulated product is divided by 2 32 ) and the results applied to MUX 156. MUX 156 receives control signals causing the signals corresponding to the resulting scaled producted to be routed to the second input of the 67-bit adder 152. Control signals received by adder 152 cause the 64-bit product XW1*YW1 to be added to the scaled previous product at the second input of adder 152 and the sum stored in the P --  REG 166. These operations are shown in the 8th row of Table II by the entry &#34;S/A&#34; standing for shift of the previous product and add to current product. 
     Also during clock cycle 4, the 67-bit contents of the 67-bit P --  REG 166 to be conducted to OUT --  MUX 168 and control signals received thereby causing the OUT --  MUX 168 to route signals corresponding to the 32 least-significant bits thereof corresponding to PW1 to the PROD --  OUT 0-31  terminals of multiplier 10 as shown by the PW1 entry in the PROD --  OUT row of Table II for clock cycle 4. 
     During clock cycle 5, the 67-bit contents of the P --  REG 166 continues to be applied to OUT --  MUX 168 (prior to replacement by the least-significant product word PW0 from the next following 64-×64-bit multiplication) and control signals received thereby cause the OUT --  MUX 168 to route signals corresponding to the 32 least-significant bits corresponding to PW2 to the PROD --  OUT 0-31  terminals of multiplier 10 as shown by the PW2 entry in the PROD --  OUT row of Table II for clock cycle 5. 
     Also during clock cycle 5, the 32 most-significant bit contents (prior to replacement by the just-mentioned next-following product word PW0) of the 67-bit P --  REG 166 is stored in the 32-bit T --  REG 174, as shown in the 9th row of Table II. This causes the most-significant product word PW3 to be stored temporarily in T --  REG 174, since the next-to-the-most-significant product word PW2 is being currently generated at the PROD --  OUT 0-31  terminals of multiplier 10 as just described. During clock cycle 6, the most-significant product word PW3 temporarily stored in T --  REG 174 is conducted to OUT --  MUX 168 and control signals received thereby causing the OUT --  MUX 168 to route signals corresponding to PW3 to the PROD --  OUT 0-31  terminals of multiplier 10 as shown by the PW3 entry in the PROD --  OUT row of Table II for clock cycle 6. 
     As shown in Table II, the operands for the next-following 64-×64-bit multiplication are applied to multiplier 10 at clock cycles 4 and 5, thereby permitting the product corresponding to these operands to be generated at the PROD OUT 0-31  terminals beginning with clock cycle 7, by a sequence of steps identical with those described above, simply delayed by four clock cycles. In this manner, a full multiple-precision 128-bit product word can be generated every four consecutive clock cycles by the multiplier 10 of the instant invention from 64-bit multiplicand and multiplier words.