JPS60262243A - High-speed arithmetic unit - Google Patents

High-speed arithmetic unit

Info

Publication number
JPS60262243A
JPS60262243A JP59118483A JP11848384A JPS60262243A JP S60262243 A JPS60262243 A JP S60262243A JP 59118483 A JP59118483 A JP 59118483A JP 11848384 A JP11848384 A JP 11848384A JP S60262243 A JPS60262243 A JP S60262243A
Authority
JP
Japan
Prior art keywords
circuit
arithmetic circuit
arithmetic
output
subtraction function
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
JP59118483A
Other languages
Japanese (ja)
Inventor
Kenichi Hasegawa
謙一 長谷川
Haruyasu Yamada
山田 晴保
Toshiki Mori
俊樹 森
Kunitoshi Aono
邦年 青野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP59118483A priority Critical patent/JPS60262243A/en
Priority to US06/682,321 priority patent/US4635292A/en
Publication of JPS60262243A publication Critical patent/JPS60262243A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration by the use of local operators

Abstract

PURPOSE:To reduce the program capacity and to attain a high-speed operation by using the 1st arithmetic circuit having a subtraction function to A and B and the 2nd arithmetic circuit having a subtraction function to B and A respectively. CONSTITUTION:The picture element data Di and D5 are read out of a memory 1 and supplied to the 1st arithmetic circuit 2 having an addition/subtraction function as well as to the 2nd arithmetic circuit 3 having a minimum limit subtraction function. Then Di-D5 and D5-Di are outputted form the circuits 2 and 3 respectively. A multiplexer 4 usually transmits the output of the circuit 2 and then the output of the circuit 3 only in case an absolute value arithmetic instruction is written on a program memory 5 and also a code bit contained in the output of the circuit 2 shows a minus. Thus it is possible to obtain the absolute value of a difference with an instruction of a step.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はデジタル信号の演算装置に係るものであり、特
に減算と絶対値演算を高速に実行する装置に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a digital signal arithmetic device, and more particularly to a device that performs subtraction and absolute value arithmetic at high speed.

従来例の構成とその問題点 近年信号処理をデジタル処理する装置が多数開発されて
いるが、音声の認識1文字の認識1図形処理等は処理が
複雑で、またデータ量も多く未だ広く実用に供するには
なってい々い。特に映像信号をデジタル処理する分野は
データ量が膨大であるだめ処踵装置が特に高速である事
が要求されている。縦横512X512画素で構成され
る画面より、3×3画素の窓を設定して処理する場合を
例にとり説明する。第3図は、縦612画素、横612
画素内に設定された、3×3画素の窓を示している。説
明の都合上、左上の画素より1,2゜・・・・・・、9
0番号をつけている。例えば雑音等による孤立点を検出
する演算は、中央の画素D5 と周囲の8個の画素との
レベル差を下式によりめる。
Conventional configurations and their problems Many devices that perform digital signal processing have been developed in recent years, but speech recognition, character recognition, graphic processing, etc. are complex processes and require a large amount of data, so they are still not widely used in practical use. It's too late to offer. Particularly in the field of digitally processing video signals, where the amount of data is enormous, the processing device is required to be particularly fast. An example will be explained in which processing is performed by setting a 3×3 pixel window on a screen composed of 512×512 pixels vertically and horizontally. Figure 3 has 612 pixels vertically and 612 pixels horizontally.
It shows a 3×3 pixel window set within a pixel. For convenience of explanation, 1,2 degrees from the upper left pixel...9
It is numbered 0. For example, the calculation for detecting an isolated point due to noise or the like uses the level difference between the central pixel D5 and eight surrounding pixels using the following formula.

この演算は一画面に対して612X612回、即ち26
万回実行され、差の絶対値演算IX−Ylは236万回
実行される。
This calculation is performed 612x612 times for one screen, that is, 26 times.
The absolute value calculation of the difference IX-Yl is executed 2.36 million times.

