JPH09247685A - Information processor and method therefor - Google Patents

Information processor and method therefor

Info

Publication number
JPH09247685A
JPH09247685A JP5278596A JP5278596A JPH09247685A JP H09247685 A JPH09247685 A JP H09247685A JP 5278596 A JP5278596 A JP 5278596A JP 5278596 A JP5278596 A JP 5278596A JP H09247685 A JPH09247685 A JP H09247685A
Authority
JP
Japan
Prior art keywords
minimum value
address
memory
value
stored
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
JP5278596A
Other languages
Japanese (ja)
Inventor
Masayuki Yamazaki
雅之 山崎
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 JP5278596A priority Critical patent/JPH09247685A/en
Publication of JPH09247685A publication Critical patent/JPH09247685A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an information processor by which a minimum value and an address storing the minimum value are detected at a high speed from plural arithmetic results stored in a memory, and to provide the method therefor. SOLUTION: An information processing unit is provided with a memory 2 storing plural arithmetic results, a pointer 1 giving an address to the memory 2, a 1st register 4 storing a minimum value, a 2nd register 5 storing the address storing the minimum value, and a comparator 3 comparing an output of the 1st register 4 with an output of the memory 2. Thus, comparison, condition discrimination, revision of minimum value, and storage of an address in which the minimum value is stored are conducted in one step.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロプロセッ
サ等において、メモリに格納されたパターンマッチング
結果群から最小のパターンマッチング結果と、その時の
動きベクトルを検出する装置およびその方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and method for detecting a minimum pattern matching result and a motion vector at that time from a pattern matching result group stored in a memory in a microprocessor or the like.

【0002】また本発明は、マイクロプロセッサ等にお
いて、メモリに格納された複数の演算結果から最小値
(最大値)および最小値(最大値)を格納していたアド
レスを検出する装置およびその方法に関する。
The present invention also relates to an apparatus and method for detecting a minimum value (maximum value) and an address storing the minimum value (maximum value) from a plurality of arithmetic results stored in a memory in a microprocessor or the like. .

【0003】[0003]

【従来の技術】近年、MPEGに代表される画像コーデ
ックを行なうため、マイクロプロセッサには、高機能お
よび高速処理が求められている。特に、画像コーデック
における動きベクトル検出は膨大な演算量になる。
2. Description of the Related Art In recent years, in order to perform an image codec represented by MPEG, a microprocessor is required to have high function and high speed processing. In particular, motion vector detection in an image codec requires a huge amount of calculation.

【0004】動きベクトル検出では、例えば、前画像の
位置をずらして現画像とのパターンマッチングを行な
い、このパターンマッチングが最小となる位置、すなわ
ち動きベクトルを求める。パターンマッチングの方法と
しては、差分の絶対値和が多く用いられており、この演
算を効率よく行なうための特許は多く出願されている
(例えば、特開平4−49418号公報)。
In motion vector detection, for example, the position of the previous image is shifted to perform pattern matching with the current image, and the position where this pattern matching is minimized, that is, the motion vector is obtained. As a method of pattern matching, the sum of absolute values of differences is often used, and many patents have been filed for efficiently performing this calculation (for example, Japanese Patent Laid-Open No. 4-49418).

【0005】しかし、パターンマッチングを最小とする
動きベクトルを求めるためには、さらに、上記演算によ
りメモリに格納されたパターンマッチング結果群から最
小値を検出し、その最小値が格納されていたアドレスか
ら該当する動きベクトルを求める必要がある。これをマ
イクロプロセッサ等で行なうと、比較、条件判断、最小
値の変更と、最小値の格納されていたアドレスの保存と
いったステップを繰り返す必要がある。
However, in order to obtain the motion vector that minimizes the pattern matching, the minimum value is further detected from the pattern matching result group stored in the memory by the above calculation, and the minimum value is detected from the address where the minimum value is stored. It is necessary to find the corresponding motion vector. If this is performed by a microprocessor or the like, it is necessary to repeat the steps of comparison, condition determination, change of the minimum value, and storage of the address where the minimum value was stored.

【0006】上記演算を効率良く行なう有効な手段の一
つとして考えられるのは、次命令の実行を制御する比較
命令を設けることにより、比較と条件判断を1ステップ
で行い処理の高速化を行なう方法がある。上記した従来
の方法の一例としては、その目的は違うが、例えば特公
平7−69795号公報がある。
One of the effective means for efficiently performing the above operation is to provide a comparison instruction for controlling the execution of the next instruction so that the comparison and the condition judgment are performed in one step to speed up the processing. There is a way. An example of the above-mentioned conventional method is, for example, Japanese Patent Publication No. 7-69795, although its purpose is different.

【0007】[0007]

【発明が解決しようとする課題】しかし、上述した従来
の方法では、比較および条件判定、最小値の変更と、最
小値が格納されていたアドレスの保存の3ステップを必
要とし、さらにこの処理を繰り返すため、膨大な演算量
となる問題を有していた。
However, the above-mentioned conventional method requires three steps of comparison and condition determination, change of the minimum value, and storage of the address in which the minimum value is stored, and this processing is further performed. Since it is repeated, there is a problem that a huge amount of calculation is required.

【0008】そこで、本発明の目的は1ステップで、比
較、条件判断、最小値の変更と、最小値が格納されてい
たアドレスの保存を行なう情報処理装置およびその方法
を提供することにある。
Therefore, an object of the present invention is to provide an information processing apparatus and method for performing comparison, condition determination, change of the minimum value, and saving of the address where the minimum value was stored in one step.

【0009】[0009]

【課題を解決するための手段】上記問題を解決するため
に本発明の情報処理装置およびその方法は、請求項1に
関わり、複数の演算結果を格納するメモリと、前記メモ
リにアドレスを出力するポインタと、前記メモリが前記
ポインタから与えられるアドレスにより出力した値を後
述の比較手段が出力する書き込み信号がアクティブの時
に保持する第1の格納手段と、前記書き込み信号がアク
ティブの時に前記ポインタの値を保存する第2の格納手
段と、前記第1の格納手段と前記メモリから出力される
値を比較し、前記メモリから出力される値の方が小さい
時にアクティブな書き込み信号を前記第1の格納手段と
前記第2の格納手段に出力する比較手段とを備えたもの
である。
In order to solve the above problems, an information processing apparatus and method according to the present invention relates to claim 1, and a memory for storing a plurality of operation results and an address are output to the memory. A pointer, a first storage means for holding a value output from the memory at an address given by the pointer when the write signal output from the comparison means, which will be described later, is active; and a value of the pointer when the write signal is active. Comparing the value output from the first storage means with the second storage means for storing the value, and when the value output from the memory is smaller, the active write signal is stored in the first storage means. And a comparison means for outputting to the second storage means.

【0010】請求項2に関わり、複数の演算結果を格納
するメモリと、前記メモリにアドレスを出力するポイン
タと、前記メモリが前記ポインタから与えられるアドレ
スにより出力した値を後述の制御手段が出力する第2の
書き込み信号がアクティブの時に保持する第1の格納手
段と、前記第2の書き込み信号がアクティブの時に前記
ポインタの値を保存する第2の格納手段と、前記第1の
格納手段と前記メモリから出力される値を比較し、前記
メモリから出力される値の方が小さい時にアクティブな
第1の書き込み信号を後述の制御手段に出力する比較手
段と、前記の第1の書き込み信号を制御し、前記の第2
の書き込み信号を前記第1の格納手段と前記第2の格納
手段に出力する制御手段とを備えたものである。
According to claim 2, the control means described later outputs a memory for storing a plurality of operation results, a pointer for outputting an address to the memory, and a value output by the memory at the address given by the pointer. First storage means for holding when the second write signal is active, second storage means for storing the value of the pointer when the second write signal is active, the first storage means and the Controls the first write signal by comparing the value output from the memory and controlling the first write signal by outputting a first write signal active to the control means described later when the value output from the memory is smaller. And then the second
And a control means for outputting the write signal of 1 to the first storage means and the second storage means.

