首页 / 专利库 / 电脑零配件 / 中央处理器 / 算术逻辑单元 / Expandable arithmetic logic unit

Expandable arithmetic logic unit

阅读:716发布:2021-09-08

专利汇可以提供Expandable arithmetic logic unit专利检索,专利查询,专利分析的服务。并且This relates to an expandable arithmetic logic unit (ALU) capable of performing binary and BCD addition and subtraction and various logic transfer functions in no more than four stages of logic delay from data input to ALU output. Propagate and generate signals (Pi and Gi) are produced in a single stage of delay and are applied to group propagate and generate logic. The group propagate and group generate signals are produced in a second stage of logic delay and are utilized to form carry look-ahead signals in a third stage of logic delay. Additional logic produces the required logic transfer signals (Hi) one logic delay after generation of the individual Pi and Gi terms. The carry look-ahead signals and logic transfer signals are combined to produce the ALU output.,下面是Expandable arithmetic logic unit专利的具体信息内容。

I claim:1. An arithmetic logic unit (ALU) for performing binary and BCD arithmetic and a plurality of logic functions on at least first and second data input sets Ai and Bi where i is an integer which varies from 0 to n, comprising:selection means for enabling said ALU to perform a desired function, said selection means producting a plurality of enabling signals;first logic means coupled to said selection means and to said data input sets for generating propagate (Pi) and generate (Gi) signals informative to the existence of carry out signals which would result from the combination of bits of equal significance in said at least first and second data sets, said first logic means producing said propagate and generate signals in a first single stage of logic delay;second logic means coupled to said selection means and to said first logic means for producing group propagate and group generate signals informative of the existence of carry out signals which would result from the combination of predetermined subsets of equal significance of said at least first and second data sets, said second logic means producing said group propagate and group generate signals in a second single stage of logic delay;carry look-ahead means coupled to said selection means and to said first and second logic means for generating carry signals Ci in a third single stage of logic delay;third logic means coupled to said selection means and to said first logic mens for generating signals Hi representative of half-sums of corresponding bits in said at least first and second data sets, said third logic means producing said half-sums in said second stage of logic delay; andfourth logic means coupled to said selection means, to said third logic means and to said carry look-ahead means for combining said half sums Hi and said carry signals Ci to produce a desired ALU output in a fourth single stage of logic delay.2. An ALU according to claim 1 wherein said selection means enables said ALU to perform both binary and BCD addition and subtraction, shift right and left, logical inversions and logical AND, OR and exclusive OR functions.3. An ALU according to claim 1 wherein said first logic means comprises a plurality of AND-OR logic circuits, one for each propagate and generate signal to be produced, each of said logic circuits including a plurality of AND gates having inputs coupled to selected ones of said enabling signals and to selected bits of said at least first and second data sets, each of said plurality of AND gates having an output coupled to an input of an OR gate having an output for producing one of said propagate and generate signals.4. An ALU according to claim 3 wherein said AND functions have inputs coupled to the complement of said selected bits of said at least first and second data sets.5. An ALU according to claim 3 wherein said first logic means produces propagate signals in accordance with the equation Pi=Ai+Bi where "+" denotes a logical OR and produces generate signals in accordance with the equation Gi=Ai.multidot.Bi where ".multidot." denotes a logical AND.6. An ALU according to claim 5 wherein said first logic means produces both the true and complement forms of said propagate and generate signals.7. An ALU according to claim 1 wherein said second logic means produces a group propagate signal and a group generate signal for the lower order data bits (PGL and GGL) and a group propagate signal and a group generate signal for the higher order data bits (PGH and GGH).8. An ALU according to claim 7 wherein n=7and said second logic means produces group propagate and generate signals for the upper four data bits and group propagate and generate signals for the lower four data bits.9. An ALU according to claim 3 wherein said third logic means includes means for right-shifting one of said data sets.10. An ALU according to claim 9 wherein said third logic means includes means for left shifting one of said data sets.

说明书全文

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates generally to an arithmetic logic unit (ALU), and more particulary to an eight-bit expandable ALU for performing binary and binary coded decimal (BCD) arithmetic and various logic and transfer operations while incurring only four gate delays.

2. Description of the Prior Art

The semiconductor industry is constantly faced with demands for large scale integrated circuits (LSI) having expanded capabilities and higher operational speeds. For example, modern ALU integrated circuits must perform a variety of functions including binary and BCD addition and subtraction and a number of logic and transfer operations (e.g. shift right, shift left, invert, etc.).

