JPS6235942A - Arithmetic processing unit - Google Patents

Arithmetic processing unit

Info

Publication number
JPS6235942A
JPS6235942A JP17435085A JP17435085A JPS6235942A JP S6235942 A JPS6235942 A JP S6235942A JP 17435085 A JP17435085 A JP 17435085A JP 17435085 A JP17435085 A JP 17435085A JP S6235942 A JPS6235942 A JP S6235942A
Authority
JP
Japan
Prior art keywords
instruction
register
alu
arithmetic
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.)
Granted
Application number
JP17435085A
Other languages
Japanese (ja)
Other versions
JPH0557615B2 (en
Inventor
Kazunori Noso
千典 農宗
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP17435085A priority Critical patent/JPS6235942A/en
Publication of JPS6235942A publication Critical patent/JPS6235942A/en
Publication of JPH0557615B2 publication Critical patent/JPH0557615B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To perform the processing at a high speed by selecting and executing one of plural arithmetic logic instructions set to an instruction register in accordance with status information of a selected status register. CONSTITUTION:When an instruction is set from an instruction memory 1 to an instruction register 5, the contents of a status register 11 where the state of the arithmetic logic result of the instruction executed in the preceding step is held are selected by a condition selecting selector 13 in accordance with an ALU condition part 5b. The first ALU function designating part 5c or the second ALU function designating part 5d is selected by a function selecting selector 7 in accordance with this selected status information to determined a logical arithmetic function which an ALU 9 executes. Since jump to another processing is unnecessary when the processing is different by contents of status information, the processing is performed at a high speed.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、処理の効率化を図った演算処理装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an arithmetic processing device that improves processing efficiency.

[発明の技術的背景およびその問題点1画像処理におい
ては、測定した画像データをしきい値データど比較して
2値化しているが、この処理は、マイクロプログラム制
御方式で行なわれ、従来、第3図に示すような演算処理
装置により行なわれている。第3図において、マイクロ
プログラムはインストラクションメモリ1に予め記憶さ
れており、シーケンサ3からのアドレスによりインスト
ラクションメモリ1から順次読み出されてインストラク
ションレジスタ25にセットされる。
[Technical background of the invention and its problems 1 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.

インストラクションレジスタ25は通常数十ビットで構
成され、ジャンプ制御部25a1演算論理機能指定部、
すなわちALUファンクション指定部25b、Rセレク
ト部25C,Sセレクト部25(1、およびその他に画
像メモリの読み込み命令、画像メモリのアドレス制御(
インクリメント、アクリメン1〜等)で構成されている
。インストラクションレジスタ25のA L Uファン
クション指定部25bは演算論理ユニット、すなわちA
 L U 9に接続され、A L U 9の演算部l!
l!機能、すなわち+(加算)、−(減算) 、AND
 (論理積)、OR(論理和) 、l−11(高レベル
:16進数のF F ’)、LO(低レベル:○)等の
いずれかの演算論理1幾能を指定する。ALU9はS入
力とR入力から供給される2つの入力について上述した
ようにAL Uファンクション指定部25bで指定され
る演亦論理機能を実行する。ALU9のS入力にはイン
ストラクションレジスタ25のSセレク1〜部25dで
セレクタ17がゲートされることによりS廿しクト部2
5dで指定されたデータが入力バス17aから供給され
、同様にALU9のR入力にはインストラクションレジ
スタ25のRセレクト部25cでセレクタ17がゲー1
へされることによりRセレクト部25cで指定されたデ
ータが入力バス19aから供給されるようになっている
。AL U 9で演算処理された結果はΔl−U 9の
出力Yから出力バス9aに出力されるが、演算処理され
た結果に発生する桁上げ、すなわちキャリー、演算結果
の内容が零であることを示すゼロ、またはオーバーフロ
ー等のような状態表示情報はALU9からステータスレ
ジスタ11に保持される。ステータスレジスタ11の出
力はセレクタ15に接続され、またインストラクション
レジスタ25のジャンプ制御部25aはこのセレクタ1
5に接続されるとともに、シーケンサ3に接続されてい
る。
The instruction register 25 usually consists of several tens of bits, including a jump control section 25a1, an arithmetic logic function specification section,
That is, the ALU function designation section 25b, the R selection section 25C, the S selection section 25 (1), and the image memory read command, image memory address control (
Increment, Increment 1~, etc.). The ALU function specifying section 25b of the instruction register 25 is an arithmetic logic unit, that is, an
It is connected to L U 9, and the arithmetic unit l! of A L U 9 is connected to L U 9.
l! Functions, namely + (addition), - (subtraction), AND
(logical product), OR (logical sum), l-11 (high level: hexadecimal FF'), LO (low level: ○), etc., is specified. The ALU 9 executes the deductive 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. The S input of the ALU 9 is connected to the S select section 2 by gated by the selector 17 in the S select section 1 to section 25d of the instruction register 25.
5d is supplied from the input bus 17a, and similarly, the selector 17 is connected to the R input of the ALU 9 by the R select section 25c of the instruction register 25.
As a result, the data specified by the R select section 25c is supplied from the input bus 19a. The result of the arithmetic processing in the ALU 9 is output from the output Y of the Δl-U 9 to the output bus 9a, but there is a carry that occurs in the result of the arithmetic processing, that is, a carry, and the content of the arithmetic result is zero. Status display information such as zero indicating , 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, and the jump control section 25a of the instruction register 25 is connected to the selector 15.
5 and is also connected to the sequencer 3.

第4図はこの従来の演算処理装置を使用して画像データ
の2値化処理、すなわち画像データをしきい値データと
比較して大きい場合には)」I(高レベル−16進数の
FF)を出力し、小さい場合には]−〇(低レベル−O
)を画像メモリに出力する処理を行なうマイクロプログ
ラム例を示しているものである。第3図および第4図を
参照して動作を簡単に説明する。
Figure 4 shows the binarization process of image data using this conventional arithmetic processing device, i.e., when the image data is larger than the threshold data)'I (high level - hexadecimal FF) output, and if it is small, output ]-〇(low level-O
) is shown as an example of a microprogram that performs the process of outputting the image to the image memory. The operation will be briefly explained with reference to FIGS. 3 and 4.

第4図でステップ1においては、Rセレク]〜に画像メ
モリVRAMの画像データが設定され、Sセレクトにし
きい値情報が設定され、ALU9においてY=R−8の
演算、すなわち画像メモリVRAMのデータからしきい
値を引く演算を行ない、ステップ2においては1tr(
高レベル−16進数のFF)を画像メモリに書き込む。
In step 1 in FIG. 4, the image data of the image memory VRAM is set in R select]~, the threshold information is set in S select, and the calculation of Y=R-8 is performed in ALU9, that is, the data of the image memory VRAM. The threshold value is subtracted from , and in step 2, 1tr(
High level - FF in hexadecimal) is written to the image memory.