【0011】請求項3に関わり、演算結果と最小値を比
較し、前記最小値より前記演算結果の方が小さい場合
に、前記最小値を前記演算結果と置き換え、さらに前記
演算結果が格納されていたアドレスを保存する方法であ
る。
According to claim 3, the calculation result and the minimum value are compared, and when the calculation result is smaller than the minimum value, the minimum value is replaced with the calculation result, and the calculation result is stored. It is a method to save the address.

【0012】請求項4に関わり、最小値検出か最大値検
出かを選択し、演算結果と最小値(最大値)を比較し、
前記最小値(最大値)より前記演算結果の方が小さい
(大きい)場合に、前記最小値(最大値)を前記演算結
果と置き換え、さらに前記演算結果が格納されていたア
ドレスを保存する方法である。
In relation to claim 4, selecting the minimum value detection or the maximum value detection, comparing the calculation result and the minimum value (maximum value),
When the calculation result is smaller (larger) than the minimum value (maximum value), the minimum value (maximum value) is replaced with the calculation result, and the address where the calculation result is stored is saved. is there.

【0013】本発明は上記した構成によって、請求項
1,請求項3によれば、メモリに格納されたパターンマ
ッチング結果と最小値を比較し、前記最小値より前記パ
ターンマッチング結果の方が小さい場合に、前記最小値
を前記パターンマッチング結果と置き換え、さらに前記
パターンマッチング結果が格納されていたアドレスを保
存するので、1ステップで、比較、条件判断、最小値の
変更と、最小値が格納されていたアドレスの保存を行な
うこととなる。
According to the first and the third aspects of the present invention, the pattern matching result stored in the memory is compared with the minimum value, and the pattern matching result is smaller than the minimum value. In addition, since the minimum value is replaced with the pattern matching result and the address where the pattern matching result is stored is saved, the comparison, the condition judgment, the change of the minimum value, and the minimum value are stored in one step. The saved address will be saved.

【0014】請求項2,請求項4によれば、メモリに格
納された複数の演算結果と最小値(最大値)を比較し、
前記最小値(最大値)より前記データの方が小さい(大
きい)場合に、前記最小値(最大値)を前記データ結果
と置き換え、さらに前記データが格納されていたアドレ
スを保存するので、1ステップで、比較、条件判断、最
小値(最大値)の変更と、最小値(最大値)が格納され
ていたアドレスの保存を行なうこととなる。
According to the second and fourth aspects, a plurality of calculation results stored in the memory are compared with the minimum value (maximum value),
When the data is smaller (larger) than the minimum value (maximum value), the minimum value (maximum value) is replaced with the data result, and the address where the data is stored is saved. Then, the comparison, the condition judgment, the change of the minimum value (maximum value) and the saving of the address where the minimum value (maximum value) is stored are performed.

【0015】[0015]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(実施の形態1)以下本発明の第1の実施の形態の情報
処理装置について、図面を参照しながら説明する。
(Embodiment 1) Hereinafter, an information processing apparatus according to a first embodiment of the present invention will be described with reference to the drawings.

