JP2000207173A - Incrementor - Google Patents

Incrementor

Info

Publication number
JP2000207173A
JP2000207173A JP11005854A JP585499A JP2000207173A JP 2000207173 A JP2000207173 A JP 2000207173A JP 11005854 A JP11005854 A JP 11005854A JP 585499 A JP585499 A JP 585499A JP 2000207173 A JP2000207173 A JP 2000207173A
Authority
JP
Japan
Prior art keywords
bit
value
input
carry
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP11005854A
Other languages
Japanese (ja)
Inventor
Sunao Ishikawa
直 石川
Kazuyuki Ishikawa
和幸 石川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP11005854A priority Critical patent/JP2000207173A/en
Publication of JP2000207173A publication Critical patent/JP2000207173A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To speed up the propagation speed of a carry value to a higher-order bit by outputting the multibit carry value, corresponding to an arithmetic result as a carry value from the most significant digit bit from among successive bits. SOLUTION: A logic circuit 24 for multibit arithmetic value arithmetic is connected to terminals 16 and 17 for the lowest-order bit and the 2nd bit from the lowest, which are inputted to a block 4, ANDs them, and outputs a multibit arithmetic value according to the result. A logic circuit 25 for multibit carry value operation has a carry value input terminal 20 connected thereto, inputs and ANDs multibit arithmetic values, and outputs the result as carry value of the most significant digit bit (2nd lowest bit from) of the block 4. Thus, a multibit arithmetic value of successive bits is calculated before the carry value reaches the least significant digit bit, and the carry value to a bit several bits above the least significant digit bit is generated immediately after the carry value reaches the least significant digit bit.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は複数のビットから
なるデータに所定の固定値を加算するインクリメンタに
係り、特に、その演算処理速度を向上させるための改良
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an incrementer for adding a predetermined fixed value to data consisting of a plurality of bits, and more particularly to an improvement for improving the arithmetic processing speed.

【0002】[0002]

【従来の技術】図14は特開平3−18926号公報に
開示された従来のインクリメンタの構成を示すブロック
図である。図において、1はそれぞれ入力データのビッ
ト入力値が入力されるデータ入力端子、2はそれぞれ出
力データのビットインクリメント値が出力されるデータ
出力端子、64は固定値入力端子、65はそれぞれデー
タ入力端子とデータ出力端子との間に配設されて、ビッ
ト入力値に1を加えるハーフアダーである。
2. Description of the Related Art FIG. 14 is a block diagram showing the configuration of a conventional incrementer disclosed in Japanese Patent Application Laid-Open No. 3-18926. In the figure, 1 is a data input terminal to which a bit input value of input data is input, 2 is a data output terminal to output a bit increment value of output data, 64 is a fixed value input terminal, and 65 is a data input terminal. And a data output terminal, and is a half adder for adding 1 to a bit input value.

【0003】動作について説明する。データ入力端子そ
れぞれに対してビット入力値を設定した状態で、固定値
入力端子からデータを入力すると、まず、この固定値入
力端子が接続されたハーフアダーがビット入力値と固定
値との加算演算を行い、そのビットインクリメント値を
データ出力端子から出力する。そして、残りのハーフア
ダーはこの固定値入力端子が接続されたハーフアダー側
から順番に、繰り上げ値とビット入力値と固定値との加
算演算を行い、そのビットインクリメント値をデータ出
力端子から出力する。
The operation will be described. When data is input from the fixed value input terminal with the bit input value set for each data input terminal, first, the half adder to which this fixed value input terminal is connected performs the addition operation of the bit input value and the fixed value. Then, the bit increment value is output from the data output terminal. The remaining half adders perform the addition operation of the carry value, the bit input value, and the fixed value in order from the half adder to which the fixed value input terminal is connected, and output the bit increment value from the data output terminal.

【0004】[0004]

【発明が解決しようとする課題】従来のインクリメンタ
は以上のように構成されているので、データの最下位ビ
ットから順次繰り上げ値を生成しなければ、データの最
上位ビットのインクリメント値が決定せず、このインク
リメンタが取り扱うデータのビット数に応じたゲート数
分の遅延時間が経過しないと入力データのインクリメン
ト値を得ることができないなどの課題があった。
Since the conventional incrementer is configured as described above, unless the carry value is generated sequentially from the least significant bit of the data, the increment value of the most significant bit of the data is determined. However, there is a problem that an increment value of input data cannot be obtained unless a delay time corresponding to the number of gates corresponding to the number of bits of data handled by the incrementer has elapsed.

【0005】そこで、従来においてもデータの最下位ビ
ットからその最上位ビットへの繰り上げ値の伝播遅延時
間を短縮するための技術が提案されている。
Therefore, a technique for reducing the propagation delay time of the carry value from the least significant bit to the most significant bit of data has been proposed in the past.

【0006】図15はキャリールックアヘッド回路を備
えた従来のインクリメンタの構成を示すブロック図であ
る。図において、1はそれぞれデータ入力端子、2はそ
れぞれデータ出力端子、66は入力データの最下位ビッ
トに対応したデータ入力端子1が接続され、この入力値
に対して固定値「1」を加算演算し、この演算結果を出
力データの最下位ビットのデータ出力端子2から出力す
る固定値加算演算ブロック、67はそれぞれ入力データ
の任意の1つのデータ入力端子1に接続されるとともに
データのビット配列方向において下位側のブロックから
の繰り上げ値が入力され、この入力値に対して繰り上げ
値を加算演算し、この演算結果を出力データの任意のデ
ータ出力端子2から出力する繰り上げ値加算演算ブロッ
クである。
FIG. 15 is a block diagram showing the structure of a conventional incrementer having a carry look ahead circuit. In the figure, 1 is a data input terminal, 2 is a data output terminal, 66 is a data input terminal 1 corresponding to the least significant bit of input data, and a fixed value "1" is added to this input value. A fixed value addition operation block 67 for outputting the operation result from the data output terminal 2 of the least significant bit of the output data is connected to an arbitrary one data input terminal 1 of the input data, and the data is arranged in the bit arrangement direction. Is a carry-up value addition operation block for inputting a carry-up value from the lower block, adding the carry-up value to this input value, and outputting the operation result from an arbitrary data output terminal 2 of output data.

【0007】また、5はそれぞれデータのビット配列方
向において連続する四個ずつのブロック毎の繰り上げ値
が入力されるセレクタ、6はそれぞれ各セレクタ5に対
応して設けられ、上位側のブロック群の4つのブロック
67から出力されるブロック別切り替え信号がすべて
「1」である場合には有意の切り替え信号をセレクタ5
に対して出力する切り替え信号生成回路である。
Reference numeral 5 denotes a selector to which a carry value for each of four blocks continuous in the data bit arrangement direction is input. Reference numeral 6 denotes a selector provided in correspondence with each selector 5. If the block-by-block switching signals output from the four blocks 67 are all “1”, a significant switching signal is output to the selector 5.
Is a switching signal generation circuit that outputs the switching signal.

【0008】図16はこの従来のインクリメンタにおけ
る固定値加算演算ブロックを示す回路図である。図にお
いて、7は固定値「1」が加算されるデータの最下位ビ
ットのビット入力値が入力される第一ビット入力端子、
9は出力データの最下位ビットのビットインクリメント
値が出力される第一ビット出力端子、11は第一ビット
入力端子7と第一ビット出力端子9との間に接続され、
第一ビット入力端子7から入力されたビット入力値を反
転させて第一ビット出力端子9へのビットインクリメン
ト値として出力する固定値加算用インバータ、14は第
一ビット入力端子7の入力値をこのブロック66の繰り
上げ値として出力する繰り上げ値出力端子、15は第一
ビット入力端子7の入力値をこのブロック66のブロッ
ク別切り替え信号として出力する切り替え信号出力端子
である。
FIG. 16 is a circuit diagram showing a fixed value addition operation block in the conventional incrementer. In the figure, reference numeral 7 denotes a first bit input terminal to which a bit input value of a least significant bit of data to which a fixed value “1” is added is input;
9 is a first bit output terminal from which the bit increment value of the least significant bit of the output data is output, 11 is connected between the first bit input terminal 7 and the first bit output terminal 9,
A fixed value addition inverter that inverts the bit input value input from the first bit input terminal 7 and outputs the inverted value as a bit increment value to the first bit output terminal 9. A carry value output terminal 15 outputs a carry value of the block 66, and a switching signal output terminal 15 outputs an input value of the first bit input terminal 7 as a block-by-block switching signal of the block 66.

【0009】図17はこの従来のインクリメンタにおけ
る繰り上げ値加算演算演算ブロックを示す回路図であ
る。図において、16は第一ビット入力端子、18は第
一ビット出力端子、20は下位側のブロックの繰り上げ
値出力端子14,26に接続される繰り上げ値入力端
子、21は繰り上げ値入力端子20と第一ビット入力端
子16とが接続され、これら2つの端子16,20の入
力値の排他論理和を演算し、この演算結果を第一ビット
出力端子18へビットインクリメント値として出力する
第一ビット用排他論理和演算回路、22は繰り上げ値入
力端子20と第一ビット入力端子16とが接続され、こ
れら2つの端子16,20の入力値の論理積を演算し、
この演算結果を繰り上げ値として出力する第一ビット繰
り上げ値演算用論理積演算回路、26はこの繰り上げ値
をこのブロック67の繰り上げ値として出力する繰り上
げ値出力端子、27は第一ビット入力端子16の入力値
をこのブロック67のブロック別切り替え信号として出
力する切り替え信号出力端子である。
FIG. 17 is a circuit diagram showing a carry-up value addition operation calculation block in this conventional incrementer. In the figure, 16 is a first bit input terminal, 18 is a first bit output terminal, 20 is a carry value input terminal connected to the carry value output terminals 14 and 26 of the lower block, and 21 is a carry value input terminal 20. A first bit input terminal 16 is connected, an exclusive OR of the input values of these two terminals 16 and 20 is calculated, and the calculation result is output to a first bit output terminal 18 as a bit increment value for a first bit. The exclusive OR operation circuit 22 is connected to the carry value input terminal 20 and the first bit input terminal 16 and calculates the logical product of the input values of these two terminals 16 and 20.
A first bit carry-and-arithmetic circuit for outputting the result of this calculation as a carry value, 26 is a carry value output terminal for outputting the carry value as a carry value of this block 67, and 27 is a first bit input terminal 16. A switching signal output terminal for outputting an input value as a block-by-block switching signal of the block 67.

【0010】動作を説明する。入力データを複数のデー
タ入力端子1から入力すると、まず、2ビット用固定値
加算演算ブロック66の固定値加算用インバータ11が
第一ビット入力端子7から入力される当該入力データの
最下位ビットのビット入力値を反転させ、これを第一ビ
ット出力端子9を介してデータ出力端子2から出力す
る。従って、この第一ビット出力端子9からは第一ビッ
ト入力端子7のビット入力値に固定値「1」を加えたビ
ットインクリメント値が出力されることになる。
The operation will be described. When input data is input from a plurality of data input terminals 1, first, the fixed value addition inverter 11 of the 2-bit fixed value addition operation block 66 outputs the least significant bit of the input data input from the first bit input terminal 7. The bit input value is inverted and output from the data output terminal 2 via the first bit output terminal 9. Therefore, the first bit output terminal 9 outputs a bit increment value obtained by adding the fixed value “1” to the bit input value of the first bit input terminal 7.

【0011】これと同時に、最下位側から2番目のブロ
ックである繰り上げ値加算演算ブロック67が動作す
る。具体的には、当該ブロック67の第一ビット用排他
論理和演算回路21が固定値加算演算ブロック66の繰
り上げ値と2番目のデータ入力端子1に入力されたビッ
ト入力値との排他論理和演算を行って、いずれか一方の
値が「1」であるときには「1」のビットインクリメン
ト値を第一ビット出力端子18を介して第2番目のデー
タ出力端子2に出力する。これと同時に、第一ビット繰
り上げ値演算用論理積演算回路22は、下位ブロック3
からの繰り上げ値と上記2番目のビット入力値との論理
積演算を行って、これらがともに「1」である場合には
「1」の第2ビットの繰り上げ値を出力する。
At the same time, the carry-up value addition operation block 67, which is the second block from the lowest side, operates. Specifically, the exclusive OR operation circuit 21 for the first bit in the block 67 performs an exclusive OR operation on the carry value of the fixed value addition operation block 66 and the bit input value input to the second data input terminal 1. And if one of the values is “1”, the bit increment value of “1” is output to the second data output terminal 2 via the first bit output terminal 18. At the same time, the logical product operation circuit 22 for calculating the carry value of the first bit carries out the lower block 3
AND operation of the carry-up value from the above and the second bit input value is performed, and if both are "1", the carry-up value of the second bit of "1" is output.

【0012】このように下位ビットからの繰り上げ値が
決定されるとそれに応じて当該ビットのビットインクリ
メント値がデータ出力端子2から出力されるので、この
動作をデータ配列方向の下位側から上位側にかけて順次
繰り上げ値を決定することにより、入力データのインク
リメント値がデータ出力端子2から出力される。
When the carry value from the lower bit is determined as described above, the bit increment value of the bit is output from the data output terminal 2 in accordance with the determination, and this operation is performed from the lower side to the upper side in the data array direction. By sequentially determining the carry value, the increment value of the input data is output from the data output terminal 2.

【0013】そして、このような動作が各ブロック66
において順次実行される一方で、各ブロック66,67
からブロック別切り替え信号が出力されると切り替え信
号生成回路6から切り替え信号が出力され、これに応じ
てセレクタ5がブロック群内の最上位ビットの繰り上げ
値と、下位のブロック群からの繰り上げ値とのうちから
一方を選択し、これをその上位に接続されたブロック6
7への繰り上げ値として出力する。
The above operation is performed in each block 66.
, While each block 66, 67
When a switch signal for each block is output from the switch group, a switch signal is output from the switch signal generation circuit 6. In response to this, the selector 5 sets the carry value of the most significant bit in the block group and the carry value from the lower block group. Is selected, and this is selected as the upper block 6
It is output as a carry-up value to 7.

【0014】従って、この実施の形態1によるインクリ
メンタでは、4ブロック毎にセレクタ5と切り替え信号
生成回路6とを設けているので、その分早く繰り上げ値
が上位側に伝播し、上位側のインクリメント値を決定す
ることができる。
Therefore, in the incrementer according to the first embodiment, since the selector 5 and the switching signal generating circuit 6 are provided for every four blocks, the carry value is propagated to the upper side earlier by that amount, and the increment of the upper side is performed. The value can be determined.

【0015】しかしながら、このようなセレクタ5を用
いたとしても、切り替え信号生成回路6が切り替え信号
を出力する前に下位のビットからの繰り上げ値が到達し
てしまうと、それによって繰り上げ値の上位ビットへの
伝播速度がそれによって制限されてしまうことになるの
で、伝播速度を高速化させようとした場合には、セレク
タ5,5間の繰り上げ値の伝播速度がそれよりも下位側
からの繰り上げ値の伝播速度よりも早くしなければなら
ず、その結果、セレクタ5を多数設けてデータを細かい
ビット数毎に分割しなければならなかった。そして、こ
のように多数のセレクタ5を設けた場合、今度はその多
数のセレクタ5の動作遅延分が累積的に加算されていく
ので、これによって繰り上げ値の上位ビットへの伝播速
度が制限されてしまうことになる。従って、このような
セレクタ5を用いたとしても、おのずとその高速化には
限界があった。
However, even if such a selector 5 is used, if the carry value from the lower bit arrives before the switching signal generating circuit 6 outputs the switch signal, the higher bit of the carry value is thereby changed. Therefore, if the propagation speed is to be increased, the propagation speed of the carry value between the selectors 5 and 5 is increased from the lower side. Must be faster than the propagation speed of the data, and as a result, a large number of selectors 5 must be provided to divide the data into small numbers of bits. When a large number of selectors 5 are provided in this manner, the operation delays of the large number of selectors 5 are cumulatively added, thereby limiting the propagation speed of the carry value to the upper bits. Will be lost. Therefore, even if such a selector 5 is used, there is naturally a limit in increasing the speed.

【0016】この発明は上記のような課題を解決するた
めになされたもので、セレクタを用いた場合とは全く異
なるアプローチにて繰り上げ値の上位ビットへの伝播速
度の高速化を図ることができ、ひいてはこのセレクタと
特定の形で組み合わせることにより従来では得ることが
できなかったインクリメント処理速度を実現することが
できるインクリメンタを得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and can increase the propagation speed of the carry value to the upper bits by a completely different approach from the case where a selector is used. It is another object of the present invention to provide an incrementer which can realize an increment processing speed which cannot be obtained conventionally by combining the selector with the selector in a specific form.

【0017】[0017]

【課題を解決するための手段】この発明に係るインクリ
メンタは、ある1つのビットのビット入力値とそれより
も1つ下のビットからの繰り上げ値とが入力され、これ
らの論理積演算を行い、その演算結果に応じて当該ビッ
トよりも1つ上のビットへの繰り上げ値を出力する複数
の繰り上げ値演算用論理回路と、上記ビットのビット入
力値と上記下位ビットからの繰り上げ値とが入力され、
これらの排他論理和演算を行い、その演算結果に応じて
当該ビットのインクリメント値として出力する複数のビ
ット値演算用論理回路とを備え、複数のビットからなる
データに所定の固定値を加算して複数のインクリメント
値からなるデータを出力するインクリメンタにおいて、
複数の連続したビットのビット入力値が入力され、これ
らの論理積演算を行い、その演算結果に応じて多ビット
演算値を出力する多ビット演算値演算用論理回路と、上
記複数の連続したビットのうちの最下位ビットへの繰り
上げ値と上記多ビット演算値とが入力され、これらの論
理積演算を行い、その演算結果に応じた多ビット繰り上
げ値を上記複数の連続したビットのうちの最上位ビット
からの繰り上げ値として出力する多ビット繰り上げ値演
算用論理回路とを設けたものである。
The incrementer according to the present invention receives a bit input value of a certain bit and a carry value from a bit lower than the certain bit, and performs an AND operation of these values. A plurality of carry value calculating logic circuits for outputting a carry value to a bit one bit higher than the bit in accordance with the result of the operation, and a bit input value of the bit and a carry value from the lower bit being input And
A plurality of bit value operation logic circuits that perform these exclusive OR operations and output the bits as increment values in accordance with the operation results, and add a predetermined fixed value to data composed of a plurality of bits. In an incrementer that outputs data including a plurality of increment values,
A bit input value of a plurality of continuous bits is input, a logical product of these is performed, and a multi-bit operation value operation logic circuit that outputs a multi-bit operation value in accordance with the operation result; The carry value to the least significant bit of the above and the multi-bit operation value are input, and a logical AND operation thereof is performed, and a multi-bit carry value according to the operation result is the most significant bit of the plurality of consecutive bits. And a multi-bit carry value operation logic circuit that outputs a carry value from the upper bit.

【0018】この発明に係るインクリメンタは、ある1
つのビットのビット入力値とそれよりも1つ下のビット
からの繰り上げ値とが入力され、これらの論理積演算を
行い、その演算結果に応じて当該ビットよりも1つ上の
ビットへの繰り上げ値を出力する複数の繰り上げ値演算
用論理回路と、上記ビットのビット入力値と上記下位ビ
ットからの繰り上げ値とが入力され、これらの排他論理
和演算を行い、その演算結果に応じて当該ビットのイン
クリメント値として出力する複数のビット値演算用論理
回路と、複数の連続したビットのビット入力値が入力さ
れ、これらの論理積演算を行い、すべてのビットがその
ビット最大値である場合には切り替え信号を出力する切
り替え信号生成回路と、上記複数の連続したビットのう
ちの最下位ビットへの繰り上げ値と上記複数の連続した
ビットのうちの最上位ビットからの繰り上げ値とが入力
され、通常はこの最上位ビットからの繰り上げ値を上記
複数の連続したビットのうちの最上位ビットからの繰り
上げ値として出力するとともに、上記切り替え信号が入
力された場合には上記最下位ビットへの繰り上げ値を当
該最上位ビットからの繰り上げ値として出力するセレク
タとを備え、複数のビットからなるデータに所定の固定
値を加算して複数のインクリメント値からなるデータを
出力するインクリメンタにおいて、上記複数の連続した
ビットのうちの少なくとも2以上の連続したビットのビ
ット入力値が入力され、これらの論理積演算を行い、そ
の演算結果に応じて多ビット演算値を出力する多ビット
演算値演算用論理回路と、上記多ビット演算値演算用論
理回路に入力される複数の連続したビットのうちの最下
位ビットへの繰り上げ値と、上記多ビット演算値とが入
力され、これらの論理積演算を行い、その演算結果に応
じた多ビット繰り上げ値を上記多ビット演算値演算用論
理回路に入力される複数の連続したビットのうちの最上
位ビットからの繰り上げ値として出力する多ビット繰り
上げ値演算用論理回路とを設けたものである。
The incrementer according to the present invention has a certain
The bit input value of one bit and the carry value from the next lower bit are input, and a logical AND operation of these is performed, and the carry up to a bit higher than the relevant bit is performed according to the result of the operation. A plurality of carry value calculation logic circuits for outputting values, a bit input value of the above bit and a carry value from the lower bit are input, exclusive OR operation is performed on these, and the corresponding bit is calculated according to the calculation result. When a plurality of bit value operation logic circuits that are output as increment values of and a bit input value of a plurality of consecutive bits are input, an AND operation of these is performed, and when all the bits are the maximum value of the bits, A switching signal generating circuit for outputting a switching signal; a carry value to a least significant bit of the plurality of consecutive bits; The carry value from the most significant bit is input, and normally the carry value from the most significant bit is output as the carry value from the most significant bit of the plurality of consecutive bits, and the switching signal is input. A selector that outputs a carry value to the least significant bit as a carry value from the most significant bit, and a data consisting of a plurality of increment values by adding a predetermined fixed value to data consisting of a plurality of bits. In the incrementer that outputs a, a bit input value of at least two or more consecutive bits of the plurality of consecutive bits is input, an AND operation of these is performed, and a multi-bit operation value is calculated according to the operation result. A multi-bit operation value operation logic circuit to be output, and a plurality of continuous The carry value to the least significant bit of the bit and the multi-bit operation value are input, and a logical AND operation of these is performed, and a multi-bit carry value according to the operation result is used for the multi-bit operation value operation. And a logic circuit for calculating a multi-bit carry value which is output as a carry value from the most significant bit of a plurality of consecutive bits input to the logic circuit.

【0019】この発明に係るインクリメンタは、多ビッ
ト演算値演算用論理回路が、2個から4個のビットのビ
ット入力値が入力されるものである。
In the incrementer according to the present invention, the multi-bit operation value operation logic circuit receives a bit input value of 2 to 4 bits.

【0020】この発明に係るインクリメンタは、多ビッ
ト演算値演算用論理回路の入力ビット数は、セレクタに
より分割された単位ごとに異なるものである。
In the incrementer according to the present invention, the number of input bits of the multi-bit operation value operation logic circuit is different for each unit divided by the selector.

【0021】この発明に係るインクリメンタは、多ビッ
ト演算値演算用論理回路が、固定値が加算されるビット
よりも上位側のビットをそのビット入力値とするもので
ある。
[0021] In the incrementer according to the present invention, the multi-bit operation value operation logic circuit uses a bit higher than the bit to which the fixed value is added as the bit input value.

【0022】この発明に係るインクリメンタは、固定値
を加算するビットの位置を複数のビットの間から1つの
ビットを排他的に選択して決定する固定値加算ビット位
置選択回路を設けるとともに、多ビット演算値演算用論
理回路は、この固定値の加算演算が行われる複数のビッ
トのうちの最上位のビットあるいはそれよりも上位側の
ビットをそのビット入力値とするものである。
The incrementer according to the present invention includes a fixed value addition bit position selection circuit for exclusively selecting one bit from among a plurality of bits to determine the position of a bit to which a fixed value is to be added. The bit operation value operation logic circuit uses the most significant bit or a higher order bit among the plurality of bits on which the fixed value addition operation is performed as the bit input value.

【0023】[0023]

【発明の実施の形態】以下、この発明の実施の一形態に
ついて説明する。 実施の形態1.図1はこの発明の実施の形態1による複
数のビットからなるデータが入力されるインクリメンタ
の構成を示すブロック図である。図において、1はそれ
ぞれ「0」(ローレベル、以下同様)または「1」(ハ
イレベル、以下同様)の値を有する入力データのビット
入力値が入力されるデータ入力端子、2はそれぞれ
「0」または「1」の値を有する出力データのビットイ
ンクリメント値が出力されるデータ出力端子、3は入力
データの最下位側2ビットに対応した2つのデータ入力
端子1が接続され、この2つのデータ入力端子1から入
力される2ビットの入力値に対して固定値「1」を加算
演算し、この演算結果を出力データの最下位側2ビット
の2つのデータ出力端子2から出力する2ビット用固定
値加算演算ブロック、4はそれぞれ入力データの任意の
2ビットに対応した2つのデータ入力端子1に接続され
るとともにデータのビット配列方向において下位側のブ
ロックからの繰り上げ値が入力され、この2つのデータ
入力端子1から入力される2ビットの入力値に対して繰
り上げ値を加算演算し、この演算結果を出力データの任
意の2つのデータ出力端子2から出力する2ビット用繰
り上げ値加算演算ブロックである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a block diagram showing a configuration of an incrementer to which data consisting of a plurality of bits is input according to the first embodiment of the present invention. In the figure, 1 is a data input terminal to which a bit input value of input data having a value of “0” (low level, the same applies hereinafter) or “1” (high level, the same applies hereinafter) is input, and 2 is a 0 A data output terminal 3 for outputting a bit increment value of output data having a value of "1" or "1" is connected to two data input terminals 1 corresponding to the two least significant bits of the input data. A 2-bit input value for adding a fixed value "1" to a 2-bit input value input from the input terminal 1 and outputting the operation result from the two least significant 2 bits of the output data from the two data output terminals 2 The fixed value addition operation block 4 is connected to two data input terminals 1 corresponding to arbitrary two bits of the input data, respectively, and is a lower block in the data bit arrangement direction. A carry value is input from the data input terminal, a carry value is added to the 2-bit input value input from the two data input terminals 1, and the operation result is output to any two data output terminals of output data. 2 is a 2-bit carry value addition operation block output from 2.

【0024】また、この実施の形態1によるインクリメ
ンタはデータの最下位ビット側から4ブロック(8ビッ
ト)毎(分割単位)に分割され、この4ブロック毎にキ
ャリールックアヘッド回路が設けられている。以下、こ
の分割単位となっている4ブロックをまとめてブロック
群とよぶ。図において、5はそれぞれデータのビット配
列方向において連続する2組のブロック群の繰り上げ値
が入力されるセレクタ、6はそれぞれ各セレクタ5に対
応して設けられ、上位側のブロック群の4つのブロック
4から出力されるブロック別切り替え信号がすべて
「1」である場合には有意の切り替え信号をセレクタ5
に対して出力する切り替え信号生成回路である。
The incrementer according to the first embodiment is divided into four blocks (eight bits) (division unit) from the least significant bit of data, and a carry look ahead circuit is provided for each of the four blocks. . Hereinafter, the four blocks serving as the division unit are collectively referred to as a block group. In the figure, reference numeral 5 denotes a selector to which carry-up values of two sets of blocks continuous in the data bit arrangement direction are input, and 6 denotes four blocks of the higher-order block group, which are provided corresponding to the respective selectors 5. If all the block-by-block switching signals output from 4 are “1”, a significant switching signal is output to the selector 5.
Is a switching signal generation circuit that outputs the switching signal.

【0025】図2はこの発明の実施の形態1による2ビ
ット用固定値加算演算ブロック3を示す回路図である。
図において、7は固定値「1」が加算されるデータの最
下位ビットのビット入力値が入力される第一ビット入力
端子、8は最下位ビットよりも1つ上位側のビットのビ
ット入力値が入力される第二ビット入力端子、9は出力
データの最下位ビットのビットインクリメント値が出力
される第一ビット出力端子、10は最下位ビットよりも
1つ上位側のビットのビットインクリメント値が出力さ
れる第二ビット出力端子、11は第一ビット入力端子7
と第一ビット出力端子9との間に接続され、第一ビット
入力端子7から入力されたビット入力値を反転させて第
一ビット出力端子9へビットインクリメント値として出
力する固定値加算用インバータ、12は第一ビット入力
端子7と第二ビット入力端子8とが接続され、これら2
つの端子7,8のビット入力値の排他論理和を演算し、
この演算結果を第二ビット出力端子10へビットインク
リメント値として出力する第二ビット用排他論理和演算
回路(ビット値演算用論理回路)である。
FIG. 2 is a circuit diagram showing a 2-bit fixed value addition operation block 3 according to the first embodiment of the present invention.
In the figure, reference numeral 7 denotes a first bit input terminal to which a bit input value of a least significant bit of data to which a fixed value “1” is added is input, and 8 denotes a bit input value of a bit one bit higher than the least significant bit Is a second bit input terminal, 9 is a first bit output terminal from which a bit increment value of the least significant bit of the output data is output, and 10 is a bit increment value of a bit one bit higher than the least significant bit. The output second bit output terminal 11 is the first bit input terminal 7
A fixed value addition inverter connected between the first bit output terminal 9 and the inverter for inverting a bit input value input from the first bit input terminal 7 and outputting the inverted bit input value to the first bit output terminal 9 as a bit increment value; Reference numeral 12 denotes a connection between the first bit input terminal 7 and the second bit input terminal 8;
The exclusive OR of the bit input values of the two terminals 7 and 8 is calculated,
A second-bit exclusive OR operation circuit (bit value operation logic circuit) that outputs the operation result to the second bit output terminal 10 as a bit increment value.

【0026】また、13は第一ビット入力端子7と第二
ビット入力端子8とが接続され、これら2つの端子7,
8のビット入力値の論理積を演算し、この演算結果を第
二ビットの繰り上げ値として出力する第二ビット繰り上
げ値演算用論理積演算回路(繰り上げ値演算用論理回
路)、14はこの第二ビットの繰り上げ値をこのブロッ
ク3の繰り上げ値として出力する繰り上げ値出力端子、
15はこの第二ビットの繰り上げ値をこのブロック3の
ブロック別切り替え信号として出力する切り替え信号出
力端子である。
Reference numeral 13 denotes a connection between the first bit input terminal 7 and the second bit input terminal 8, and these two terminals 7,
A logical AND operation circuit for a second bit carry value operation (a carry value operation logic circuit) for calculating a logical product of the bit input values of 8 and outputting the result of the operation as a carry value of the second bit. A carry value output terminal for outputting a carry value of a bit as a carry value of the block 3;
A switching signal output terminal 15 outputs the carry value of the second bit as a switching signal for each block of the block 3.

【0027】図3はこの発明の実施の形態1による2ビ
ット用繰り上げ値加算演算演算ブロック4を示す回路図
である。図において、16は当該ブロック4に入力され
る2つのビットのうちの一番下のビットのビット入力値
が入力される第一ビット入力端子、17は当該ブロック
4に入力される2つのビットのうちの下から2番目のビ
ットのビット入力値が入力される第二ビット入力端子、
18は上記一番下のビットに対応するビットインクリメ
ント値が出力される第一ビット出力端子、19は上記下
から2番目のビットに対応するビットインクリメント値
が出力される第二ビット出力端子、20は下位側のブロ
ックの繰り上げ値出力端子14,26に接続される繰り
上げ値入力端子、21は繰り上げ値入力端子20と第一
ビット入力端子16とが接続され、これら2つの端子1
6,20の入力値の排他論理和を演算し、この演算結果
を第一ビット出力端子18へビットインクリメント値と
して出力する第一ビット用排他論理和演算回路(ビット
値演算用論理回路)、22は繰り上げ値入力端子20と
第一ビット入力端子16とが接続され、これら2つの端
子16,20の入力値の論理積を演算し、この演算結果
をそれよりも1つ上位である下から2番目のビットへの
繰り上げ値として出力する第一ビット繰り上げ値演算用
論理積演算回路(ビット値演算用論理回路)、23は下
から2番目のビット入力端子17が接続されるとともに
上記下から2番目のビットへの繰り上げ値が入力され、
これら2つの入力値の排他論理和を演算し、この演算結
果を第二ビット出力端子19へビットインクリメント値
として出力する第二ビット用排他論理和演算回路(ビッ
ト値演算用論理回路)である。
FIG. 3 is a circuit diagram showing a 2-bit carry value addition operation calculation block 4 according to the first embodiment of the present invention. In the figure, reference numeral 16 denotes a first bit input terminal to which a bit input value of the lowest bit of the two bits input to the block 4 is input, and 17 denotes a first bit input terminal to which two bits input to the block 4 are input. A second bit input terminal to which a bit input value of a second bit from the bottom is input;
Reference numeral 18 denotes a first bit output terminal for outputting a bit increment value corresponding to the lowest bit, 19 denotes a second bit output terminal for outputting a bit increment value corresponding to the second bit from the bottom, 20 Is a carry value input terminal connected to the carry value output terminals 14 and 26 of the lower block, 21 is a carry value input terminal 20 connected to the first bit input terminal 16, and these two terminals 1
Exclusive OR operation circuit for first bit (bit value operation logic circuit), which calculates the exclusive OR of the input values of 6, 6 and 20, and outputs the operation result to the first bit output terminal 18 as a bit increment value; Is connected to the carry-up value input terminal 20 and the first bit input terminal 16, calculates the logical product of the input values of these two terminals 16 and 20, and outputs the result of the calculation from the lower one, which is one higher than that. A first bit carry value operation AND circuit (bit value operation logic circuit) which outputs a carry value to the second bit is connected to the second bit input terminal 17 from the bottom and is connected to the second from the bottom. The carry value for the th bit is entered,
A second-bit exclusive-OR operation circuit (a bit-value operation logic circuit) that performs an exclusive-OR operation on these two input values and outputs the operation result to the second bit output terminal 19 as a bit increment value.

【0028】また、24は当該ブロック4に入力される
全てのビットである一番下のビット接続端子16と下か
ら2番目のビットの接続端子17とが接続され、これら
の論理積演算を行い、その演算結果に応じて多ビット演
算値を出力する多ビット演算値演算用論理回路、25は
繰り上げ値入力端子20が接続されるとともにこの多ビ
ット演算値が入力され、これら2つの入力値の論理積を
演算し、この演算結果をこのブロック4の最上位のビッ
ト(下から2番目のビット)の繰り上げ値として出力す
る多ビット繰り上げ値演算用論理回路、26はこの最上
位ビットの繰り上げ値をこのブロック4の繰り上げ値と
して出力する繰り上げ値出力端子、27は多ビット演算
値演算用論理回路24の出力である多ビット演算値をこ
のブロック4のブロック別切り替え信号として出力する
切り替え信号出力端子である。
The reference numeral 24 denotes a connection between the lowest bit connection terminal 16 which is all the bits input to the block 4 and the connection terminal 17 of the second bit from the bottom, and performs a logical product operation on these. A multi-bit operation value operation logic circuit 25 for outputting a multi-bit operation value in accordance with the operation result; 25 is connected to the carry-up value input terminal 20 and receives the multi-bit operation value; A multi-bit carry value calculating logic circuit for performing a logical product operation and outputting the result of the calculation as a carry value of the most significant bit (the second bit from the bottom) of the block 4; 26 is a carry value of the most significant bit Is a carry-up value output terminal for outputting the carry-up value of the block 4 as a carry-up value of the block 4. Tsu is a switching signal output terminal for outputting a distinction switching signal.

【0029】次に動作について説明する。入力データを
複数のデータ入力端子1から入力すると、まず、2ビッ
ト用固定値加算演算ブロック3の固定値加算用インバー
タ11が第一ビット入力端子7から入力される当該入力
データの最下位ビットのビット入力値を反転させ、これ
を第一ビット出力端子9を介してデータ出力端子2から
出力する。従って、この第一ビット出力端子9からは第
一ビット入力端子7のビット入力値に固定値「1」を加
えたビットインクリメント値が出力されることになる。
Next, the operation will be described. When input data is input from a plurality of data input terminals 1, first, the fixed value addition inverter 11 of the 2-bit fixed value addition operation block 3 outputs the least significant bit of the input data input from the first bit input terminal 7. The bit input value is inverted and output from the data output terminal 2 via the first bit output terminal 9. Therefore, the first bit output terminal 9 outputs a bit increment value obtained by adding the fixed value “1” to the bit input value of the first bit input terminal 7.

【0030】これと同時に、第二ビット用排他論理和演
算回路12が第一ビット入力端子7と第二ビット入力端
子8とから入力される2つのビット入力値に基づいて排
他論理演算を行い、いずれか一方の値が「1」であると
きには「1」のデータを第二ビット出力端子10に出力
する。更にこれと同時に、第二ビット繰り上げ値演算用
論理積演算回路13が第一ビット入力端子7と第二ビッ
ト入力端子8のビット入力値に基づいて論理積演算を行
い、これらがともに「1」である場合には第二ビットの
繰り上げ値として「1」を出力する。
At the same time, the exclusive OR operation circuit 12 for the second bit performs an exclusive logical operation based on the two bit input values input from the first bit input terminal 7 and the second bit input terminal 8, When one of the values is “1”, data of “1” is output to the second bit output terminal 10. At the same time, the AND operation circuit 13 for second bit carry value operation performs AND operation based on the bit input values of the first bit input terminal 7 and the second bit input terminal 8, and both of them are “1”. In the case of, "1" is output as the carry value of the second bit.

【0031】次に、この2ビット用固定値加算演算ブロ
ック3の繰り上げ値出力端子14に繰り上げ値入力端子
20が接続された2番目のブロックである2ビット用繰
り上げ値加算演算ブロック4が動作する。具体的には、
当該ブロック4の第一ビット用排他論理和演算回路21
が2ビット用固定値加算演算ブロック3の繰り上げ値と
3番目のデータ入力端子1に入力されたビット入力値と
の排他論理和演算を行って、いずれか一方の値が「1」
であるときには「1」のビットインクリメント値を第一
ビット出力端子18を介して第3番目のデータ出力端子
2に出力する。これと同時に、第一ビット繰り上げ値演
算用論理積演算回路22が上記下位ブロック3からの繰
り上げ値と上記3番目のビット入力値との論理積演算を
行って、これらがともに「1」である場合には「1」の
第3ビットの繰り上げ値を出力し、多ビット演算値演算
用論理回路24が当該ブロック4に入力される全てのビ
ットである第3番目のビット入力値と第4番目のビット
入力値との論理積演算を行い、これらがともに「1」で
ある場合には「1」の多ビット演算値を出力する。
Next, a 2-bit carry value addition operation block 4, which is the second block in which the carry value input terminal 20 is connected to the carry value output terminal 14 of the 2-bit fixed value addition operation block 3, operates. . In particular,
Exclusive OR operation circuit 21 for first bit of block 4
Performs an exclusive OR operation on the carry-up value of the 2-bit fixed value addition operation block 3 and the bit input value input to the third data input terminal 1, and one of the values is "1"
, The bit increment value of “1” is output to the third data output terminal 2 via the first bit output terminal 18. At the same time, the AND operation circuit 22 for the first bit carry value operation performs a logical AND operation of the carry value from the lower block 3 and the third bit input value, and these are both "1". In this case, the carry value of the third bit of “1” is output, and the multi-bit operation value operation logic circuit 24 outputs the third bit input value, which is all the bits input to the block 4, and the fourth bit. AND operation is performed with the bit input value of, and when both are "1", a multi-bit operation value of "1" is output.

【0032】次に、当該ブロック4の第二ビット用排他
論理和演算回路23が第2への繰り上げ値出力と第二デ
ータ入力端子17に入力された第4番目のビット入力値
との排他論理和演算を行って、いずれか一方の値が
「1」であるときには「1」のビットインクリメント値
を第二ビット出力端子19を介して第4番目のデータ出
力端子2から出力する。これと同時に、多ビット繰り上
げ値演算用論理回路25が上記第2番目のビットからの
繰り上げ値と多ビット演算値との論理積演算を行い、こ
れらがともに「1」である場合には「1」の第四ビット
の繰り上げ値を出力する。
Next, the exclusive-OR operation circuit 23 for the second bit of the block 4 performs an exclusive-OR operation on the output of the carry-up value to the second and the fourth bit input value input to the second data input terminal 17. The sum operation is performed, and when one of the values is “1”, the bit increment value of “1” is output from the fourth data output terminal 2 via the second bit output terminal 19. At the same time, the multi-bit carry value operation logic circuit 25 performs a logical product operation of the carry value from the second bit and the multi-bit operation value, and when both are “1”, “1” is obtained. Is output as the carry value of the fourth bit.

【0033】このように下位ビットからの繰り上げ値が
決定されるとそれに応じて当該ビットのビットインクリ
メント値がデータ出力端子2から出力されるので、この
動作をデータ配列方向の下位側から上位側にかけて順次
繰り上げ値を決定することにより、入力データのインク
リメント値がデータ出力端子2から出力される。
When the carry value from the lower bit is determined in this manner, the bit increment value of the bit is output from the data output terminal 2 in response to the determination, and this operation is performed from the lower side to the upper side in the data array direction. By sequentially determining the carry value, the increment value of the input data is output from the data output terminal 2.

【0034】そして、このような動作が各ブロック3,
4において順次実行される一方で、各ブロック3,4か
らブロック別切り替え信号が出力されると切り替え信号
生成回路6から切り替え信号が出力され、これに応じて
セレクタ5がブロック群内の最上位ビットの繰り上げ値
と、下位のブロック群からの繰り上げ値とのうちから一
方を選択し、これをその上位に接続されたブロック4へ
の繰り上げ値として出力する。具体的には、ブロック群
内の全てのブロック4から「1」の値のブロック別切り
替え信号が出力されると切り替え信号生成回路6から
「1」の値の切り替え信号が出力され、これに応じてセ
レクタ5が下位のブロック群からの繰り上げ値を選択
し、これをその上位に接続されたブロック4への繰り上
げ値として出力する。逆に、どれか1つでも「0」の値
のブロック別切り替え信号が出力されると切り替え信号
生成回路6から「0」の値の切り替え信号が出力され、
これに応じてセレクタ5がブロック群内の最上位ビット
の繰り上げ値を選択し、これをその上位に接続されたブ
ロック4への繰り上げ値として出力する。なお、このよ
うな条件で選ばれる上記ブロック群内の最上位ビットの
繰り上げ値は常に「0」であり、実際にはセレクタ5か
ら有意な繰り上げ値は出力されない。
Such an operation is performed in each block 3,
4, while a switching signal for each block is output from each of the blocks 3 and 4, a switching signal is output from the switching signal generation circuit 6, and in response to this, the selector 5 sets the most significant bit in the block group. , And one of the carry values from the lower block group, and outputs this as the carry value to the block 4 connected to the upper block. More specifically, when a block-by-block switching signal having a value of “1” is output from all the blocks 4 in the block group, a switching signal having a value of “1” is output from the switching signal generation circuit 6. The selector 5 selects the carry value from the lower block group and outputs this as the carry value to the block 4 connected to the upper block. Conversely, when any one of the block-by-block switching signals of “0” is output, the switching signal generation circuit 6 outputs a switching signal of “0”,
In response to this, the selector 5 selects the carry value of the most significant bit in the block group and outputs this as the carry value to the block 4 connected to the higher order. Note that the carry value of the most significant bit in the block group selected under such conditions is always "0", and a significant carry value is not actually output from the selector 5.

【0035】従って、この実施の形態1によるインクリ
メンタでは、各ブロック4において多ビット演算値演算
用論理回路24と多ビット繰り上げ値演算用論理回路2
5とを用いているので、各ブロック4に2ビット分のデ
ータを入力しているにもかかわらず、下位のブロックか
らの繰り上げ値が入力されてから論理演算回路1つ分の
遅延時間で、上位のブロックに対して繰り上げ値を確定
して出力することができる。
Therefore, in the incrementer according to the first embodiment, in each block 4, a multi-bit operation value operation logic circuit 24 and a multi-bit carry value operation logic circuit 2
Therefore, although 2 bits of data are input to each block 4, the delay time of one logical operation circuit after the carry-up value is input from the lower block is obtained. The carry value can be determined and output for the upper block.

【0036】そして、4ブロック毎にセレクタと切り替
え信号生成回路とを設けていることと相俟って、たとえ
ば、繰り上げ値を順次決定していくような従来のインク
リメンタであれば、各セレクタ5の出力である繰り上げ
値が確定するまでには15個分(繰り上げ値演算が15
回)のあるいは23個分(繰り上げ値演算が23回)の
論理演算回路を通過しなければならなかったのに対し
て、5個分(最下位側の4つのブロックの繰り上げ値演
算とセレクタ1つ分)あるいは6個分(最下位側の4つ
のブロックとセレクタ2つ分)の論理演算回路を通過す
ればその値を確定することができ、最上位のビットへの
繰り上げ値が確定するまでにあっても27個分(繰り上
げ値演算が15回)から8個分(最下位側の4つのブロ
ックとセレクタ2つ分と最上位側2つのブロック)へと
格段に削減されることになる。
In combination with the provision of the selector and the switching signal generation circuit for every four blocks, for example, in the case of a conventional incrementer for sequentially determining the carry value, each selector 5 Until the carry-up value, which is the output of (1), is determined (the carry-up value calculation is
Times) or 23 (the carry-up value calculation is 23 times) logical operation circuits, but 5 carry-outs (the carry-up value calculation of the four lowest blocks and the selector 1) ) Or six (the lower four blocks and two selectors) logic operation circuits, the value of which can be determined. Until the carry value to the most significant bit is determined. , The number is remarkably reduced from 27 (15 carry-up operations) to 8 (4 lowermost blocks, 2 selectors and 2 uppermost blocks). .

【0037】以上のように、この実施の形態1によれ
ば、連続した2ビット分のビット入力値が入力され、こ
れらの論理積演算を行い、その演算結果に応じて多ビッ
ト演算値を出力する多ビット演算値演算用論理回路24
と、上記2ビットのうちの最下位ビットへの繰り上げ値
と上記多ビット演算値とが入力され、これらの論理積演
算を行い、その演算結果を上記2ビットのうちの最上位
ビットからの繰り上げ値として出力する多ビット繰り上
げ値演算用論理回路25とを設けているので、当該2ビ
ットのうちの最下位ビットへの繰り上げ値がデータの入
力タイミングよりも遅れてくるような場合であっても、
多ビット演算値演算用論理回路24が当該繰り上げ値の
到達前に当該複数の連続したビットの多ビット演算値を
算出し、多ビット繰り上げ値演算用論理回路25はこの
最下位ビットへの繰り上げ値が到達したらすぐに当該最
下位ビットよりも数ビット上位のビットへの繰り上げ値
を生成することができる効果がある。
As described above, according to the first embodiment, two consecutive bit input values are input, a logical AND operation is performed, and a multi-bit operation value is output according to the operation result. Multi-bit operation value operation logic circuit 24
And the carry value to the least significant bit of the two bits and the multi-bit operation value are input, perform an AND operation of these, and carry the operation result from the most significant bit of the two bits Since the multi-bit carry value calculation logic circuit 25 that outputs a value is provided, even if the carry value to the least significant bit of the two bits is later than the data input timing. ,
Before reaching the carry value, the multi-bit operation value operation logic circuit 24 calculates the multi-bit operation value of the plurality of consecutive bits, and the multi-bit carry value operation logic circuit 25 calculates the carry value to the least significant bit. Has an effect that a carry-up value to a bit several bits higher than the least significant bit can be generated immediately after.

【0038】従って、多ビット繰り上げ値演算用論理積
演算回路25と同様な回路を各ビット毎に設けたような
従来のインクリメンタに比べて、繰り上げ値の上位側の
ビットへの伝播遅延時間を短縮することができ、従来の
ものよりも早くインクリメント処理を完了することがで
きる効果がある。
Therefore, as compared with a conventional incrementer in which a circuit similar to the AND operation circuit 25 for multi-bit carry value calculation is provided for each bit, the propagation delay time of the carry value to the higher-order bit is reduced. Thus, the increment processing can be completed earlier than the conventional one.

【0039】特に、セレクタ5により分割された1つの
分割単位(ブロック群)内において繰り上げ値が生成さ
れるまでの遅延時間を短縮化させているので、その分こ
の分割単位に含ませることができるビット数を増加させ
ても(ここでは8ビットに増加させている)その分割単
位よりも下位からの繰り上げ値が繰り上げられてくるま
での間に、その分割単位内での繰り上げ値を生成するこ
とができる。従って、単にセレクタ5のみで複数のビッ
トを分割して高速化を図っていた従来の場合(例えば4
ブロックで4ビット入力のような場合)に比べて、この
セレクタ5により分割される1つの分割単位(ブロック
群)に含ませることができるビット数を増加させること
ができる(例えば4から8へ増加させることができる)
ので、インクリメンタ全体としてはセレクタ5によるデ
ータの分割数を削減することができ、ひいては、従来の
ように単にセレクタ5で複数のビットを分割していた場
合よりも更に繰り上げ値の上位ビットへの伝播遅延時間
を短縮することができ、従来のものでは到底得ることが
できなかったインクリメント処理速度を実現することが
できる効果がある。
In particular, since the delay time until a carry value is generated in one division unit (block group) divided by the selector 5 is shortened, it can be included in this division unit accordingly. Even if the number of bits is increased (here, the number of bits is increased to 8 bits), a carry value within the division unit is generated before a carry value from the lower part of the division unit is carried forward. Can be. Therefore, in the conventional case in which a plurality of bits are simply divided only by the selector 5 to increase the speed (for example, 4 bits).
The number of bits that can be included in one division unit (block group) divided by the selector 5 can be increased (for example, from 4 to 8) as compared with the case where a block is input with 4 bits. Can be)
As a result, the number of data divisions by the selector 5 can be reduced as a whole of the incrementer, and as a result, the carry value to the higher-order bits can be further increased as compared with the conventional case where a plurality of bits are simply divided by the selector 5. There is an effect that the propagation delay time can be shortened and an increment processing speed that can not be obtained by the conventional device can be realized.

【0040】実施の形態2.図4はこの発明の実施の形
態2による複数のビットからなるデータが入力されるイ
ンクリメンタの構成を示すブロック図である。図におい
て、28は入力データの最下位側3ビットに対応した3
つのデータ入力端子1が接続され、この3つのデータ入
力端子1から入力される3ビット入力値に対して固定値
「1」を加算演算し、この演算結果を出力データの最下
位側3ビットに対応した3つのデータ出力端子2に出力
する3ビット用固定値加算演算ブロック、29はそれぞ
れ入力データの任意の3ビットに対応した3つのデータ
入力端子1に接続されるとともにデータの配列において
下位側のブロックからの繰り上げ値が入力され、この3
つのデータ入力端子1から入力される3ビット入力値に
対して繰り上げ値を加算演算し、この演算結果を出力デ
ータの任意の3ビットに対応した3つのデータ出力端子
2に出力する3ビット用繰り上げ値加算演算ブロックで
ある。
Embodiment 2 FIG. 4 is a block diagram showing a configuration of an incrementer to which data consisting of a plurality of bits is input according to the second embodiment of the present invention. In the figure, reference numeral 28 denotes 3 corresponding to the least significant 3 bits of the input data.
The three data input terminals 1 are connected, a fixed value "1" is added to the 3-bit input value input from the three data input terminals 1, and the operation result is added to the least significant three bits of the output data. A 3-bit fixed value addition operation block 29 for outputting to the corresponding three data output terminals 2 is connected to three data input terminals 1 corresponding to arbitrary three bits of the input data, respectively, and at the lower side in the data array. The carry-up value from the block is input.
A 3-bit carry-up operation for adding a carry value to a 3-bit input value input from one of the data input terminals 1 and outputting the operation result to three data output terminals 2 corresponding to arbitrary 3 bits of output data This is a value addition operation block.

【0041】図5はこの発明の実施の形態2による3ビ
ット用固定値加算演算ブロック28を示す回路図であ
る。図において、30は最下位ビットよりも2つ上位側
のビットのビット入力値が入力される第三ビット入力端
子、31は最下位ビットよりも2つ上位側のビットのビ
ットインクリメント値が出力される第三ビット出力端
子、32は第一ビット入力端子7と第二ビット入力端子
8とが接続され、これら2つの端子7,8の入力値の論
理積を演算し、この演算結果をそれよりも1つ上位であ
る下から3番目のビットへの繰り上げ値として出力する
第二ビット繰り上げ値演算用論理積演算回路(繰り上げ
値演算用論理回路)、33は第三ビット入力端子30が
接続されるとともに上記下から3番目のビットへの繰り
上げ値が入力され、これら2つの入力値の排他論理和を
演算し、この演算結果を第三ビット出力端子31へビッ
トインクリメント値として出力する第三ビット用排他論
理和演算回路(ビット値演算用論理回路)である。
FIG. 5 is a circuit diagram showing a 3-bit fixed value addition operation block 28 according to the second embodiment of the present invention. In the figure, reference numeral 30 denotes a third bit input terminal to which a bit input value of a bit two higher bits than the least significant bit is input, and 31 denotes a bit increment value of a bit two bits higher than the lowest bit. The third bit output terminal 32 is connected to the first bit input terminal 7 and the second bit input terminal 8 and calculates the logical product of the input values of these two terminals 7 and 8, and calculates the result of this operation. A second bit carry value operation AND circuit (carry value operation logic circuit) which outputs a carry value to the third bit from the bottom, which is one higher order, and 33 is connected to the third bit input terminal 30. At the same time, the carry value to the third bit from the bottom is input, the exclusive OR of these two input values is calculated, and the calculation result is output to the third bit output terminal 31 as a bit increment value. A third bit for exclusive operation circuit for outputting (bit value calculation logic circuit).

【0042】また、34は第一ビット入力端子7、第二
ビット入力端子8および第三ビット入力端子30が接続
され、これら3つの端子7,8,30のビット入力値の
論理積を演算し、この演算結果を第3ビットの繰り上げ
値として出力する第三ビット繰り上げ値演算用論理積演
算回路(繰り上げ値演算用論理回路)であり、繰り上げ
値出力端子14と切り替え信号出力端子15とはこの第
3ビットの繰り上げ値を出力する。
Reference numeral 34 is connected to the first bit input terminal 7, the second bit input terminal 8, and the third bit input terminal 30, and calculates the logical product of the bit input values of these three terminals 7, 8, 30. A third-bit carry-value operation AND circuit (carry-value operation logic circuit) for outputting the result of this operation as a carry-up value of the third bit. The carry-value output terminal 14 and the switching signal output terminal 15 The carry value of the third bit is output.

【0043】図6はこの発明の実施の形態2による3ビ
ット用繰り上げ値加算演算演算ブロック29を示す回路
図である。図において、35は当該ブロック29に入力
される3つのビットのうちの下から3番目のビットのビ
ット入力値が入力される第三ビット入力端子、36は上
記下から3番目のビットに対応するインクリメント値が
出力される第三ビット出力端子、37は下から2番目の
ビットへの繰り上げ値と第二ビット入力端子17のビッ
ト入力値とが入力され、これら2つの入力値の論理積を
演算し、この演算結果をそれよりも1つ上位である下か
ら3番目のビットへの繰り上げ値として出力する第二ビ
ット繰り上げ値演算用論理積演算回路(繰り上げ値演算
用論理回路)、38は第三ビット入力端子35が接続さ
れるとともに上記下から3番目のビットへの繰り上げ値
が入力され、これら2つの入力値の排他論理和を演算
し、この演算結果を第三ビット出力端子36へビットイ
ンクリメント値として出力する第三ビット用排他論理和
演算回路(ビット値演算用論理回路)である。
FIG. 6 is a circuit diagram showing a 3-bit carry value addition operation calculation block 29 according to the second embodiment of the present invention. In the figure, 35 is a third bit input terminal to which the bit input value of the third bit from the bottom of the three bits input to the block 29 is input, and 36 corresponds to the third bit from the bottom. A third bit output terminal 37 from which the increment value is output, a carry-up value to the second bit from the bottom and a bit input value of the second bit input terminal 17 are input, and a logical product of these two input values is calculated. A second-bit carry-value operation AND circuit (carry-value operation logic circuit) for outputting the result of this operation as a carry value to the third bit from the bottom, which is one bit higher than that, The 3-bit input terminal 35 is connected, and the carry value to the third bit from the bottom is input. The exclusive OR of these two input values is calculated, and the calculation result is expressed as the third bit. A third bit for exclusive operation circuit for outputting to the force terminal 36 as the bit increment value (bit value calculation logic circuit).

【0044】また、39は当該ブロック29に入力され
る全てのビットである3つのビット入力端子16,1
7,35が接続され、これらの論理積演算を行い、その
演算結果に応じて多ビット演算値を出力する多ビット演
算値演算用論理回路であり、多ビット繰り上げ値演算用
論理回路25はこの多ビット演算値と繰り上げ値入力端
子20から入力される繰り上げ値との論理積を演算し、
この演算結果をこのブロックの最上位のビット(下から
3番目のビット)の繰り上げ値として出力し、切り替え
信号出力端子27はこの多ビット演算値をこのブロック
29のブロック別切り替え信号として出力する。
Numeral 39 designates three bit input terminals 16, 1 which are all bits input to the block 29.
7 and 35 are multi-bit operation value operation logic circuits for performing a logical product operation of these and outputting a multi-bit operation value in accordance with the operation result. The multi-bit carry value operation logic circuit 25 The logical product of the multi-bit operation value and the carry value input from the carry value input terminal 20 is calculated,
This operation result is output as a carry value of the most significant bit (third bit from the bottom) of this block, and the switching signal output terminal 27 outputs this multi-bit operation value as a block-by-block switching signal of this block 29.

【0045】次に動作について説明する。3ビット用固
定値加算演算ブロック28において、第二ビット繰り上
げ値演算用論理積演算回路32は、第一ビット入力端子
7と第二ビット入力端子8との入力値がともに「1」で
あるとき、下から3番目のビットへの繰り上げ値として
「1」の値を出力し、第三ビット用排他論理和演算回路
33は、この下から3番目のビットへの繰り上げ値およ
び第三ビット入力端子30から入力される下から3番目
のビット入力値とのいずれか一方が「1」であるときに
「1」のデータを第三ビット出力端子31に出力する。
また、第三ビット繰り上げ値演算用論理積演算回路34
は第一ビット入力端子7、第二ビット入力端子8および
第三ビット入力端子30の全ての入力値が「1」である
とき、「1」の値を有する第3ビットの繰り上げ値を出
力する。
Next, the operation will be described. In the 3-bit fixed value addition operation block 28, the second bit carry value operation AND circuit 32 operates when the input values of the first bit input terminal 7 and the second bit input terminal 8 are both "1". , Outputs the value of “1” as the carry value to the third bit from the bottom, and the third bit exclusive OR operation circuit 33 outputs the carry value to the third bit from the bottom and the third bit input terminal. When any one of the third bit input values from the bottom 30 is “1”, the data of “1” is output to the third bit output terminal 31.
Further, a logical product operation circuit 34 for third bit carry value operation
Outputs the carry value of the third bit having a value of "1" when all the input values of the first bit input terminal 7, the second bit input terminal 8 and the third bit input terminal 30 are "1". .