そして、この時、ステップ1における演算の結果、キャ
リーが「0」の場合、すなわち画像メモリVRAMのデ
ーターしきい値≧Oの場合には、次のステップ3は飛ば
してステップ4にジャンプする。しかしながら、ステッ
プ1における演算の結果、キャリーがrOJでない場合
、すなわち画像メモリVRAMのデーターしきい値〈0
の場合には、次のステップ3に進み、LO(低レベル−
O)を画像メモリに古き込み、ステップ4に進む。ステ
ップ4においては、画像メモリのアドレスをインクリメ
ン]〜し、ステップ1と同様に画像メモリVRAMのデ
ータからしきい値を引く演算を行ない、それからステッ
プ2にジャンプし、以降すべての画像メモリについてス
テップ2−4の処理を繰り返す。
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≧O, 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 rOJ, that is, the data threshold value of the image memory VRAM is <0
In this case, proceed to the next step 3 and set LO (low level -
O) is stored in the image memory and the process proceeds to step 4. In step 4, the address of the image memory is incremented, the threshold value is subtracted from the data in the image memory VRAM in the same way as in step 1, and then the process jumps to step 2. -Repeat the process of 4.

なお、画像データの2値化処理は画像メモリのデータが
256X256の場合には上記ステップ2−4の処理を
256X256回繰り返す。
Note that in the binarization process of image data, when the data in the image memory is 256×256, the process of step 2-4 is repeated 256×256 times.