【0016】図1は本発明の第1の実施の形態における
情報処理装置の構成図である。図1において、1はメモ
リ2にアドレスを与えるポインタで、アドレス6を出力
する。2はパターンマッチング結果群を格納するメモリ
で、アドレス6を入力し、第2のデータ8を出力する。
3は最小値とパターンマッチング結果を比較する手段と
なる比較器で、第1のデータ7と第2のデータ8を入力
し、比較結果信号9を出力する。4は最小値を保持する
手段となる第1のレジスタで、第2のデータ8と比較結
果信号9を入力し、第1のデータ7を出力する。5は最
小値の格納されていたアドレスを保存する手段となる第
2のレジスタで、比較結果信号9とアドレス6を入力す
る。
FIG. 1 is a block diagram of an information processing apparatus according to the first embodiment of the present invention. In FIG. 1, reference numeral 1 is a pointer that gives an address to the memory 2, and outputs an address 6. Reference numeral 2 is a memory for storing a pattern matching result group, which inputs the address 6 and outputs the second data 8.
Reference numeral 3 is a comparator that serves as means for comparing the minimum value with the pattern matching result, and inputs the first data 7 and the second data 8 and outputs the comparison result signal 9. A first register 4 serves as a means for holding the minimum value, and inputs the second data 8 and the comparison result signal 9 and outputs the first data 7. Reference numeral 5 is a second register which serves as means for storing the address in which the minimum value is stored, and inputs the comparison result signal 9 and the address 6.

【0017】6はメモリ2に与えられるアドレスで、ポ
インタ1から出力され、メモリ2と第2のレジスタ5に
入力される。7は第1のデータで、第1のレジスタ4か
ら出力され比較器3に入力される。8は第2のデータ
で、メモリ2から出力され、比較器3に入力される。9
は比較結果信号で、比較器3から出力され第1のレジス
タ4と第2のレジスタ5に入力される。
Reference numeral 6 denotes an address given to the memory 2, which is outputted from the pointer 1 and inputted to the memory 2 and the second register 5. Reference numeral 7 is first data, which is output from the first register 4 and input to the comparator 3. The second data 8 is output from the memory 2 and input to the comparator 3. 9
Is a comparison result signal, which is output from the comparator 3 and input to the first register 4 and the second register 5.

【0018】以上のように構成された情報処理装置につ
いて、以下図1を用いてその動作を説明する。
The operation of the information processing apparatus configured as described above will be described below with reference to FIG.

【0019】ポインタ1はアドレス6を出力する。メモ
リ2はアドレス6をアドレスとするデータ8を出力す
る。比較器3は、第1のデータ7と第2のデータ8を比
較し、第2のデータ8の方が小さい場合に、比較結果信
号9を1にする。比較結果信号9が1の場合には、第1
のレジスタ4は第2のデータ8をラッチし、第2のレジ
スタ5はアドレス6をラッチする。
The pointer 1 outputs the address 6. The memory 2 outputs the data 8 having the address 6 as the address. The comparator 3 compares the first data 7 and the second data 8 and sets the comparison result signal 9 to 1 when the second data 8 is smaller. If the comparison result signal 9 is 1, the first
Register 4 latches the second data 8 and the second register 5 latches the address 6.

【0020】以上のように本実施の形態によれば、パタ
ーンマッチング結果群を格納するメモリ2と、メモリ2
にアドレスを与えるポインタ1と、最小値を保持する第
1の格納手段となる第1のレジスタ4と、最小値の格納
されていたアドレスを保存する第2の格納手段となる第
2のレジスタ5と、最小値とパターンマッチング結果の
比較手段となる比較器3とを備えることにより、パター
ンマッチング結果と最小値を比較し、パターンマッチン
グ結果の方が小さい場合には、最小値をパターンマッチ
ング結果と置き換え、さらに最小値の格納されていたア
ドレスを保存することができる。
As described above, according to the present embodiment, the memory 2 for storing the pattern matching result group, and the memory 2
, A first register 4 serving as a first storage means for holding the minimum value, and a second register 5 serving as a second storage means for storing the address where the minimum value was stored. And a comparator 3 that serves as a means for comparing the minimum value and the pattern matching result, the pattern matching result and the minimum value are compared, and when the pattern matching result is smaller, the minimum value is determined as the pattern matching result. It is possible to replace and also save the stored address of the minimum value.

【0021】(実施の形態2)以下本発明の第2の実施
の形態の情報処理装置について、図面を参照しながら説
明する。
(Second Embodiment) An information processing apparatus according to a second embodiment of the present invention will be described below with reference to the drawings.

【0022】図2は本発明の第2の実施の形態における
情報処理装置の構成図である。図1と異なるのは比較結
果を制御する手段として、比較結果信号9と最小値選択
信号12を入力とし、書き込み信号11を出力としたX
NORゲート10を設け、さらに第1のレジスタ4と第
2のレジスタ5の入力であった比較結果信号9を書き込
み信号11に変更した点である。
FIG. 2 is a block diagram of an information processing apparatus according to the second embodiment of the present invention. The difference from FIG. 1 is that, as means for controlling the comparison result, the comparison result signal 9 and the minimum value selection signal 12 are input, and the write signal 11 is output.
The NOR gate 10 is provided, and the comparison result signal 9 which is the input to the first register 4 and the second register 5 is changed to the write signal 11.

【0023】図2において、図1と同一の機能を有する
ものには同一の符号を付してその詳細な説明を省略す
る。
In FIG. 2, those having the same functions as those in FIG. 1 are designated by the same reference numerals, and detailed description thereof will be omitted.

【0024】以上のように構成された情報処理装置につ
いて、以下図2を用いてその動作を説明する。
The operation of the information processing apparatus configured as described above will be described below with reference to FIG.

【0025】ポインタ1はアドレス6を出力する。メモ
リ2はアドレス6をアドレスとたデータ8を出力する。
比較器3は、第1のデータ7と第2のデータ8を比較
し、第2のデータ8の方が小さい場合に、比較結果信号
9を1にする。XNORゲート10は、最小値選択信号
12が1でかつ比較結果信号9が1の場合、または最小
値選択信号12が0でかつ比較結果信号9が0の場合に
書き込み信号11を1にする。書き込み信号11が1の
場合には、第1のレジスタ4はデータ8をラッチし、第
2のレジスタ5はアドレス6をラッチする。
The pointer 1 outputs the address 6. The memory 2 outputs the data 8 having the address 6 as the address.
The comparator 3 compares the first data 7 and the second data 8 and sets the comparison result signal 9 to 1 when the second data 8 is smaller. The XNOR gate 10 sets the write signal 11 to 1 when the minimum value selection signal 12 is 1 and the comparison result signal 9 is 1, or when the minimum value selection signal 12 is 0 and the comparison result signal 9 is 0. When the write signal 11 is 1, the first register 4 latches the data 8 and the second register 5 latches the address 6.

【0026】以上のように本実施の形態によれば、パタ
ーンマッチング結果群を格納するメモリ2と、メモリ2
にアドレスを与えるポインタ1と、最小値を保持する第
1の格納手段となる第1のレジスタ4と、最小値の格納
されていたアドレスを保存する第2の格納手段となる第
2のレジスタ5と、最小値とパターンマッチング結果の
比較手段となる比較器3と、比較結果を制御する手段と
なるXNORゲート10とを備えることにより、最小値
選択信号12が1の時には、パターンマッチング結果と
最小値を比較し、パターンマッチング結果の方が小さい
場合に、最小値をパターンマッチング結果と置き換え、
さらに最小値のアドレスを保存することができる。
As described above, according to the present embodiment, the memory 2 for storing the pattern matching result group, and the memory 2
, A first register 4 serving as a first storage means for holding the minimum value, and a second register 5 serving as a second storage means for storing the address where the minimum value was stored. When the minimum value selection signal 12 is 1, the pattern matching result and the minimum value are provided by including the comparator 3, which is a means for comparing the minimum value and the pattern matching result, and the XNOR gate 10, which is a means for controlling the comparison result. Compare the values and if the pattern matching result is smaller, replace the minimum value with the pattern matching result,
In addition, the minimum address can be stored.

【0027】さらに、本実施の形態によれば、上記では
最小値について説明したが、最小値選択信号12が0の
時には、パターンマッチング結果と最大値を比較し、パ
ターンマッチング結果の方が大きい場合に、最大値をパ
ターンマッチング結果と置き換え、さらに最大値のアド
レスを保存することができる。以上のように、比較結果
を制御する手段として、XNOR10を設けることによ
り、最小値および最小値の格納されていたアドレスを検
出することに加え、最大値および最大値の格納されてい
たアドレスを検出することもできる。
Furthermore, according to the present embodiment, the minimum value has been described above, but when the minimum value selection signal 12 is 0, the pattern matching result and the maximum value are compared, and when the pattern matching result is larger. In addition, the maximum value can be replaced with the pattern matching result, and the address of the maximum value can be stored. As described above, by providing the XNOR 10 as means for controlling the comparison result, in addition to detecting the minimum value and the address where the minimum value is stored, the maximum value and the address where the maximum value is stored are detected. You can also do it.

【0028】なお、比較器3と、第1のレジスタ4と、
第2のレジスタ5と、XNORゲート10とを、2組備
えることにより、最小値と最大値および最小値と最大値
の格納されていたアドレスを同時に検出できることは明
らかである。
The comparator 3, the first register 4,
Obviously, by providing two sets of the second register 5 and the XNOR gate 10, it is possible to simultaneously detect the minimum value and the maximum value and the address where the minimum value and the maximum value are stored.

【0029】[0029]

【発明の効果】以上のように本発明は、請求項1によれ
ば、複数の演算結果を格納するメモリと、前記メモリに
アドレスを出力するポインタと、前記メモリが前記ポイ
ンタから与えられるアドレスにより出力した値を後述の
比較手段が出力する書き込み信号がアクティブの時に保
持する第1の格納手段と、前記書き込み信号がアクティ
ブの時に前記ポインタの値を格納する第2の格納手段
と、前記第1の格納手段と前記メモリから出力される値
を比較し、前記メモリから出力される値の方が小さい時
にアクティブな書き込み信号を前記第1の格納手段と前
記第2の格納手段に出力する比較手段とを設けることに
より、1ステップで比較、条件判断、最小値の変更と、
最小値が格納されていたアドレスの保存を行なうことが
できる。
As described above, according to the present invention, according to claim 1, a memory for storing a plurality of operation results, a pointer for outputting an address to the memory, and an address given to the memory by the pointer are provided. First storage means for holding the output value when the write signal output from the comparison means described later is active, second storage means for storing the value of the pointer when the write signal is active, and the first storage means. Comparing means for outputting a value output from the memory to the first storing means and the second storing means when the value output from the memory is smaller. By providing and, in one step comparison, condition judgment, change of minimum value,
The address in which the minimum value was stored can be saved.

【0030】請求項2によれば、複数の演算結果を格納
するメモリと、前記メモリにアドレスを出力するポイン
タと、前記メモリが前記ポインタから与えられるアドレ
スにより出力した値を後述の制御手段が出力する第2の
書き込み信号がアクティブの時に保持する第1の格納手
段と、前記第2の書き込み信号がアクティブの時に前記
ポインタの値を格納する第2の格納手段と、前記第1の
格納手段と前記メモリから出力される値を比較し、前記
メモリから出力される値の方が小さい時にアクティブな
第1の書き込み信号を後述の制御手段に出力する比較手
段と、前記の第1の書き込み信号を制御し、前記の第2
の書き込み信号を前記第1の格納手段と前記第2の格納
手段に出力する制御手段とを設けることにより、1ステ
ップで比較、条件判断、最小値(最大値)の変更と、最
小値(最大値)が格納されていたアドレスの保存を行な
うことができる。
According to a second aspect, a memory for storing a plurality of operation results, a pointer for outputting an address to the memory, and a value output by the memory at an address given by the pointer are output by the control means described later. A first storage unit that holds the second write signal when the second write signal is active, a second storage unit that stores the value of the pointer when the second write signal is active, and the first storage unit. The value output from the memory is compared, and when the value output from the memory is smaller, a comparison unit that outputs an active first write signal to the control unit described later, and the first write signal Control and the second of the above
By providing control means for outputting the write signal of the above to the first storage means and the second storage means, comparison, condition judgment, change of minimum value (maximum value), and minimum value (maximum value) are performed in one step. The address where (value) was stored can be saved.