第1図は通常の演算装置を示している。画素を記憶して
いるメモリ21.2個のデータから一方を選択的に通過
させる選択回路MUX22.加減演算等を行なう演算回
路人LU23.演算回路の出力を記憶する一時レジスタ
24.プログラムが記憶されているプログラムメモリ2
6により構成されている。上記の演算を第1図の演算装
置で実行すると、実行過程が減算、正負の判定、符号反
転の3段階で成り立っている故約708万段階の処理が
必要になる事を以下に説明する。画素データDi、D5
がメモリ21より読み出されて、それぞれ演算回路23
へ直接、およびマルチプレクサ22を介して入力される
。演算回路23で減算が実行されて値(Di−Ds )
が一時レジスタ24へ入力される。プログラムメモリ2
6には、メモリ21の番地、マルチプレクサ22の制御
信号。
FIG. 1 shows a conventional arithmetic unit. A memory 21 that stores pixels; a selection circuit MUX 22 that selectively passes one of the two pieces of data; Arithmetic circuit person LU23 who performs addition/subtraction calculations, etc. Temporary register 24 for storing the output of the arithmetic circuit. Program memory 2 where programs are stored
6. It will be explained below that when the above calculation is executed by the arithmetic device shown in FIG. 1, the execution process requires 7,080,000 steps of processing, which consists of three steps: subtraction, positive/negative determination, and sign inversion. Pixel data Di, D5
are read out from the memory 21 and sent to the arithmetic circuit 23 respectively.
directly and via multiplexer 22. Subtraction is executed in the arithmetic circuit 23 and the value (Di-Ds)
is input to the temporary register 24. Program memory 2
6, the address of the memory 21 and the control signal of the multiplexer 22;

演算回路23実行すべき演算プログラムが書き適寸れて
いる。この減算命令の次のステップとして条件JUMP
命令、即ち一時レジスタ24へ入力された数値が負なら
ば演算回路23の入力表して、0と(DiDs)がマル
チプレクサ22を介して入力せよと云う命令が書かれて
いる。さらに次のステップとして、演算回路23は減算
を実行し、0 (Di Ds) をめて一時レジスタ24に格納せよとプログラムメモリ
26に書いておく。第1図に示す従来の演算装置はこの
ようにして第1DiDslを演算する。
The arithmetic program to be executed in the arithmetic circuit 23 has been written to an appropriate size. The condition JUMP is used as the next step of this subtraction instruction.
An instruction is written to input 0 and (DiDs) through the multiplexer 22 as inputs to the arithmetic circuit 23 if the numerical value input to the temporary register 24 is negative. Furthermore, as the next step, the arithmetic circuit 23 executes subtraction and writes in the program memory 26 a command to add 0 (Di Ds) and store it in the temporary register 24. The conventional calculation device shown in FIG. 1 calculates the first DiDsl in this manner.

第1図の演算装置の欠点は、第1に遅い事である。プロ
グラムステップにして3〜4ステツプの時間を要する。
The first disadvantage of the arithmetic device shown in FIG. 1 is that it is slow. It takes 3 to 4 program steps.

高速のためさらにプログラムメモリ21の読み出しに命
令さき読み取りを構成においては、条件JUMPにより
少なくとも1ステツプの無駄時間が生じる。第2の欠点
は条件JUMPがあるためK、処理時間が一定でない事
である。
Because of the high speed, when the program memory 21 is read out with instructions first, at least one step of wasted time occurs due to the condition JUMP. The second drawback is that the processing time is not constant due to the condition JUMP.

このためJUMPが発生したかどうかを監視しながら新
しいデータをメモリ21に書き込む伺加装置を追加する
か、又はJUMPが発生しない場合には何もしない遊び
命令を書き込んで処理時間を一定にする構成が必要であ
る。第3の欠点としてプログラムのステップ数が長い事
である。
For this reason, it is necessary to add a monitoring device that writes new data to the memory 21 while monitoring whether or not a JUMP occurs, or to keep the processing time constant by writing an idle command that does nothing if a JUMP does not occur. is necessary. The third drawback is that the number of steps in the program is long.

発明の目的 本発明は以上述べた欠点を解決して、絶対値計算で条件
JUMP命令を用いる事なく、1ステツプの命令により
高速に演算する装置を提供する事を]」的とする。
OBJECTS OF THE INVENTION It is an object of the present invention to solve the above-mentioned drawbacks and to provide a device that performs high-speed calculations using one-step instructions without using the conditional JUMP instruction in absolute value calculations.

発明の構成 本発明は、2ケの入力データA、Hに対し、少なくとも
減算機能を有する第1の演算回路と、前記2ケの入力A
、Bを入れ替えたB、Aに対して少なくとも減算機能を
有する第2の演算回路とを具備しており、絶対値演算命
令と前記第1の演算回路の出力信号中の符号ビットとに
より制御される選択回路を介して前記第1または前記第
2の演算回路の出力信号のいずれかを出力せしめる事を
特徴とする高速演算装置である。
Structure of the Invention The present invention provides a first arithmetic circuit having at least a subtraction function for two input data A and H;
, a second arithmetic circuit having at least a subtraction function for B and A with B replaced, and controlled by an absolute value arithmetic instruction and a sign bit in the output signal of the first arithmetic circuit. The high-speed arithmetic device is characterized in that either the output signal of the first arithmetic circuit or the second arithmetic circuit is outputted via a selection circuit.

実施例の説明 第2図に本発明の一実施例を示し、動作を説明する。第
3図は画像情報の処理方法の説明図である。実施例は、
データを貯えているメモリ1、数値演算を実行する第1
.第2の演算回路2,3.2つの入力信号の一方のみを
選択的に通過させるマルチプレクサ4.及びプログラム
を貯えているプログラムメモリ6により構成されている
DESCRIPTION OF EMBODIMENTS FIG. 2 shows an embodiment of the present invention, and its operation will be explained. FIG. 3 is an explanatory diagram of a method of processing image information. Examples are:
Memory 1 stores data, memory 1 performs numerical operations
.. Second arithmetic circuit 2, 3. Multiplexer 4 that selectively passes only one of the two input signals. and a program memory 6 that stores programs.

画素データDi+Dsがメモリ1より読み出されて第1
の演算回路2へ入力されると共に第2の演算回路3へ入
力される。第1の演算回路2は加算、減算機能を有して
いる。一方第2の演算回路sFi最低限減算機能を持っ
ていればよい。プログラムメモリ6には減算命令と絶対
値演算命令が1ステツプに書かれている。第1の演算回
路2の出力は(DI Ds)、第2の演算回路3の出力
は(Ds−Di)となる。この2ケの出力はマルチプレ
クサ4へ入力される。マルチプレクサ4td通常は第1
の演算回路2の出力を通過させているが、プログラムメ
モリ5に絶対値演算命令が書かれており、かつ第1の演
算回路2の出力中の符号ビットが負を示している場合の
み第2の演算回路3の出力を通過させる。以上のように
して1ステツプの命令で差の絶対値を得る事ができる。
Pixel data Di+Ds is read out from memory 1 and
The signal is input to the second arithmetic circuit 2 and also to the second arithmetic circuit 3. The first arithmetic circuit 2 has addition and subtraction functions. On the other hand, it is sufficient that the second arithmetic circuit sFi has at least a subtraction function. In the program memory 6, a subtraction instruction and an absolute value calculation instruction are written in one step. The output of the first arithmetic circuit 2 is (DI Ds), and the output of the second arithmetic circuit 3 is (Ds-Di). These two outputs are input to multiplexer 4. Multiplexer 4td usually the first
However, only when an absolute value calculation instruction is written in the program memory 5 and the sign bit in the output of the first calculation circuit 2 indicates a negative value, the output from the second calculation circuit 2 is passed through. The output of the arithmetic circuit 3 is passed through. As described above, the absolute value of the difference can be obtained with a one-step instruction.

発明の効果 本発明によれば従来に比べ猶〜%の短かいプログラムス
テップで演算結果を得る事が出来る故、高速動作ができ
かつプログラム容量も小さくて良い。また条件JUMP
文がないのでデータの入力と演算回路結果の出力の同期
を容易にとる事ができる。
Effects of the Invention According to the present invention, a calculation result can be obtained in a program step that is 10% shorter than the conventional method, so high-speed operation can be performed and the program capacity can be small. Also the condition JUMP
Since there are no statements, it is easy to synchronize the input of data and the output of the arithmetic circuit results.

寸だ第2の、第1演算回路、第2の演算回路を同一の回
路を採用すれば集積化回路の設計は工数の増加なしにマ
スク設計する事ができる。
If the same circuit is used as the second arithmetic circuit and the second arithmetic circuit, the integrated circuit can be designed using a mask without increasing the number of man-hours.

本発明は文字の認識9画像の処理等に好適な演算装置を
提供し得るものである。
The present invention can provide an arithmetic device suitable for character recognition, image processing, etc.

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

第1図は従来の演算装置の回路図、第2図は本発明の一
実施例演算装置の回路図、第3図は画像情報の処理方法
を説明する図である。 1・・・・・・メモリ、2.3・・・・・・演算回路、
4・・・・・・マルチプレクサ、6・・・・・・プログ
ラムメモリ。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
FIG. 1 is a circuit diagram of a conventional arithmetic device, FIG. 2 is a circuit diagram of an embodiment of the arithmetic device of the present invention, and FIG. 3 is a diagram for explaining a method of processing image information. 1...Memory, 2.3... Arithmetic circuit,
4...Multiplexer, 6...Program memory. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
figure

Claims (1)

【特許請求の範囲】 2個の入カム、Bに対し、少なくとも加減算機能を有す
る第1の演算回路と、前記2ケの入カム。 Bを入れ替えたB、ムに対し少なくとも減算機能を有す
る第2の演算回路とを具備しており、絶対値演算命令と
前記第1の演算回路の出力中の符号ビットとにより制御
される選択回路を介して前記第11だけ前記第2の演算
回路の出力のいずれかを出力せしめる事を特徴とする高
速演算装置。
[Scope of Claims] A first arithmetic circuit having at least an addition/subtraction function for two input cams B, and the two input cams. and a second arithmetic circuit having at least a subtraction function for B and M with B replaced, and a selection circuit controlled by an absolute value arithmetic instruction and a sign bit being output from the first arithmetic circuit. A high-speed arithmetic device, characterized in that only the eleventh arithmetic circuit outputs any of the outputs of the second arithmetic circuit.
JP59118483A 1983-12-19 1984-06-08 High-speed arithmetic unit Pending JPS60262243A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP59118483A JPS60262243A (en) 1984-06-08 1984-06-08 High-speed arithmetic unit
US06/682,321 US4635292A (en) 1983-12-19 1984-12-17 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59118483A JPS60262243A (en) 1984-06-08 1984-06-08 High-speed arithmetic unit

Publications (1)

Publication Number Publication Date
JPS60262243A true JPS60262243A (en) 1985-12-25

Family

ID=14737790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59118483A Pending JPS60262243A (en) 1983-12-19 1984-06-08 High-speed arithmetic unit

Country Status (1)

Country Link
JP (1) JPS60262243A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61290534A (en) * 1985-06-19 1986-12-20 Nec Corp Arithmetic circuit
EP0208939A2 (en) * 1985-06-19 1987-01-21 Nec Corporation Arithmetic circuit for calculating absolute difference values
EP0239276A2 (en) * 1986-03-28 1987-09-30 Texas Instruments Incorporated Alu for a bit slice processor with multiplexed bypass path
JPS6470824A (en) * 1987-05-15 1989-03-16 Digital Equipment Corp Apparatus and method for promoting floating point computation selected for expansion arithmetic logical device
JPH0330018A (en) * 1989-06-28 1991-02-08 Nec Corp Decimal arithmetic system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61290534A (en) * 1985-06-19 1986-12-20 Nec Corp Arithmetic circuit
EP0208939A2 (en) * 1985-06-19 1987-01-21 Nec Corporation Arithmetic circuit for calculating absolute difference values
EP0239276A2 (en) * 1986-03-28 1987-09-30 Texas Instruments Incorporated Alu for a bit slice processor with multiplexed bypass path
EP0239276A3 (en) * 1986-03-28 1989-09-06 Texas Instruments Incorporated Alu for a bit slice processor with multiplexed bypass path
JPS6470824A (en) * 1987-05-15 1989-03-16 Digital Equipment Corp Apparatus and method for promoting floating point computation selected for expansion arithmetic logical device
JPH0330018A (en) * 1989-06-28 1991-02-08 Nec Corp Decimal arithmetic system

Similar Documents

Publication Publication Date Title
EP0068764A2 (en) Vector processing units
JPS60262243A (en) High-speed arithmetic unit
JPS607812B2 (en) Data buffering device
JPS62237522A (en) Information processor
KR950009271B1 (en) Information processing system
JPS5995660A (en) Data processor
JPS6041769B2 (en) Addressing method
JP2553200B2 (en) Information processing device
JPS6211736B2 (en)
JPS62279438A (en) Tracking circuit
JPS6230455B2 (en)
KR0153537B1 (en) Signal processing structure preselecting memory address data
JP3469753B2 (en) Return address read control method of processor and processor
JP2743685B2 (en) Fixed-point processor
JPS62241044A (en) History information collecting device
JPS5875250A (en) Digital information processor
JPS58116579A (en) Graphic japanese character dot pattern output control system
JPH0454531A (en) Program reading circuit
JPS59223846A (en) Arithmetic processor
JPS58151670A (en) Picture data processing device
JPH02204861A (en) Vector data processor
JPH01195581A (en) Image data processing system
JPS60235274A (en) Picture signal processing device
JPS62160550A (en) Memory write system
JPS6324475A (en) Frame memory control system