One such multipurposed ALU (an LSI four-bit ALU slice) is manufactured by Motorola Semiconductor Products, Inc. and bears part number MC10800. This ALU has the capability of performing logic operations, binary arithmetic and BCD arithmetic on combinations of one, two or three variables. It incorporates a nine's complement circuit to generate the necessary BCD complement function and generates group propagate and generate signals which are used for external look-ahead carry between four-bit slice circuits. A carry-in (Cin) signal interconnects four-bit slice circuits and is used for both binary and BCD arithmetic operations. A carry-out (Cout) signal indicates that a calculated value in the ALU has exceeded the maximum capacity of the four ALU output lines.

The above described device uses the conventional BCD addition algorithm to perform subtraction; i.e., forming the nine's complement of the subtrahend. The binary sum is then corrected to obtain the BCD sum. This approach not only requires a large number of logic elements, but also involves a large number of logic stages of delay between the ALU inputs and outputs.

In an article entitled "High Speed Decimal Addition" by Martin S. Schmookler at al, IEEE Transactions on Computers, Vol, C-20, No. 8 August 1971, pages 862-865, there is described a design for a high speed and economical decimal adder wherein there is produced decimal sums without first producing the corresponding binary sums. However, this decimal unit does not include binary arithmetic capabilities.

SUMMARY OF THE INVENTION

It is an object of the present invention to provide a faster and more economical ALU.

It is a further object of the invention to provide an improved ALU suitable for LSI implementation.

It is a still further object of the invention to provide an improved ALU capable of performing binary and BCD arithmetic functions in addition to a plurality of logic transfer functions.

Finally, it is an object of the present invention to provide an improved ALU capable of performing binary and BCD arithmetic functions and a variety of logic transfer functions in no more than four logic stages of delay.

According to a broad aspect of the invention there is provided an arithmetic logic unit (ALU) for performing binary and BCD arithmetic and a plurality of logic functions on at least first and second data input sets Ai and Bi where i is an integer which varies from 0 to n, comprising: selection means for enabling said ALU to perform a desired function, said selection means producing a plurality of enabling signals; first logic means coupled to said selection means and to said data input sets for generating propagate (Pi) and generate (Gi) signals informative of the existence of carry out signals which would result from the combination of bits of equal significance in said at least first and second data sets, said first logic means producing said propagate and generate signals in a first single state of logic delay; second logic means coupled to said first logic means for producing group propagate and group generate signals informative of the existence of carry out signals which would result from the combination of predetermined subsets of equal significance of said at least first and second data sets, said second logic means producing said group propagate and group generate signals in a second single state of logic delay; carry look-ahead means coupled to said first and second logic means for generating carry signals Ci in a third single state of logic delay; third logic means coupled to said selection means and to said first logic means for generating signals Hi representative of half-sums of corresponding bits in said at least first and second data sets, said third logic means producing said half-sums in said second stage of logic delay; and fourth logic means coupled to said third logic means and to said carry look-ahead means for combining said half sums Hi and said carry signals Ci to produce a desired ALU output in a fourth single stage of logic delay.

The above and other objects, features and advantages of the invention will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of the inventive arithmetic logic unit; and

FIGS. 2A-2B are detailed logic diagrams of the function select unit shown in FIG. 1;

FIG. 3 is a drawing guide illustrating the relationship between FIGS. 2A-2B;

FIG. 4 is a drawing guide illustrating the relationship between FIGS. 5A-5D;

FIGS. 5A-5D are detailed logic diagrams of the propagate and generate multiplexers;

FIGS. 6 and 7 are detailed logic diagrams of the group propagate and group generate logic;

FIGS. 8A-8F are detailed logic diagrams of the logic transfer unit, the carry look ahead and the ALU logic shown in FIG. 1; and

FIG. 9 is a drawing guide illustrating the relationship between FIGS. 8A-8F.

DESCRIPTION OF THE PREFERRED EMBODIMENT

FIG. 1 illustrates in block diagram form, the major sections of the inventive ALU. First, a plurality of function select signals Fl-F5 are applid to function select logic 2 which in turn generates a plurality of enabling signals which, as will be explained in more detail below, condition the ALU to perform a specific operation (e.g. binary add, BCD substract, shift right, etc.).

Table I indicates ALU operation as a function of the potential levels on function select lines F1-F5 where L="low," H="high," x="don't care," and negative logic is employed.

              TABLE I______________________________________Function                          FunctionNumber F1     F2     F3   F4  F5  Description______________________________________1      H      H      H    L   X   CLi → ALU2      H      H      L    H   H   BCD Subtract (Unpacked)                             A - B + Cin  H      H      L    H   L   BCD Subtract (Packed)                             A - B + Cin3      H      H      L    L   H   BCD Add (Unpacked)                             A + B + Cin  H      H      L    L   L   BCD Add (Packed)                             A + B + Cin4      H      L      H    H   X   Binary Subtract                             (B - A + Cin)6      H      L      L    H   X   Binary Subtract                             (A - B + Cin)7      H      L      L    L   H   Binary Add                             (CL + B + Cin)  H      L      L    L   L   Binary Add                             (A + B + Cin)8      L      H      H    H   H   Left Shift A  L      H      H    H   L   Right Shift A9      L      H      H    L   H   Left Shift B  L      H      H    L   L   Right Shift BA      H      L      H    L   H   A → ALU  H      L      H    L   L                              ##STR1##C      H      H      L    L   H   B → ALU  H      H      L    L   L                              ##STR2##E      H      L      L    L   H   CL → ALU  H      L      L    L   L                              ##STR3##B      L      L      H    L   H   A . B → ALU  L      L      H    L   L                              ##STR4##D      L      H      L    L   H   A + B → ALU  L      H      L    L   L                              ##STR5##F      L      L      L    L   X   A ⊕ B →  ALU______________________________________

As can be seen from Table I, the function number equals the hexadecimal value of function select outputs F1-F4. The inventive ALU is capable of performing binary arithmetic functions (functions 4, 6 and 7), BCD arithmetic functions (functions 2 and 3), logic functions (functions B, D and F) and transfer functions (functions 1, 8, 9, A, C and E).

Referring back to FIG. 1, a group of enabling signals (So-Si), from function select 2 are applied to propagate and generate multiplexers, 4 and 6 respectively, as is data which is present on three input data busses A, B and CL. The propagate multiplexer 4 generates signals in accordance with the logic function Pi=Ai+Bi where "+" represents a logical "OR" function. Pi is enabled by the signals So-Si from function select 2. Similarly, the generate multiplexer 6 generates signals in accordance with the logic function Gi=Ai·Bi where "." represents a logical "AND" function. The generate multiplexer is likewise enabled by signals from function select 2 as will be more fully described below. It is important to note, however, that the propagate and generate signals Pi and Gi are to be generated from the Ai, Bi, Cli and Si inputs in a single stage of logic delay.

The propagate and generate outputs from multiplexers 4 and 6 are applied to group propagate and generate unit 8. Additional control is also supplied to unit 8 such as a signal from function select 2 indicating that BCD addition is to be performed. Group propagate signals for the upper and lower order bits (PGH and PGL) and group generate signals for the upper and lower order bits (GGH and GGL) are computed in unit 8 and applied as are the individual propagate and generate signals to carry look-ahead unit 10. The carry look-ahead is employed during ALU arithmetic functions. It should be noted at this point that the generation of the group propagate and group generate signals is to require only one stage of logic delay, and that the generation of the carry look ahead Ci is to require only one additional stage of logic delay.

The propagate and generate signals from multiplexers 4 and 6 are likewise applied to logic transfer unit 12 along with certain control signals generated by function select 2 (i.e. SL=shift left and SR=shift right). The resulting logic transfer function Hi represents, among other things, the half sum of bits Ai and Bi; i.e. without reference to potential carry signals, and is to be generated within one stage of logic delay from the propagate and generate (Pi, Gi) signals. This, logic transfer functions Hi and carry-look ahead Ci are both available at inputs to ALU combination logic 14 within three stages of delay after signals representative of the desired function are applied to multiplexers 4 and 6 (Si) along with bus data (Ai, Bi or CLi). Only one more logic stage of delay is required in logic 14 which combines the Hi and carry look-ahead signals to produce the ALU binary and BCD arithmetic results and logic shifts at outputs ALUi.

FIGS. 2A-2B are detailed logic diagrams of the function select unit shown in FIG. 1 for an eight-bit expandable ALU. The enabling signals generated by the function select apparatus of FIGS. 2A-2B may be defined by the following logic equations:

__________________________________________________________________________ ##STR6## ##STR7## ##STR8## ##STR9## ##STR10## ##STR11## ##STR12## ##STR13## ##STR14## ##STR15## ##STR16## ##STR17## ##STR18## ##STR19## ##STR20## ##STR21## ##STR22## ##STR23## ##STR24##__________________________________________________________________________

Where:

S0 selects Ai in the Pi equation;

S1 selects CLi in the Pi equation;

S2 selects Ai in the Pi equation;

S3 selects Bi in the Pi equation;

S4 selects Bi in the Pi equation;

S5 selects Ai·Bi in the Gi equation;

S6 selects Ai·Bi in the Gi equation;

S7 selects Ai·Bi in the Gi equation;

S8 selects CLi·Bi in the Gi equation;

S9 enables BCD subtract function;

S10 forces Pi·Gi term in Hi to zero;

S12 enables BCD add function;

SL enables shift left function;

SR enables shift right function;

BCD enables BCD arithmetic operations;

MODE gates invert terms into carry logic;

OVE enables overflow detection during binary arithmetic operations;

COUTe enables the carry look-ahead logic; and

UPD is the unpacked digit select line for BCD arithmetic operations.

In the logic circuit shown in FIGS. 2A-2B as in the logic circuits to be described below, multiple AND gates such as is shown at 20, 22 and 24 connected to the inputs of an OR gate (e.g. 26) can be produced in one gate delay using the conventional collector DOT technique well known to those skilled in the art of emitter coupled logic design. Furthermore, an AND-OR invert function can be produced by connecting the complement outputs of a plurality of AND gates together using the well known emitter DOT technique.

The inputs to the ALU (i.e. data on the A, B, and CL busses) are combined in the propagate and generate multiplexers shown in FIGS. 5A-5D. The propagate and generate signals produced may be defined by the following equations:

__________________________________________________________________________ ##STR25## ##STR26## ##STR27## ##STR28## ##STR29## ##STR30## ##STR31## ##STR32## ##STR33## ##STR34## ##STR35## ##STR36## ##STR37## ##STR38## ##STR39## ##STR40##__________________________________________________________________________

Each multiplexer (one for generating Pi and one for generating Gi where i=0 through 7) comprises a plurality of AND gates (e.g. 28, 30, 32 and 34) each having an output coupled to inputs of an OR gate (e.g. 36). The AND gates have inputs coupled to the true and/or complement data signals from the A, B and CL busses as is shown in FIGS. 2b and 2c. This data is selectively enabled through the AND gates by the function select signals described above. Thus, the ALU inputs are combined in the propagate and generate multiplexers and gated by the function select signals to produce the P and G terms in only one stage of logic delay.

FIGS. 6 and 7 illustrate the logic for generating the group propagate and group generate signals referred to above. These may be defined by the following logic equations:

__________________________________________________________________________ ##STR41##PGL = PO . P1 . P2 . P3 + S12 . (PO . P3 + PO . G2 + PO . G1 . P2)GGH = G7 + P7 . G6 + P7 . P6 . G5 + P7 . P6 . P5 . G4 + S12 . (P6 . P7 +P5 . P7 +G6 . P5 + P7 . G4 + G6 . G4 + P6 . G5 . G4)GGL = G3 + P3 . G2 + P3 . P2 . G1 + P1 . P2 . P3 . GO + S12 . (P2 . P3 +P1 . P3 + P1 . G2 + P3 . GO + GO . G2 + GO . G1 . P2)__________________________________________________________________________

where

PGL is the group propagate signal for the lower four bits;

PGH is the group propagate signal for the higher four bits;

GGL is the group generate signal for the lower four bits; and

GGH is the group generate signal for the higher four bits.

It should be clear that the group propagate and group generate signals are generated within one logic stage of delay after generation of the individual propagate and generate signals (Pi and Gi). As can be seen from FIG. 7, certain ones of the lower order propagate and generate signals are supplied to inputs of a plurality of AND gates some of which have outputs coupled to inputs of OR gate 38 and others of which have outputs coupled to inputs of OR gate 40. In certain cases, the individual lower order P and G terms are gated through the AND gates by function select signal S12 which enables the BCD add function. The result is the production of the lower order group propagate and generate signals PGL and GGL and their complements PGL and GGL. The higher order group propagate and generate signals are similarly produced at the outputs of OR gates 42 and 44 respectively.

FIGS. 8A-8F are detailed logic diagrams of the logic transfer unit 12, the carry look-ahead 10 and the ALU logic 14 shown in FIG. 1. The carry look-ahead terms (C0 through C6) for each ALU bit are generated at the outputs of OR gates 46, 48, 50, 52, 54, 46 and 58 respectively; i.e., one logic stage of delay from the generation of the group propagate and generate signals and the individual Pi and Gi terms. The H terms (H0 through H7) are generated at the outputs of OR gates 60, 62, 64, 66, 68, 70 and 72 respectively, only one logic stage from the genration of the individual Pi and Gi terms. Only one additional logic stage of delay is required to produce the ALU binary and BCD arithmetic results (ALU0 through ALU7) at the outputs of OR gates 74, 76, 78, 80, 82, 84, 86 and 88 respectively; a total of four logic stages of delay from data input to ALU output.

The ALU outputs (ALU0-ALU7) may be defined by the following logic equations:

__________________________________________________________________________ALUO = (Cin . Coute + F1 . MODE) ⊕ HO ##STR42##ALU1 = CO⊕H1⊕Cout1CO = (GO + PO . Cin) . Coute + F1 . MODE ##STR43## ##STR44## ##STR45##C1 = (G1 + P1 . GO + P1 . PO . Cin) . Coute + F1 . MODE ##STR46## ##STR47## ##STR48## ##STR49##C2 = (G2 + P2 . G1 + P2 . P1 . GO + P2 . P1 . PO . Cin)Coute + F1 . MODE ##STR50##ALU4 = [(GGL + PGL . Cin) . Coute + F1 . MODE] ⊕ ##STR51##ALU5 = C4⊕H5⊕CoutHC4 = (G4 + P4 . GGL + P4 . PGL . Cin) . Coute + F1 . MODE ##STR52##CoutH = (GGH + PGH . GGL + PGH . PGL . Cin) . S12 + ##STR53## ##STR54##C5 = (G5 + P5 . G4 + P5 . P4 . GGL + P5 . P4 . PGL . Cin) . Coute + F1 .MODE ##STR55## ##STR56## ##STR57##C6 = (G6 + P5 . G5 + P6 . P5 . G4 + P6 . P5 . P4 . GGL +P6 . P5 . P4 . PGL . Cin) . Coute + F1 . MODE ##STR58##SHOUT = P7 . SL . CLKSHCI = PO . SR . CLK__________________________________________________________________________

where:

SHOUT is the MSB of the shift right or left command;

Cin is the carry in signal;

SCHI is the LSB of the shift right or left command;

F1 is a function select input;

Coutl is the BCD carry out signal for the four lower order bits; and

CoutH is the BCD carry out signal for the four higher order bits.

The remaining terms in the ALU equations have been previously identified.

It should be noted that the design was accomplished using negative logic. That is, a logical AND function results when two outputs are connected together.

The above described implementation avoids the use of a nine's complementer in the performance of BCD subtraction. Instead, the one's complement of the subtrahend is added to the minuend using binary arithmetic. If there is no binary carry out, a correction factor of plus ten is added to the result. If there is a carry out, the ALU output is equivalent to the binary sum. For BCD addition, the augend is added to the addend using binary arithmetic. If the sum is ten or greater, the carry out is generated, and a correction factor of plus six must be added to the result. If there is no carry out, the ALU output is equivalent to the binary sum. Thus, the logic used to perform binary arithmetic is used to reduced the amount of logic required to perform BCD addition and subtraction.

In summary, the invention provides the eight-bit expandable ALU which performs binary and BCD arithmetic, logic shifts right and left, and various logic and transfer operations in only four stages of logic delay from data input to ALU output. The improvement in speed and power dissipation permits LSI implementation. Included is an implementation of the Pi and Gi terms in only one stage of delay. Also incuded is a method of combining two correction algorithms together logically without increasing the delay time of BCD and binary arithmetic over that of binary arithmetic alone. The implementation is unique and utilizes the binary logic to reduce the required BCD logic.

While the invention has been described with reference to a particular embodiment thereof, it should be clear that changes in form and details may be made therein without departing from the spirit and scope of the invention.

高效检索全球专利

专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。

我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。

申请试用

分析报告

专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。

申请试用

QQ群二维码
意见反馈