【0031】請求項3によれば、演算結果と最小値を比
較し、前記最小値より前記演算結果の方が小さい場合
に、前記最小値を前記演算結果と置き換え、さらに前記
演算結果が格納されていたアドレスを保存する方法によ
り、1ステップで比較、条件判断、最小値の変更と、最
小値が格納されていたアドレスの保存を行なうことがで
きる。
According to the third aspect, the calculation result is compared with the minimum value, and when the calculation result is smaller than the minimum value, the minimum value is replaced with the calculation result, and the calculation result is stored. According to the method of saving the existing address, the comparison, the condition determination, the change of the minimum value, and the saving of the address storing the minimum value can be performed in one step.

【0032】請求項4によれば、最小値検出か最大値検
出かを選択し、演算結果と最小値(最大値)を比較し、
前記最小値(最大値)より前記演算結果の方が小さい
(大きい)場合に、前記最小値(最大値)を前記演算結
果と置き換え、さらに前記演算結果が格納されていたア
ドレスを保存する方法により、1ステップで比較、条件
判断、最小値(最大値)の変更と、最小値(最大値)が
格納されていたアドレスの保存を行なうことができる。
According to the fourth aspect, the minimum value detection or the maximum value detection is selected, the calculation result and the minimum value (maximum value) are compared,
When the calculation result is smaller (larger) than the minimum value (maximum value), the minimum value (maximum value) is replaced with the calculation result, and the address where the calculation result is stored is saved. In one step, comparison, condition determination, change of the minimum value (maximum value), and saving of the address where the minimum value (maximum value) is stored can be performed.

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

【図1】本発明の第1の実施の形態における情報処理装
置の構成図
FIG. 1 is a configuration diagram of an information processing apparatus according to a first embodiment of the present invention.

【図2】本発明の第2の実施の形態における情報処理装
置の構成図
FIG. 2 is a configuration diagram of an information processing device according to a second embodiment of the present invention.

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

1 ポインタ 2 メモリ 3 比較器 4 第1のレジスタ 5 第2のレジスタ 6 アドレス 7 第1のデータ 8 第2のデータ 9 比較結果信号 10 XNORゲート 11 書き込み信号 12 最小値選択信号 1 pointer 2 memory 3 comparator 4 first register 5 second register 6 address 7 first data 8 second data 9 comparison result signal 10 XNOR gate 11 write signal 12 minimum value selection signal

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の演算結果を格納するメモリと、 前記メモリにアドレスを出力するポインタと、 前記メモリが前記ポインタから与えられるアドレスによ
り出力した値を後述の比較手段が出力する書き込み信号
がアクティブの時に保持する第1の格納手段と、 前記書き込み信号がアクティブの時に前記ポインタの値
を保存する第2の格納手段と、 前記第1の格納手段と前記メモリから出力される値を比
較し、前記メモリから出力される値の方が小さい時にア
クティブな書き込み信号を前記第1の格納手段と前記第
2の格納手段に出力する比較手段とを備えたことを特徴
とする情報処理装置。
1. A memory that stores a plurality of operation results, a pointer that outputs an address to the memory, and a write signal that a value output from the memory at an address given by the pointer is output by a comparison unit, which will be described later, is active. Comparing the value output from the memory with the first storage unit that holds the value of the pointer when the write signal is active; An information processing apparatus comprising: a comparison unit that outputs an active write signal to the first storage unit and the second storage unit when a value output from the memory is smaller.
【請求項2】 前記比較手段から出力される前記書き込
み信号を制御する制御手段を有することを特徴とする請
求項1記載の情報処理装置。
2. The information processing apparatus according to claim 1, further comprising control means for controlling the write signal output from the comparison means.
【請求項3】 メモリに格納された複数の演算結果から
最小値と最小値が格納されていたアドレスを検出する情
報処理方法であって、演算結果と最小値を比較し、前記
最小値より前記演算結果の方が小さい場合に、前記最小
値を前記演算結果と置き換え、さらに前記演算結果が格
納されていたアドレスを保存する情報処理方法。
3. An information processing method for detecting a minimum value and an address where the minimum value was stored from a plurality of calculation results stored in a memory, comparing the calculation result and the minimum value, An information processing method for replacing the minimum value with the calculation result when the calculation result is smaller, and further storing the address where the calculation result was stored.
【請求項4】 メモリに格納された複数の演算結果から
最小値(最大値)と最小値(最大値)が格納されていた
アドレスを検出する情報処理方法であって、最小値検出
か最大値検出かを選択し、演算結果と最小値(最大値)
を比較し、前記最小値(最大値)より前記演算結果の方
が小さい(大きい)場合に、前記最小値(最大値)を前
記演算結果と置き換え、さらに前記演算結果が格納され
ていたアドレスを保存する情報処理方法。
4. An information processing method for detecting an address storing a minimum value (maximum value) and a minimum value (maximum value) from a plurality of calculation results stored in a memory, wherein the minimum value detection or the maximum value is detected. Select detection or not, and the calculation result and minimum value (maximum value)
When the calculation result is smaller (larger) than the minimum value (maximum value), the minimum value (maximum value) is replaced with the calculation result, and the address where the calculation result is stored is changed to Information processing method to save.
JP5278596A 1996-03-11 1996-03-11 Information processor and method therefor Pending JPH09247685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5278596A JPH09247685A (en) 1996-03-11 1996-03-11 Information processor and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5278596A JPH09247685A (en) 1996-03-11 1996-03-11 Information processor and method therefor

Publications (1)

Publication Number Publication Date
JPH09247685A true JPH09247685A (en) 1997-09-19

Family

ID=12924503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5278596A Pending JPH09247685A (en) 1996-03-11 1996-03-11 Information processor and method therefor

Country Status (1)

Country Link
JP (1) JPH09247685A (en)

Similar Documents

Publication Publication Date Title
US4878189A (en) Microcomputer having Z-flag capable of detecting coincidence at high speed
JPH09247685A (en) Information processor and method therefor
US20130212362A1 (en) Image processing device and data processor
JPH04350724A (en) Shift extent detecting circuit
US7062633B1 (en) Conditional vector arithmetic method and conditional vector arithmetic unit
JP2793357B2 (en) Parallel processing unit
JP2003331296A (en) Method of drawing circular arc
JP3695078B2 (en) Programmable controller with pulse output instructions
JPH01271876A (en) Comparison arithmetic processor
JPH09282160A (en) Multi-branching control system
JP2638501B2 (en) Graphic data display device and graphic data display method
JP2000305782A (en) Arithmetic unit
JP3541498B2 (en) Data processing device
JPH0991139A (en) Information processor
JPS63147229A (en) Microprogram controller
JPH1139159A (en) Computer system
JPH02202644A (en) Tracer circuit
JPH04245333A (en) Information processor
JPH09212363A (en) Information processor
JPH03139724A (en) Data processor
JPH1049371A (en) Pipeline computer
JPH02129720A (en) Arithmetic processing unit
JPH02187824A (en) Digital signal processor
JPH04259080A (en) Pipeline type arithmetic device
JPH05342053A (en) Information processor