JPH02235143A - 2n-bit arithmetic circuit - Google Patents

2n-bit arithmetic circuit

Info

Publication number
JPH02235143A
JPH02235143A JP1056928A JP5692889A JPH02235143A JP H02235143 A JPH02235143 A JP H02235143A JP 1056928 A JP1056928 A JP 1056928A JP 5692889 A JP5692889 A JP 5692889A JP H02235143 A JPH02235143 A JP H02235143A
Authority
JP
Japan
Prior art keywords
bit
bits
arithmetic unit
data
accumulator
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
JP1056928A
Other languages
Japanese (ja)
Inventor
Teruo Ishihara
輝雄 石原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1056928A priority Critical patent/JPH02235143A/en
Publication of JPH02235143A publication Critical patent/JPH02235143A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To improve the efficiency of operation by dividing one computing element into two computing elements, inputting the upper bit and lower bit of data to respective computing elements and computing two data in parallel. CONSTITUTION:The 2n-bit computing element 3 is divided into an upper n-bit computing element 3-1 and a lower n-bit computing element 3-2 and the carry-in terminals of the computing elements 3-1, 3-2 are connected to each other through a gate 7. In the case of executing the parallel operation of data, the upper n-bit data of two 2n-bit buses are inputted to the computing element 3-1 and lower n-bit data are inputted to the computing element 3-2. At that time, the gate 7 is set up to an inhibition state, alpha bits are shifted by a shifting means 8 and the shifted bits are inputted to a (2n+2alpha)-bit computing element 6. In the case of computing 2n bits, the gate 7 is set up to a through state to inhibit the shifting means 8 from shifting. Since parallel operation can also be enabled, the efficiency can be improved. Provided that (n) is a positive integer.

Description

【発明の詳細な説明】 〔概 要〕 2つの2nビットのバスより送られてきたデータを夫々
保持する2nビットの演算レジスタと、該演算レジスタ
の夫々の出力を入力して演算する2nビットの演算器と
、 該演算器の演算結果を保持する2nビットのサブアキュ
ムレータと、 該サブアキュムレー夕の保持するデータと、アキュムレ
ータの保持するデータを入力して演算を行い、演算結果
を該アキュムレータに保持させる(2n+2α)ビット
の演算器とを有する2nビット演算回路に関し、 nビットのデータの演算を行う場合並列に出来、効率の
良い2nビット演算回路の提供を目的とし、2nビット
の演算器を上位nビットの演算を行う上位nビット演算
器と、下位nビットの演算を行う下位nビット演算器に
分け、該下位nビット演算器のキャリーアウト端子と、
上位nビット演算器のキャリーイン端子間をゲートを介
して接続し、 又サブアキュムレー夕の上位nビットのデータはシフト
手段を介して(2n+2α)ビットの演算器に入力する
ようにしておき、 2nビットの演算を行う時は、該ゲートをスルーにし、
又該シフト手段にてシフトせず、nビットの演算を行う
時は、2つの2nビットのバスの上位のnビット,下位
のnビットに夫々nビットのデータを入力し、且つ該ゲ
ートを禁止状態にし、又該シフト手段にてαビットシフ
トして該(2n+2α)ビットの演算器に入力するよう
に構成する. 〔産業上の利用分野〕 本発明は、ディジタル信号処理LSI等に使用される演
算回路で、nビットのデータの演算と2nビットのデー
タの演算の両者を行う2nビット演算回路に関する。
[Detailed Description of the Invention] [Summary] A 2n-bit arithmetic register that holds data sent from two 2n-bit buses, and a 2n-bit arithmetic register that inputs and calculates the output of each of the arithmetic registers. An arithmetic unit, a 2n-bit sub-accumulator that holds the arithmetic result of the arithmetic unit, and performs an operation by inputting the data held by the sub-accumulator and the data held by the accumulator, and sends the result of the operation to the accumulator. Regarding a 2n-bit arithmetic circuit that has a (2n+2α)-bit arithmetic unit that is held, the purpose of providing an efficient 2n-bit arithmetic circuit that can be performed in parallel when performing operations on n-bit data is to use a 2n-bit arithmetic unit. divided into an upper n-bit arithmetic unit that performs an operation on the upper n bits and a lower n-bit arithmetic unit that performs an operation on the lower n bits, and a carry-out terminal of the lower n-bit arithmetic unit;
The carry-in terminals of the upper n-bit arithmetic units are connected via a gate, and the upper n-bit data of the sub-accumulator is inputted to the (2n+2α)-bit arithmetic unit via a shift means. When performing a 2n-bit operation, the gate is passed through,
When performing n-bit operations without shifting using the shift means, input n-bit data to the upper n bits and lower n bits of the two 2n-bit buses, and disable the gate. state, and the shifting means shifts α bits and inputs the (2n+2α) bits to the arithmetic unit. [Field of Industrial Application] The present invention relates to a 2n-bit arithmetic circuit used in digital signal processing LSIs and the like, which performs both n-bit data arithmetic and 2n-bit data arithmetic.

〔従来の技術〕[Conventional technology]

第3図は従来例の16ビット演算回路のブロック図であ
る。
FIG. 3 is a block diagram of a conventional 16-bit arithmetic circuit.

この演算回路は16ビット用に設計されており、16ビ
ットのバス11.12より入力する16ビットのデータ
は、セレクタ9.10にてセレクトされて、例えばバス
11のデータは16ビット演算レジスタ1に,バスl2
のデータ,は16ビット演算レジスタ2に保持されて、
16ビットの演算器3に入力し演算され、結果のデータ
は16ビットサブアキュムレータ4に保持される。
This arithmetic circuit is designed for 16 bits, and the 16 bit data input from the 16 bit bus 11.12 is selected by the selector 9.10. For example, the data on the bus 11 is input to the 16 bit arithmetic register 1. To, bus l2
The data, is held in the 16-bit operation register 2,
The data is input to a 16-bit arithmetic unit 3 and calculated, and the resulting data is held in a 16-bit sub-accumulator 4.

サブアキュ.ムレータ4に保持されたデータは、24ビ
ットのアキュムレータ5に保持されたデータと共に24
ビットの演算器6に入力し演算され、演算結果は24ビ
ットのアキュムレータ5に保持される. この場合、24ビットのアキュムレータ5に保持される
データは、16ビットのデータを複数累算を行い桁上げ
となり16ビット以上となることがあるので、(a)に
示す如く24ビットのアキュムレータとしてあり、又演
算器6も24ビットの演算器としてある。
Subacute. The data held in the mulrator 4 is 24 bits together with the data held in the 24-bit accumulator 5.
The data is input to a bit arithmetic unit 6 and calculated, and the result of the calculation is held in a 24-bit accumulator 5. In this case, the data held in the 24-bit accumulator 5 may become more than 16 bits due to multiple accumulations of 16-bit data, so it is stored as a 24-bit accumulator as shown in (a). , and the arithmetic unit 6 is also a 24-bit arithmetic unit.

〔発明が解決しようとする課題] しかしながら、この演算回路で、8ビットのデータの演
算を行う場合は、演算回路が16ビット用の為、16ビ
ットの演算レジスタ1,2の上位8ビット、16ビット
の演算器3の上位8ビットを演算する部分、16ビット
のサブアキエ・ムレータ4の上位8ビット、24ビット
の演算器6の上位12ビットを演算する部分、及び24
ビットのアキュムレータ5の上位12ビットの部分は使
用されず効率の悪い問題点がある. 本発明は、nビットのデータの演算を行う場合、2つの
nビットのデータの演算を並列に出来効率の良い2nビ
ット演算回路の提供を目的としている。
[Problems to be Solved by the Invention] However, when performing an operation on 8-bit data using this arithmetic circuit, since the arithmetic circuit is for 16 bits, the upper 8 bits of the 16-bit operation registers 1 and 2, A part that calculates the upper 8 bits of the bit arithmetic unit 3, a part that calculates the upper 8 bits of the 16-bit subachie mulator 4, a part that calculates the upper 12 bits of the 24-bit arithmetic unit 6, and
The upper 12 bits of the bit accumulator 5 are not used, resulting in poor efficiency. An object of the present invention is to provide an efficient 2n-bit arithmetic circuit that can perform arithmetic operations on two n-bit data in parallel when performing arithmetic operations on n-bit data.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理ブロック図である.第1図に示す
如く、2つの2nビットのバスより送られてきたデータ
を夫々保持する2nビットの演算レジスタ1.2と、 該演算レジスタ1.2の夫々の出力を入力して演算する
2nビットの演算器3と、 該演算器3の演算結果を保持する2nビットのサブアキ
ュムレータ4と、 該サブアキュムレータ4の保持するデータと、(2n+
2α)ビットのアキュムレータ5の保持するデータを入
力して演算を行い、演算結果を該アキュムレータ5に保
持させる( 2.n + 2α)ビットの演算器6とを
有する2nビット演算回路において、 ti 2 nビットの演算器3を上位nビットの演算を
行う上位nビット演算器3−1と、下位nビットの演算
を行う下位nビット演算器3−2に分け、該下位nビッ
ト演算器3−2のキャリーアウト端子と、上位nビット
演算器3−1のキャリーイン端子間をゲート7を介して
接続し、 又該サブアキュムレータ4の上位nビットのデー夕はシ
フト手段8を介してt’h ( 2 n + 2α)ビ
ットの演算器6に入力するようにしておく。
Figure 1 is a block diagram of the principle of the present invention. As shown in FIG. 1, there is a 2n-bit calculation register 1.2 that holds data sent from two 2n-bit buses, and a 2n-bit calculation register 1.2 that inputs the outputs of each of the calculation registers 1.2 and performs calculations. A bit arithmetic unit 3, a 2n-bit sub-accumulator 4 that holds the operation result of the arithmetic unit 3, and data held by the sub-accumulator 4, (2n+
In a 2n-bit arithmetic circuit having a 2.n + 2α)-bit arithmetic unit 6, the data held in a 2α)-bit accumulator 5 is input, the arithmetic operation is performed, and the result of the arithmetic operation is held in the accumulator 5. The n-bit arithmetic unit 3 is divided into an upper n-bit arithmetic unit 3-1 that performs an operation on the upper n bits and a lower n-bit arithmetic unit 3-2 that performs an operation on the lower n bits. The carry-out terminal of the sub-accumulator 2 and the carry-in terminal of the high-order n-bit arithmetic unit 3-1 are connected via a gate 7, and the data of the high-order n bits of the sub-accumulator 4 is transferred via a shift means 8 to t'. It is arranged to be input to the h (2 n + 2α) bit arithmetic unit 6.

そして、2nビットのデータの演算を行う時は、該ゲー
ト7をスルーにし、又該シフト手段8にてシフトしない
ようにして、通常の2nビットの演算を行う。
When performing an operation on 2n-bit data, the gate 7 is turned on, and the shift means 8 is not shifted, and a normal 2n-bit operation is performed.

又、nビットのデータの並列演算を行う時は、2つの2
nビットのバスの上位のnビット,下位のnビットに夫
々nビットのデータを入力し、且つ該ゲート7を禁止状
態にし、又該シフト手段8にてαビットシフトして該(
2n+2α)ビットの演算器6に入力するようにする。
Also, when performing parallel operations on n-bit data, two 2
n-bit data is input to the upper n bits and lower n bits of the n-bit bus, the gate 7 is disabled, and the shift means 8 shifts α bits so that the (
2n+2α) bits are input to the arithmetic unit 6.

〔作 用〕[For production]

本発明によれば、第1図の2nビット演算回路にて、n
ビットのデータの並列演算を行う時は、2つの2nビッ
トのバスの上位nビット.下位nビットにnビットのデ
ータを入力し、且つゲート7を禁止状態にし、シフト手
段8にてαビットシフトして(2n+2α)ビットの演
算器6に入力するようにする. そうすると、2つの2nビットバスの上位nビット,下
位nビットのnビットのデータは、夫々、2nビットの
演算レジスタ1,2の上位nビット,下位nビットに保
持され、演算レジスタ1,2の上位nビットに保持さた
データは、上位nビットの演算器3−1に入力し、演算
レジスタ1,2の下位nビットに保持さたデータは、下
位nビットの演算器3−2に入力して夫々演算され、上
位nビットの演算器3−1の演算結果はサブアキュムレ
ータ4の上位のnビットに保持され、下位nビットの演
算器3−2の演算結果はサブアキュムレータ4の下位の
nビットに保持される。
According to the present invention, in the 2n-bit arithmetic circuit shown in FIG.
When performing parallel operations on bit data, the upper n bits of two 2n-bit buses. The n-bit data is input to the lower n bits, the gate 7 is disabled, and the shift means 8 shifts α bits so that the data is input to the (2n+2α)-bit arithmetic unit 6. Then, the data of the upper n bits and lower n bits of the two 2n-bit buses are held in the upper n bits and lower n bits of the 2n-bit operation registers 1 and 2, respectively, and The data held in the upper n bits is input to the upper n bit arithmetic unit 3-1, and the data held in the lower n bits of the calculation registers 1 and 2 is input to the lower n bit arithmetic unit 3-2. The operation results of the upper n bits of the arithmetic unit 3-1 are held in the upper n bits of the sub-accumulator 4, and the operation results of the lower n bits of the arithmetic unit 3-2 are held in the lower n bits of the sub-accumulator 4. It is held in n bits.

そして、サブアキュムレータ4の下位のnビットに保持
されたデータはその侭(2n+2α)ビットの演算器6
の下位(n+α)ビットの演算部に入力し、サブアキュ
ムレータ4の上位のnビットに保持されたデータは、シ
フト手段8にてαビット上位にシフトされて、(2 n
+2α)ビットの演算器6の上位(n+α)ビットの演
算部に入力し、(2n+2α)ビットのアキュムレータ
5の下位の(n+α)ビット.上位の(n+α)ビット
に保持されているデータとの演算を夫々行い、演算結果
の夫々のデータは、(2n+2α)ビットのアキュムレ
ータ5の下位の(n+α)ビット,上位の(n+α)ビ
ットに夫々保持される。 従って、2つのnビットの演
算を並列に行うことが出来る。
The data held in the lower n bits of the sub-accumulator 4 is transferred to the (2n+2α) bits of the arithmetic unit 6.
The data that is input to the lower (n+α) bits of the arithmetic unit and held in the upper n bits of the sub-accumulator 4 is shifted to the upper α bits by the shift means 8 and becomes (2 n
+2α) bits to the upper (n+α) bits of the arithmetic unit 6, and the lower (n+α) bits of the (2n+2α) bits accumulator 5. Each operation is performed with the data held in the upper (n+α) bits, and the resulting data is stored in the lower (n+α) bits and upper (n+α) bits of the (2n+2α) bit accumulator 5, respectively. Retained. Therefore, two n-bit operations can be performed in parallel.

勿論この2nビット演算回路にて、2nビントの演算を
行う時は、2つの2nビットのバスより2nビットのデ
ータを入力し、ゲート7をスルーにし、シフト手段8に
てシフトしないようにすれば、通常の2nビット演算回
路となり、通常通り演算を行うことが出来る. 〔実施例〕 第2図は本発明の実施例の16ビット演算回路のブロッ
ク図、第4図は1画素の輝度を8ビットで示した場合の
、4×4画素の2つのブロックの輝度の差の累算を求め
る場合の演算回数を示す図である. 第2図で第3図の場合と異なる点は、16ビットの演算
器3を、上位8ビットの演算器3−1と下位8ビットの
演算器3−2と2つに分け、下位8ビットの演算器3−
2のキャリーアウト端子と、上位8ビットの演算器3−
1のキャリーイン端子間をアンドゲート7を介して接続
した点と、サブアキュムレータ4の上位8ビットのデー
タを24ビット演算器6に送る時、8ビットの演算を行
う時は、セレクタ8にて、4ビット上位にシフトして送
り、16ピットの演算を行う時はセレクタ8にてシフト
せずに送るようにした点である。
Of course, when performing a 2n-bint operation in this 2n-bit arithmetic circuit, input 2n-bit data from two 2n-bit buses, set the gate 7 through, and prevent the shift means 8 from shifting. , it becomes a normal 2n-bit arithmetic circuit and can perform arithmetic operations normally. [Embodiment] Fig. 2 is a block diagram of a 16-bit arithmetic circuit according to an embodiment of the present invention, and Fig. 4 shows the luminance of two blocks of 4 x 4 pixels when the luminance of one pixel is represented by 8 bits. It is a diagram showing the number of calculations when calculating the cumulative difference. The difference between FIG. 2 and FIG. 3 is that the 16-bit arithmetic unit 3 is divided into two, an upper 8-bit operator 3-1 and a lower 8-bit operator 3-2, and the lower 8 bits are Arithmetic unit 3-
2 carry-out terminal and upper 8-bit arithmetic unit 3-
When the carry-in terminal of 1 is connected via the AND gate 7 and the upper 8 bits of data of the sub-accumulator 4 are sent to the 24-bit arithmetic unit 6, the selector 8 is used to perform 8-bit arithmetic. , 4 bits are shifted upwards and sent, and when a 16-bit operation is performed, the selector 8 is used to send the data without shifting.

以下、この異なる点を中心にして説明する。The following explanation will focus on these different points.

16ビットのデータの演算を行う時は、アンドゲート7
にMODEとして1レベルを入力してスルーにし、又セ
レクタ8にMODEとして1レベルを入力してシフトさ
せなくしておく。
When performing operations on 16-bit data, use AND gate 7.
1 level is input as MODE to the selector 8 to make it through, and 1 level is input as MODE to the selector 8 to prevent shifting.

すると、第3図の従来例で説明したと同じ動作を行い1
6ビットのデータの演算が出来る.8ビットの並列演算
を行う時は、2つのl6ビットのバスの上位8ビット,
下位8ビットに夫々8ビットのデータを入力し、且つア
ンドゲート7にMODEとしてOレベルを入力して禁止
状態にし、又セレクタ8にMODEとして0レベルを入
力して、4ビットシフトして24ビットの演算器6に入
力するようにする。
Then, the same operation as explained in the conventional example in Fig. 3 is performed.
Can perform operations on 6-bit data. When performing 8-bit parallel operations, the upper 8 bits of two l6-bit buses,
Input 8 bits of data to each of the lower 8 bits, input O level as MODE to AND gate 7 to disable it, input 0 level as MODE to selector 8, shift by 4 bits to 24 bits. input to the arithmetic unit 6.

そうすると、2つの16ビットバスの上位8ビット,下
位8ビットの8ビットのデータは、夫々、16ビットの
演算レジスタ1,2の上位8ビット,下位8ビットに保
持され、演算レジスタ1,2の上位8ビットに保持さた
データは、上位8ビットの演算器3−1に入力し、演算
レジスタ1,2の下位8ビットに保持さたデータは、下
位8ビットの演算器3−2に入力して夫々演算され、上
位8ビットの演算器3−1の演算結果はサブアキュムレ
ータ4の上位の8ビットに保持され、下位8ビットの演
算器3−2の演算結果はサブアキュムレータ4の下位の
8ビットに保持される。
Then, the data of the upper 8 bits and lower 8 bits of the two 16-bit buses are held in the upper 8 bits and lower 8 bits of the 16-bit operation registers 1 and 2, respectively. The data held in the upper 8 bits is input to the upper 8 bits arithmetic unit 3-1, and the data held in the lower 8 bits of calculation registers 1 and 2 is input to the lower 8 bits arithmetic unit 3-2. The operation results of the upper 8 bits of the operator 3-1 are held in the upper 8 bits of the sub-accumulator 4, and the operation results of the lower 8 bits of the operator 3-2 are held in the lower 8 bits of the sub-accumulator 4. It is held in 8 bits.

そして、サブアキュムレータ4の下位の8ビットに保持
されたデータはその侭24ビットの演算器6の下位12
ビットの演算部に入力し、サブアキュムレータ4の上位
の8ビットに保持されたデータは、セレクタ8にて4ビ
ット上位にシフトされて、24ビットの演算器6の上位
12ビットの演算部に入力し、24ビットのアキュムレ
ータ5の下位の12ビット,上位の12ビットに保持さ
れているデータとの演算を夫々行い、演算結果の夫々の
データは、24ビットのアキュムレータ5の下位の12
ビット.上位の12ビットに夫々保持される。
The data held in the lower 8 bits of the sub-accumulator 4 is stored in the lower 12 bits of the 24-bit arithmetic unit 6.
The data input to the bit operation section and held in the upper 8 bits of the sub-accumulator 4 is shifted to the upper 4 bits by the selector 8 and input to the upper 12 bit operation section of the 24-bit operation unit 6. Then, operations are performed on the data held in the lower 12 bits and upper 12 bits of the 24-bit accumulator 5, and each data of the operation result is stored in the lower 12 bits of the 24-bit accumulator 5.
bit. Each is held in the upper 12 bits.

従って、2つのnビットの演算を並列に行うことが出来
る. この保持された状態は、第2図(a)に示す如くで、4
ビットシフトするのは、.累算の結果の桁上げでビット
数が増えてもよいようにする為である. そこで、第4図(A)(B)に示す如き、1画素の輝度
を8ビットで示した場合の4×4画素よりなる2つのブ
ロックの、各画素の輝度の差の累算値を求める場合の演
算を16ビット演算回路にて行う場合につき、従来の1
6ビット演算回路を使用する場合と、本発明の16ビッ
ト演算回路を使用する場合との比較杏説明する。
Therefore, two n-bit operations can be performed in parallel. This held state is as shown in Fig. 2(a), and 4
Bit shifting is . This is to allow the number of bits to increase by carrying the result of accumulation. Therefore, as shown in Fig. 4 (A) and (B), when the luminance of one pixel is represented by 8 bits, the cumulative value of the difference in luminance of each pixel of two blocks consisting of 4 × 4 pixels is calculated. When calculating the case using a 16-bit arithmetic circuit, the conventional 1
A comparison between the case of using a 6-bit arithmetic circuit and the case of using a 16-bit arithmetic circuit of the present invention will be explained.

従来の16ビット演算回路を使用する場合は、第4図の
左側に示す如《、8ビットよりなる各画素の輝度の差を
夫々演算して、累算するので、16回の演算をすること
になるが、本発明の16ビット演算回路を使用する場合
は、第4図の右側に示す如く、8ビットよりなる2画素
の輝度の差を並列に演算をして夫々累算するので、8回
の演算でよいことになり演算速度を早くすることが出来
る. 〔発明の効果〕 以上詳細に説明せる如く本発明によれば、2nビットの
演算回路で、nビットの演算を行う場合、並列に行うこ
とが出来るので、効率を良くすることが出来る効果があ
る。
When using a conventional 16-bit arithmetic circuit, as shown on the left side of Figure 4, the difference in brightness of each pixel consisting of 8 bits is calculated and accumulated, so 16 calculations are required. However, when using the 16-bit arithmetic circuit of the present invention, as shown on the right side of FIG. This means that only one calculation is required, which increases the calculation speed. [Effects of the Invention] As explained in detail above, according to the present invention, when n-bit operations are performed using a 2n-bit arithmetic circuit, the operations can be performed in parallel, thereby improving efficiency. .

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理ブロック図、 第2図は本発明の実施例の16ビット演算回路のブロッ
ク図、 第3図は従来例の16ビット演算回路のブロック図、 第4図は1画素の輝度を8ビットで示した場合の、4×
4画素の2つのブロックの譚度の差の累算を求める場合
の演算回数を示す図である。 図において、 1.2は2nビット演算レジスタ,16ビット演算レジ
スタ、 3は2nビットの演算器,16ビットの演算器、3−1
は上位nビットの演算器,上位8ビットの演算器、 3−2は下位nビットの演算器.下位8ビットの演算器
、 4は2nビットのサブアキュムレータ,16ビットのサ
ブアキュムレータ、 5は(2n+2α)ビットのアキュムレータ.24ビッ
トのアキュムレータ、 6は(2n+2α)ビットの演算器, の演算器、 7はゲート,アンドゲート、 8はシフト手段.セレクタ、 9.10はセレクタ、 11.12は16ビットバスを示す。 24ビット 本発明へ原j里ブロック図 箒 1 (2) 7代ュムレータ 従i{列の昆じ・卦演算回路のブロック図第 3 図 従 来 本光明 たまる合の、4X4aJ木の2つの 東める賜+力演算回数乞 第 午 図
Figure 1 is a block diagram of the principle of the present invention. Figure 2 is a block diagram of a 16-bit arithmetic circuit according to an embodiment of the present invention. Figure 3 is a block diagram of a conventional 16-bit arithmetic circuit. Figure 4 is a block diagram of a 16-bit arithmetic circuit. When the brightness of is expressed in 8 bits, 4×
FIG. 7 is a diagram showing the number of calculations when calculating the cumulative difference between the tan levels of two blocks of 4 pixels. In the figure, 1.2 is a 2n-bit arithmetic register, a 16-bit arithmetic register, 3 is a 2n-bit arithmetic unit, a 16-bit arithmetic unit, 3-1
is an arithmetic unit for upper n bits, an arithmetic unit for upper 8 bits, and 3-2 is an arithmetic unit for lower n bits. Lower 8-bit arithmetic unit, 4 is a 2n-bit sub-accumulator, 16-bit sub-accumulator, 5 is a (2n+2α)-bit accumulator. 24-bit accumulator, 6 is a (2n+2α) bit arithmetic unit, 7 is a gate, and gate, 8 is a shift means. 9.10 is a selector, and 11.12 is a 16-bit bus. 24-bit block diagram of the present invention 1 (2) Block diagram of the 7th generation numerator subordinate I{column digit/hexagram operation circuit Figure 3 Two east cells of the 4 Gift + force calculation number of hours diagram

Claims (1)

【特許請求の範囲】  2つの2nビットのバスより送られてきたデータを夫
々保持する2nビットの演算レジスタ(1、2)と、 該演算レジスタ(1、2)の夫々の出力を入力して演算
する2nビットの演算器(3)と、 該演算器(3)の演算結果を保持する2nビットのサブ
アキュムレータ(4)と、 該サブアキュムレータ(4)の保持するデータと、(2
n+2α)ビットのアキュムレータ(5)の保持するデ
ータを入力して演算を行い、演算結果を該アキュムレー
タ(5)に保持させる(2n+2α)ビットの演算器(
6)とを有する2nビット演算回路において、 該2nビットの演算器(3)を上位nビットの演算を行
う上位nビット演算器(3−1)と、下位nビットの演
算を行う下位nビット演算器(3−2)に分け、該下位
nビット演算器(3−2)のキャリーアウト端子と、上
位nビット演算器(3−1)のキャリーイン端子間をゲ
ート(7)を介して接続し、 又該サブアキュムレータ(4)の上位nビットのデータ
はシフト手段(8)を介して該(2n+2α)ビットの
演算器(6)に入力するようにしておき、 2nビットの演算を行う時は、該ゲート(7)をスルー
にし、又該シフト手段(8)にてシフトせず、 nビットの演算を行う時は、2つの2nビットのバスの
上位のnビット、下位のnビットに夫々nビットのデー
タを入力し、且つ該ゲート(7)を禁止状態にし、又該
シフト手段(8)にてαビットシフトして該(2n+2
α)ビットの演算器(6)に入力するようにしたことを
特徴とする2nビット演算回路。
[Claims] 2n-bit arithmetic registers (1, 2) each holding data sent from two 2n-bit buses, and inputting the respective outputs of the arithmetic registers (1, 2). A 2n-bit arithmetic unit (3) that performs calculations, a 2n-bit sub-accumulator (4) that holds the calculation results of the arithmetic unit (3), and data held by the sub-accumulator (4);
A (2n+2α) bit arithmetic unit (2n+2α) which performs calculations by inputting data held in an n+2α) bit accumulator (5) and causes the accumulator (5) to hold the calculation result.
6), in which the 2n-bit arithmetic unit (3) is an upper n-bit arithmetic unit (3-1) that performs an operation on the upper n bits, and a lower n-bit arithmetic unit (3-1) that performs an operation on the lower n bits. It is divided into arithmetic units (3-2), and the carry-out terminal of the lower n-bit arithmetic unit (3-2) and the carry-in terminal of the upper n-bit arithmetic unit (3-1) are connected via a gate (7). The data of the upper n bits of the sub-accumulator (4) is inputted to the (2n+2α)-bit arithmetic unit (6) via the shift means (8), and 2n-bit arithmetic is performed. When performing an n-bit operation, the gate (7) is set to pass and the shift means (8) does not shift, the upper n bits and lower n bits of two 2n-bit buses n-bit data is input into each of the gates (7) and the gate (7) is inhibited, and the shift means (8) shifts α bits to the (2n+2)
A 2n-bit arithmetic circuit characterized in that input is input to an α)-bit arithmetic unit (6).
JP1056928A 1989-03-09 1989-03-09 2n-bit arithmetic circuit Pending JPH02235143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1056928A JPH02235143A (en) 1989-03-09 1989-03-09 2n-bit arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1056928A JPH02235143A (en) 1989-03-09 1989-03-09 2n-bit arithmetic circuit

Publications (1)

Publication Number Publication Date
JPH02235143A true JPH02235143A (en) 1990-09-18

Family

ID=13041167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1056928A Pending JPH02235143A (en) 1989-03-09 1989-03-09 2n-bit arithmetic circuit

Country Status (1)

Country Link
JP (1) JPH02235143A (en)

Similar Documents

Publication Publication Date Title
US5957996A (en) Digital data comparator and microprocessor
JPS6225325A (en) Absolute value adding and subtracting circuit
JPH02235143A (en) 2n-bit arithmetic circuit
JPH0450615B2 (en)
CN111610955B (en) A data saturation plus packaging processing component, chip and device
US20080071852A1 (en) Method to perform a subtraction of two operands in a binary arithmetic unit plus arithmetic unit to perform such a method
JPH07118654B2 (en) Arithmetic unit
KR100264957B1 (en) Method and apparatus for calculating the average of two integers rounded from zero in one command cycle
CN102004625B (en) 40-bit SIMD Shifter
EP0442220B1 (en) Decoder
JPS6298425A (en) Arithmetic shifter circuit
SU1179322A1 (en) Device for multiplying two numbers
JPH0348330A (en) Arithmetic device
JP2907276B2 (en) Arithmetic processing unit
JPS6349835A (en) arithmetic processing unit
JPS62274425A (en) Adder with shifter
JPH09190338A (en) Elimination of mathematical overflow flag generation delay in logic unit
JP2821289B2 (en) Shift amount calculation circuit and method
JPH03149656A (en) Arithmetic circuit
JPH01281530A (en) Floating point multiplier
JPS60247781A (en) computing device
JPS6383834A (en) Multiplier
JPH01205327A (en) Adder circuit
JPH04245323A (en) Barrel shifter circuit
JPH0793131A (en) Bit reverse operation circuit