以上のように構成され作動する従来の画像処理用演算処
理装置においては、キャリーがrOJであるか否かによ
って画像メモリに)−IIまたは+−0を書き込むため
にステップ2,3の2つのステップを必要とする上、キ
ャリーがrOJの場合にはステップ3を実行しないでス
テップ4にジャンプするが、キャリーが「O」でない場
合にはステップ3を実行してからステップ4に進むので
、キャリーがrOJか否かによって実行するステップの
数が異なっている。このように従来の処理ステップにお
いては、ある演算結果によって次の処理が決定されるに
うな場合には、ジャンプ命令によってそれぞれの処理を
行なえ得るように各分岐に対応してそれぞれ命令を設け
ているので、少な(とも2つ以上の命令ステップが必要
となるため、プログラムステップが長くなり、高速化が
図れないという問題があるとともに、データによって実
行ステップ数が異なるため、他の処理機能(例えば、空
間フィルタリングプロセッサ等)との同期並列処理が困
難であるという問題がある。
In the conventional image processing arithmetic processing device configured and operated as described above, two steps, Steps 2 and 3, are performed to write -II or +-0 to the image memory depending on whether the carry is rOJ or not. In addition, if the carry is rOJ, it jumps to step 4 without executing step 3, but if the carry is not "O", it executes step 3 and then proceeds to step 4, so the carry is The number of steps to be executed differs depending on whether it is rOJ or not. In this way, in conventional processing steps, when the next process is determined by the result of a certain operation, instructions are provided for each branch so that each process can be performed using a jump instruction. Therefore, since two or more instruction steps are required, the program steps become long and high speed cannot be achieved.The number of execution steps varies depending on the data, so other processing functions (e.g. There is a problem in that synchronous parallel processing with spatial filtering processors, etc.) is difficult.

[発明の目的] この発明は、上記に鑑みてなされたもので、その目的と
するところは、高速化を達成するとともに、仙の処理機
能との同期並列処理を容易にした演算処理装置を提供す
ることにある。
[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 synchronized parallel processing with the processing function of a conventional processor. It's about doing.

[発明の概要] 上記目的を達成するために、この発明は、複数の演算論
理命令および演算論理命令選択用条件設定コードを有す
るインストラクションがセラ1〜されるインストラクシ
ョンレジスタど、前のステップのインストラクションが
実行された結果による演算論理結果の状態情報を保持す
る状態レジスタと、前記インストラクションレジスタに
セットされるインストラクションの演算論理命令選択用
条件設定コードによって前記状態レジスタに保持されて
いる状態情報を選択し、該状態情報によって前記インス
トラクションレジスタにセラ1へされる複数の演算論理
命令のいずれか一〇を選択するセレクタと、該セレクタ
で選択された演算論理命令を実行する演算論理ユニット
とを有することを要旨とする。
[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 stored in an instruction register in which an instruction in a previous step is stored. a state register that holds state information of an arithmetic logic result according to an executed result; and a condition setting code for selecting an arithmetic logic instruction of an instruction set in the instruction register to select the state information held in the state register; The gist includes a selector that selects any one of a plurality of arithmetic and logic instructions to be sent to the cell 1 in the instruction register according to the state information, and an arithmetic and logic unit that executes the arithmetic and logic instruction selected by the selector. shall be.

[発明の実施例] 以下、図面を用いてこの発明の詳細な説明する。[Embodiments of the invention] Hereinafter, the present invention will be explained in detail using the drawings.

第1図はこの発明の一実施例に係わる演算処理装置を両
(g?!U狸に適用した場合のブロック図である。同図
に示す演算処理装置は、測定した画像データをしきい値
データと比較して2値化するものであり、マイクロプロ
グラムがインストラクションメモリ1に記憶されている
マイクロプログラム制御方式で制御されている。インス
トラクションメモリ1に記憶されている各インストラク
ションはシーケンサ3からのアドレスによって順次読み
出され、インストラクションレジスタ5にセラ1〜され
る。インストラクションレジスタ5はジャンプ制御部5
a、演算論理命令選択用条件設定コード部、すなわちA
ll、lコンディ932部5b、第1および第2の2つ
の演算論理機能指定部、すなわち第1のA I−(Jフ
ァンクション指定部5c、第2のA L tJファンク
ション指定部5d1Rセレクト部5e 、Sセレク1〜
部5f、出力レレクト部5Qlおよびその他に画像メモ
リの読み込み命令、画像メモリのアドレス制御(インク
リメント、デクリタン1〜等)等で構成されている。イ
ンストラクションレジスタ5の第1の△LtJファンク
ション指定部5Cおよび第2のA L LJファンクシ
ョン指定部5dはそれぞれ機能選択用セレクタ7の第1
および第2の入力D1およびD2に接続されている。機
能選択用セレクタ7の選択人力Sには条件選択用セレク
タ13の出力DYが接続され、この出力信号により機能
選択用セレクタ7の第1または第2の入力D1またはD
2に供給されている第1のA L Uファンクション指
定部5Cまたは第2のA L Uファンクション指定部
5dのいずれかが選択され、この選択されたALUファ
ンクション指定部からの演算論理機能指定信号が機能選
択用セレクタ7の出力DYからA I−U 9の機能選
択入力に供給されるようになっている。ALtJ9は、
このように機能選択用セレクタ7を介して供給される演
算論理機能指定信号に従った演算論理機能を実行する。
FIG. 1 is a block diagram of the case where the arithmetic processing device according to an embodiment of the present invention is applied to both (g?!U raccoon dogs). It compares the data and converts it into a binary value, and is controlled by a microprogram control method stored in the instruction memory 1. Each instruction stored in the instruction memory 1 is assigned an address from the sequencer 3. The instruction register 5 is sequentially read out and stored in the instruction register 5.The instruction register 5 is read out sequentially by the jump control unit 5.
a, arithmetic logic instruction selection condition setting code section, that is, A
ll, l conditioner 932 section 5b, first and second two arithmetic logic function specifying sections, namely, first AI-(J function specifying section 5c, second A L tJ function specifying section 5d1R select section 5e, S select 1~
It is comprised of a section 5f, an output direct section 5Ql, and an image memory read instruction, image memory address control (increment, decrement 1, etc.), and the like. The first ΔLtJ function specification section 5C and the second A LJ function specification section 5d of the instruction register 5 are respectively connected to the first ΔLtJ function specification section 5C of the function selection selector 7.
and second inputs D1 and D2. The output DY of the condition selection selector 13 is connected to the selection power S of the function selection selector 7, and this output signal causes the first or second input D1 or D of the function selection selector 7 to be connected.
Either the first ALU function specifying section 5C or the second ALU function specifying section 5d supplied to the ALU function specifying section 2 is selected, and the arithmetic logic function specifying signal from the selected ALU function specifying section is The output DY of the function selection selector 7 is supplied to the function selection input of the AI-U 9. ALtJ9 is
In this way, the arithmetic logic function is executed in accordance with the arithmetic logic function designation signal supplied via the function selection selector 7.

ALU9が実行する演算論理機能と一〇− しては、+(加算)、−(減算)、AND(論理積)、
OR(論理和’) 、l−(T (高レベル:16進数
のFF)、10(低レベル二〇)等がある。A1−U9
はS入力とR入力から供給される2つの入力について上
述したように機能選択用セレクタ7を介して供給され指
定される演算論理機能を実行する。AI U9のS入力
にはインストラクションレジスタ5のSセレクト部5f
でセレクタ17がゲー1へされることによりSセレクト
部5fで指定されたデータが入力バス17aから供給さ
れ、同様に八LtJ9のR入力にはインストラクション
レジスタ5のRセレクl〜部5eでセレクタ17がゲー
トされることによりRセレクト部5eで指定されたデー
タが入力バス19aから供給されるようになっている。
The arithmetic and logic functions executed by ALU9 are + (addition), - (subtraction), AND (logical product),
There are OR (logical sum'), l-(T (high level: hexadecimal FF), 10 (low level 20), etc.A1-U9
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 is connected to the S input of the AI U9.
When the selector 17 is set to the gate 1, the data specified by the S select section 5f is supplied from the input bus 17a, and similarly, the R input of the 8LtJ9 is set to the selector 17 by the R select l to section 5e of the instruction register 5. is gated, so that the data designated by the R select section 5e is supplied from the input bus 19a.

AILLJ9で演算処理された結果はA L LJ 9
の出力Yから出力バス9aに出力されるが、演算処理さ
れた結果でALIJ9から発生する桁上げ信号、すなわ
ちキャリー信号、演算結果の内容が零であることを示す
ゼロ信号、またはオーバフロー信号等のような状態表示
信号はALU9からステータスレジスタ11に保持され
る。ステータスレジスタ11に保持された状態表示信号
はシーケンサ用セレクタ15に供給されるどどもに、前
記条件選択用セレクタ13に供給され、ここでインスト
ラクションレジスタ5にセットされた次のインストラク
ションのALUコンディション部5bによっていずれか
の状態表示信号が選択され、この選択された状態表示信
号、すなわちキャリー信号、ゼロ信号またはオーバーフ
ロー信号等が機能選択用セレクタ7に供給され、この状
態表示信号の内容に応じて次のインストラクションの第
1のALUファンクション指定部5Cまたは第2のAL
Uファンクション指定部5dが機能選択用セレクタ7で
選択され、この結果ALU9が実行する次のインストラ
クションの演算論理機能が決定されるようになっている
。また、インストラクションレジスタ5のジャンプ制御
部5aはシーケンサ3およびシーケンサ用セレクタ15
に供給され、ジャンプ制御が行なわれている。
The result of arithmetic processing in AILLJ9 is ALLJ9
is output to the output bus 9a from the output Y of the arithmetic operation, but the carry signal generated from the ALIJ9 as a result of the arithmetic processing, that is, the carry signal, the zero signal indicating that the content of the arithmetic result is zero, or the overflow signal, etc. Such a status display signal is held in the status register 11 from the ALU 9. The status display signal held in the status register 11 is supplied to the sequencer selector 15 and then to the condition selection selector 13, where the ALU condition section 5b of the next instruction set in the instruction register 5 is sent. One of the status display signals is selected by , and this selected status display signal, that is, a carry signal, a zero signal, an overflow signal, etc., is supplied to the function selection selector 7, and the next one is selected depending on the content of this status display signal. The first ALU function specification part 5C or the second AL of the instruction
The U function designation section 5d 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 determined. Further, the jump control section 5a of the instruction register 5 is connected to the sequencer 3 and the sequencer selector 15.
is supplied 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からインス1〜ラクションレジスタ5にセットされる
と、インストラクションレジスタ5のRセレクト部5e
に設定されている画像メモリVRAMからの画像データ
がセレクタ17を介してA L U 9のS入力に供給
され、またSセレクト部5fに設定されているしきい値
データがセレクタ1つを介してA L U9のR入力に
供給される。インス1〜ラクションレジスタ5のA L
 Uファンクション指定部5C95dはALU9が実行
する演算論理機能としてY=R−8を指定しているので
、ステップ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 from the instruction memory 1 to the instruction 1 to action registers 5 by addressing from the sequencer 3, the R select section 5e of the instruction register 5
The image data from the image memory VRAM set to 1 is supplied to the S input of the ALU 9 via the selector 17, and the threshold data set to the S select section 5f is supplied via the selector 17 to the S input of the ALU 9. Supplied to the R input of ALU9. Ince 1~action register 5 A L
Since the U function specifying unit 5C95d specifies Y=R-8 as the arithmetic logic function to be executed by the ALU 9, in step 1, the operation of subtracting the threshold data from the image data from the image memory VRAM is executed, Status information such as carry in this operation is held in the status register 11.

次のステップ2においてインストラクションレジスタ5
にセットされたインストラクションのALUコンディシ
ョン部5bにはキャリー信号を選択せよという条件設定
コードが設定されているので、条件選択用セレクタ13
はステータスレジスタ11に前のステップで保持されて
いるキャリー信号を選択し、このキャリー信号を機能選
択用セレクタ7に選択入力に供給する。この結果、機能
選択用セレクタ7はキャリー信号が「0」の場合には第
1のALUファンクション指定部5Cを選択し、これに
よりALU9においてはY=I−IT(16進数のFF
)を実行して高レベル信号を出力し、またキャリー信号
が「1」の場合には第2のALLIファンクション指定
部5dを選択し、これによりALU9においてはY=L
Oを実行して低レベル信号を出力する。この実行結果は
出力セレクト5gによって選択される画像メモリVRA
Mに格納されるようになっている。
In the next step 2, instruction register 5
Since the condition setting code to select the carry signal is set in the ALU condition section 5b of the instruction set to , the condition selection selector 13
selects the carry signal held in the status register 11 in the previous step, and supplies this carry signal to the selection input of the function selection selector 7. As a result, the function selection selector 7 selects the first ALU function specifying section 5C when the carry signal is "0", and as a result, in the ALU 9, Y=I-IT (FF in hexadecimal
) is executed to output a high level signal, and when the carry signal is "1", the second ALLI function specification section 5d is selected, and as a result, in the ALU 9, Y=L.
Execute O and output a low level signal. This execution result is the image memory VRA selected by the output select 5g.
It is stored in M.

次に、ステップ3に進んで画像メモリのアドレスをイン
クリメン1−シ、前記ステップ1と同じ処理、すなわち
画像メモリVRAMからの画像データからしきい値デー
タを引く演算が実行され、シーケンサ3の制御によりス
テップ2にジャンプしてループ制御される。以降、ステ
ップ2,3の動作が画像メモリVRAMの画像データの
分、例えば256X256回繰り返される。この場合の
繰返しステップ数は2x256x256ステツプであっ
て、画像メモリのデータの内容に関係なく一定であると
ともに、従来のようにキャリー信号がrOJでない場合
にステップ数が増えることがなく、高速化されている。
Next, the process advances to step 3, where the address of the image memory is incremented by 1, 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, and under the control of the sequencer 3. Jumps to step 2 and loop control is performed. 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 repetition 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 does not increase when the carry signal is not rOJ, as in the past, and the speed is increased. There is.

[発明の効果] 以上説明したように、この発明によれば、インストラク
ションレジスタに複数の演算論理命令および演算論理命
令選択用条件設定コードを有するインストラクションを
セットし、前のステップで実行されたインストラクショ
ンの演算論理機能の状態を保持している状態レジスタの
内容を前記演算論理命令選択用条件設定コードによって
選択し、この選択した状態情報によって複数の演算論理
命令のいずれか一つを選択し、この選択された演算論理
命令を実行するようにしている。これにより、状態情報
の内容によって異なる処理を実行する場合に他にジャン
プすることなく、例えば状態情報が第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 the instruction executed in the previous step is set. The contents of the status register holding the state of the arithmetic logic function are selected by the arithmetic logic instruction selection condition setting code, and one of the plurality of arithmetic logic instructions is selected based on the selected state information. The specified arithmetic and logic instructions are 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 among the plurality of arithmetic and logic instructions is executed, without jumping to another process, In the case of the second state, there is no need to jump to anything else such as executing the second instruction, so the number of steps is shortened by the amount of jumping and executing the instruction at the location of the count, achieving speedup. In addition, the number of steps does not differ depending on the content of the state information, so it is easy to synchronize with other parallel processors, such as those for spatial filter multiplication, and as a result, processing efficiency can be improved. can be achieved.

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

第1図はこの発明の一実施例を示ず演算処理装置のブロ
ック図、第2図は第1図の装置で実行される画像データ
の2値化を行なうプログラム例を示す図、第3図は従来
の演算処理装置のブロック図、第4図は第3図の装置で
実行される画像データの2値化を行なう従来のプログラ
ム例を示す図である。 1・・・インス1〜ラクションメモリ 3 ・・・ シータ”ン→す 5・・・インストラクション1ノジスタ7・・・機能選
択用セレクタ 9・・・ΔIU 11・・・ステータスレジスタ 13・・・条件選択用セレクタ
FIG. 1 is a block diagram of an arithmetic processing device without 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. 4 is a block diagram of a conventional arithmetic processing device, and FIG. 4 is a diagram showing an example of a conventional program for binarizing image data executed by the device shown in FIG. 1... Input 1 to action memory 3... Theta turn → step 5... Instruction 1 register 7... Function selection selector 9... ΔIU 11... Status register 13... Condition selection selector for

Claims (1)

【特許請求の範囲】[Claims] 複数の演算論理命令および演算論理命令選択用条件設定
コードを有するインストラクションがセットされるイン
ストラクションレジスタと、前のステップのインストラ
クションが実行された結果による演算論理結果の状態情
報を保持する状態レジスタと、前記インストラクション
レジスタにセットされるインストラクションの演算論理
命令選択用条件設定コードによつて前記状態レジスタに
保持されている状態情報を選択し、該状態情報によつて
前記インストラクションレジスタにセットされる複数の
演算論理命令のいずれか一つを選択するセレクタと、該
セレクタで選択された演算論理命令を実行する演算論理
ユニットとを有することを特徴とする演算処理装置。
an instruction register in which an instruction having a plurality of arithmetic logic instructions and an arithmetic logic instruction selection condition setting code is set; a status register that holds state information of the arithmetic logic result as a result of executing the instruction of the previous step; The state information held in the state register is selected by the arithmetic logic instruction selection condition setting code of the instruction set in the instruction register, and the plurality of arithmetic logics set in the instruction register are selected based on the state information. An arithmetic processing device comprising: a selector that selects one of the instructions; and an arithmetic logic unit that executes the arithmetic logic instruction selected by the selector.
JP17435085A 1985-08-09 1985-08-09 Arithmetic processing unit Granted JPS6235942A (en)

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 true JPS6235942A (en) 1987-02-16
JPH0557615B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63289644A (en) * 1987-05-21 1988-11-28 Hitachi Ltd Microprogram control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63289644A (en) * 1987-05-21 1988-11-28 Hitachi Ltd Microprogram control method

Also Published As

Publication number Publication date
JPH0557615B2 (en) 1993-08-24

Similar Documents

Publication Publication Date Title
US5126966A (en) High speed logic simulation system with stimulus engine using independent event channels selectively driven by independent stimulus programs
US5115500A (en) Plural incompatible instruction format decode method and apparatus
US5742805A (en) Method and apparatus for a single history register based branch predictor in a superscalar microprocessor
EP0377976B1 (en) Microcode control apparatus utilizing programmable logic array circuits
JPH06250837A (en) Scheduling processing method
US4870563A (en) Information processing apparatus having a mask function
US5524222A (en) Microsequencer allowing a sequence of conditional jumps without requiring the insertion of NOP or other instructions
JPS6089274A (en) Vector mask control system
JPH0724013B2 (en) Vector processor
US5291615A (en) Instruction pipeline microprocessor
SU615538A1 (en) Arrangement for retrieving information from storage unit
CA1223969A (en) Microcode control of a parallel architecture microprocessor
JPH0557615B2 (en)
JP3055139B2 (en) Micro program control method
JP2636136B2 (en) Arithmetic processing device and arithmetic processing method
JPH0233173B2 (en)
JP2629359B2 (en) Logic simulator
JPS6116334A (en) Data processor
JPH0679271B2 (en) Loop control circuit
JPS6042968B2 (en) information processing equipment
JPH01213719A (en) Data rearranging device for pipeline processing
JPS605341A (en) information processing equipment
JPH06100965B2 (en) Micro program controller
JPS61208143A (en) Information processor
JPS61143851A (en) Information processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees