JP2001312492A - System and method for retrieval and recording medium - Google Patents

System and method for retrieval and recording medium

Info

Publication number
JP2001312492A
JP2001312492A JP2000133308A JP2000133308A JP2001312492A JP 2001312492 A JP2001312492 A JP 2001312492A JP 2000133308 A JP2000133308 A JP 2000133308A JP 2000133308 A JP2000133308 A JP 2000133308A JP 2001312492 A JP2001312492 A JP 2001312492A
Authority
JP
Japan
Prior art keywords
comparison
instruction
unit
search
storage means
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
JP2000133308A
Other languages
Japanese (ja)
Other versions
JP3563324B2 (en
Inventor
Koichi Tomita
公一 冨田
Satoshi Ogoshi
智 大越
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.)
NEC Microcomputer Technologies Ltd
Original Assignee
NEC Microcomputer Technologies 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 NEC Microcomputer Technologies Ltd filed Critical NEC Microcomputer Technologies Ltd
Priority to JP2000133308A priority Critical patent/JP3563324B2/en
Publication of JP2001312492A publication Critical patent/JP2001312492A/en
Application granted granted Critical
Publication of JP3563324B2 publication Critical patent/JP3563324B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce instruction fetch operation and to improve throughput by allowing a bus controller to provide a processing program based upon the retrieval result of retrieval hardware for a CPU in instruction fetch operation of an analyzing process program based upon the retrieval result. SOLUTION: The bus controller 4 is provided with an X address setting register 4-1 and a mechanism which stores an instruction paired with object data to be compared is introduced in peripheral hardware 3 for retrieval. At an instruction fetch request from the CPU 1, the bus controller 4 reads the instruction corresponding to the retrieval result of the peripheral hardware 3 for retrieval out of a comparison object register 3-1 and provides it for the CPU 1. The CPU 1 performs the instruction corresponding to the retrieval result provided through the bus controller 4 without performing a program for analyzing the retrieval result of the peripheral hardware 3 for retrieval.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、検索システムおよ
び検索方法、並びに記録媒体に関し、特に、検索処理を
検索周辺ハードウェアが行い、その検索結果に対応した
処理をCPUが行う検索システムおよび検索方法、並び
に記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a search system, a search method, and a recording medium, and more particularly to a search system and a search method in which search processing is performed by hardware around a search, and processing corresponding to the search result is performed by a CPU. And a recording medium.

【0002】[0002]

【従来の技術】従来より、CPU(central p
rocessing unit)が外部からデータを取
得する場合、以下に示すように、2種類の方法がある。
2. Description of the Related Art Conventionally, a CPU (central processor) has been used.
When the processing unit acquires data from the outside, there are two types of methods as described below.

【0003】 名称 :内容 命令フェッチ :CPUの動作をさせる為に用いるプログラム命令 I/Oデータ :制御や演算を行う時に用いるデータName: Contents Instruction fetch: Program instructions used to operate the CPU I / O data: Data used when performing control and calculation

【0004】以降では、上記で示した名称を用いる。Hereinafter, the names shown above will be used.

【0005】検索処理の全てをソフトウェアだけで行う
とCPU処理効率が悪い。この為、近年では、検索に要
する処理は検索ハードウェアを使用し、CPUはハード
ウェアの検索結果を用いて処理を行う。そして、CPU
は、検索ハードウェアから得た結果を、制御や演算を行
う時に用いるデータとして取り込んだ後、さらに、それ
を処理するというのが一般的な手法である。
If the entire search process is performed only by software, the CPU processing efficiency is low. Therefore, in recent years, the processing required for the search uses search hardware, and the CPU performs the processing using the search result of the hardware. And CPU
Is a general method of taking in a result obtained from search hardware as data used for performing control and calculation, and then processing the data.

【0006】この一般的な手法は、図2に示すようなシ
ステム構成において、後述するような処理の流れにより
実現することができる。
This general method can be realized by a processing flow described later in a system configuration as shown in FIG.

【0007】まず、システム構成について説明する。図
2は、従来の検索システムの構成例を示すブロック図で
ある。同図に示すように、検索システムは、命令フェッ
チの要求、I/Oデータのリード要求、後述する検索用
周辺ハードウェア3によって検索された検索結果に対応
する処理の実行等を行うCPU1と、CPU1が実行す
る命令が置かれているメモリ2と、検索処理を実行する
検索用周辺ハードウェア3と、CPU1とメモリ2と検
索用周辺ハードウェアを結ぶバスを制御し、CPU1か
らの各要求により通知されるアドレスにある内容をCP
U1に返却する処理を実行するバスコントローラ4とか
ら構成されている。
First, the system configuration will be described. FIG. 2 is a block diagram showing a configuration example of a conventional search system. As shown in the figure, the search system includes a CPU 1 that performs an instruction fetch request, an I / O data read request, a process corresponding to a search result searched by the search peripheral hardware 3 described below, and the like. A memory 2 in which instructions to be executed by the CPU 1 are placed, peripheral hardware for search 3 for executing a search process, and a bus connecting the CPU 1, the memory 2 and the peripheral hardware for search are controlled. CP of the contents at the notified address
And a bus controller 4 for executing processing for returning to U1.

