JPS63249225A - Data retrieving device - Google Patents

Data retrieving device

Info

Publication number
JPS63249225A
JPS63249225A JP62082211A JP8221187A JPS63249225A JP S63249225 A JPS63249225 A JP S63249225A JP 62082211 A JP62082211 A JP 62082211A JP 8221187 A JP8221187 A JP 8221187A JP S63249225 A JPS63249225 A JP S63249225A
Authority
JP
Japan
Prior art keywords
data
address
search
counter
signal
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
JP62082211A
Other languages
Japanese (ja)
Inventor
Kazuyuki Yokota
和之 横田
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 JP62082211A priority Critical patent/JPS63249225A/en
Publication of JPS63249225A publication Critical patent/JPS63249225A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To execute a retrieval processing of an address at a high speed by processing a retrieval of an address of a retrieval designating data by an additional circuit. CONSTITUTION:A comparator 5 compares successively a data which is read out successively from a multi-port memory 3, and a retrieval designating data which is read out of a register 4, by synchronizing with a comparison timing signal outputted from a comparison control means 20, and when the data which is read out of the multi-port memory 3, and the retrieval designating data which is read out of the register 4 coincide, a coincidence signal is outputted. As a result, stepping of a counter is stopped, a switching signal is outputted from a bus switching control means 22, the counter 2 and a computer 1 are connected through an output data signal bus 14 and a data bus 11 and the count number of the counter 2 is read into the computer 1 as an address of the retrieval designating data. In such a way, the address of the retrieval designating data can be retrieved at a high speed.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、データ処理システム、データベースシステム
等におけるデータ検索、ネットワークシステム等におけ
るルーティングのためのテーブル検索等に使用するデー
タ検索装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a data retrieval device used for data retrieval in data processing systems, database systems, etc., table retrieval for routing in network systems, etc. .

(従来の技術) 従来、この種のデータ検索装置においては、第3図に示
すような構成でコンピュータの主記憶装置に格納したデ
ータを。
(Prior Art) Conventionally, this type of data retrieval device has a configuration as shown in FIG. 3 to retrieve data stored in the main memory of a computer.

(a)  一定方向に逐次比較して検索する方法、(b
)  定義したハツシュ関数等の演算結果により検索処
理を高速化する方法 等が実用化されていた。
(a) Search method by successive comparison in a certain direction, (b
) Methods of speeding up search processing based on the calculation results of defined hash functions, etc., have been put into practical use.

(発明が解決しようとする問題点) しかしながら、従来のデータ検索装置では、全てソフト
ウェアによる検索処理であったために、検索に多大な時
間を要するという問題があった。
(Problems to be Solved by the Invention) However, in the conventional data search device, the search process was entirely performed by software, so there was a problem in that the search required a large amount of time.

例えば、ネットワークシステム等におけるルーティング
のために、テーブル検索を逐次比較で行う場合、 (a)  第3図に示すデータが500個。
For example, when performing a table search using successive approximation for routing in a network system, etc., (a) There are 500 pieces of data shown in Figure 3.

(b)  プロセッサの演算速度が1.5マイクロ秒。(b) Processor calculation speed is 1.5 microseconds.

(c)  データ1個の長さが48ビツトであるとする
と、検索処理に要する時間は約750マイクロ秒となる
。これは、10乃至100メガビット/秒の伝送速度を
有するネットワークにとって大きな障壁となる。
(c) Assuming that the length of one piece of data is 48 bits, the time required for the search process is approximately 750 microseconds. This poses a significant barrier for networks with transmission speeds of 10 to 100 Mbit/s.

本発明は、このような開運に鑑みてなされたもので、検
索時間が短くなるデータ検索装置を提供することを目的
としている。
The present invention has been made in view of such good fortune, and an object of the present invention is to provide a data search device that reduces search time.

(問題点を解決するための手段) 本発明は、カウント数をアドレスとして逐次出力するカ
ウンタと、多数のデータをアドレスが変わる毎に個別に
順次読み出すマルチポートメモリと、検索指定データを
書き込むレジスタと、マルチポートメモリから出力され
たデータと検索指定データとを順次比較して、両者が一
致すると一致信号を出力する比較器と、このアドレスを
マルチポートメモリと外部とのどちらか一方に適宜出力
するバス切替回路と、比較タイミング信号によって比較
器を制御する手段、リセット信号1歩進開始信号及び歩
進停止信号によってカウンタを制御する手段、及び、切
替信号によってバス切換回路を制御する手段からなる制
御回路とで構成され、アドレスが変わる毎にマルチポー
トメモリから順次出力されるデータと検索指定データと
を比較して、両者が一致したならば、そのときのカウン
タのカウント数を検索指定データのアドレスとして読み
出すようにしたものである。
(Means for Solving the Problems) The present invention includes a counter that sequentially outputs a count number as an address, a multiport memory that reads a large amount of data individually and sequentially each time the address changes, and a register that writes search specification data. , a comparator that sequentially compares the data output from the multi-port memory and the search specified data and outputs a match signal when the two match, and outputs this address to either the multi-port memory or the outside as appropriate. Control consisting of a bus switching circuit, means for controlling a comparator using a comparison timing signal, means for controlling a counter using a reset signal, a step start signal and a step stop signal, and a means for controlling the bus switching circuit using a switching signal. Compares the data sequentially output from the multiport memory with the search specified data every time the address changes, and if the two match, the count number of the counter at that time is searched at the address of the specified data. It is read out as .

(作 用) 検索指定データのアドレスの検索は付加回路で処理され
るので、検索処理がソフトウェアによる処理よりも高速
になると共に、検索指定データのアドレスを検索してい
る間に、コンピュータは他の処理を並行してできるよう
になる。
(Function) Since the search for the address of the search specified data is processed by an additional circuit, the search process becomes faster than processing by software, and while searching for the address of the search specified data, the computer Processing can be done in parallel.

(実施例) 第1図は本発明の一実施例の構成を示し、第2図は本発
明の一実施例における制御回路の構成を示すもので、1
はコンピュータ、2はカウント数をアドレスとして逐次
出力するカウンタ、3はデータ(ビット列からなる)の
書込み又は読出しを複数のボートに対してそれぞれ独立
して行うマルチポートメモリで、このマルチポートメモ
リ2に第3図に示すように個別に予め書き込まれている
多数のデータは、カウンタ2のアドレスが変わる毎に個
別に順次読み出される。尚、マルチポートメモリ3はア
ドレスバス10とデータバス11とを介してコンピュー
タ1に接続されている。4はコンピュータ1において検
索指定されたデータ〔ビット列からなる(以下検索指定
データという)〕が書き込まれるレジスタで、このレジ
スタ4はアドレスバス10とデータバス11とを介して
コンピュータ1に接続されている。5はマルチポートメ
モリ3から順次読み出されるデータと検索指定データと
を順次比較して1両者が一致すると一致信号を出方する
比較器で、この比較器5はデータバス12を介してマル
チポートメモリ3に、出力データ信号バス13を介して
レジスタ4にそれぞれ接続されている。6はカウンタ2
から出力されたアドレスをマルチポートメモリ3とコン
ピュータ1とのどちらか一方に適宜出力するバス切替回
路で、このバス切替回路6は出力データ信号バス14を
介してカウンタ2に、アドレスバス15を介してマルチ
ポートメモリ3に、データバス11を介してコンピュー
タ1にそれぞれ接続されている。7は、コンピュータ1
から検索信号が入力すると、比較タイミング信号を出力
して比較機5の比較動作を開始させ、比較器5から一致
信号が入力すると、比較タイミング信号の出力を停止し
て比較機5の比較動作を  □停止させる比較制御手段
20と、コンピュータ1から検索信号が入力すると、リ
セット信号を出力してカウンタ2を初期値にリセットし
た上1歩進開始信号を出力して、カウンタ2の歩進を開
始させ、比較器5から一致信号が入力すると1歩進停止
信号を出力して、カウンタ2の歩進を停止させるカウン
タ制御手段21と、コンピュータ1から検索信号が入力
すると、切替信号を出力してカウンタ2のアドレスをマ
ルチポートメモリ3に入力させ、比較器5から一致信号
が入力すると、切替信号を出力してカウンタ2のアドレ
スを検索指定データのアドレスとしてコンピュータ1に
読み出させるバス切換制御手段22とからなる制御回路
で、比較制御手段20.カウンタ制御手段21及びバス
切換制御手段22はそれぞれアドレスバス10とデータ
バス11とを介してコンピュータ1に接続されている。
(Example) FIG. 1 shows the configuration of an embodiment of the present invention, and FIG. 2 shows the configuration of a control circuit in an embodiment of the present invention.
is a computer, 2 is a counter that sequentially outputs the count number as an address, and 3 is a multiport memory that writes or reads data (consisting of bit strings) independently to multiple ports. As shown in FIG. 3, a large number of data that have been individually written in advance are individually and sequentially read out each time the address of the counter 2 changes. Note that the multiport memory 3 is connected to the computer 1 via an address bus 10 and a data bus 11. Reference numeral 4 denotes a register in which data specified for searching in the computer 1 (consisting of a bit string (hereinafter referred to as search specified data)) is written, and this register 4 is connected to the computer 1 via an address bus 10 and a data bus 11. . Reference numeral 5 denotes a comparator that sequentially compares the data sequentially read from the multi-port memory 3 and the search specified data and outputs a match signal when the two match. 3 and the register 4 via an output data signal bus 13, respectively. 6 is counter 2
This bus switching circuit 6 outputs the address output from the multiport memory 3 or the computer 1 as appropriate to either the multiport memory 3 or the computer 1. are connected to the multiport memory 3 and to the computer 1 via a data bus 11, respectively. 7 is computer 1
When a search signal is input from the comparator 5, a comparison timing signal is output to start the comparison operation of the comparator 5, and when a match signal is input from the comparator 5, the output of the comparison timing signal is stopped and the comparison operation of the comparator 5 is started. □When a search signal is input from the comparison control means 20 to stop and the computer 1, a reset signal is output to reset the counter 2 to the initial value, and an upper 1 step start signal is output, and the counter 2 starts incrementing. and when a match signal is input from the comparator 5, it outputs a step stop signal to stop the counter 2 from advancing.When a search signal is input from the computer 1, it outputs a switching signal. Bus switching control means that inputs the address of the counter 2 to the multi-port memory 3, and when a match signal is input from the comparator 5, outputs a switching signal and causes the computer 1 to read the address of the counter 2 as the address of search specified data. 22, a comparison control means 20. Counter control means 21 and bus switching control means 22 are connected to computer 1 via address bus 10 and data bus 11, respectively.

このように構成された本実施例において、コンピュータ
1からレジスタ4に検索指定データが読み込まれて、コ
ンピュータ1から検索信号が出力されると、バス切替制
御手段22から切替信号が出力されて、カウンタ2とマ
ルチポートメモリ3とが出力データ信号バス14及びア
ドレスバス15を介して接続されると同時に、カウンタ
制御手段21からリセット信号が出力されて、カウンタ
2が初期値にリセットされる。その上で、カウンタ制御
手段21から歩進開始信号が出力されて、カウンタ2が
カウントを開始し、マルチポートメモリ3の中に書き込
まれている多数のデータがカウンタ2が歩進する毎に個
別に順次読み出される。そこで、比較器5は、マルチポ
ートメモリ3から順次読み出されたデータとレジスタ4
から読み出された検索指定データとを、比較制御手段2
0から出力される比較タイミング信号に同期して、順次
比較していき、マルチポートメモリ3から読み出された
データとレジスタ4から読み出された検索指定データと
が一致すると、一致信号を出力する。すると、比較制御
手段20から比較タイミング信号が出力されなくなって
、比較器5の動作が停止すると共に。
In this embodiment configured in this way, when the search designation data is read into the register 4 from the computer 1 and a search signal is output from the computer 1, a switching signal is output from the bus switching control means 22, and the counter 2 and the multiport memory 3 are connected via the output data signal bus 14 and the address bus 15, and at the same time, a reset signal is output from the counter control means 21, and the counter 2 is reset to the initial value. Then, the counter control means 21 outputs an increment start signal, the counter 2 starts counting, and each time the counter 2 increments, a large amount of data written in the multi-port memory 3 is individually transferred. are read out sequentially. Therefore, the comparator 5 uses the data sequentially read from the multiport memory 3 and the register 4.
The comparison control means 2 compares the search specification data read from the
They are compared in sequence in synchronization with the comparison timing signal output from 0, and when the data read from the multiport memory 3 and the search specification data read from the register 4 match, a match signal is output. . Then, the comparison timing signal is no longer output from the comparison control means 20, and the operation of the comparator 5 is stopped.

カウンタ制御手段21から歩進停止信号が出力されて、
カウンタ2の歩進が停止する。すると、バス切替制御手
段22から切替信号が出力されて、カウンタ2とコンピ
ュータ1とが出力データ信号バス14及びデータバス1
1を介して接続されて、カウンタ2のカウント数が検索
指定データのアドレスとしてコンピュータ1に読み込ま
れる。
A step stop signal is output from the counter control means 21,
Counter 2 stops advancing. Then, a switching signal is output from the bus switching control means 22, and the counter 2 and the computer 1 switch between the output data signal bus 14 and the data bus 1.
1, and the count number of the counter 2 is read into the computer 1 as an address of search designation data.

この結果、検索指定データのアドレスの検索をソフトウ
ェアで実行する従来のデータ検索装置によれば、検索時
間は750マイクロ秒程度であるが、本発明のデータ検
索装置によれば、同じ条件下で、処理時間は100マイ
クロ秒程度である。
As a result, according to the conventional data search device that searches for the address of search specified data using software, the search time is about 750 microseconds, but according to the data search device of the present invention, under the same conditions, the search time is about 750 microseconds. The processing time is about 100 microseconds.

(発明の効果) 以上説明したように、本発明によれば、検索指定データ
のアドレスの検索は付加回路で処理されるので、アドレ
スの検索処理がソフトウェアによる処理よりも高速にな
る、換言すると検索指定データ検索に要する時間が短く
なると共に、検索指定データのアドレスを検索している
間、コンピュータは他の処理が並行してできるようにな
るという効果がある。
(Effects of the Invention) As explained above, according to the present invention, since the search for the address of the search specified data is processed by the additional circuit, the address search processing becomes faster than the processing by software, in other words, the search This has the effect that the time required to search for specified data is shortened, and that the computer can perform other processes in parallel while searching for the address of search specified data.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明の一実施例における制御回路の構成を示す
ブロック図、第3図は検索データを格納したメモリの構
成を示す図である。 1 ・・・コンピュータ、 2 ・・・カウンタ、3 
・・・マルチポートメモリ、 4 ・・・ レジスタ、
 5 ・・・比較器、 6 ・・・バス切替回路、 7
・・・制御回路、20・・・比較制御手段、21・・・
カウンタ制御手段、22・・・バス切換制御手段。 特許出願人 松下電器産業株式会社 第1図 第2図
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of a control circuit in an embodiment of the present invention, and FIG. 3 is a block diagram showing the configuration of a memory storing search data. FIG. 1...computer, 2...counter, 3
...Multi-port memory, 4 ... Register,
5... Comparator, 6... Bus switching circuit, 7
...Control circuit, 20...Comparison control means, 21...
Counter control means, 22...bus switching control means. Patent applicant: Matsushita Electric Industrial Co., Ltd. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】 カウント数をアドレスとして逐次出力するカウンタと、 予め書き込まれた多数のデータを前記アドレスが変わる
毎に個別に順次読み出すマルチポートメモリと、 検索指定データを書き込むレジスタと、 前記マルチポートメモリから順次読み出されるデータと
前記検索指定データとを順次比較して、両者が一致する
と一致信号を出力する比較器と、前記アドレスを前記マ
ルチポートメモリと外部とのどちらか一方に適宜出力す
るバス切替回路と、検索信号が入力すると、前記比較器
の比較動作を開始させ、前記一致信号が入力すると、前
記比較器の比較動作を停止させる比較制御手段、前記検
索信号が入力すると、前記カウンタを初期値にリセット
した上、前記カウンタの歩進を開始させ、前記一致信号
が入力すると、前記カウンタの歩進を停止させるカウン
タ制御手段、及び、前記検索信号が入力すると、前記ア
ドレスを前記マルチポートメモリに入力させ、前記一致
信号が入力すると、前記アドレスを前記検索指定データ
のアドレスとして前記外部に読み出させるバス切換制御
手段からなる制御回路と、 が具備されていることを特徴とするデータ検索装置。
[Scope of Claims] A counter that sequentially outputs a count number as an address; a multi-port memory that sequentially reads out a large number of pre-written data each time the address changes; a register that writes search designation data; a comparator that sequentially compares the data sequentially read from the port memory and the search specification data and outputs a match signal when the two match; and a comparator that outputs the address to either the multiport memory or the outside as appropriate. a bus switching circuit; a comparison control means for starting the comparison operation of the comparator when the search signal is input and stopping the comparison operation of the comparator when the match signal is input; and a comparison control means for starting the comparison operation of the comparator when the search signal is input; counter control means that resets the counter to an initial value and starts the increment of the counter, and stops the increment of the counter when the match signal is input; and when the search signal is input, the address is a control circuit comprising bus switching control means for inputting the address into a port memory and, when the match signal is input, reading the address to the outside as the address of the search designation data. Search device.
JP62082211A 1987-04-04 1987-04-04 Data retrieving device Pending JPS63249225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62082211A JPS63249225A (en) 1987-04-04 1987-04-04 Data retrieving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62082211A JPS63249225A (en) 1987-04-04 1987-04-04 Data retrieving device

Publications (1)

Publication Number Publication Date
JPS63249225A true JPS63249225A (en) 1988-10-17

Family

ID=13768085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62082211A Pending JPS63249225A (en) 1987-04-04 1987-04-04 Data retrieving device

Country Status (1)

Country Link
JP (1) JPS63249225A (en)

Similar Documents

Publication Publication Date Title
JPS61210478A (en) Vector processing device
JPS63249225A (en) Data retrieving device
JP2865831B2 (en) Parallel string search device
JPS5816263B2 (en) General information
Pramanik et al. A hardware pattern matching algorithm on a dataflow
JPH02109166A (en) Retrieving device for character string
KR0141906B1 (en) Hardware driving device for searching data
JP2735255B2 (en) Hatching treatment method
JPS63201999A (en) Associative storage device
JPH0642248B2 (en) Information retrieval device
JPS61110233A (en) Data processor
JPH04195681A (en) Delimination device
JPS6364123A (en) Data retrieving system
JPS6027058A (en) Direct memory access controller
JPH08101843A (en) Information retrieval device
JPH02157934A (en) Variable length data processor
JPH0752451B2 (en) Information retrieval device
JPH05197778A (en) Logical simulation system
JPH06309233A (en) Data transfer control method of disk controller
JPH02234271A (en) Character string retrieving method
JPS63298466A (en) Data transfer device
JPH01226026A (en) Retrieving circuit
JPS6244838A (en) Instruction fetching device
JPS61264465A (en) Control system for transfer of data
JPS6314232A (en) Information retrieving device