【0046】また、各3ビット用繰り上げ値加算演算ブ
ロック29において、第二ビット繰り上げ値演算用論理
積演算回路37は第二ビット入力端子17の入力値と下
から2番目のビットへの繰り上げ値とがともに「1」で
あるとき、下から3番目のビットへの繰り上げ値として
「1」の値を出力し、第三ビット用排他論理和演算回路
38は、この下から3番目のビットへの繰り上げ値およ
び第三ビット入力端子35から入力される下から3番目
のビット入力値とのいずれか一方が「1」であるときに
「1」のデータを第三ビット出力端子36に出力する。
また、多ビット繰り上げ値演算用論理回路39は第一ビ
ット入力端子16、第二ビット入力端子17および第三
ビット入力端子35の全ての入力値が「1」であると
き、「1」の値を有する第3ビットの繰り上げ値を出力
する。これ以外の動作は実施の形態1と同様であり説明
を省略する。
In each of the 3-bit carry-value addition operation blocks 29, the second-bit carry-value logical AND operation circuit 37 calculates the input value of the second bit input terminal 17 and the carry value from the second bit from the bottom. When both are “1”, the value of “1” is output as the carry value to the third bit from the bottom, and the third-bit exclusive-OR circuit 38 outputs the value to the third bit from the bottom. Is output to the third bit output terminal 36 when either one of the carry value and the third bit input value from the third bit input terminal 35 is “1”. .
The multi-bit carry value calculating logic circuit 39 sets the value of “1” when all the input values of the first bit input terminal 16, the second bit input terminal 17, and the third bit input terminal 35 are “1”. Is output as the carry value of the third bit. Other operations are the same as those in the first embodiment, and a description thereof will be omitted.

【0047】従って、この実施の形態2によるインクリ
メンタでは、各ブロック29において多ビット演算値演
算用論理回路39と多ビット繰り上げ値演算用論理回路
25とを用いているので、各ブロック29に3ビット分
のデータを入力しているにもかかわらず、論理演算回路
1つ分の遅延時間で、上位のブロックに対して繰り上げ
値を確定して出力することができる。
Therefore, in the incrementer according to the second embodiment, since each block 29 uses the multi-bit operation value operation logic circuit 39 and the multi-bit carry value operation logic circuit 25, each block 29 has 3 bits. Despite the input of data for bits, the carry value can be determined and output to the upper block with a delay time of one logical operation circuit.

【0048】そして、4ブロック毎にセレクタ5と切り
替え信号生成回路6とを設けていることと相俟って、た
とえば、インクリメンタとしての処理速度を維持したま
ま、28ビット入力から42ビット入力に入力ビット数
を拡大することができる。逆に言えば、同様のビット数
であれば、各セレクタ5により分割された分割単位(ブ
ロック群)内におけるビット数を増加させ、実施の形態
1よりも更にインクリメンタとしての処理速度を向上さ
せることができることになる。
Combined with the provision of the selector 5 and the switching signal generating circuit 6 for every four blocks, for example, a 28-bit input is changed to a 42-bit input while maintaining the processing speed as an incrementer. The number of input bits can be increased. Conversely, if the number of bits is the same, the number of bits in the division unit (block group) divided by each selector 5 is increased, and the processing speed as an incrementer is further improved as compared with the first embodiment. You can do it.

【0049】実施の形態3.図7はこの発明の実施の形
態3による複数のビットからなるデータが入力されるイ
ンクリメンタの構成を示すブロック図である。図におい
て、40は入力データの最下位側4ビットに対応した4
つのデータ入力端子1が接続され、この4つのデータ入
力端子1から入力される4ビット入力値に対して固定値
「1」を加算演算し、この演算結果を出力データの最下
位側4ビットに対応した4つのデータ出力端子2に出力
する4ビット用固定値加算演算ブロック、41はそれぞ
れ入力データの任意の4ビットに対応した4つのデータ
入力端子1に接続されるとともにデータの配列において
下位側のブロックからの繰り上げ値が入力され、この4
つのデータ入力端子1から入力される4ビット入力値に
対して繰り上げ値を加算演算し、この演算結果を出力デ
ータの任意の4ビットに対応した2つのデータ出力端子
2に出力する4ビット用繰り上げ値加算演算ブロックで
ある。
Embodiment 3 FIG. 7 is a block diagram showing a configuration of an incrementer to which data composed of a plurality of bits is input according to the third embodiment of the present invention. In the figure, reference numeral 40 denotes 4 corresponding to the 4 least significant bits of the input data.
The four data input terminals 1 are connected, a fixed value "1" is added to the 4-bit input value input from the four data input terminals 1, and this operation result is added to the least significant four bits of the output data. A 4-bit fixed value addition operation block 41 for outputting to the corresponding four data output terminals 2 is connected to four data input terminals 1 corresponding to arbitrary four bits of the input data, respectively, and is connected to the lower side in the data array. The carry-up value from the block is input.
A 4-bit carry-up operation for adding a carry value to a 4-bit input value input from one data input terminal 1 and outputting the operation result to two data output terminals 2 corresponding to arbitrary 4 bits of output data This is a value addition operation block.

【0050】図8はこの発明の実施の形態3による4ビ
ット用固定値加算演算ブロック40を示す回路図であ
る。図において、42は最下位ビットよりも3つ上位側
のビットのビット入力値が入力される第四ビット入力端
子、43は最下位ビットよりも3つ上位側のビットのビ
ットインクリメント値が出力される第四ビット出力端
子、44は第三ビット入力端子30の入力値と第3ビッ
トへの繰り上げ値とが入力され、これら2つの入力値の
論理積を演算し、この演算結果をそれよりも1つ上位で
ある下から4番目のビットへの繰り上げ値として出力す
る第三ビット繰り上げ値演算用論理積演算回路(繰り上
げ値演算用論理回路)、45は下から4番目のビット入
力端子42が接続されるとともに上記下から4番目のビ
ットへの繰り上げ値が入力され、これら2つの入力値の
排他論理和を演算し、この演算結果を第四ビット出力端
子43へビットインクリメント値として出力する第四ビ
ット用排他論理和演算回路(ビット値演算用論理回路)
である。
FIG. 8 is a circuit diagram showing a 4-bit fixed value addition operation block 40 according to the third embodiment of the present invention. In the figure, reference numeral 42 denotes a fourth bit input terminal to which a bit input value of a bit three bits higher than the least significant bit is input, and 43 denotes a bit increment value of a bit three bits higher than the least significant bit. The fourth bit output terminal 44 receives the input value of the third bit input terminal 30 and the carry-up value to the third bit, calculates the logical product of these two input values, and outputs the result of this operation. A third-bit carry-value operation AND circuit (carry-value operation logic circuit) that outputs a carry value to the fourth bit from the bottom, which is one higher order, and 45 is a fourth bit input terminal 42 from the bottom At the same time, the carry value to the fourth bit from the bottom is input and the exclusive OR of these two input values is calculated. The result of this calculation is bit-incremented to the fourth bit output terminal 43. Fourth bit for exclusive operation circuit for outputting a cement value (bit value calculation logic circuit)
It is.

【0051】また、46は第一ビット入力端子7、第二
ビット入力端子8、第三ビット入力端子30および第四
ビット入力端子42が接続され、これら4つの端子7,
8,30,42のビット入力値の論理積を演算し、この
演算結果を第四ビットの繰り上げ値として出力する第四
ビット繰り上げ値演算用論理積演算回路(繰り上げ値演
算用論理回路)であり、繰り上げ値出力端子14と切り
替え信号出力端子15とはこの第四ビットの繰り上げ値
を出力する。
Reference numeral 46 denotes a first bit input terminal 7, a second bit input terminal 8, a third bit input terminal 30, and a fourth bit input terminal 42, which are connected to each other.
A fourth-bit carry-value operation logical product operation circuit (a carry-value operation logic circuit) for calculating a logical product of the bit input values of 8, 30, and 42 and outputting the result of the calculation as a carry value of the fourth bit. The carry value output terminal 14 and the switching signal output terminal 15 output the carry value of the fourth bit.

【0052】図9はこの発明の実施の形態3による4ビ
ット用繰り上げ値加算演算演算ブロック41を示す回路
図である。図において、47は当該ブロック41に入力
される4つのビットのうちの下から4番目のビットのビ
ット入力値が入力される第四ビット入力端子、48は上
記下から4番目のビットに対応するビットインクリメン
ト値が出力される第四ビット出力端子、49は下から3
番目のビットへの繰り上げ値と第三ビット入力端子35
のビット入力値とが入力され、これら2つの入力値の論
理積を演算し、この演算結果をそれよりも1つ上位であ
る下から4番目のビットへの繰り上げ値として出力する
第三ビット繰り上げ値演算用論理積演算回路(繰り上げ
値演算用論理回路)、50は下から4番目のビット入力
端子47が接続されるとともに上記下から4番目のビッ
トへの繰り上げ値が入力され、これら2つの入力値の排
他論理和を演算し、この演算結果を第四ビット出力端子
48へビットインクリメント値として出力する第四ビッ
ト用排他論理和演算回路(ビット値演算用論理回路)で
ある。
FIG. 9 is a circuit diagram showing a 4-bit carry value addition operation calculation block 41 according to the third embodiment of the present invention. In the figure, reference numeral 47 denotes a fourth bit input terminal to which a bit input value of the fourth lowermost bit of the four bits input to the block 41 is input, and 48 corresponds to the fourth lowermost bit. The fourth bit output terminal from which the bit increment value is output, 49 is 3
Carry-up value to the third bit and third bit input terminal 35
The third bit carry-out calculates the logical product of these two input values and outputs the result of this operation as a carry-up value to the fourth bit from the bottom, which is one higher order. A logical AND circuit for value operation (logic circuit for carry value operation) 50 is connected to the fourth bit input terminal 47 from the bottom and receives the carry value to the fourth bit from the bottom, and these two bits are input. A fourth-bit exclusive-OR operation circuit (a bit-value operation logic circuit) that performs an exclusive-OR operation on the input value and outputs the operation result to the fourth bit output terminal 48 as a bit increment value.

【0053】また、51は当該ブロック41に入力され
る全てのビットである4つのビット入力端子16,1
7,35,47が接続され、これらの論理積演算を行
い、その演算結果に応じて多ビット演算値を出力する多
ビット演算値演算用論理回路であり、多ビット繰り上げ
値演算用論理回路25はこの多ビット演算値と繰り上げ
値入力端子20から入力される繰り上げ値との論理積を
演算し、この演算結果をこのブロック41の最上位のビ
ット(下から4番目のビット)の繰り上げ値として出力
し、切り替え信号出力端子27はこの多ビット演算値を
このブロック41のブロック別切り替え信号として出力
する。
Reference numeral 51 denotes four bit input terminals 16, 1 which are all bits input to the block 41.
7, 35 and 47 are connected, perform a logical product operation thereof, and output a multi-bit operation value in accordance with the operation result. The multi-bit operation value operation logic circuit 25 includes a multi-bit carry value operation logic circuit 25. Calculates the logical product of the multi-bit operation value and the carry value input from the carry value input terminal 20, and uses the result of this operation as the carry value of the most significant bit (fourth bit from the bottom) of this block 41. The switching signal output terminal 27 outputs the multi-bit operation value as a block-by-block switching signal of the block 41.

【0054】次に動作について説明する。4ビット用固
定値加算演算ブロック40において、第三ビット繰り上
げ値演算用論理積演算回路44は、第3ビットへの繰り
上げ値と第三ビット入力端子30の入力値とがともに
「1」であるとき、下から4番目のビットへの繰り上げ
値として「1」の値を出力し、第四ビット用排他論理和
演算回路45は、この下から4番目のビットへの繰り上
げ値および第四ビット入力端子42から入力される下か
ら4番目のビット入力値とのいずれか一方が「1」であ
るときに「1」のビットインクリメント値を第四ビット
出力端子48に出力する。また、第四ビット繰り上げ値
演算用論理積演算回路46は第一ビット入力端子7、第
二ビット入力端子8、第三ビット入力端子30および第
四ビット入力端子42の全ての入力値が「1」であると
き、「1」の値を有する第四ビットの繰り上げ値を出力
する。
Next, the operation will be described. In the 4-bit fixed-value addition operation block 40, the third-bit carry-value operation AND circuit 44 has the carry-up value to the third bit and the input value of the third bit input terminal 30 both "1". At this time, a value of “1” is output as a carry value to the fourth bit from the bottom, and the exclusive OR operation circuit 45 for the fourth bit outputs the carry value to the fourth bit from the bottom and the fourth bit input. When one of the fourth bit input values from the terminal 42 input from the terminal 42 is “1”, a bit increment value of “1” is output to the fourth bit output terminal 48. Further, the AND operation circuit 46 for the fourth bit carry value operation is such that all the input values of the first bit input terminal 7, the second bit input terminal 8, the third bit input terminal 30, and the fourth bit input terminal 42 are "1". , A carry value of the fourth bit having a value of “1” is output.

【0055】また、各4ビット用繰り上げ値加算演算ブ
ロック41において、第三ビット繰り上げ値演算用論理
積演算回路49は第三ビット入力端子35の入力値と下
から3番目のビットへの繰り上げ値とがともに「1」で
あるとき、下から4番目のビットへの繰り上げ値として
「1」の値を出力し、第四ビット用排他論理和演算回路
50は、この下から4番目のビットへの繰り上げ値およ
び第四ビット入力端子47から入力される下から4番目
のビット入力値とのいずれか一方が「1」であるときに
「1」のビットインクリメント値を第四ビット出力端子
48に出力する。また、多ビット演算値演算用論理回路
51は第一ビット入力端子16、第二ビット入力端子1
7、第三ビット入力端子35および第四ビット入力端子
47の全ての入力値が「1」であるとき、「1」の値を
有する第四ビットの繰り上げ値を出力する。これ以外の
動作は実施の形態2と同様であり説明を省略する。
Further, in each 4-bit carry-value addition operation block 41, the third-bit carry-value operation AND circuit 49 calculates the input value of the third bit input terminal 35 and the carry value to the third bit from the bottom. When both are “1”, the value of “1” is output as a carry value to the fourth bit from the bottom, and the exclusive OR circuit for the fourth bit 50 outputs the value to the fourth bit from the bottom. When either one of the carry value and the fourth bit input value from the fourth bit input terminal 47 is “1”, the bit increment value of “1” is output to the fourth bit output terminal 48. Output. The multi-bit operation value operation logic circuit 51 includes a first bit input terminal 16 and a second bit input terminal 1.
7. When all the input values of the third bit input terminal 35 and the fourth bit input terminal 47 are “1”, a carry value of the fourth bit having the value of “1” is output. Other operations are the same as those in the second embodiment, and a description thereof will be omitted.

【0056】従って、この実施の形態3によるインクリ
メンタでは、各ブロック41において多ビット演算値演
算用論理回路51と多ビット繰り上げ値演算用論理回路
25とを用いているので、各ブロック41に4ビット分
のデータを入力しているにもかかわらず、論理演算回路
1つ分の遅延時間で、上位のブロックに対して繰り上げ
値を確定して出力することができる。
Therefore, in the incrementer according to the third embodiment, since each block 41 uses the multi-bit operation value operation logic circuit 51 and the multi-bit carry value operation logic circuit 25, each block 41 has four bits. Despite the input of data for bits, the carry value can be determined and output to the upper block with a delay time of one logical operation circuit.

【0057】そして、4ブロック毎にセレクタ5と切り
替え信号生成回路6とを設けていることと相俟って、た
とえば、インクリメンタとしての処理速度を維持したま
ま、28ビット入力から56ビット入力に入力ビット数
を拡大することができる。逆に言えば、同様のビット数
であれば、各セレクタ5により分割された分割単位(ブ
ロック群)内におけるビット数を増加させ、実施の形態
2よりも更にインクリメンタとしての処理速度を向上さ
せることができることになる。
In combination with the provision of the selector 5 and the switching signal generating circuit 6 for every four blocks, for example, a 28-bit input is changed to a 56-bit input while maintaining the processing speed as an incrementer. The number of input bits can be increased. Conversely, if the number of bits is the same, the number of bits in the division unit (block group) divided by each selector 5 is increased, and the processing speed as an incrementer is further improved as compared with the second embodiment. You can do it.

【0058】実施の形態4.図10はこの発明の実施の
形態4による複数のビットからなるデータが入力される
インクリメンタの構成を示すブロック図である。図にお
いて、各部の構成は実施の形態1から実施の形態3にお
いて説明したものと同様であり同一の符号を付して説明
を省略する。
Embodiment 4 FIG. 10 is a block diagram showing a configuration of an incrementer to which data consisting of a plurality of bits is input according to the fourth embodiment of the present invention. In the figure, the configuration of each part is the same as that described in the first to third embodiments, and the same reference numerals are given and the description is omitted.

【0059】そして、このように、各ブロック4,2
9,41の入力ビット数を2個から4個に制限している
ので、各ブロック4,29,41における多ビット演算
値演算用論理回路24,39,51の入力ビット数を2
個から4個に制限することができる。従って、一般に入
力が5つ以上ある演算回路は演算回路としての処理速度
の低下やチップ上の占有面積の増大などの問題が生じて
しまうので、これを多ビット演算値演算用論理回路2
4,39,51として用いた場合には、下位からの繰り
上げ値の入力タイミングに対する多ビット演算値の出力
タイミングのマージンを適当に確保することができなく
なってしまう可能性が高いが、そのような問題を生ずる
ことなくインクリメント処理速度の高速化を図ることが
でき、下位ビットから上位ビットまでの繰り上げ値の伝
播パスにおいて見込んだ遅延時間にてインクリメント処
理速度を実現することができる効果がある。
Then, as described above, each of the blocks 4, 2
Since the number of input bits of 9 and 41 is limited from two to four, the number of input bits of the multi-bit operation value operation logic circuits 24, 39 and 51 in each of the blocks 4, 29 and 41 is two.
The number can be limited to four. Therefore, an arithmetic circuit having five or more inputs generally causes problems such as a reduction in processing speed as an arithmetic circuit and an increase in the area occupied on a chip.
When used as 4, 39, 51, there is a high possibility that it becomes impossible to appropriately secure a margin of the output timing of the multi-bit operation value with respect to the input timing of the carry value from the lower order. It is possible to increase the speed of the increment processing without causing any problem, and there is an effect that the increment processing speed can be realized with the delay time expected in the propagation path of the carry value from the lower bit to the upper bit.

【0060】また、この実施の形態4によれば、多ビッ
ト演算値演算用論理回路24,39,51の入力ビット
数が、セレクタ5により分割された単位(ブロック群)
毎に異なるので、例えば各セレクタ5の分割単位(ブロ
ック群)内における最下位側のビット入力から最上位側
のビット出力までの繰り上げ値の遅延や、下位のブロッ
クからの繰り上げ値の入力から最上位側のビット出力ま
での繰り上げ値の遅延をも最適化させるように伝播パス
を設計することができる効果がある。
According to the fourth embodiment, the number of input bits of the multi-bit operation value operation logic circuits 24, 39, 51 is determined by the unit (block group) divided by the selector 5.
For example, the delay of the carry value from the least significant bit input to the most significant bit output in the division unit (block group) of each selector 5 and the most significant value from the input of the carry value from the lower block are different from each other. There is an effect that the propagation path can be designed so as to optimize the delay of the carry value up to the upper bit output.

【0061】実施の形態5.図11はこの発明の実施の
形態5による複数のビットからなるデータが入力される
インクリメンタの構成を示すブロック図である。同図に
示すようにこの実施の形態5のインクリメンタでは、2
ビット用固定値加算演算ブロック3が入力ビットの第3
番目と第4番目とに対応させて設けられている。各部の
構成は実施の形態1と同様であり説明を省略する。
Embodiment 5 FIG. 11 is a block diagram showing a configuration of an incrementer to which data composed of a plurality of bits is input according to the fifth embodiment of the present invention. As shown in the figure, in the incrementer of the fifth embodiment, 2
The fixed value addition operation block 3 for the bit is the third input bit.
It is provided corresponding to the fourth and fourth. The configuration of each unit is the same as that of the first embodiment, and the description is omitted.

【0062】従って、この実施の形態5では、入力デー
タの第3ビットに「1」を加えることになるので、入力
データに固定値「4」を加算演算することになる。
Therefore, in the fifth embodiment, since "1" is added to the third bit of the input data, a fixed value "4" is added to the input data.

【0063】また、このように固定値が加算される第3
番目のビットよりも上位側のビットに対応させて多ビッ
ト演算値演算用論理回路24を設けることにより、その
固定値加算ビットよりも下側のビットの不要な演算処理
をなくすことができ、それだけ演算処理速度を高速化さ
せることができる効果がある。
The third value to which the fixed value is added as described above
By providing the multi-bit operation value operation logic circuit 24 in correspondence with the higher-order bits than the third bit, unnecessary operation processing of bits below the fixed value addition bit can be eliminated. There is an effect that the arithmetic processing speed can be increased.

【0064】実施の形態6.図12はこの発明の実施の
形態6による複数のビットからなるデータが入力される
インクリメンタの構成を示すブロック図である。図にお
いて、52は制御信号入力端子、53はこの制御信号が
入力される2ビット用可変値加算演算ブロック(固定値
加算ビット位置選択回路)である。
Embodiment 6 FIG. FIG. 12 is a block diagram showing a configuration of an incrementer to which data composed of a plurality of bits is input according to the sixth embodiment of the present invention. In the figure, reference numeral 52 denotes a control signal input terminal, and 53 denotes a 2-bit variable value addition operation block (fixed value addition bit position selection circuit) to which the control signal is input.

【0065】図13はこの発明の実施の形態6による2
ビット用可変値加算演算ブロックを示す回路図である。
図において、54は第一制御信号が入力される第一制御
信号端子、55は第二制御信号が入力される第二制御信
号端子、56は第3制御信号が入力される第三制御信号
端子、57は第一ビット入力端子7と第二制御信号端子
55とが接続され、これらの排他論理和を演算し、その
演算結果を第一ビット出力端子9から出力する第一ビッ
ト用排他論理和演算回路(ビット値演算用論理回路)、
58は第一ビット入力端子7と第一制御信号端子54と
が接続され、これらの論理和を演算し、その演算結果を
第一ビット暫定繰り上げ値として出力する制御用第一論
理和演算回路、59は第一制御信号端子54と第二制御
信号端子55とが接続され、これらの論理和を演算し、
その演算結果を繰り上げ阻止信号として出力する制御用
第二論理和演算回路、60は第一ビット暫定繰り上げ値
と繰り上げ阻止信号との論理積演算を行い、その演算結
果を第二ビットへの繰り上げ値として出力する第一ビッ
ト繰り上げ値演算用論理積演算回路(繰り上げ値演算用
論理回路)である。
FIG. 13 shows a second embodiment according to the sixth embodiment of the present invention.
FIG. 3 is a circuit diagram showing a variable value addition operation block for bits.
In the figure, 54 is a first control signal terminal to which a first control signal is input, 55 is a second control signal terminal to which a second control signal is input, and 56 is a third control signal terminal to which a third control signal is input , 57 are connected to the first bit input terminal 7 and the second control signal terminal 55, calculate the exclusive OR of these, and output the calculation result from the first bit output terminal 9 to the first bit exclusive OR. Arithmetic circuit (bit value arithmetic logic circuit),
58 is a control first OR operation circuit which is connected to the first bit input terminal 7 and the first control signal terminal 54, performs an OR operation on them, and outputs the operation result as a first bit provisional carry value; 59 is connected to the first control signal terminal 54 and the second control signal terminal 55, and calculates the logical sum of these,
A control second OR operation circuit 60 for outputting the operation result as a carry-prevention signal, 60 performs a logical AND operation of the provisional carry value of the first bit and the carry-prevention signal, and carries the operation result to a carry value to the second bit. Is a logical product operation circuit for carrying a first bit carry value (a carry circuit for carrying a carry value).

【0066】また、61は第二ビット入力端子8が接続
されるとともに第一ビット暫定繰り上げ値が入力され、
これらの値の論理積演算を行ってその演算結果を第二ビ
ットの暫定繰り上げ値として出力する制御用第一論理積
演算回路、62は第2の暫定繰り上げ値と繰り上げ阻止
信号との論理積演算を行い、その演算結果を第2ビット
の繰り上げ値として出力する第二ビット繰り上げ値演算
用論理積演算回路(繰り上げ値演算用論理回路)、63
は第三制御信号端子56が接続されるとともにこの第2
ビットの繰り上げ値が入力され、これらの論理和演算を
行ってその演算結果を出力する制御用第3論理和回路で
ある。そして、繰り上げ値出力端子14はこの制御用第
3論理和回路63の出力値をこのブロック53の繰り上
げ値として出力し、切り替え信号出力端子15は上記第
二ビットの暫定繰り上げ値をこのブロック53のブロッ
ク別切り替え信号として出力する。これ以外の構成は実
施の形態1と同様であり同一の符号を付して説明を省略
する。
Reference numeral 61 denotes a second bit input terminal 8 connected thereto and a first bit provisional carry value input thereto.
A control first AND operation circuit for performing an AND operation of these values and outputting the operation result as a provisional carry value of a second bit, 62 performs a logical AND operation of the second provisional carry value and the carry inhibition signal , And outputs the operation result as a carry-up value of a second bit. A logical AND circuit for carry-up of a second bit carry value (logic circuit for carry-up value operation), 63
Is connected to the third control signal terminal 56 and
This is a control third OR circuit that receives a carry value of a bit, performs an OR operation on these, and outputs the operation result. The carry value output terminal 14 outputs the output value of the third control OR circuit 63 as a carry value of the block 53, and the switching signal output terminal 15 outputs the provisional carry value of the second bit to the block 53. Output as a switching signal for each block. The other configuration is the same as that of the first embodiment, and the same reference numerals are given and the description is omitted.

【0067】次に動作について説明する。まず、下記表
1に基づいて入力データに加算したい可変値に応じて、
2ビット用可変値加算演算ブロック53に入力する3つ
の制御信号のレベルを決定する。但し、この表において
Lはローレベル「0」を意味し、Hはハイレベル「1」
を意味する。
Next, the operation will be described. First, according to the variable value to be added to the input data based on Table 1 below,
The levels of three control signals input to the 2-bit variable value addition operation block 53 are determined. However, in this table, L means low level "0" and H means high level "1".
Means

【0068】[0068]

【表1】 [Table 1]

【0069】そして、例えば、可変値「2」を加算する
場合、第一制御信号をハイレベル、第二制御信号をロー
レベル、第3制御信号をローレベルに設定することにな
る。そして、このような制御信号の設定がなされると、
制御用第一論理和演算回路58からは第一ビット入力端
子7に入力される入力値にかかわらずハイレベル「1」
の値を有する第一ビット暫定繰り上げ値が出力され、制
御用第二論理和演算回路59からもハイレベル「1」の
繰り上げ値阻止信号が出力され、第一ビット繰り上げ値
演算用論理積演算回路60からもハイレベル「1」の第
二ビットへの繰り上げ値を出力する。従って、第二ビッ
ト用排他論理和演算回路12は第二ビット入力端子8か
ら入力されたビット入力値を反転させて第二ビット出力
端子10から出力することになる。また、第二制御信号
がローレベルなので、第一ビット用排他論理和演算回路
57は第一ビット入力端子7から入力されたビット入力
値をそのまま第一ビット出力端子9から出力することに
なる。
For example, when adding the variable value "2", the first control signal is set to a high level, the second control signal is set to a low level, and the third control signal is set to a low level. When such a control signal is set,
High level "1" regardless of the input value input to the first bit input terminal 7 from the control first OR operation circuit 58
Is output, the control second OR circuit 59 also outputs a high-level "1" carry value blocking signal, and the first bit carry value arithmetic circuit for carrying the first bit carry value From 60, the carry value of the high level “1” to the second bit is output. Accordingly, the exclusive OR operation circuit 12 for the second bit inverts the bit input value input from the second bit input terminal 8 and outputs the inverted value from the second bit output terminal 10. Since the second control signal is at the low level, the exclusive OR operation circuit 57 for the first bit outputs the bit input value input from the first bit input terminal 7 as it is from the first bit output terminal 9.

【0070】また、第一ビット暫定繰り上げ値は「1」
となっているので、制御用第一論理積演算回路61は第
二ビット入力端子8からの入力値と同じ値を第二ビット
の暫定繰り上げ値として出力し、更に、繰り上げ阻止信
号は「1」なので第二ビット繰り上げ値演算用論理積演
算回路62は第二ビット入力端子8からの入力値と同じ
値を第二ビットの繰り上げ値として出力する。そして、
第3制御信号がローレベル「0」なので、制御用第3論
理和回路63からは第二ビット入力端子8からの入力値
と同じ値が上位ブロック4への繰り上げ値として出力さ
れる。従って、第二ビット入力端子8からの入力値が
「1」である場合には「1」の値を有する繰り上げ値が
出力され、第二ビット入力端子8からの入力値が「0」
である場合には「0」の値を有する繰り上げ値が出力さ
れることになる。なお、この設定の下ではこの繰り上げ
値は第一ビット入力端子7の入力値によって変化するこ
とはない。
The first bit provisional carry value is "1".
Therefore, the control first AND operation circuit 61 outputs the same value as the input value from the second bit input terminal 8 as a provisional carry value of the second bit, and furthermore, the carry prevention signal is “1”. Therefore, the AND operation circuit for second bit carry value operation outputs the same value as the input value from the second bit input terminal 8 as the carry value of the second bit. And
Since the third control signal is at the low level “0”, the same value as the input value from the second bit input terminal 8 is output from the third control OR circuit 63 as a carry value to the upper block 4. Therefore, when the input value from the second bit input terminal 8 is “1”, a carry value having a value of “1” is output, and the input value from the second bit input terminal 8 is “0”.
In this case, a carry value having a value of "0" is output. Note that under this setting, the carry value does not change with the input value of the first bit input terminal 7.

【0071】そして、表1に従って、可変値を「0」,
「1」,「4」とする場合の動作は上記可変値を「2」
とする場合と同様に考えればよいので説明を省略する。
According to Table 1, the variable value is set to “0”,
The operation when “1” and “4” are performed is as follows.
The description is omitted because it can be considered in the same way as the case described above.

【0072】従って、この実施の形態6によれば、可変
値を加算するビットの位置を最下位側の3ビットの間か
ら1つのビットを排他的に選択して決定しているので、
入力データに加算する可変値を「1」,「2」,「4」
の間で切り替えることができる。
Therefore, according to the sixth embodiment, the position of the bit to which the variable value is added is determined by exclusively selecting one bit from among the three least significant bits.
Variable values to be added to input data are "1,""2," and "4."
Can be switched between.

【0073】しかも、多ビット演算値演算用論理回路2
4は、この可変値の加算演算が行われる複数のビットの
うちの最上位のビット(つまり第3番目のビット)をそ
のビット入力値としているので、上記3つのビットのう
ちのいずれのビットに対して可変値を加算演算する場合
であっても、下位からの繰り上げ値の入力タイミングが
多ビット演算値の出力タイミングよりも前となってしま
うことを防止することができる。従って、上記可変値の
加算演算が行われる複数のビットのうちの最下位のビッ
トから最上位ビットまでの繰り上げ値の伝播パスにおい
て見込んだ遅延時間内にてインクリメント処理速度を実
現することができる効果がある。
Moreover, the multi-bit operation value operation logic circuit 2
4 uses the most significant bit (that is, the third bit) of the plurality of bits on which the addition operation of the variable value is performed as its bit input value. On the other hand, even when the variable value is added, the input timing of the carry value from the lower order can be prevented from being earlier than the output timing of the multi-bit operation value. Therefore, the effect that the increment processing speed can be realized within the delay time expected in the propagation path of the carry value from the least significant bit to the most significant bit of the plurality of bits on which the addition of the variable value is performed. There is.

【0074】[0074]

【発明の効果】以上のように、この発明によれば、複数
の連続したビットのビット入力値が入力され、これらの
論理積演算を行い、その演算結果に応じて多ビット演算
値を出力する多ビット演算値演算用論理回路と、上記複
数の連続したビットのうちの最下位ビットへの繰り上げ
値と上記多ビット演算値とが入力され、これらの論理積
演算を行い、その演算結果に応じた多ビット繰り上げ値
を上記複数の連続したビットのうちの最上位ビットから
の繰り上げ値として出力する多ビット繰り上げ値演算用
論理回路とを設けているので、複数の連続したビットの
うちの最下位ビットへの繰り上げ値がデータの入力タイ
ミングよりも遅れてくるような場合であっても、多ビッ
ト演算値演算用論理回路が当該繰り上げ値の到達前に当
該複数の連続したビットの多ビット演算値を算出し、多
ビット繰り上げ値演算用論理回路はこの最下位ビットへ
の繰り上げ値が到達したらすぐに当該最下位ビットより
も数ビット上位のビットへの繰り上げ値を生成すること
ができる効果がある。
As described above, according to the present invention, a bit input value of a plurality of consecutive bits is input, a logical AND operation is performed on these, and a multi-bit operation value is output according to the operation result. A multi-bit operation value operation logic circuit, a carry value to the least significant bit of the plurality of consecutive bits, and the multi-bit operation value are input, and a logical AND operation of these is performed. A multi-bit carry value calculation logic circuit for outputting the multi-bit carry value as a carry value from the most significant bit of the plurality of consecutive bits. Even in the case where the carry value to the bit is delayed from the data input timing, the multi-bit operation value operation logic circuit sets the plurality of continuous values before the carry value reaches the carry value. The multi-bit carry value calculation logic circuit generates a carry value to a bit several bits higher than the least significant bit as soon as the carry value to the least significant bit arrives. There is an effect that can be.

【0075】従って、繰り上げ値演算用論理回路のみを
用いるような従来のインクリメンタに比べて、繰り上げ
値の上位ビットへの伝播遅延時間を短縮することがで
き、従来のものよりも早くインクリメント処理を完了す
ることができる効果がある。
Therefore, the propagation delay time of the carry value to the upper bits can be reduced as compared with the conventional incrementer using only the carry value calculation logic circuit, and the increment processing can be performed faster than the conventional one. There is an effect that can be completed.

【0076】この発明によれば、複数の連続したビット
のビット入力値が入力され、これらの論理積演算を行
い、すべてのビットがそのビット最大値である場合には
切り替え信号を出力する切り替え信号生成回路や、上記
複数の連続したビットのうちの最下位ビットへの繰り上
げ値と上記複数の連続したビットのうちの最上位ビット
からの繰り上げ値とが入力され、通常はこの最上位ビッ
トからの繰り上げ値を上記複数の連続したビットのうち
の最上位ビットからの繰り上げ値として出力するととも
に、上記切り替え信号が入力された場合には上記最下位
ビットへの繰り上げ値を当該最上位ビットからの繰り上
げ値として出力するセレクタとともに、上記複数の連続
したビットのうちの少なくとも2以上の連続したビット
のビット入力値が入力され、これらの論理積演算を行
い、その演算結果に応じて多ビット演算値を出力する多
ビット演算値演算用論理回路と、上記多ビット演算値演
算用論理回路に入力される複数の連続したビットのうち
の最下位ビットへの繰り上げ値と上記多ビット演算値と
が入力され、これらの論理積演算を行い、その演算結果
に応じた多ビット繰り上げ値を上記多ビット演算値演算
用論理回路に入力される複数の連続したビットのうちの
最上位ビットからの繰り上げ値として出力する多ビット
繰り上げ値演算用論理回路とを設けたので、複数の連続
したビットのうちの最下位ビットへの繰り上げ値がデー
タの入力タイミングよりも遅れてくるような場合であっ
ても、多ビット演算値演算用論理回路が当該繰り上げ値
の到達前に当該複数の連続したビットの多ビット演算値
を算出し、多ビット繰り上げ値演算用論理回路はこの最
下位ビットへの繰り上げ値が到達したらすぐに当該最下
位ビットよりも数ビット上位のビットへの繰り上げ値を
生成することができる効果がある。
According to the present invention, a switching signal for receiving a bit input value of a plurality of consecutive bits, performing a logical AND operation on them, and outputting a switching signal when all bits have the maximum value of the bits. A generation circuit and a carry value to the least significant bit of the plurality of consecutive bits and a carry value from the most significant bit of the plurality of consecutive bits are input, and usually, The carry value is output as a carry value from the most significant bit of the plurality of consecutive bits, and when the switching signal is input, the carry value to the least significant bit is carried from the most significant bit. Along with the selector outputting the value, the bit input value of at least two or more consecutive bits of the plurality of consecutive bits is input. A multi-bit operation value operation logic circuit that performs a logical product operation of these and outputs a multi-bit operation value in accordance with the operation result; A carry value to the least significant bit of the bits and the multi-bit operation value are input, an AND operation of these is performed, and a multi-bit carry value according to the operation result is the multi-bit operation value operation logic circuit. And a multi-bit carry-value operation logic circuit that outputs a carry value from the most significant bit of a plurality of consecutive bits input to the Even when the value is delayed from the data input timing, the multi-bit operation value operation logic circuit sets the plurality of consecutive bits before reaching the carry value. The bit operation value is calculated, and the logic circuit for multi-bit carry value operation can generate a carry value to a bit several bits higher than the least significant bit as soon as the carry value to the least significant bit reaches. effective.

【0077】そして、このようにセレクタにより分割さ
れる1つの分割単位内において繰り上げ値が生成される
までの遅延時間を短縮化させることができるので、その
分この分割単位に含ませることができるビット数を増加
させても、その分割単位よりも下位からの繰り上げ値が
繰り上げられてくるまでの間に、その分割単位内での繰
り上げ値を生成することができる。従って、単にセレク
タで複数のビットを分割して高速化を図っていた従来の
場合に比べて、このセレクタにより分割される1つの分
割単位に含ませることができるビット数を増加させるこ
とができるので、インクリメンタ全体としてはそのセレ
クタによるデータの分割数を削減することができ、ひい
ては、従来のように単にセレクタで複数のビットを分割
していた場合よりも更に繰り上げ値の上位ビットへの伝
播遅延時間を短縮することができ、従来のものでは到底
得ることができなかったインクリメント処理速度を実現
することができる効果がある。
Since the delay time until the carry value is generated in one division unit divided by the selector can be shortened, the bits that can be included in this division unit are correspondingly reduced. Even if the number is increased, a carry value in the division unit can be generated before a carry value from a lower level than the division unit is carried forward. Therefore, the number of bits that can be included in one division unit divided by the selector can be increased as compared with the conventional case where the speed is increased by simply dividing a plurality of bits by the selector. Thus, the number of data divisions by the selector can be reduced as a whole of the incrementer, and as a result, the propagation delay to the upper bits of the carry value can be further reduced as compared with the conventional case where a plurality of bits are simply divided by the selector. This has the effect of shortening the time and realizing an increment processing speed that could not be obtained with the conventional device.

【0078】この発明によれば、多ビット演算値演算用
論理回路の入力ビット数を2個から4個に制限している
ので、一般に入力が5つ以上ある演算回路は演算回路と
しての処理速度の低下やチップ上の占有面積の増大など
の問題が生じてしまい、今回のように下位からの繰り上
げ値の入力タイミングに対する多ビット演算値の出力タ
イミングのマージンを適当に確保しつつインクリメント
処理速度の高速化を図ることができ、下位ビットから上
位ビットまでの繰り上げ値の伝播パスにおいて見込んだ
遅延時間にてインクリメント処理速度を実現することが
できる効果がある。
According to the present invention, the number of input bits of the multi-bit operation value operation logic circuit is limited from two to four, so that an operation circuit having five or more inputs generally has a processing speed of the operation circuit. Problems, such as a decrease in the occupied area on the chip and a decrease in the number of bits. Higher speed can be achieved, and there is an effect that the increment processing speed can be realized with the delay time expected in the propagation path of the carry value from the lower bit to the upper bit.

【0079】この発明によれば、多ビット演算値演算用
論理回路の入力ビット数が、セレクタにより分割された
単位ごとに異なるので、例えば各セレクタの分割単位内
における最下位側ビットから最上位側ビット出力までの
伝播パスの遅延や、下位のブロックからの繰り上げ値入
力から最上位側ビット出力までの伝播パスの遅延をも最
適化させることができる効果がある。
According to the present invention, since the number of input bits of the multi-bit operation value operation logic circuit differs for each unit divided by the selector, for example, from the least significant bit to the most significant bit in the division unit of each selector There is an effect that the delay of the propagation path to the bit output and the delay of the propagation path from the carry value input from the lower block to the most significant bit output can be optimized.

【0080】この発明によれば、固定値を加算するビッ
トの位置を複数のビットの間から1つのビットを排他的
に選択して決定する固定値加算ビット位置選択回路を設
けるとともに、多ビット演算値演算用論理回路は、この
固定値の加算演算が行われる複数のビットのうちの最上
位のビットあるいはそれよりも上位側のビットをそのビ
ット入力値とするので、上記複数のビットのうちのいず
れのビットに対して固定値を加算演算することができ、
しかも、そのような固定値を加算するビットが切り替わ
ったとしても、下位からの繰り上げ値の入力タイミング
が多ビット演算値の出力タイミングよりも前となってし
まうことを防止することができるので、上記固定値の加
算演算が行われる複数のビットのうちの最下位のビット
から最上位ビットまでの繰り上げ値の伝播パスにおいて
見込んだ遅延時間内にてインクリメント処理速度を実現
することができる効果がある。
According to the present invention, a fixed value addition bit position selecting circuit for exclusively selecting and determining one bit from among a plurality of bits to determine the position of a bit to which a fixed value is added is provided, and a multi-bit operation is performed. Since the value operation logic circuit uses the most significant bit or the higher order bit of the plurality of bits on which the fixed value addition operation is performed as the bit input value, the A fixed value can be added to any bit,
Moreover, even if the bit for adding such a fixed value is switched, it is possible to prevent the input timing of the carry value from the lower end before the output timing of the multi-bit operation value. There is an effect that the increment processing speed can be realized within the delay time expected in the propagation path of the carry value from the least significant bit to the most significant bit among the plurality of bits on which the fixed value addition operation is performed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 この発明の実施の形態1による複数のビット
からなるデータが入力されるインクリメンタの構成を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration of an incrementer to which data consisting of a plurality of bits is input according to a first embodiment of the present invention.

【図2】 この発明の実施の形態1による2ビット用固
定値加算演算ブロックを示す回路図である。
FIG. 2 is a circuit diagram showing a 2-bit fixed value addition operation block according to Embodiment 1 of the present invention;

【図3】 この発明の実施の形態1による2ビット用繰
り上げ値加算演算演算ブロックを示す回路図である。
FIG. 3 is a circuit diagram showing a 2-bit carry value addition operation calculation block according to the first embodiment of the present invention;

【図4】 この発明の実施の形態2による複数のビット
からなるデータが入力されるインクリメンタの構成を示
すブロック図である。
FIG. 4 is a block diagram showing a configuration of an incrementer to which data composed of a plurality of bits is input according to a second embodiment of the present invention;

【図5】 この発明の実施の形態2による3ビット用固
定値加算演算ブロックを示す回路図である。
FIG. 5 is a circuit diagram showing a 3-bit fixed value addition operation block according to Embodiment 2 of the present invention;

【図6】 この発明の実施の形態2による3ビット用繰
り上げ値加算演算演算ブロックを示す回路図である。
FIG. 6 is a circuit diagram showing a 3-bit carry value addition operation calculation block according to a second embodiment of the present invention;

【図7】 この発明の実施の形態3による複数のビット
からなるデータが入力されるインクリメンタの構成を示
すブロック図である。
FIG. 7 is a block diagram showing a configuration of an incrementer to which data consisting of a plurality of bits is input according to a third embodiment of the present invention;

【図8】 この発明の実施の形態3による4ビット用固
定値加算演算ブロックを示す回路図である。
FIG. 8 is a circuit diagram showing a 4-bit fixed value addition operation block according to Embodiment 3 of the present invention;

【図9】 この発明の実施の形態3による4ビット用繰
り上げ値加算演算演算ブロックを示す回路図である。
FIG. 9 is a circuit diagram showing a 4-bit carry value addition operation calculation block according to Embodiment 3 of the present invention;

【図10】 この発明の実施の形態4による複数のビッ
トからなるデータが入力されるインクリメンタの構成を
示すブロック図である。
FIG. 10 is a block diagram showing a configuration of an incrementer to which data consisting of a plurality of bits is input according to a fourth embodiment of the present invention.

【図11】 この発明の実施の形態5による複数のビッ
トからなるデータが入力されるインクリメンタの構成を
示すブロック図である。
FIG. 11 is a block diagram showing a configuration of an incrementer to which data composed of a plurality of bits is input according to a fifth embodiment of the present invention.

【図12】 この発明の実施の形態6による複数のビッ
トからなるデータが入力されるインクリメンタの構成を
示すブロック図である。
FIG. 12 is a block diagram showing a configuration of an incrementer to which data composed of a plurality of bits is input according to a sixth embodiment of the present invention.

【図13】 この発明の実施の形態6による2ビット用
可変値加算演算ブロックを示す回路図である。
FIG. 13 is a circuit diagram showing a 2-bit variable value addition operation block according to a sixth embodiment of the present invention.

【図14】 従来のインクリメンタの構成を示すブロッ
ク図である。
FIG. 14 is a block diagram showing a configuration of a conventional incrementer.

【図15】 キャリールックアヘッド回路を備えた従来
のインクリメンタの構成を示すブロック図である。
FIG. 15 is a block diagram showing a configuration of a conventional incrementer having a carry look ahead circuit.

【図16】 この従来のインクリメンタにおける固定値
加算演算ブロックを示す回路図である。
FIG. 16 is a circuit diagram showing a fixed value addition operation block in the conventional incrementer.

【図17】 この従来のインクリメンタにおける繰り上
げ値加算演算演算ブロックを示す回路図である。
FIG. 17 is a circuit diagram showing a carry-up value addition operation calculation block in the conventional incrementer.

【符号の説明】[Explanation of symbols]

5 セレクタ、6 切り替え信号生成回路、12 第二
ビット用排他論理和演算回路(ビット値演算用論理回
路)、13,32,37,62 第二ビット繰り上げ値
演算用論理積演算回路(繰り上げ値演算用論理回路)、
21,57 第一ビット用排他論理和演算回路(ビット
値演算用論理回路)、22,60 第一ビット繰り上げ
値演算用論理積演算回路(繰り上げ値演算用論理回
路)、24,39,51 多ビット演算値演算用論理回
路、25 多ビット繰り上げ値演算用論理回路、33,
38 第三ビット用排他論理和演算回路(ビット値演算
用論理回路)、34,44,49 第三ビット繰り上げ
値演算用論理積演算回路(繰り上げ値演算用論理回
路)、45,50 第四ビット用排他論理和演算回路
(ビット値演算用論理回路)、46 第四ビット繰上げ
値演算用論理積演算回路(繰上げ値演算用論理回路)、
53 2ビット用可変値加算演算ブロック(固定値加算
ビット位置選択回路)。
5 selector, 6 switching signal generation circuit, 12 exclusive OR operation circuit for second bit (logic circuit for bit value operation), 13, 32, 37, 62 AND operation circuit for second bit carry value operation (carry value operation Logic circuit),
21, 57 Exclusive OR operation circuit for first bit (logic circuit for calculating bit value), 22, 60 First-bit AND operation circuit for calculating carry-up value (logic circuit for carry-up value), 24, 39, 51 Logic circuit for calculating a bit operation value, 25 logic circuit for calculating a carry-up value of a multi-bit, 33,
38 exclusive OR operation circuit for third bit (logic circuit for bit value operation), 34, 44, 49 AND operation circuit for third bit carry value operation (logic circuit for carry value operation), 45, 50 fourth bit Exclusive OR operation circuit (bit value operation logic circuit), 46th fourth bit carry value operation AND product operation circuit (carry value operation logic circuit),
53 Variable value addition operation block for 2 bits (fixed value addition bit position selection circuit).

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ある1つのビットのビット入力値とそれ
よりも1つ下のビットからの繰り上げ値とが入力され、
これらの論理積演算を行い、その演算結果に応じて当該
ビットよりも1つ上のビットへの繰り上げ値を出力する
複数の繰り上げ値演算用論理回路と、 上記ビットのビット入力値と上記下位ビットからの繰り
上げ値とが入力され、これらの排他論理和演算を行い、
その演算結果に応じて当該ビットのインクリメント値と
して出力する複数のビット値演算用論理回路とを備え、 複数のビットからなるデータに所定の固定値を加算して
複数のインクリメント値からなるデータを出力するイン
クリメンタにおいて、 複数の連続したビットのビット入力値が入力され、これ
らの論理積演算を行い、その演算結果に応じて多ビット
演算値を出力する多ビット演算値演算用論理回路と、 上記複数の連続したビットのうちの最下位ビットへの繰
り上げ値と上記多ビット演算値とが入力され、これらの
論理積演算を行い、その演算結果に応じた多ビット繰り
上げ値を上記複数の連続したビットのうちの最上位ビッ
トからの繰り上げ値として出力する多ビット繰り上げ値
演算用論理回路とを設けたことを特徴とするインクリメ
ンタ。
1. A bit input value of a certain bit and a carry value from a bit below it are input, and
A plurality of carry value calculating logic circuits for performing a logical AND operation thereof and outputting a carry value to a bit one bit higher than the bit in accordance with the result of the AND operation; a bit input value of the bit and the lower bit , And carry out the exclusive OR operation of these values.
A plurality of bit value operation logic circuits for outputting the incremented value of the bit in accordance with the operation result, and adding a predetermined fixed value to the data of the plurality of bits to output data of a plurality of increment values A multi-bit operation value operation logic circuit that receives a bit input value of a plurality of consecutive bits, performs a logical product operation of these, and outputs a multi-bit operation value in accordance with the operation result; A carry value to the least significant bit of the plurality of consecutive bits and the multi-bit operation value are input, and a logical AND operation of these is performed, and a multi-bit carry value according to the operation result is converted to the plurality of consecutive bits. A multi-bit carry value operation logic circuit for outputting as a carry value from the most significant bit of the bits Mentha.
【請求項2】 ある1つのビットのビット入力値とそれ
よりも1つ下のビットからの繰り上げ値とが入力され、
これらの論理積演算を行い、その演算結果に応じて当該
ビットよりも1つ上のビットへの繰り上げ値を出力する
複数の繰り上げ値演算用論理回路と、 上記ビットのビット入力値と上記下位ビットからの繰り
上げ値とが入力され、これらの排他論理和演算を行い、
その演算結果に応じて当該ビットのインクリメント値と
して出力する複数のビット値演算用論理回路と、 複数の連続したビットのビット入力値が入力され、これ
らの論理積演算を行い、すべてのビットがそのビット最
大値である場合には切り替え信号を出力する切り替え信
号生成回路と、 上記複数の連続したビットのうちの最下位ビットへの繰
り上げ値、上記複数の連続したビットのうちの最上位ビ
ットからの繰り上げ値とが入力され、通常はこの最上位
ビットからの繰り上げ値を上記複数の連続したビットの
うちの最上位ビットからの繰り上げ値として出力すると
ともに、上記切り替え信号が入力された場合には上記最
下位ビットへの繰り上げ値を当該最上位ビットからの繰
り上げ値として出力するセレクタとを備え、 複数のビットからなるデータに所定の固定値を加算して
複数のインクリメント値からなるデータを出力するイン
クリメンタにおいて、 上記複数の連続したビットのうちの少なくとも2以上の
連続したビットのビット入力値が入力され、これらの論
理積演算を行い、その演算結果に応じて多ビット演算値
を出力する多ビット演算値演算用論理回路と、 上記多ビット演算値演算用論理回路に入力される複数の
連続したビットのうちの最下位ビットへの繰り上げ値
と、上記多ビット演算値とが入力され、これらの論理積
演算を行い、その演算結果に応じた多ビット繰り上げ値
を上記多ビット演算値演算用論理回路に入力される複数
の連続したビットのうちの最上位ビットからの繰り上げ
値として出力する多ビット繰り上げ値演算用論理回路と
を設けたことを特徴とするインクリメンタ。
2. A bit input value of a certain bit and a carry value from a bit below it are input, and
A plurality of carry value calculating logic circuits for performing a logical AND operation thereof and outputting a carry value to a bit one bit higher than the bit in accordance with the result of the AND operation; a bit input value of the bit and the lower bit , And carry out the exclusive OR operation of these values.
A plurality of logic circuits for calculating bit values, which are output as increment values of the bits in accordance with the calculation results, and bit input values of a plurality of consecutive bits are input, and a logical product of these is performed, and all the bits are calculated. A switching signal generation circuit that outputs a switching signal when the bit is the maximum value, and a carry value to a least significant bit of the plurality of consecutive bits, and a carry value from a most significant bit of the plurality of consecutive bits. The carry value is input, and normally, the carry value from the most significant bit is output as the carry value from the most significant bit of the plurality of consecutive bits, and when the switching signal is inputted, And a selector for outputting a carry value to the least significant bit as a carry value from the most significant bit. An incrementer that adds a predetermined fixed value to the data and outputs data composed of a plurality of increment values, wherein a bit input value of at least two or more consecutive bits of the plurality of consecutive bits is input. And a multi-bit operation value operation logic circuit that outputs a multi-bit operation value in accordance with the operation result, and a plurality of consecutive bits input to the multi-bit operation value operation logic circuit. The carry value to the least significant bit of the above and the multi-bit operation value are input, the logical product operation is performed, and the multi-bit carry value according to the operation result is input to the multi-bit operation value operation logic circuit. And a multi-bit carry value operation logic circuit that outputs a carry value from the most significant bit of the plurality of consecutive bits to be carried out. Incrementer.
【請求項3】 多ビット演算値演算用論理回路は、2個
から4個のビットのビット入力値が入力されることを特
徴とする請求項1または請求項2記載のインクリメン
タ。
3. The incrementer according to claim 1, wherein the multi-bit operation value operation logic circuit receives a bit input value of 2 to 4 bits.
【請求項4】 多ビット演算値演算用論理回路の入力ビ
ット数は、セレクタにより分割された単位ごとに異なる
ことを特徴とする請求項2記載のインクリメンタ。
4. The incrementer according to claim 2, wherein the number of input bits of the multi-bit operation value operation logic circuit differs for each unit divided by the selector.
【請求項5】 多ビット演算値演算用論理回路は、固定
値が加算されるビットよりも上位側のビットをそのビッ
ト入力値とすることを特徴とする請求項1から請求項4
のうちのいずれか1項記載のインクリメンタ。
5. The multi-bit operation value operation logic circuit according to claim 1, wherein a bit higher than a bit to which a fixed value is added is set as a bit input value.
The incrementer according to any one of the above.
【請求項6】 固定値を加算するビットの位置を複数の
ビットの間から1つのビットを排他的に選択して決定す
る固定値加算ビット位置選択回路を設けるとともに、多
ビット演算値演算用論理回路は、この固定値の加算演算
が行われる複数のビットのうちの最上位のビットあるい
はそれよりも上位側のビットをそのビット入力値とする
ことを特徴とする請求項1から請求項4のうちのいずれ
か1項記載のインクリメンタ。
6. A fixed value addition bit position selection circuit for exclusively selecting one bit from among a plurality of bits to determine a position of a bit to which a fixed value is added, and a multi-bit operation value operation logic 5. The circuit according to claim 1, wherein the circuit sets, as the bit input value, the most significant bit of the plurality of bits on which the addition operation of the fixed value is performed or a bit higher than the most significant bit. An incrementer according to any one of the preceding claims.
JP11005854A 1999-01-12 1999-01-12 Incrementor Pending JP2000207173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11005854A JP2000207173A (en) 1999-01-12 1999-01-12 Incrementor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11005854A JP2000207173A (en) 1999-01-12 1999-01-12 Incrementor

Publications (1)

Publication Number Publication Date
JP2000207173A true JP2000207173A (en) 2000-07-28

Family

ID=11622581

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11005854A Pending JP2000207173A (en) 1999-01-12 1999-01-12 Incrementor

Country Status (1)

Country Link
JP (1) JP2000207173A (en)

Similar Documents

Publication Publication Date Title
JP3594601B2 (en) Logic structure and circuit for fast carry
US4525797A (en) N-bit carry select adder circuit having only one full adder per bit
JPH08110853A (en) High-speed carry circuit
US7617269B2 (en) Logic entity with two outputs for efficient adder and other macro implementations
JPH0766320B2 (en) Sequential array of programmable logic devices and logic blocks, integrated circuit structure and configurable logic block array
US5299145A (en) Adder for reducing carry processing
US6125381A (en) Recursively partitioned carry select adder
US5636157A (en) Modular 64-bit integer adder
Mitra et al. Design of a high speed adder
US20050182814A1 (en) Encoder for a multiplier
US7024445B2 (en) Method and apparatus for use in booth-encoded multiplication
US5875125A (en) X+2X adder with multi-bit generate/propagate circuit
US7313586B2 (en) Adder-subtracter circuit
JP2000207173A (en) Incrementor
JPH09222991A (en) Adding method and adder
US6832235B1 (en) Multiple block adder using carry increment adder
JP2000509865A (en) System and method for fast carry / sum select adder
EP0981080B1 (en) Parallel addition circuits with optimized fan out interconnections
US7386583B2 (en) Carry generator based on XOR, and conditional select adder using the carry generator, and method therefor
JP4230234B2 (en) Parity prediction circuit for full adder
KR100459735B1 (en) One-phase self-timed carry lookahead adder providing for summation value outputting at block carry propagation and summation method thereof
US5944777A (en) Method and apparatus for generating carries in an adder circuit
US6954773B2 (en) Providing an adder with a conversion circuit in a slack propagation path
JP2643576B2 (en) Address generation circuit for fast Fourier transform
US7159004B2 (en) Adder, multiplier and integrated circuit