JPS60147838A - Data retrieving device - Google Patents

Data retrieving device

Info

Publication number
JPS60147838A
JPS60147838A JP59004348A JP434884A JPS60147838A JP S60147838 A JPS60147838 A JP S60147838A JP 59004348 A JP59004348 A JP 59004348A JP 434884 A JP434884 A JP 434884A JP S60147838 A JPS60147838 A JP S60147838A
Authority
JP
Japan
Prior art keywords
data
address
signal
input
content
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
JP59004348A
Other languages
Japanese (ja)
Inventor
Hidetoshi Tanaka
英俊 田中
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 Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP59004348A priority Critical patent/JPS60147838A/en
Publication of JPS60147838A publication Critical patent/JPS60147838A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To retrieve data with hardward and at a high-speed bi dividing retrieving data into a KEY section to be retrieved and accompanying DATA section, and checking whether or no registered data coincide with the KEY section. CONSTITUTION:When a WRITE signal is received from a READ/WRITE changeover terminal 6, registration of retrieving data is performed. At the time of the registration, an address generating circuit 2 generates the address of a memory 1 to the KEY section of input data received from a data input terminal 5. When it is detected by a comparator circuit 3 that other data already exist at the address, the counted value of an address counter is increased by (+1) and the data are registered in a vacant address. At the time of data reading out, the address generating circuit 2 generates a memory address to the KEY section of the input data received from the input terminal 5 and the comparator circuit 3 compares the registered data with the KEY section of the input data. When they coincide with each other, a success signal is outputted and, when they do not coincide, (+1) is added to the counted value of the address counter and coincident data are successively retrieved.

Description

【発明の詳細な説明】 (技術分野) 本発明はデータ検索装置に関する。[Detailed description of the invention] (Technical field) The present invention relates to a data retrieval device.

(従来技術) 、。(Prior art).

従来、データ轡索の方法は、ソフトウェア、(工p記述
され、データ轡索用テーブルの確保、デ下りのテーブル
への書込、データのテーブルからの読込、テーブルのア
ドレス計算等をすべてグログラム化しなければならず、
その丸め高速な処理ができないという欠点がある。
Conventionally, the method of data searching has been written in software (programs), and all processes such as securing a table for data searching, writing to the downstream table, reading data from the table, and calculating the address of the table are all done in a program. must,
The drawback is that high-speed rounding processing cannot be performed.

(発明の目的) 本発明の目的は、データ検索の手法をハードウェア化す
ることにより上記欠点′t−解決し、ソフトウェアでの
手続を簡略化し、かつ高速なデータ検索が可能なデータ
検索装置を提供することにある。
(Objective of the Invention) The object of the present invention is to solve the above-mentioned drawbacks by converting the data retrieval method into hardware, simplify software procedures, and provide a data retrieval device capable of high-speed data retrieval. It is about providing.

(発明の構成) 本発明の装置は、検索の対象となるデータを格納する記
憶手段と、前記データの内容に対応して前記記憶手段の
アドレスを指定する第1のアドレス信号を発生し前記記
憶手段に供給する第1のアドレス発生手段と、第2のア
ドレス信号または前記第1のアドレス信号の供給に応答
して前記記憶手段から読み出されたデータと外部から供
給される入力データとを比較し前記読み出されたデータ
の内容が空の場合には第1の信号を発生し前記読み出さ
れ交データの内容が空以外でかつ前記入力データの内容
と一致しない場合には第2の信号を発生し前記読み出さ
れたデータの内容が前記入力データの内容と一致した場
合には第3の信号を発生し外部から読出し信号の供給を
うけてかつ前記第3の信号を発生した場合には前記読み
出されたデータを外部に供給する比較手段と、前記第2
の信号の供給をうけ前記記憶手段に供給されるアドレス
信号の示すアドレスに一定値を加えたアドレスを示す前
記第2のアドレス信号を前記記1手段に供給する第2の
アドレス発生手段と、前記第1の信号と外部より書込み
信号と前記第1または第2のアドレス信号との供給に応
答して前記記憶手段に前記入力データを書き込む書込み
手段とを含んで構成される。
(Structure of the Invention) The apparatus of the present invention includes a storage means for storing data to be searched, and a first address signal for generating an address of the storage means in accordance with the content of the data. Comparing data read from the storage means in response to supply of the first address generation means and the second address signal or the first address signal and input data supplied from the outside. A first signal is generated when the content of the read data is empty, and a second signal is generated when the content of the read data is other than empty and does not match the content of the input data. and when the content of the read data matches the content of the input data, a third signal is generated, and when the read signal is supplied from the outside and the third signal is generated, a comparison means for supplying the read data to the outside; and a comparison means for supplying the read data to the outside;
second address generation means for supplying said second address signal to said first means indicating an address obtained by adding a constant value to the address indicated by the address signal supplied to said storage means; It is configured to include a first signal, a write means for writing the input data into the storage means in response to supply of a write signal and the first or second address signal from the outside.

(実施例) 次に本発明の一実施例について図面を参照して詳細に説
明する。検索データは、検索の対象となるKEY部と、
それに付随するDATA部とに分けられる。KEY部は
、検索の対象となることから。
(Example) Next, an example of the present invention will be described in detail with reference to the drawings. The search data includes the KEY section that is the target of the search,
It is divided into an accompanying DATA section. The KEY section is the target of the search.

おのおののデータに対し、ユニークでなければならない
Must be unique for each piece of data.

例として、社員番号と氏名からなるデータがあるとする
。社員番号はユニークであるとして、この部分t−KE
Y部とする。
As an example, assume that there is data consisting of an employee number and name. Since the employee number is unique, this part t-KE
It will be called the Y section.

社員番号 氏 名 データ1 0123 1)中 #25678 加藤 #32103 伊藤□ ↑ ↑ KEY部 データ部 第1図は本発明の一実施例のブロック図である。Employee number Name Data 1 0123 1) Medium #25678 Kato #32103 Ito□ ↑ ↑ KEY department data department FIG. 1 is a block diagram of one embodiment of the present invention.

第1図のデータ検索装置は、メモリ装置1と、アドレス
発生回路2と、比較回路3と、アドレスカウンタ4とか
ら構成される。
The data retrieval device shown in FIG. 1 is composed of a memory device 1, an address generation circuit 2, a comparison circuit 3, and an address counter 4.

検索には、KEY部部このデータより、アドレス発生回
路2により、KEY部のデータに依存したアドレスが発
生される。このアドレスの指す記憶領域に、検索データ
全体が書き込まれる。前述の検索データの例をとった場
合にアドレス発生口wI2はKEY部である社員番号4
桁の各桁の加算によってアドレスを出力するものとする
と、データ1は6番地、データ2は266番地格納され
る。
For the search, the address generation circuit 2 generates an address depending on the data in the KEY section based on the data in the KEY section. The entire search data is written into the storage area pointed to by this address. In the case of the above search data example, the address source wI2 is employee number 4, which is the KEY department.
Assuming that an address is output by adding each digit, data 1 is stored at address 6 and data 2 is stored at address 266.

5− データ3は6番地となり、データlとシノニムになるが
、KEY部のデータが異るため1次の空番地の7番地に
格納される。
5- Data 3 is at address 6 and is synonymous with data 1, but since the data in the KEY part is different, it is stored at address 7, which is the primary empty address.

次に本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

まず、ルEAD/WルITB切替端子6からWルITE
信号を受信し、検索データの登録を行う。登録は。
First, from the EAD/ITB switching terminal 6 to the ITE
Receive the signal and register search data. What about registration?

データ入力端子5から受信した入力データのKEY部に
対し、アドレス発生口wI2がメモリ装置!上のメモリ
アドレスを発生する。前述の例ではデータlとデータ′
3に対し6.データ2に対し26なるメモリアドレスを
発生する。入力データは、このアドレ長に従って、メモ
リ装置lに書き込まれるが、比較回路古り、すでにその
アドレスに他のデータがあることを検出すると、アドレ
スカウンタ4にIt”加えていき、データが未登録のア
ドレスに達すると、このアドレスにデータを登録する。
For the KEY part of the input data received from the data input terminal 5, the address generation port wI2 is the memory device! Generates the memory address above. In the above example, data l and data ′
6 for 3. A memory address of 26 is generated for data 2. The input data is written to the memory device L according to this address length, but when the comparator circuit is outdated and detects that other data already exists at that address, it adds "It" to the address counter 4, indicating that the data is not registered. When the address is reached, the data is registered to this address.

前述の例ではデータ3が7番地に登録される。データが
未登録の7ドレスがなくなった場合には、オーバー70
−出力端子9にエラー信号が出力される。
In the above example, data 3 is registered at address 7. If there are no more 7 dresses with unregistered data, over 70
- An error signal is output to the output terminal 9.

6一 データを読出す場合は、ルEAD/WRITE切替端子
6から1(BAD信号を受信し、データ入力端子5から
受信する入力データの検索を行う。検索はまずデータ入
力端子5から受信した入力データのKEY部に対し、ア
ドレス発生口wr2がメモリ装置l上のメモリアドレス
を発生する。
When reading 6-1 data, the input data received from the data input terminal 5 is searched by receiving the 1 (BAD signal) from the EAD/WRITE switching terminal 6. The address generation port wr2 generates a memory address on the memory device l for the KEY portion of the data.

比較回wr3がこのアドレスが示すメモリ装置lに登録
されているデータのKEY部と、入力データのKEY部
が同一のものであるか比較する。
A comparison circuit wr3 compares whether the KEY part of the data registered in the memory device l indicated by this address and the KEY part of the input data are the same.

この時、このアドレスが示すメモリ装置lの内容が空で
あれば、その入力データは登録されておらず、検索工2
−とな9、検索結果出力端子8にエラー出力される。
At this time, if the contents of the memory device l indicated by this address are empty, the input data is not registered and the search process 2
- and an error is output to the search result output terminal 8.

空でなければその比較の結果、前記KEY部が一致する
と、検索成功信号を検索結果出力端子8に出力し、一致
しなければ(前述のデータlとデータ3との関係がこの
状態をひきおこす)、アドレスカウンタ4に1を加えて
いき、llliI次入カデータのKEY部と比較し、K
EY部の一致するデータを探す。一致したデータが、メ
モリ装置l上で検索されると、データの内容がデータ出
力端子7に出力される。
If it is not empty, as a result of the comparison, if the KEY section matches, a search success signal is output to the search result output terminal 8, and if they do not match (the relationship between data 1 and data 3 mentioned above causes this state) , add 1 to the address counter 4, compare it with the KEY part of the next input data, and
Search for matching data in the EY section. When matching data is retrieved on the memory device l, the contents of the data are output to the data output terminal 7.

一致するデータがないうちに、メモリ装置l側が空のデ
ータを示すと、検索エラーとなる。
If the memory device l side indicates empty data before there is matching data, a search error will occur.

アドレスカウンタ4は、メモリ装置lの最小アドレスか
ら最大アドレスまでを指すことができ、最大アドレスか
らインクリメントする時は、最小アドレスに戻るものと
する。
The address counter 4 can point from the minimum address to the maximum address of the memory device 1, and when incrementing from the maximum address, returns to the minimum address.

以上の様にして本実施例では外部からはルBAD/Wル
ITE切替信号と入力データを与えるだけで。
As described above, in this embodiment, only the BAD/WITE switching signal and input data are supplied from the outside.

簡単にかつ高速にデータの検索を行うことができる。Data can be searched easily and quickly.

(発明の効果) 本発明には、従来のプログラムによるデータ検索の手法
を、ハードウェア化することにより%格段に簡単でかつ
高速なデータ検索が行うことができるという効果がある
(Effects of the Invention) The present invention has the advantage that data retrieval can be performed much more simply and at high speed by converting the conventional program-based data retrieval method into hardware.

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

第1図は本発明の一実施例を示すブロック図である。 !・・・・・・メモリ装置% 2・・・・・・アドレス
発生回路。 3・・・・・・比m回wr、4・・・・・・アドレスカ
ウンタ、5・・・・・・データ入力端子、6・・・・・
・ルEAD/wルITE切賛端子、7・・・・・・デー
タ出力端子、8・・・・・・検索結果出力端子、9・・
・・・・オーバー7−−出方端子。 9− 茅1 回
FIG. 1 is a block diagram showing one embodiment of the present invention. ! ...Memory device% 2...Address generation circuit. 3... Ratio m times wr, 4... Address counter, 5... Data input terminal, 6...
・EAD/WLE ITE terminal, 7... Data output terminal, 8... Search result output terminal, 9...
...over 7--output terminal. 9- Kaya 1 time

Claims (1)

【特許請求の範囲】 検索の対象となるデータを格納する記憶手段と。 前記データの内容に対応して前記記憶手段のアドレスを
指定する第1の7ドレス信号を発生し前記記憶手段に供
給する第1のアドレス発生手段と。 第2のアドレス信号または前記第1のアドレス信号の供
給に邪答して前記記憶手段から読み出されたデータと外
部から供給され、る入力データとを、比較し前記読み出
されたデータの内容が空の場合には第1の信号を発生し
前記、読み出されたデータの内容が空以外でかつ前記入
力データの内容と一致しない場合には第2の信号を発生
し前記読み出されたデータの内容が前、記入カデニタの
内容と一致した場合には第3の信号を発生し外部から続
出し信号の供給をうけてかつ前記第3の信号を発生し友
場合には前記読み出されたデータ會外部に供給する比較
手段と。 前記第2の信号の供給をうけ前記記憶手段に供給される
アドレス信号の示すアドレスに一定値を加えたアドレス
を示す前記第2のアドレス信号を前記記憶手段に供給す
る第2のアドレス発生手段と。 前記第1の隼号へ外部より書込み信号と前記第1または
第2のアドレス計算との供給に応答して前記記憶手段に
前記入力データを書き込む書伶み手段とを含むこと(q
#徴とするデータ検索装置。
[Claims] A storage means for storing data to be searched. first address generation means for generating and supplying a first seven address signal to the storage means for specifying an address of the storage means in accordance with the content of the data; Comparing the data read from the storage means in response to the supply of the second address signal or the first address signal and the input data supplied from the outside, the content of the read data If the read data is empty, it generates a first signal, and if the content of the read data is other than empty and does not match the content of the input data, it generates a second signal. If the content of the data matches the content of the previous input capacitor, a third signal is generated. and comparison means for supplying the data outside the association. second address generation means for supplying to the storage means the second address signal indicating an address obtained by adding a constant value to the address indicated by the address signal supplied to the storage means in response to the second signal; . (q
A data retrieval device with # characteristics.
JP59004348A 1984-01-13 1984-01-13 Data retrieving device Pending JPS60147838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59004348A JPS60147838A (en) 1984-01-13 1984-01-13 Data retrieving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59004348A JPS60147838A (en) 1984-01-13 1984-01-13 Data retrieving device

Publications (1)

Publication Number Publication Date
JPS60147838A true JPS60147838A (en) 1985-08-03

Family

ID=11581913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59004348A Pending JPS60147838A (en) 1984-01-13 1984-01-13 Data retrieving device

Country Status (1)

Country Link
JP (1) JPS60147838A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5097722A (en) * 1989-08-29 1992-03-24 Kabushiki Kaisha Daikin Seisakusho Liquid viscous damper

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5097722A (en) * 1989-08-29 1992-03-24 Kabushiki Kaisha Daikin Seisakusho Liquid viscous damper

Similar Documents

Publication Publication Date Title
CA1081850A (en) Comparing apparatus for variable length word
JPS62180596A (en) Memory circuit allowed to address pseudo contents
JP3141866B2 (en) Associative memory device and associative memory search method
JPH024026B2 (en)
JPS60147838A (en) Data retrieving device
US4332014A (en) Data retrieval system
US3271745A (en) Register search and detection system
JPS6014324A (en) Associative storage device
JPH04279973A (en) Character string comparison system
JPS6145273B2 (en)
JPS60211540A (en) Data retrieval circuit
JPH0475551B2 (en)
JPS61177700A (en) Composite association memory
JPH06103307A (en) Retrieval speeding-up method for structured data base
JPS6145485A (en) Magnetic bubble memory control device
JPH1173353A (en) Transaction retrieval processor based on specified time
JP2679619B2 (en) Nested message search device
JPS6143734B2 (en)
JPH0218638A (en) Data control system
JPS622317A (en) Multilevel comparison and coincidence detecting circuit
JPH06251589A (en) Associative memory input/output control circuit
JPS6243731A (en) Retrieval auxiliary device
JPH04101272A (en) Data element retrieving method
JPS6029671A (en) Sequence controlling circuit
JPH02230463A (en) Memory searching circuit