【0008】メモリ2には、CPU1が実行する命令が
記憶されている。例えば、比較対象値を比較対象レジス
タ3−1に設定する命令、比較対象値と比較して一致す
るものを検索するための検索比較値を検索比較値レジス
タ3−3に設定する命令(比較対象設定)、検索結果レ
ジスタ3−2に設定された検索結果をリードする命令
(検索比較値の設定)、命令を分析した結果に応じて分
岐するための命令(分析結果対応分岐)、検索結果レジ
スタ3−2に設定された検索結果に対応して分岐するた
めの判断を行う処理をするための命令(参照データ分
析)等の命令が記憶されている。
[0008] The memory 2 stores instructions to be executed by the CPU 1. For example, an instruction to set a comparison target value in the comparison target register 3-1 and an instruction to set a search comparison value in the search comparison value register 3-3 to search for a match by comparing with the comparison target value (comparison target Setting), an instruction for reading the search result set in the search result register 3-2 (setting of search comparison value), an instruction for branching according to the result of analyzing the instruction (analysis result corresponding branch), a search result register Instructions such as an instruction (reference data analysis) for performing a process of making a branch corresponding to the search result set in 3-2 are stored.

【0009】次に、処理の流れについて説明する。 (1)CPU1はバスコントローラ4経由で検索用周辺
ハードウェア3の比較対象レジスタ3−1に比較対象値
を設定する。 (2)CPU1が検索比較値レジスタ3−3に検索比較
値を設定すると、検索周辺ハードウェア3は検索を開始
する。そして、検索比較値と一致する比較対象値がある
場合、その比較対象値が記憶されている比較対象レジス
タ3−1の順番位置等を検索結果レジスタ3−2に検索
結果として設定する。 (3)CPU1はバスコントローラ4を経由して検索結
果レジスタ3−2の値(検索結果値)を読み出す。 (4)CPU1は検索結果値をI/Oデータとして分析
する。 (5)分析結果から、CPU1はI/Oデータに対応し
た処理へ分岐して処理を実行する。 (6)もし(5)でCPU1がI/Oデータに対応した
処理へ分岐して処理を実行しない時は、更に検索結果値
を分析する (7)分析結果から、CPU1はI/Oデータに対応し
た処理へ分岐して処理を実行する。 (8)以降、検索結果に対応した処理を行う回数だけ、
分析と分析結果に対応した処理分岐判断を繰り返す。 このようにして、検索用周辺ハードウェア3が検索処理
を実行し、CPU1が検索結果をデータとして取り込
み、検索結果を分析して検索結果に対応する処理を実行
する。
Next, the flow of processing will be described. (1) The CPU 1 sets a comparison target value in the comparison target register 3-1 of the peripheral hardware for search 3 via the bus controller 4. (2) When the CPU 1 sets the search comparison value in the search comparison value register 3-3, the search peripheral hardware 3 starts the search. If there is a comparison target value that matches the search comparison value, the order position and the like of the comparison target register 3-1 in which the comparison target value is stored are set in the search result register 3-2 as the search result. (3) The CPU 1 reads the value (search result value) of the search result register 3-2 via the bus controller 4. (4) The CPU 1 analyzes the search result value as I / O data. (5) From the analysis result, the CPU 1 branches to a process corresponding to the I / O data and executes the process. (6) If the CPU 1 branches to the process corresponding to the I / O data and does not execute the process in (5), the search result value is further analyzed. (7) From the analysis result, the CPU 1 converts the I / O data into I / O data. Branch to the corresponding process and execute the process. (8) Thereafter, the number of times the process corresponding to the search result is performed,
The analysis and the processing branch judgment corresponding to the analysis result are repeated. In this way, the search peripheral hardware 3 executes the search process, the CPU 1 fetches the search result as data, analyzes the search result, and executes a process corresponding to the search result.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、この検
索用周辺ハードウェア3の検索結果をもとに、CPU1
が処理を行うことは、CPU1が検索用周辺ハードウェ
ア3に検索を任せたにも拘わらず、検索用周辺ハードウ
ェア3の検索結果を分析するプログラムを要してしま
い、検索処理を全体として見ると、未だに処理にオーバ
ーヘッドが残る。このことから、検索結果をCPU1が
利用し、即座に検索結果に対応した処理を行うことがで
きないという問題がある。
However, based on the search result of the peripheral hardware for search 3, the CPU 1
Perform a process, a program for analyzing the search result of the peripheral hardware for search 3 is required in spite of the fact that the CPU 1 leaves the search to the peripheral hardware for search 3, and the search process is viewed as a whole. In this case, processing overhead still remains. For this reason, there is a problem that the CPU 1 uses the search result and cannot immediately perform a process corresponding to the search result.

【0011】この問題が生じる理由として、以下の3項
目がある。 (1)検索用周辺ハードウェア3から得る検索結果を元
にCPU1が処理する場合に、CPU1はI/Oデータ
として検索結果を得る。 (2)CPU1は検索結果をI/Oデータとして内部に
取り込むことから、そのデータに対する結果の分析を行
う必要がある。 (3)CPU1はこの分析を行うために命令フェッチ要
求を出して、命令フェッチを行いプログラムを実行す
る。
There are the following three reasons why this problem occurs. (1) When the CPU 1 performs processing based on a search result obtained from the search peripheral hardware 3, the CPU 1 obtains a search result as I / O data. (2) Since the CPU 1 takes in the search result as I / O data, it is necessary to analyze the result for the data. (3) The CPU 1 issues an instruction fetch request to perform this analysis, executes the instruction fetch, and executes the program.

【0012】この3項目から、検索結果に対応した処理
を行う上で、CPU1は検索用周辺ハードウェア3に検
索を任せたにも拘わらず、CPU1は検索用周辺ハード
ウェア3の結果を分析するプログラムを要してしまう。
その結果、検索全体として見ると、未だにオーバーヘッ
ドが残ってしまう。
From these three items, in performing a process corresponding to the search result, the CPU 1 analyzes the result of the search peripheral hardware 3 even though the CPU 1 leaves the search to the search peripheral hardware 3. I need a program.
As a result, overhead remains when viewed as a whole search.

【0013】本発明はこのような状況に鑑みてなされた
ものであり、検索結果を分析することなく、直ちに検索
結果に対応する処理を行うことができるようにし、検索
結果に対応する処理を実行するときの処理効率を向上さ
せることができるようにするものである。
The present invention has been made in view of such a situation, and enables a process corresponding to a search result to be performed immediately without analyzing the search result, and executes a process corresponding to the search result. This makes it possible to improve the processing efficiency when performing.

【0014】[0014]

【課題を解決するための手段】請求項1に記載の検索シ
ステムは、比較対象となる比較対象データと、比較対象
データと対をなす命令を記憶する第1の記憶手段と、第
1の記憶手段に記憶されている比較対象データと比較す
べき比較データを記憶する第2の記憶手段と、第1の記
憶手段に記憶されている比較対象データと第2の記憶手
段に記憶されている比較データとを比較する比較手段
と、比較手段による比較結果を記憶する第3の記憶手段
と、比較結果に対応する命令を第1の記憶手段から読み
出す読み出し手段と、読み出し手段によって読み出され
た命令を実行する実行手段と、実行手段が実行する命令
を記憶する第4の記憶手段とを備え、実行手段が、比較
手段による比較結果の提供を要求したとき、読み出し手
段は、要求に応じて、第3の記憶手段に記憶されている
比較結果に対応する、第1の記憶手段に記憶されている
比較対象データと対をなす命令を実行手段に提供し、実
行手段は、読み出し手段より提供された命令を実行する
ことを特徴とする。また、比較手段により、比較対象デ
ータと比較データとが比較された結果、比較データと一
致する比較対象データがあるとき、第3の記憶手段は、
比較対象データと対をなす命令が記憶されている第1の
記憶手段のアドレスを比較結果として記憶するようにす
ることができる。また、読み出し手段は、実行手段から
の要求が、命令フェッチ要求であるとき、要求に応じ
て、第3の記憶手段に記憶されている比較結果に対応す
る、第1の記憶手段に記憶されている比較対象データと
対をなす命令を実行手段に提供するようにすることがで
きる。また、読み出し手段は、第3の記憶手段に記憶さ
れている比較結果を参照する命令が置かれている第4の
記憶手段のアドレスを記憶し、アドレスと実行手段によ
る命令フェッチ要求に対応するアドレスとが一致したと
き、第3の記憶手段に記憶されている比較結果に対応す
る、第1の記憶手段に記憶されている比較対象データと
対をなす命令を実行手段に提供するようにすることがで
きる。請求項5に記載の検索方法は、比較対象となる比
較対象データと、比較対象データと対をなす命令を記憶
する第1の記憶手段と、第1の記憶手段に記憶されてい
る比較対象データと比較すべき比較データを記憶する第
2の記憶手段と、第1の記憶手段に記憶されている比較
対象データと第2の記憶手段に記憶されている比較デー
タとを比較する比較手段と、比較手段による比較結果を
記憶する第3の記憶手段と、比較結果に対応する命令を
第1の記憶手段から読み出す読み出し手段と、読み出し
手段によって読み出された命令を実行する実行手段とを
備える検索システムにおける検索方法であって、実行手
段が、比較手段による比較結果の提供を要求したとき、
読み出し手段は、要求に応じて、第3の記憶手段に記憶
されている比較結果に対応する、第1の記憶手段に記憶
されている比較対象データと対をなす命令を実行手段に
提供し、実行手段は、読み出し手段より提供された命令
を実行することを特徴とする。請求項6に記載の記録媒
体は、請求項5に記載の検索方法を実行可能なプログラ
ムが記録されていることを特徴とする。本発明に係る検
索システムおよび検索方法、並びに記録媒体において
は、実行手段が、比較手段による比較結果の提供を要求
したとき、読み出し手段は、要求に応じて、第3の記憶
手段に記憶されている比較結果に対応する、第1の記憶
手段に記憶されている比較対象データと対をなす命令を
実行手段に提供し、実行手段は、読み出し手段より提供
された命令を実行する。
According to a first aspect of the present invention, there is provided a retrieval system comprising: first storage means for storing comparison target data to be compared; instructions for pairing with the comparison target data; and first storage means. Second storage means for storing the comparison data to be compared with the comparison data stored in the means, and the comparison data stored in the first storage means and the comparison data stored in the second storage means Comparison means for comparing data with the data, third storage means for storing a comparison result by the comparison means, reading means for reading an instruction corresponding to the comparison result from the first storage means, and an instruction read by the reading means And a fourth storage means for storing an instruction to be executed by the execution means. When the execution means requests the provision of a comparison result by the comparison means, the reading means responds to the request. An instruction corresponding to the comparison result stored in the third storage unit and paired with the comparison target data stored in the first storage unit is provided to the execution unit, and the execution unit is provided by the reading unit. Executing the set instructions. When the comparison unit compares the comparison target data with the comparison data, if there is comparison target data that matches the comparison data, the third storage unit stores
The address of the first storage unit in which the instruction paired with the data to be compared is stored can be stored as the comparison result. Further, when the request from the execution means is an instruction fetch request, the reading means stores the first storage means corresponding to the comparison result stored in the third storage means in response to the request. An instruction paired with the data to be compared can be provided to the execution means. Further, the reading means stores an address of the fourth storage means in which an instruction referring to the comparison result stored in the third storage means is located, and stores the address and an address corresponding to the instruction fetch request by the execution means. Providing a command corresponding to the comparison result stored in the third storage means and paired with the comparison target data stored in the first storage means to the execution means when Can be. 6. The search method according to claim 5, wherein: first storage means for storing comparison target data to be compared, an instruction paired with the comparison target data, and comparison target data stored in the first storage means. Second storage means for storing comparison data to be compared with, comparison means for comparing comparison target data stored in the first storage means with comparison data stored in the second storage means, A search comprising: third storage means for storing a comparison result by the comparison means; reading means for reading an instruction corresponding to the comparison result from the first storage means; and execution means for executing the instruction read by the reading means. A search method in the system, wherein the execution means requests provision of a comparison result by the comparison means,
The reading means provides to the execution means an instruction corresponding to the comparison result stored in the third storage means and corresponding to the comparison target data stored in the first storage means, in response to a request; The execution means executes the instruction provided by the reading means. A recording medium according to a sixth aspect is characterized by recording a program capable of executing the search method according to the fifth aspect. In the search system, the search method, and the recording medium according to the present invention, when the execution unit requests the provision of the comparison result by the comparison unit, the read unit is stored in the third storage unit in response to the request. An instruction corresponding to the comparison result and paired with the comparison target data stored in the first storage unit is provided to the execution unit, and the execution unit executes the instruction provided by the reading unit.

【0015】[0015]

【発明の実施の形態】以下、図1を参照して、本発明の
検索システムの構成及び動作について説明する。図2に
示した従来の検索システムと対応する部分には同一の符
号を付して適宜その説明は省略する。本実施の形態で
は、従来の検索システムに新たに以下の2つの機構及び
プログラムを追加するようにしている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration and operation of a search system according to the present invention will be described below with reference to FIG. Components corresponding to those of the conventional search system shown in FIG. 2 are denoted by the same reference numerals, and description thereof will be omitted as appropriate. In the present embodiment, the following two mechanisms and programs are newly added to the conventional search system.

【0016】まず、以下の機構を検索用周辺ハードウェ
ア3に追加する。 (1)検索時に用いる比較対象レジスタ3−1は、比較
対象値(比較対象データ)と対にCPU1の命令(CP
U命令)を持つ。 (2)検索用周辺ハードウェア3が返却する検索結果
は、従来の検索結果ではなく、検索で一致した比較対象
レジスタ3−1と対になっているCPU命令とする。
First, the following mechanism is added to the peripheral hardware for search 3. (1) The comparison target register 3-1 used at the time of retrieval stores an instruction (CP) of the CPU 1 in combination with a comparison target value (comparison target data).
U instruction). (2) The search result returned by the search peripheral hardware 3 is not a conventional search result but a CPU instruction paired with the comparison target register 3-1 matched in the search.

【0017】次に、以下の機構をバスコントローラ4に
追加する。 (1)新たにXアドレス設定レジスタ4−1を設ける。
このXアドレスは、CPU1からの命令フェッチの要求
アドレスに対して、返却するデータの取り出し先を変更
したいアドレスを示す。 (2)CPU1からの命令フェッチ要求があった場合
に、その要求アドレスとXアドレス設定レジスタ4−1
の間で比較を行う。この比較結果から、CPU1からの
命令フェッチ要求に対して、返却するデータ取り出し先
を変更する。比較結果が一致していない場合:要求アド
レスにある命令をCPU1へ渡す。比較結果が一致して
いる場合 :検索用周辺ハードウェア3が持つ検索結果
レジスタ3−2の内容をCPU1へ渡す。 (3)本機構は、命令フェッチに対してのみ動作し、I
/Oデータに対しての要求がCPU1からきた場合は、
従来の場合と同様に動作する。
Next, the following mechanism is added to the bus controller 4. (1) A new X address setting register 4-1 is provided.
The X address indicates an address at which the destination of the returned data is to be changed with respect to the instruction fetch request address from the CPU 1. (2) When there is an instruction fetch request from the CPU 1, the request address and the X address setting register 4-1
Make a comparison between From this comparison result, the data fetch destination to be returned is changed in response to an instruction fetch request from the CPU 1. When the comparison results do not match: The instruction at the request address is passed to the CPU 1. When the comparison results match: The contents of the search result register 3-2 of the peripheral hardware for search 3 are passed to the CPU 1. (3) This mechanism operates only for instruction fetch,
If the request for / O data comes from CPU1,
It operates as in the conventional case.

【0018】次に、CPU1上で実行されるプログラム
について説明する。本実施の形態で追加した機構は、C
PU1上で実行されるプログラムで事前設定を要する。
この事前設定を要する項目は、以下の2項目である。
Next, a program executed on the CPU 1 will be described. The mechanism added in the present embodiment is C
A program executed on the PU1 needs to be set in advance.
The following two items need to be set in advance.

【0019】(1)検索用周辺ハードウェア3への設定 検索用周辺ハードウェア3内にある比較対象レジスタ3
−1と対になるCPU命令を設定する。なお、ここで設
定するCPU命令は、従来の方式では検索結果の分析後
に実行される命令である。
(1) Setting in peripheral hardware for search 3 Register 3 to be compared in peripheral hardware for search 3
Set a CPU instruction paired with -1. Note that the CPU instruction set here is an instruction executed after analysis of the search result in the conventional method.

【0020】(2)バスコントローラ4への設定 CPU1が命令フェッチを行って、検索用周辺ハードウ
ェア4の検索結果レジスタ3−2を参照する命令が置か
れているメモリ2のアドレスを、Xアドレス設定レジス
タ4−1に設定する。
(2) Setting to the bus controller 4 The CPU 1 fetches an instruction, and sets the address of the memory 2 in which the instruction to refer to the search result register 3-2 of the peripheral hardware for search 4 is set to the X address. Set in the setting register 4-1.

【0021】次に、本実施の形態の動作について説明す
る。本実施の形態は、検索用周辺ハードウェア3とバス
コントローラ4の2つのハードウェアに対して新たな機
構を追加し、追加した機構を用いて検索処理を行う。こ
の場合、上述したような機構に対して事前に設定を行う
必要が生じる。そのため、CPU1は、従来方式にはな
い、機構に対して事前設定を行う事前設定プログラム
を、検索処理の実行前に実行しておく。
Next, the operation of this embodiment will be described. In the present embodiment, a new mechanism is added to two hardware, the search peripheral hardware 3 and the bus controller 4, and a search process is performed using the added mechanism. In this case, it is necessary to set in advance the mechanism as described above. Therefore, the CPU 1 executes a pre-setting program that does not exist in the conventional method and performs pre-setting for the mechanism before executing the search processing.

【0022】検索処理を実行する上で、CPU1は本来
は命令フェッチの要求アドレスにあった命令を内部に取
り込んだ後、実行する。しかしながら、本実施の形態で
は、バスコントローラ4にXアドレス設定レジスタ4−
1を新たに追加し、かつ、CPU1からの命令フェッチ
による要求アドレスと、Xアドレス設定レジスタ4−1
とを常に比較する動作を行う機構を追加し、CPU1か
らの命令フェッチに対する要求アドレスが、Xアドレス
設定レジスタ4−1に設定したアドレスであった場合
は、要求アドレスの命令を内部に取り込まずに、検索用
周辺ハードウェア3の検索結果レジスタ3−2を読み出
すようにする。
In executing the search processing, the CPU 1 fetches an instruction originally located at the instruction fetch request address and then executes the instruction. However, in the present embodiment, the X address setting register 4-
1 and a request address by an instruction fetch from the CPU 1 and an X address setting register 4-1.
Is added, and when the request address for the instruction fetch from the CPU 1 is the address set in the X address setting register 4-1, the instruction of the request address is not taken in. Then, the search result register 3-2 of the search peripheral hardware 3 is read.

【0023】これにより、CPU1は、検索用周辺ハー
ドウェア3の検索結果を読み出すためのプログラムを実
行するための命令フェッチ要求を行う必要がなくなり、
CPU1の処理量が削減されるという効果が生じる。
This eliminates the need for the CPU 1 to issue an instruction fetch request for executing a program for reading a search result of the search peripheral hardware 3.
There is an effect that the processing amount of the CPU 1 is reduced.

【0024】しかし、バスコントローラ4に追加した機
構だけでは、CPU1の命令フェッチの要求アドレスで
CPU1が得る値は検索結果の値であり、CPU1は命
令を実行することができない。これは、従来の検索用周
辺ハードウェア3の検索結果レジスタ3−2が持つ値を
検索結果としたI/Oデータであり、CPU1の命令フ
ェッチに対応する値でない。
However, with only the mechanism added to the bus controller 4, the value obtained by the CPU 1 at the instruction fetch request address of the CPU 1 is the value of the search result, and the CPU 1 cannot execute the instruction. This is I / O data obtained by using the value of the search result register 3-2 of the conventional search peripheral hardware 3 as a search result, and is not a value corresponding to the instruction fetch of the CPU 1.

【0025】そこで、検索用周辺ハードウェア3にも新
たに機構を追加し、比較対象レジスタ3−1に比較対象
値と対をなしてCPU1の命令を持たせるようにする。
そして、CPU1が検索用周辺ハードウェア3の検索結
果レジスタ3−2から検索結果を得る場合には、検索結
果は比較対象レジスタ3−1の比較対象値と対のCPU
1の命令を返却するようにする。
Therefore, a new mechanism is added to the peripheral hardware for search 3 so that the comparison target register 3-1 has an instruction of the CPU 1 in pairs with the comparison target value.
Then, when the CPU 1 obtains a search result from the search result register 3-2 of the search peripheral hardware 3, the search result is obtained by comparing the CPU with the comparison target value of the comparison target register 3-1.
Return 1 order.

【0026】バスコントローラ4と検索用周辺ハードウ
ェア3にそれぞれ追加した上記機構によって、CPU1
からの命令フェッチの要求アドレスを利用して、検索用
周辺ハードウェア3の検索結果レジスタ3−2が参照さ
れようとした時にそれをバスコントローラ4が検出し、
バスコントローラ4はその要求アドレスにある命令をC
PU1へ返却せずに、検索用周辺ハードウェア3の検索
結果レジスタ3−2を参照し、検索結果に対応したCP
U1の命令を検索結果に対応する比較対象レジスタ3−
1から読み出し、それを要求アドレスに対応した命令と
してCPU1へ返却する。
With the above-mentioned mechanism added to the bus controller 4 and the peripheral hardware for search 3, respectively,
The bus controller 4 detects when the search result register 3-2 of the search peripheral hardware 3 is referred to using the request address of the instruction fetch from
The bus controller 4 sends the instruction at the requested address to C
Instead of returning to the PU 1, the CP corresponding to the search result is referred to by referring to the search result register 3-2 of the search peripheral hardware 3.
The instruction of U1 is compared with the register 3 corresponding to the search result.
1 and returns it to the CPU 1 as an instruction corresponding to the requested address.

【0027】この動作から、CPU1は検索用周辺ハー
ドウェア3の検索結果レジスタ3−2の値を分析するこ
となく、検索結果に対応した処理を行うことができる。
From this operation, the CPU 1 can perform a process corresponding to the search result without analyzing the value of the search result register 3-2 of the peripheral hardware for search 3.

【0028】以上説明したように、本実施の形態によれ
ば、従来方式ではCPU1が複数の命令を実行すること
により行っていた処理の処理量を削除することができ
る。
As described above, according to the present embodiment, it is possible to eliminate the processing amount of the processing performed by the CPU 1 executing a plurality of instructions in the conventional method.

【0029】検索処理を行う上で、従来の方式と本実施
の形態による方式の違いを以下に示す。
The differences between the conventional method and the method according to the present embodiment in performing the search processing are described below.

【0030】従来方式で、CPU1が行うプログラム
は、以下の命令を実行する。 (1)命令フェッチ (2)読み出した命令の実行(検索結果のレジスタリー
ド) (3)検索結果レジスタの内容を取得 (4)命令フェッチ (5)読み出した命令の実行(検索結果の分析) (6)命令フェッチ (7)読み出した命令の実行(分析結果別の演算)
In the conventional method, the program executed by the CPU 1 executes the following instructions. (1) Instruction fetch (2) Execution of read instruction (search result register read) (3) Acquisition of contents of search result register (4) Instruction fetch (5) Execution of read instruction (analysis of search result) ( 6) Instruction fetch (7) Execution of read instruction (operation for each analysis result)

【0031】これに対して、本実施の形態で追加した機
構を用いた場合は以下のようになる。 (1)命令フェッチ (2)読み出した命令の実行(分析結果別の演算)
On the other hand, the case where the mechanism added in the present embodiment is used is as follows. (1) Instruction fetch (2) Execution of read instruction (operation for each analysis result)

【0032】このように、従来の場合と本実施の形態の
場合の処理手順の差異から、本実施の形態の方式を用い
ることで、従来方式でCPU1が複数の命令を実行する
ことにより行っていた処理(従来方式でのCPU1が行
うプログラムにおける(2)乃至(6)の動作)を削除
することができる。即ち、検索結果に基づく分析処理プ
ログラムの命令フェッチ動作時に、検索用周辺ハードウ
ェア3の検索結果に対応する処理プログラム(CPU命
令)をバスコントローラ4がCPU1に提供することに
より、CPU1が実行する命令フェッチ動作を減らすこ
とができる。これにより、CPU1が検索結果に対応す
る処理を実行する時の処理効率を向上させることができ
る。
As described above, due to the difference in the processing procedure between the conventional case and the present embodiment, by using the method of the present embodiment, the CPU 1 executes a plurality of instructions in the conventional method. (The operations (2) to (6) in the program executed by the CPU 1 in the conventional method) can be deleted. That is, at the time of the instruction fetch operation of the analysis processing program based on the search result, the bus controller 4 provides the CPU 1 with a processing program (CPU instruction) corresponding to the search result of the peripheral hardware for search 3, thereby executing the instruction executed by the CPU 1. Fetch operations can be reduced. Thereby, the processing efficiency when the CPU 1 executes the processing corresponding to the search result can be improved.

【0033】なお、上記実施の形態においては、検索結
果レジスタ3−2には、検索結果として、検索比較値と
合致する比較対象値が記憶されている比較対象レジスタ
3−1の順番位置を示す値が設定され、その比較対象レ
ジスタ3−1に記憶されているCPU命令を読み出し、
CPU1に提供するようにしたが、その比較対象値と対
をなすCPU命令が設定されるようにしてもよい。その
場合、バスコントローラ4は、検索結果レジスタ3−2
に設定された命令をCPU1に提供することになる。
In the above embodiment, the search result register 3-2 indicates, as the search result, the order position of the comparison target register 3-1 in which the comparison target value matching the search comparison value is stored. A value is set, and the CPU instruction stored in the comparison target register 3-1 is read,
Although provided to the CPU 1, a CPU instruction paired with the comparison target value may be set. In this case, the bus controller 4 sets the search result register 3-2.
Will be provided to the CPU 1.

【0034】また、上記実施の形態の構成及び動作は例
であって、これに限定されるものではなく、本発明の趣
旨を逸脱しない範囲内において適宜変更され得ることは
明らかである。
The configuration and operation of the above embodiment are merely examples, and the present invention is not limited to this. It is apparent that the configuration and operation can be appropriately changed without departing from the spirit of the present invention.

【0035】[0035]

【発明の効果】以上の如く、本発明に係る検索システム
および検索方法、並びに記録媒体によれば、実行手段
が、比較手段による比較結果の提供を要求したとき、読
み出し手段は、要求に応じて、第3の記憶手段に記憶さ
れている比較結果に対応する、第1の記憶手段に記憶さ
れている比較対象データと対をなす命令を実行手段に提
供し、実行手段は、読み出し手段より提供された命令を
実行するようにしたので、検索結果を分析することな
く、直ちに検索結果に対応する処理を行うことができ、
検索結果に対応する処理を実行するときの処理効率を向
上させることができる。
As described above, according to the retrieval system, the retrieval method, and the recording medium of the present invention, when the execution unit requests the provision of the comparison result by the comparison unit, the reading unit responds to the request. , An instruction corresponding to the comparison result stored in the third storage means and paired with the comparison target data stored in the first storage means is provided to the execution means, and the execution means is provided by the reading means. Since the executed instruction is executed, processing corresponding to the search result can be immediately performed without analyzing the search result,
It is possible to improve the processing efficiency when executing the processing corresponding to the search result.

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

【図1】本発明の検索システムの一実施の形態の構成例
を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration example of a search system according to an embodiment of the present invention.

【図2】従来の検索システムの一例の構成を示すブロッ
ク図である。
FIG. 2 is a block diagram illustrating a configuration of an example of a conventional search system.

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

1 CPU 2 メモリ 3 検索用周辺ハードウェア 3−1 比較対象レジスタ 3−2 検索結果レジスタ 3−3 検索比較値レジスタ 4 バスコントローラ 4−1 Xアドレス設定レジスタ 1 CPU 2 Memory 3 Peripheral hardware for search 3-1 Register to be compared 3-2 Search result register 3-3 Search and comparison value register 4 Bus controller 4-1 X address setting register

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 比較対象となる比較対象データと、前記
比較対象データと対をなす命令を記憶する第1の記憶手
段と、 前記第1の記憶手段に記憶されている前記比較対象デー
タと比較すべき比較データを記憶する第2の記憶手段
と、 前記第1の記憶手段に記憶されている前記比較対象デー
タと前記第2の記憶手段に記憶されている前記比較デー
タとを比較する比較手段と、 前記比較手段による比較結果を記憶する第3の記憶手段
と、 前記比較結果に対応する命令を前記第1の記憶手段から
読み出す読み出し手段と、 前記読み出し手段によって読み出された前記命令を実行
する実行手段と、 前記実行手段が実行する命令を記憶する第4の記憶手段
と を備え、 前記実行手段が、前記比較手段による比較結果の提供を
要求したとき、前記読み出し手段は、前記要求に応じ
て、前記第3の記憶手段に記憶されている前記比較結果
に対応する、前記第1の記憶手段に記憶されている前記
比較対象データと対をなす命令を前記実行手段に提供
し、 前記実行手段は、前記読み出し手段より提供された前記
命令を実行することを特徴とする検索システム。
A first storage unit for storing comparison target data to be compared, an instruction paired with the comparison target data, and a comparison with the comparison target data stored in the first storage unit Second storage means for storing comparison data to be stored, and comparison means for comparing the comparison target data stored in the first storage means with the comparison data stored in the second storage means A third storage unit that stores a comparison result by the comparison unit; a reading unit that reads an instruction corresponding to the comparison result from the first storage unit; and executes the instruction read by the reading unit. And a fourth storage unit for storing an instruction to be executed by the execution unit. When the execution unit requests the comparison unit to provide a comparison result, Means for executing the instruction corresponding to the comparison result stored in the third storage means and corresponding to the comparison target data stored in the first storage means, in response to the request Means for executing the command provided by the reading means.
【請求項2】 前記比較手段により、前記比較対象デー
タと前記比較データとが比較された結果、前記比較デー
タと一致する前記比較対象データがあるとき、前記第3
の記憶手段は、前記比較対象データと対をなす前記命令
が記憶されている前記第1の記憶手段のアドレスを比較
結果として記憶することを特徴とする請求項1に記載の
検索システム。
2. When the comparison unit compares the comparison target data with the comparison data and finds that the comparison target data coincides with the comparison data, the third comparison unit sets the third comparison data.
2. The retrieval system according to claim 1, wherein the storage means stores, as a comparison result, an address of the first storage means in which the command forming a pair with the comparison target data is stored.
【請求項3】 前記読み出し手段は、前記実行手段から
の前記要求が、命令フェッチ要求であるとき、前記要求
に応じて、前記第3の記憶手段に記憶されている前記比
較結果に対応する、前記第1の記憶手段に記憶されてい
る前記比較対象データと対をなす命令を前記実行手段に
提供することを特徴とする請求項1または2に記載の検
索システム。
3. The read means, when the request from the execution means is an instruction fetch request, corresponds to the comparison result stored in the third storage means in response to the request. The retrieval system according to claim 1, wherein an instruction paired with the comparison target data stored in the first storage unit is provided to the execution unit.
【請求項4】 前記読み出し手段は、前記第3の記憶手
段に記憶されている前記比較結果を参照する命令が置か
れている前記第4の記憶手段のアドレスを記憶し、前記
アドレスと前記実行手段による命令フェッチ要求に対応
するアドレスとが一致したとき、前記第3の記憶手段に
記憶されている前記比較結果に対応する、前記第1の記
憶手段に記憶されている前記比較対象データと対をなす
前記命令を前記実行手段に提供することを特徴とする請
求項1,2または3に記載の検索システム。
4. The reading means stores an address of the fourth storage means in which an instruction referring to the comparison result stored in the third storage means is stored, and stores the address and the execution number. When the address corresponding to the instruction fetch request by the means matches, the data is compared with the comparison target data stored in the first storage means corresponding to the comparison result stored in the third storage means. 4. The retrieval system according to claim 1, wherein said instruction is provided to said execution means.
【請求項5】 比較対象となる比較対象データと、前記
比較対象データと対をなす命令を記憶する第1の記憶手
段と、前記第1の記憶手段に記憶されている前記比較対
象データと比較すべき比較データを記憶する第2の記憶
手段と、前記第1の記憶手段に記憶されている前記比較
対象データと前記第2の記憶手段に記憶されている前記
比較データとを比較する比較手段と、前記比較手段によ
る比較結果を記憶する第3の記憶手段と、前記比較結果
に対応する命令を前記第1の記憶手段から読み出す読み
出し手段と、前記読み出し手段によって読み出された前
記命令を実行する実行手段とを備える検索システムにお
ける検索方法であって、前記実行手段が、前記比較手段
による比較結果の提供を要求したとき、前記読み出し手
段は、前記要求に応じて、前記第3の記憶手段に記憶さ
れている前記比較結果に対応する、前記第1の記憶手段
に記憶されている前記比較対象データと対をなす命令を
前記実行手段に提供し、 前記実行手段は、前記読み出し手段より提供された前記
命令を実行することを特徴とする検索方法。
5. A comparison target data to be compared, first storage means for storing an instruction paired with the comparison target data, and comparison with the comparison target data stored in the first storage means. Second storage means for storing comparison data to be stored, and comparison means for comparing the comparison target data stored in the first storage means with the comparison data stored in the second storage means A third storage unit for storing a comparison result by the comparison unit; a reading unit for reading an instruction corresponding to the comparison result from the first storage unit; and executing the instruction read by the reading unit. Performing a request for providing a comparison result by the comparing means, the reading means responding to the request. Providing, to the execution unit, an instruction corresponding to the comparison result stored in the third storage unit and paired with the comparison target data stored in the first storage unit; A search method, wherein the execution means executes the instruction provided by the reading means.
【請求項6】 請求項5に記載の検索方法を実行可能な
プログラムが記録されている記録媒体。
6. A recording medium on which a program capable of executing the search method according to claim 5 is recorded.
JP2000133308A 2000-05-02 2000-05-02 Search system, search method, and recording medium Expired - Fee Related JP3563324B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000133308A JP3563324B2 (en) 2000-05-02 2000-05-02 Search system, search method, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000133308A JP3563324B2 (en) 2000-05-02 2000-05-02 Search system, search method, and recording medium

Publications (2)

Publication Number Publication Date
JP2001312492A true JP2001312492A (en) 2001-11-09
JP3563324B2 JP3563324B2 (en) 2004-09-08

Family

ID=18641828

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000133308A Expired - Fee Related JP3563324B2 (en) 2000-05-02 2000-05-02 Search system, search method, and recording medium

Country Status (1)

Country Link
JP (1) JP3563324B2 (en)

Also Published As

Publication number Publication date
JP3563324B2 (en) 2004-09-08

Similar Documents

Publication Publication Date Title
JPH0437927A (en) Processor processing method
US5065400A (en) Method for editing and executing computer programs
JP3721780B2 (en) Data processing apparatus having a plurality of pipeline processing mechanisms
US20130305198A1 (en) Circuit design support device, circuit design support method and program
JP3563324B2 (en) Search system, search method, and recording medium
JPS6055864B2 (en) vector processor
JPS59112350A (en) Supervising and controlling system of program
JP3719241B2 (en) Arithmetic unit
JPH06348543A (en) Method for connection with input/output simulator
JP3608446B2 (en) Compiler device and processor
JP3213792B2 (en) Logic simulation verification method
JPH0248733A (en) Information processor
JPS5829051A (en) Operation processing device
JP2758829B2 (en) Same instruction processing high-speed system
JPS63141130A (en) Instruction prefetching device
JPH0279122A (en) Floating point arithmetic mechanism
JPS61278935A (en) Processing code modifying system
JPH03282635A (en) Break controller and trace controller for prefetch type processor
JP2000330823A (en) Device and method for debugging program
JPS59172187A (en) System for converting and control dynamic address
JPH1031506A (en) Programmable controller capable of multi-time writing detection
JPH10260834A (en) Load address predicting device, parallel processor, and its load address predicting method
JPH10124313A (en) Parallel processing computer
JPH0721083A (en) Memory reader
JPH0814792B2 (en) Data processing device

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040511

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040602

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080611

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090611

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees