JPH0557615B2 - - Google Patents
Info
- Publication number
- JPH0557615B2 JPH0557615B2 JP17435085A JP17435085A JPH0557615B2 JP H0557615 B2 JPH0557615 B2 JP H0557615B2 JP 17435085 A JP17435085 A JP 17435085A JP 17435085 A JP17435085 A JP 17435085A JP H0557615 B2 JPH0557615 B2 JP H0557615B2
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- arithmetic
- alu
- register
- selector
- 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.)
- Expired - Fee Related
Links
- 230000015654 memory Effects 0.000 description 30
- 230000006870 function Effects 0.000 description 27
- 238000000034 method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 5
- 230000009191 jumping Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
Description
【発明の詳細な説明】
[発明の技術分野]
この発明は、処理の効率化を図つた演算処理装
置に関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an arithmetic processing device that improves processing efficiency.
[発明の技術的背景およびその問題点]
画像処理においては、測定した画像データをし
きい値データと比較して2値化しているが、この
処理は、マイクロプログラム制御方式で行なわ
れ、従来、第3図に示すような演算処理装置によ
り行なわれている。第3図において、マイクロプ
ログラムはインストラクシヨンメモリ1に予め記
憶されており、シーケンサ3からのアドレスによ
りインストラクシヨンメモリ1から順次読み出さ
れてインストラクシヨンレジスタ25にセツトさ
れる。インストラクシヨンレジスタ25は通常数
十ビツトで構成され、ジヤンプ制御部25a、演
算論理機能指定部、すなわちALUフアンクシヨ
ン指定部25b、Rセレクト部25c、Sセレク
ト部25d、およびその他に画像メモリの読み込
み命令、画像メモリのアドレス制御(インクリメ
ント、デクリメント等)で構成されている。イン
ストラクシヨンレジスタ25のALUフアンクシ
ヨン指定部25bは演算論理ユニツト、すなわち
ALU9に接続され、ALU9の演算論理機能、す
なわち+(加算)、−(減算)、AND(論理積)、OR
(論理和)、HI(高レベル:16進数のFF)、LO
(低レベル:O)等のいずれかの演算論理機能を
指定する。ALU9はS入力とR入力から供給さ
れる2つの入力について上述したようにALUフ
アンクシヨン指定部25bで指定される演算論理
機能を実行する。ALU9のS入力にはインスト
ラクシヨンレジスタ25のSセレクト部25bで
セレクタ17がゲートされることによりSセレク
ト部25dで指定されたデータが入力バス17a
から供給され、同様にALU9のR入力にはイン
ストラクシヨンレジスタ25のRセレクト25c
でセレクタ17がゲートされることによりRセレ
クト部25cで指定されたデータが入力バス19
aから供給されるようになつている。ALU9で
演算処理された結果はALU9の出力Yから出力
バス9aに出力されるが、演算処理された結果に
発生する桁上げ、すなわちキヤリー、演算結果の
内容が零であることを示すゼロ、またはオーバー
フロー等のような状態表示情報はALU9からス
テータスレジスタ11に保持される。ステータス
レジスタ11の出力はセレクタ15に接続され、
またインストラクシヨンレジスタ25のジヤンプ
制御部25aはこのセレクタ15に接続されると
ともに、シーケンサ3に接続されている。[Technical background of the invention and its problems] In image processing, measured image data is compared with threshold data and binarized, but this processing is performed using a microprogram control method, and conventionally, This is performed by an arithmetic processing device as shown in FIG. In FIG. 3, microprograms are stored in advance in an instruction memory 1, and are sequentially read out from the instruction memory 1 according to addresses from a sequencer 3 and set in an instruction register 25. The instruction register 25 usually consists of several tens of bits, and includes a jump control section 25a, an arithmetic logic function specification section, that is, an ALU function specification section 25b, an R selection section 25c, an S selection section 25d, and other instructions for reading the image memory. , image memory address control (increment, decrement, etc.). The ALU function specification section 25b of the instruction register 25 is an arithmetic logic unit, that is,
Connected to ALU9, the arithmetic logic functions of ALU9, namely + (addition), - (subtraction), AND (logical product), OR
(logical sum), HI (high level: hexadecimal FF), LO
(Low level: O) etc. Specify one of the arithmetic logic functions. The ALU 9 executes the arithmetic logic function specified by the ALU function specifying section 25b as described above with respect to the two inputs supplied from the S input and the R input. When the selector 17 is gated by the S select section 25b of the instruction register 25, the data designated by the S select section 25d is input to the S input of the ALU 9 via the input bus 17a.
Similarly, the R input of the ALU9 is supplied with the R select 25c of the instruction register 25.
When the selector 17 is gated, the data specified by the R select section 25c is transferred to the input bus 19.
It is designed to be supplied from a. The result processed by the ALU 9 is output from the output Y of the ALU 9 to the output bus 9a, but a carry, that is, a carry, that occurs in the processed result, a zero indicating that the content of the calculation result is zero, or Status display information such as overflow etc. is held in the status register 11 from the ALU 9. The output of the status register 11 is connected to the selector 15,
Further, the jump control section 25a of the instruction register 25 is connected to the selector 15 and also to the sequencer 3.
第4図はこの従来の演算処理装置を使用して画
像データの2値化処理、すなわち画像データをし
きい値データと比較して大きい場合にはHI(高レ
ベル=16進数のFF)を出力し、小さい場合には
LO(低レベル=O)を画像メモリに出力する処理
を行なうマイクロプログラム例を示しているもの
である。第3図および第4図を参照して動作を簡
単に説明する。 Figure 4 shows the binarization process of image data using this conventional arithmetic processing device, that is, comparing the image data with the threshold data and outputting HI (high level = FF in hexadecimal) if it is larger. and if it is small
This shows an example of a microprogram that performs processing to output LO (low level=O) to an image memory. The operation will be briefly explained with reference to FIGS. 3 and 4.
第4図でステツプ1においては、Rセレクトに
画像メモリVRAMの画像データが設定され、S
セレクトにしきい値情報が設定され、ALU9に
おいてY=R−Sの演算、すなわち画像メモリ
VRAMのデータからしきい値を引く演算を行な
い、ステツプ2においてはHI(高レベル=16進数
のFF)を画像メモリに書き込む。そして、この
時、ステツプ1における演算の結果、キヤリーが
「0」の場合、すなわち画像メモリVRAMのデー
タしきい値≧0の場合には、次のステツプ3は飛
ばしてステツプ4にジヤンプする。しかしなが
ら、ステツプ1における演算の結果、キヤリーが
「0」でない場合、すなわち画像メモリVRAMの
データーしきい値<0の場合には、次のステツプ
3に進み、LO(低レベル=0)を画像メモリに書
き込み、ステツプ4に進む。ステツプ4において
は、画像メモリのアドレスをインクリメントし、
ステツプ1と同様に画像メモリVRAMのデータ
からしきい値を引く演算を行ない、それからステ
ツプ2にジヤンプし、以降すべての画像メモリに
ついてステツプ2−4の処理を繰り返す。なお、
画像データの2値化処理は画像メモリのデータが
256×256の場合には上記ステツプ2−4の処理を
256×256回繰り返す。 In step 1 in FIG. 4, image data in the image memory VRAM is set to R select, and S
Threshold information is set to select, and ALU9 calculates Y=RS, that is, image memory
A threshold value is subtracted from the VRAM data, and in step 2, HI (high level = hexadecimal FF) is written to the image memory. At this time, if the carry is "0" as a result of the calculation in step 1, that is, if the data threshold value of the image memory VRAM is ≧0, the next step 3 is skipped and the process jumps to step 4. However, as a result of the calculation in step 1, if the carry is not "0", that is, if the data threshold of the image memory VRAM is <0, the process proceeds to the next step 3, and the LO (low level = 0) is stored in the image memory. Write it in and proceed to step 4. In step 4, the address of the image memory is incremented,
As in step 1, a threshold value is subtracted from the data in the image memory VRAM, and then the process jumps to step 2, after which steps 2-4 are repeated for all image memories. In addition,
Binarization processing of image data is performed when the data in the image memory is
In the case of 256×256, process step 2-4 above.
Repeat 256 x 256 times.
以上のように構成され作動する従来の画像処理
用演算処理装置においては、キヤリーが「0」で
あるか否かによつて画像メモリにHIまたはLO書
き込むためにステツプ2,3の2つのステツプを
必要とする上、キヤリーが「0」の場合にはステ
ツプ3を実行しないでステツプ4にジヤンプする
が、キヤリーが「0」でない場合にはステツプ3
を実行してからステツプ4に進むので、キヤリー
が「0」か否かによつて実行するステツプの数が
異なつている。このように従来の処理ステツプに
おいては、ある演算結果によつて次の処理が決定
されるような場合には、ジヤンプ命令によつてそ
れぞれの処理を行なえ得るように各分岐に対応し
てそれぞれ命令を設けているので、少なくとも2
つ以上の命令ステツプが必要となるため、プログ
ラムステツプが長くなり、高速化が図れないとい
う問題があるとともに、データによつて実行ステ
ツプ数が異なるため、他の処理機能(例えば、空
間フイルタイングプロセツサ等)との同期並列処
理が困難であるという問題がある。 In the conventional image processing arithmetic processing unit configured and operated as described above, two steps, steps 2 and 3, are performed to write HI or LO to the image memory depending on whether the carry is "0" or not. In addition, if the carry is "0", step 3 is skipped and jumps to step 4, but if the carry is not "0", step 3 is executed.
, and then proceeds to step 4, so the number of steps to be executed differs depending on whether the carry is "0" or not. In this way, in conventional processing steps, when the next process is determined by the result of a certain operation, instructions are issued for each branch so that each process can be performed using a jump instruction. At least 2
Since more than one instruction step is required, the program step becomes long and high speed cannot be achieved, and since the number of execution steps differs depending on the data, other processing functions (for example, spatial filtering There is a problem in that it is difficult to perform synchronous parallel processing with other systems (eg.
[発明の目的]
この発明は、上記に鑑みてなされたもので、そ
の目的とするところは、高速化を達成するととも
に、他の処理機能との同期並列処理を容易にした
演算処理装置を提供することにある。[Object of the Invention] The present invention has been made in view of the above, and its purpose is to provide an arithmetic processing device that achieves high speed and facilitates synchronous parallel processing with other processing functions. It's about doing.
[発明の概要]
上記目的を達成するために、この発明は、複数
の演算論理命令および演算論理命令選択用条件設
定コードを有するインストラクシヨンがセツトさ
れるインストラクシヨンレジスタと、前のステツ
プのインストラクシヨンが実行された結果による
演算論理結果の状態情報を保持する状態レジスタ
と、前記インストラクシヨンレジスタにセツトさ
れるインストラクシヨンの演算論理命令選択用条
件設定コードによつて前記状態レジスタに保持さ
れている状態情報を選択し、該状態情報によつて
前記インストラクシヨンレジスタにセツトされる
複数の演算論理命令のいずれか一つを選択するセ
レクタと、該セレクタで選択された演算論理命令
を実行する演算論理ユニツトとを有することを要
旨とする。[Summary of the Invention] In order to achieve the above object, the present invention provides an instruction register in which an instruction having a plurality of arithmetic logic instructions and a condition setting code for selecting an arithmetic logic instruction is set, and A status register that holds status information of the arithmetic and logic results as a result of executing an instruction, and a condition setting code for selecting the arithmetic and logic instruction of the instruction that is set in the instruction register. a selector that selects held state information and selects any one of a plurality of arithmetic and logic instructions set in the instruction register according to the state information; and an arithmetic and logic instruction selected by the selector. The gist is to have an arithmetic and logic unit that executes.
[発明の実施例]
以下、図面を用いてこの発明の実施例を説明す
る。[Embodiments of the Invention] Examples of the invention will be described below with reference to the drawings.
第1図はこの発明の一実施例に係わる演算処理
装置を画像処理に適用した場合のブロツク図であ
る。同図に示す演算処理装置は、測定した画像デ
ータをしきい値データと比較して2値化するもの
であり、マイクロプログラムがインストラクシヨ
ンメモリ1に記憶されているマイクロプログラム
制御方式で制御されている。インストラクシヨン
メモリ1に記憶されている各インストラクシヨン
はシーケンサ3からのアドレスによつて順次読み
出され、インストラクシヨンレジスタ5にセツト
される。インストラクシヨンレジスタ5はジヤン
プ制御部5a、演算論理命令選択用条件設定コー
ド部、すなわちALUコンデイシヨン部5b、第
1および第2の2つの演算論理機能指定部、すな
わち第1のALUフアンクシヨン指定部5c、第
2のALUフアンクシヨン指定部5d、Rセレク
ト部5e、Sセレクト部5f、出力セレクト部5
g、およびその他に画像メモリの読み込み命令、
画像メモリのアドレス制御(インクリメント、デ
クリメント等)等で構成されている。インストラ
クシヨンレジスタ5の第1のALUフアンクシヨ
ン指定部5cおよび第2のALUフアンクシヨン
指定部5dはそれぞれ機能選択用セレクタ7の第
1および第2の入力D1およびD2に接続されて
いる。機能選択用セレクタ7の選択入力Sには条
件選択用セレクタ13の出力DYが接続され、こ
の出力信号により機能選択用セレクタ7の第1ま
たは第2の入力D1またはD2に供給されている
第1のALUフアンクシヨン指定部5cまたは第
2のALUフアンクシヨン指定部5dのいずれか
が選択され、この選択されたALUフアンクシヨ
ン指定部からの演算論理機能指定信号が機能選択
用セレクタ7の出力DYからALU9の機能選択入
力に供給されるようになつている。ALU9は、
このように機能選択用セレクタ7を介して供給さ
れる演算論理機能指定信号に従つた演算論理機能
を実行する、ALU9が実行する演算論理機能と
しては、+(加算)、−(減算)、AND(論理積)、OR
(論理和)、HI(高レベル:16進数のFF)、LO(低
レベル:0)等がある。ALU9はS入力とR入
力から供給される2つの入力について上述したよ
うに機能選択用セレクタ7を介して供給され指定
される演算論理機能を実行する。ALU9のS入
力にはインストラクシヨンレジスタ5のSセレク
ト部5fでセレクタ17がゲートされることによ
りSセレクト部5fで指定されたデータが入力バ
ス17aから供給され、同様にALU9のR入力
にはインストラクシヨンレジスタ5のRセレクト
部5eでセレクタ17がゲートされることにより
Rセレクト部5eで指定されたデータが入力バス
19aから供給されるようになつている。ALU
9で演算処理された結果はALU9の出力Yから
出力バス9aに出力されるが、演算処理された結
果でALU9から発生する桁上げ信号、すなわち
キヤリー信号、演算結果の内容が零であることを
示すゼロ信号、またはオーバフロー信号等のよう
な状態表示信号はALU9からステータスレジス
タ11に保持される。ステータスレジスタ11に
保持された状態表示信号はシーケンサ用セレクタ
15に供給されるとともに、前記条件選択用セレ
クタ13に供給され、ここでインストラクシヨン
レジスタ5にセツトされた次のインストラクシヨ
ンのALUコンデイシヨン部5bによつていずれ
かの状態表示信号が選択され、この選択された状
態表示信号、すなわちキヤリー信号、ゼロ信号ま
たはオーバーフロー信号等が機能選択用セレクタ
7に供給され、この状態表示信号の内容に応じて
次のインストラクシヨンの第1のALUフアンク
シヨン指定部5cまたは第2のALUフアンクシ
ヨン指定部5dが機能選択用セレクタ7で選択さ
れ、この結果ALU9が実行する次のインストラ
クシヨンの演算論理機能が決定されるようになつ
ている。また、インストラクシヨンレジスタ5の
ジヤンプ制御部5aはシーケンサ3およびシーケ
ンサ用セレクタ15に供給され、ジヤンプ制御が
行なわれている。 FIG. 1 is a block diagram when an arithmetic processing device according to an embodiment of the present invention is applied to image processing. The arithmetic processing unit shown in the figure binarizes measured image data by comparing it with threshold data, and is controlled by a microprogram control method stored in the instruction memory 1. ing. Each instruction stored in the instruction memory 1 is sequentially read out according to the address from the sequencer 3 and set in the instruction register 5. The instruction register 5 includes a jump control section 5a, a condition setting code section for arithmetic and logic instruction selection, that is, an ALU condition section 5b, and two arithmetic and logic function specification sections, a first and a second arithmetic and logic function specification section, that is, a first ALU function specification section 5c. , second ALU function specification section 5d, R selection section 5e, S selection section 5f, output selection section 5
g, and other image memory read instructions,
It consists of image memory address control (increment, decrement, etc.). The first ALU function specifying section 5c and the second ALU function specifying section 5d of the instruction register 5 are connected to the first and second inputs D1 and D2 of the function selection selector 7, respectively. The output DY of the condition selection selector 13 is connected to the selection input S of the function selection selector 7, and this output signal causes the first or second input D1 or D2 of the function selection selector 7 to be connected. Either the ALU function specification section 5c or the second ALU function specification section 5d is selected, and the arithmetic logic function specification signal from the selected ALU function specification section is sent from the output DY of the function selection selector 7 to the function of the ALU 9. It is adapted to be supplied to the selection input. ALU9 is
The arithmetic logic functions executed by the ALU 9, which execute the arithmetic logic function according to the arithmetic logic function designation signal supplied via the function selection selector 7, include + (addition), - (subtraction), AND (logical AND), OR
(logical sum), HI (high level: FF in hexadecimal), LO (low level: 0), etc. The ALU 9 executes the specified arithmetic logic function supplied via the function selection selector 7 as described above with respect to the two inputs supplied from the S input and the R input. The S select section 5f of the instruction register 5 gates the selector 17 to the S input of the ALU9, so that the data specified by the S select section 5f is supplied from the input bus 17a, and similarly, the R input of the ALU9 is supplied with the data specified by the S select section 5f. When the selector 17 is gated by the R select section 5e of the instruction register 5, data specified by the R select section 5e is supplied from the input bus 19a. ALU
The result of the calculation in step 9 is output from the output Y of the ALU 9 to the output bus 9a, but the carry signal generated from the ALU 9 as a result of the calculation, that is, the carry signal, indicates that the content of the calculation result is zero. A status indicating signal such as a zero signal or an overflow signal is held from the ALU 9 in the status register 11. The status display signal held in the status register 11 is supplied to the sequencer selector 15 and also to the condition selection selector 13, where it selects the ALU condition of the next instruction set in the instruction register 5. One of the status display signals is selected by the section 5b, and the selected status display signal, such as a carry signal, a zero signal, or an overflow signal, is supplied to the function selection selector 7, and the content of the status display signal is Accordingly, the first ALU function specification section 5c or the second ALU function specification section 5d of the next instruction is selected by the function selection selector 7, and as a result, the arithmetic logic function of the next instruction to be executed by the ALU 9 is selected. is now being determined. Further, the jump control section 5a of the instruction register 5 is supplied to the sequencer 3 and the sequencer selector 15 to perform jump control.
次に、第1図の画像処理用演算処理装置の作用
を第2図に示すプログラム例を参照して説明す
る。 Next, the operation of the image processing arithmetic processing device shown in FIG. 1 will be explained with reference to a program example shown in FIG.
第2図は画像データをしきい値データと比較し
て2値化するプログラム例を示しているものであ
り、これらのプログラムはインストラクシヨンメ
モリ1に記憶されている。シーケンサ3からのア
ドレシングによりまずステツプ1のインストラク
シヨンがインストラクシヨンメモリ1からのイン
ストラクシヨンレジスタ5にセツトされると、イ
ンストラクシヨンレジスタ5のRセレクト部5e
に設定されている画像メモリVRAMからの画像
データがセレクタ17を介してALU9のS入力
に供給され、またSセレクト部5fに設定されて
いるしきい値データがセレクタ19を介して
ALU9のR入力に供給される。インストラクシ
ヨンレジスタ5のALUフアンクシヨン指定部5
c,5dはALU9が実行する演算論理機能とし
てY=R−Sを指定しているので、ステツプ1に
おいては画像メモリVRAMからの画像データか
らしきい値データを引く演算を実行され、この演
算におけるキヤリー等の状態情報はステータスレ
ジスタ11に保持される。 FIG. 2 shows an example of a program for binarizing image data by comparing it with threshold data, and these programs are stored in the instruction memory 1. When the step 1 instruction is first set in the instruction register 5 from the instruction memory 1 by addressing from the sequencer 3, the R select section 5e of the instruction register 5 is set.
The image data set in the image memory VRAM is supplied to the S input of the ALU 9 via the selector 17, and the threshold data set in the S select section 5f is supplied via the selector 19 to the S input of the ALU 9.
Supplied to the R input of ALU9. ALU function specification section 5 of instruction register 5
c, 5d specify Y=RS as the arithmetic logic function executed by the ALU9, so in step 1, an operation is performed to subtract the threshold data from the image data from the image memory VRAM, and in this operation Status information such as carry status is held in the status register 11.
次のステツプ2においてインストラクシヨンレ
ジスタ5にセツトされたインストラクシヨンの
ALUコンデイシヨン部5bにはキヤリー信号を
選択せよという条件設定コードが設定されている
ので、条件選択用セレクタ13はステータスレジ
スタ11に前のステツプで保持されているキヤリ
ー信号を選択し、このキヤリー信号を機能選択用
セレクタ7に選択入力に供給する。この結果、機
能選択用セレクタ7はキヤリー信号が「0」の場
合には第1のALUフアンクシヨン指定部5cを
選択し、これによりALU9においてはY=HI
(16進数のFF)を実行して高レベル信号を出力
し、またキヤリー信号が「1」の場合には第2の
ALUフアンクシヨン指定部5dを選択し、これ
によりALU9においてはY=LOを実行して低レ
ベル信号を出力する。この実行結果は出力セレク
ト5gによつて選択される画像メモリVRAMに
格納されるようになつている。 In the next step 2, the instruction set in the instruction register 5 is
Since a condition setting code to select a carry signal is set in the ALU condition section 5b, the condition selection selector 13 selects the carry signal held in the status register 11 in the previous step, and selects this carry signal. The selection input is supplied to the function selection selector 7. As a result, the function selection selector 7 selects the first ALU function designation section 5c when the carry signal is "0", and as a result, in the ALU 9, Y=HI
(FF in hexadecimal) and outputs a high level signal, and if the carry signal is "1", the second
The ALU function specifying section 5d is selected, whereby the ALU 9 executes Y=LO and outputs a low level signal. This execution result is stored in the image memory VRAM selected by the output select 5g.
次に、ステツプ3に進んで画像メモリのアドレ
スをインクリメントし、前記ステツプ1と同じ処
理、すなわち画像メモリVRAMからの画像デー
タからしきい値データを引く演算が実行され、シ
ーケンサ3の制御によりステツプ2にジヤンプし
てループ制御される。以降、ステツプ2,3の動
作が画像メモリVRAMの画像データの分、例え
ば256×256回繰り返される。この場合の繰返しス
テツプ数は2×256×256ステツプであつて、画像
メモリのデータの内容に関係なく一定であるとと
もに、従来のようにキヤリー信号が「0」でない
場合にステツプ数が増えることがなく、高速化さ
れている。 Next, the process proceeds to step 3, where the address of the image memory is incremented, and the same process as in step 1, that is, the calculation of subtracting the threshold value data from the image data from the image memory VRAM, is executed. It jumps and is controlled in a loop. Thereafter, the operations of steps 2 and 3 are repeated, for example, 256×256 times for the image data in the image memory VRAM. The number of repeated steps in this case is 2 x 256 x 256 steps, which is constant regardless of the content of the data in the image memory, and the number of steps may increase if the carry signal is not "0" as in the conventional case. It is now faster.
[発明の効果]
以上説明したように、この発明によれば、イン
ストラクシヨンレジスタに複数の演算論理命令お
よび演算論理命令選択用条件設定コードを有する
インストラクシヨンをセツトし、前のステツプで
実行されたインストラクシヨンの演算論理結果の
状態を保持している状態レジスタの内容を前記演
算論理命令選択用条件設定コードによつて選択
し、この選択した状態情報によつて複数の演算論
理命令のいずれか一つを選択し、この選択された
演算論理命令を実行するようにしている。これに
より、状態情報の内容によつて異なる処理を実行
する場合に他にジヤンプすることなく、例えば状
態情報が第1の状態の場合には複数の演算論理命
令のうちの第1の命令を実行し、第2の状態の場
合には第2の命令を実行するという具合に他にジ
ヤンプする必要がないため、ジヤンプして他のロ
ケーシヨンの命令を実行する分だけステツプ数が
短くなつて高速化を達成することができる上、状
態情報の内容によつてステツプ数が異なることも
ないため、例えば空間フイルタ乗算用等の他の並
列プロセツサ等との同期も簡単に取ることがで
き、結果として処理の効率化を図ることができ
る。[Effects of the Invention] As explained above, according to the present invention, an instruction having a plurality of arithmetic logic instructions and a condition setting code for arithmetic logic instruction selection is set in the instruction register, and is executed in the previous step. The content of the status register that holds the status of the arithmetic logic result of the instruction that has been executed is selected by the arithmetic logic instruction selection condition setting code, and the selected status information is used to select the contents of the status register that holds the state of the arithmetic logic result of the instruction. One of them is selected and the selected arithmetic and logic instruction is executed. As a result, when executing different processes depending on the contents of the state information, for example, when the state information is in the first state, the first instruction of the multiple arithmetic and logic instructions is executed without jumping to another state. However, in the case of the second state, there is no need to jump to another location such as executing the second instruction, so the number of steps is shortened by jumping and executing the instruction at another location, increasing speed. In addition, since the number of steps does not differ depending on the content of the state information, it is easy to synchronize with other parallel processors, such as those for spatial filter multiplication, and as a result, processing It is possible to improve efficiency.
第1図はこの発明の一実施例を示す演算処理装
置とブロツク図、第2図は第1図の装置で実行さ
れる画像データの2値化を行なうプログラム例を
示す図、第3図は従来の演算処理装置のブロツク
図、第4図は第3図の装置で実行される画像デー
タの2値化を行なう従来のプログラム例を示す図
である。
1……インストラクシヨンメモリ、3……シー
ケンサ、5……インストラクシヨンレジスタ、7
……機能選択用セレクタ、9……ALU、11…
…ステータスレジスタ、13……条件選択用セレ
クタ。
FIG. 1 is a block diagram of an arithmetic processing device showing an embodiment of the present invention, FIG. 2 is a diagram showing an example of a program for binarizing image data executed by the device shown in FIG. 1, and FIG. FIG. 4, a block diagram of a conventional arithmetic processing device, is a diagram showing an example of a conventional program for binarizing image data, which is executed by the device shown in FIG. 1...Instruction memory, 3...Sequencer, 5...Instruction register, 7
...Function selection selector, 9...ALU, 11...
...Status register, 13...Selector for condition selection.
Claims (1)
用条件設定コードを有するインストラクシヨンが
セツトされるインストラクシヨンレジスタと、前
のステツプのインストラクシヨンが実行された結
果による演算論理結果の状態情報を保持する状態
レジスタと、前記インストラクシヨンレジスタに
セツトされるインストラクシヨンの演算論理命令
選択用条件設定コードによつて前記状態レジスタ
に保持されている状態情報を選択し、該状態情報
によつて前記インストラクシヨンレジスタにセツ
トされる複数の演算論理命令のいずれか一つを選
択するセレクタと、該セレクタで選択された演算
論理命令を実行する演算論理ユニツトとを有する
ことを特徴とする演算処理装置。1. An instruction register in which instructions having multiple arithmetic logic instructions and condition setting codes for arithmetic logic instruction selection are set, and status information of the arithmetic logic result as a result of the execution of the instruction of the previous step. Select the state information held in the state register according to the state register to be held and the condition setting code for selecting the arithmetic logic instruction of the instruction set in the instruction register, and select the state information held in the state register. Arithmetic processing characterized by having a selector for selecting one of a plurality of arithmetic and logic instructions set in the instruction register, and an arithmetic and logic unit that executes the arithmetic and logic instruction selected by the selector. Device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17435085A JPS6235942A (en) | 1985-08-09 | 1985-08-09 | Arithmetic processing unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17435085A JPS6235942A (en) | 1985-08-09 | 1985-08-09 | Arithmetic processing unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6235942A JPS6235942A (en) | 1987-02-16 |
| JPH0557615B2 true JPH0557615B2 (en) | 1993-08-24 |
Family
ID=15977104
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17435085A Granted JPS6235942A (en) | 1985-08-09 | 1985-08-09 | Arithmetic processing unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6235942A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0827710B2 (en) * | 1987-05-21 | 1996-03-21 | 株式会社日立製作所 | Micro program control system |
-
1985
- 1985-08-09 JP JP17435085A patent/JPS6235942A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6235942A (en) | 1987-02-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4430706A (en) | Branch prediction apparatus and method for a data processing system | |
| EP0459445A2 (en) | Method for processing by processor | |
| EP0378415A2 (en) | Multiple instruction dispatch mechanism | |
| US4541047A (en) | Pipelined data processing system | |
| JPH0348536B2 (en) | ||
| US4550369A (en) | Apparatus and method for processing macroinstructions and microinstructions | |
| EP0240606A2 (en) | Pipe-line processing system and microprocessor using the system | |
| EP0164418B1 (en) | Microprogram control system | |
| US5291615A (en) | Instruction pipeline microprocessor | |
| JPH0557615B2 (en) | ||
| US4975837A (en) | Programmable unit having plural levels of subinstruction sets where a portion of the lower level is embedded in the code stream of the upper level of the subinstruction sets | |
| SU615538A1 (en) | Arrangement for retrieving information from storage unit | |
| JP2553200B2 (en) | Information processing device | |
| JPH0222413B2 (en) | ||
| JP2793357B2 (en) | Parallel processing unit | |
| JPS58200349A (en) | Microprogram controller | |
| JPH0128965B2 (en) | ||
| EP0234785A1 (en) | Improvements relating to control flow in computers | |
| JPS6116334A (en) | Data processor | |
| JPS5995646A (en) | Arithmetic control system | |
| JP2982129B2 (en) | Micro program controller | |
| JPS619775A (en) | Picture image processor | |
| JPS6250855B2 (en) | ||
| JPH01124029A (en) | Tagged data processing device | |
| JPS6049439A (en) | Control system of microprogram |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |