JPS59168559A - Data searching circuit - Google Patents

Data searching circuit

Info

Publication number
JPS59168559A
JPS59168559A JP4275283A JP4275283A JPS59168559A JP S59168559 A JPS59168559 A JP S59168559A JP 4275283 A JP4275283 A JP 4275283A JP 4275283 A JP4275283 A JP 4275283A JP S59168559 A JPS59168559 A JP S59168559A
Authority
JP
Japan
Prior art keywords
data
circuit
magnetic disk
search
read
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
JP4275283A
Other languages
Japanese (ja)
Inventor
Takehisa Miyagi
宮城 剛久
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4275283A priority Critical patent/JPS59168559A/en
Publication of JPS59168559A publication Critical patent/JPS59168559A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To search a data when it is read by extracting the desired data after searching the data read out of a magnetic disk device during transfer of said data to a host device. CONSTITUTION:The identification code on a specific person to be read out is set to a data store circuit 6 from a host device 1, and at the same time the selection signal is sent to a comparator 7 as well as to a magnetic disk device 2 to actuate them. The personal data of a company are read successively out of the device 2 and transferred to the device 1 via a data shift register 5. The data read out of the device 2 are fed successively to the register 5, and the comparator 7 compares the personal identification codes with each other. Then the comparator 7 delivers the coincidence detection signal to an interruption selecting circuit 8 and an OR circuit 9 when the data having an identification code coincident with that set at the circuit 6 is detected. This detection signal is transmitted to the device 1 in the form of an interruption signal INT.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明はデータサーチ回路に係り、特にインク7エース
上VCIP!f別にデータ比較回路を設けることにより
、リード転送中のデータとあらかしめストアしておいた
データとを比較して一致したときにリード・データ転送
を薔了させるようにしたデータサーチ回′路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a data search circuit, and particularly to a VCIP! on INK7ACE! This invention relates to a data search circuit which compares the data being read transferred with the pre-stored data by providing a data comparison circuit for each f, and terminates the read data transfer when they match. .

〔従来技術と問題点〕[Prior art and problems]

磁気ディスク上に格納されているデータは、アドレス情
報十データ情報という形で順次記入されている。したか
つ、て2例えば会社の従業員の、うちから特定の個人の
データを抽出するような場合。
Data stored on a magnetic disk is sequentially written in the form of address information and data information. For example, if you want to extract specific personal data from a company's employees.

まず処理装置(以下どれをホスト装置という)は。First, what is the processing device (hereinafter referred to as the host device)?

磁気ディスク装置から従業員データをリードしてこれを
主メモリに読込み、それから必要とする特定個人のデー
タをサーチする。そしてサーチした結果得られたデータ
を取出してこれを出力するという段階の処理が必要でち
る。そのために、従来では、主メモリにデータを読込ん
でからデータのコンベアに時間がかかりホスト装置への
負荷が非常に大きく、データ処理かおく 1するという
欠点があった。
Employee data is read from the magnetic disk device, read into the main memory, and then the required data of a specific individual is searched. Then, a step of processing is required to extract the data obtained as a result of the search and output it. For this reason, in the past, it took a long time to convey the data after reading it into the main memory, placing a very heavy load on the host device, which had the disadvantage of slowing down data processing.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上記欠点を改善するために。 The purpose of the present invention is to improve the above-mentioned drawbacks.

磁気ディスク装置から読出したデー久をホスト装置に転
送する途中でサーチして、必要とするデータを抽出する
ようにしてデータのサーチをデータのリードのときに実
行するようにしたデータサーチ回路を提供することであ
る。
Provided is a data search circuit that searches data read from a magnetic disk device while it is being transferred to a host device, extracts necessary data, and executes the data search when reading data. It is to be.

〔発明の構成〕[Structure of the invention]

この目的を達成するために本発明のデータサーチ回路で
は処理装置と磁気ディスク装置を具備する1−HE機シ
ステムであって、データサ−チ回路を処理装置と磁気デ
ィスク装置を接続するインタフェース上に配置するとと
もに・、このデータサーチ手段は、サーチデータを保持
するデータ保持回路と、磁気ディスク装置より読出され
子処理装置に転送さ些る転送データが順次シフトさ、れ
るデータシフト回路と、上記サーチデータと上記転送デ
ータを比較するデータ比較回路と、転送終了指示信号発
生回路より構成され、サーチすべきデータがi送データ
から検出されたとき転送終了指示信号発生回路から転送
終了指示信号を磁気ディスク装置に出力して以後のリー
ドデータ転送を停止させるようにしたことを特徴とする
To achieve this objective, the data search circuit of the present invention is a 1-HE machine system comprising a processing device and a magnetic disk device, and the data search circuit is arranged on an interface connecting the processing device and the magnetic disk device. In addition, this data search means includes a data holding circuit that holds the search data, a data shift circuit that sequentially shifts small transfer data read from the magnetic disk device and transferred to the child processing device, and and a transfer end instruction signal generation circuit, and when the data to be searched is detected from the i-sent data, the transfer end instruction signal generation circuit outputs a transfer end instruction signal to the magnetic disk device. This feature is characterized in that the read data is output to stop subsequent read data transfer.

〔発明の実施例〕[Embodiments of the invention]

本発明の一実施例を第1図〜第6図にもとづき説明する
An embodiment of the present invention will be described based on FIGS. 1 to 6.

第1図は本発明のデータサーチ回路の配置状態説明図、
第2図は本発明の一実施例構成図、第3図は本発明の動
作説明図である。
FIG. 1 is an explanatory diagram of the layout of the data search circuit of the present invention;
FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIG. 3 is an explanatory diagram of the operation of the present invention.

図中、1はホスト装置、2は磁気ディスク装置。In the figure, 1 is a host device, and 2 is a magnetic disk device.

6は磁気ディスク制御装置、4はデータサーチ回路、5
線データ・シフトやレジスタ、64−1デ一タ争ストア
回路、乙は比較回路、8はインタ2ブト選択回路、9は
オア回路である゛。
6 is a magnetic disk control device, 4 is a data search circuit, 5 is a magnetic disk controller;
Line data shift and register, 64-1 data contest store circuit, B is a comparison circuit, 8 is an interrupt selection circuit, and 9 is an OR circuit.

データサーチ回路4・はホスト装fllt、1と磁気デ
ィスク装置2とを接続するインタフェース上に設けられ
ており、第2図に示す如く、データ・シフト・レージメ
タ5.データ・ストア回路6.比較回路7゜インタラブ
ド選択回路8.オア回路9等により構成されている。
The data search circuit 4. is provided on the interface connecting the host device fllt, 1 and the magnetic disk drive 2, and as shown in FIG. 2, the data search circuit 4. Data store circuit 6. Comparison circuit 7゜Interwoven selection circuit 8. It is composed of an OR circuit 9 and the like.

データ・シフト・レジスタ5は磁気ディスク装置2から
読出されてホスト装置1に転送きれるデータが次々と入
力されて1順次シフトされるシフト・レジスタである。
The data shift register 5 is a shift register into which data that can be read from the magnetic disk device 2 and transferred to the host device 1 is successively input and shifted one by one.

データ・ストア回、路6は比較すべきデータすなわち識
別データがホスト装置1から送出してこれを保持してお
くものである。比較回路7はデータ・シフト・レジスタ
5上のデータが前記識別データと一致するものであるか
否かを比較するものであり、一致したときこれ、を示す
一致検出信号を出力する。
The data store circuit 6 is for storing data to be compared, that is, identification data sent from the host device 1. The comparison circuit 7 compares whether the data on the data shift register 5 matches the identification data, and when they match, outputs a match detection signal indicating this.

インタラブド選択口−8は比較回路7が一致検出信号を
出力したときはこれを選択して転送終了信号INTとし
て出力し、また磁気ディスク装置2から転送終了信号I
NTが出力されたときこれをそのまま出力するものであ
る。オア回路9は磁気ディスク装置2に対してデータ転
送め中止を求めるターミネート・コントロール信号TC
を出力するものであって、比較回路7から一致検出信号
が出力されたときはこれがオア回路9を経由してTCと
して出力され、また比較回路7から一致検出信号が出力
されない場合にはホスト装置1から出力されたTCをそ
のまま出力する。
When the comparator circuit 7 outputs a coincidence detection signal, the interconnected selection port 8 selects it and outputs it as a transfer end signal INT, and also outputs a transfer end signal I from the magnetic disk device 2.
When NT is output, it is output as is. The OR circuit 9 sends a termination control signal TC requesting the magnetic disk device 2 to stop data transfer.
When a match detection signal is output from the comparison circuit 7, it is output as TC via the OR circuit 9, and when a match detection signal is not output from the comparison circuit 7, it is output from the host device. The TC output from 1 is output as is.

ただし検出信号によるTC出力は、必要があれば出力ま
での時間(バイト数)を指定できるものとする。
However, for the TC output based on the detection signal, the time (number of bytes) until output can be specified if necessary.

次に本発明の動作に2いて、第2図にもとづき磁気ディ
スク装置2から特定の会社の個人のデータを読出す場合
について説明する。
Next, referring to FIG. 2, the operation of the present invention will be explained with reference to FIG.

まずホスト装置1からデータ・ストア回路6に読出すべ
き特定個人の識別コードをセットし、tたセレクト信号
を比較回路7と磁気ディスク装置2に送出してこれらを
動作状態にする。そして磁気ディスク装置2かも会社の
個人のデータを順次読出してこれをデータ・シフト・レ
ジスタ5を経由してホスト装置1に転送さする。
First, an identification code of a specific individual to be read is set in the data store circuit 6 from the host device 1, and a selected select signal is sent to the comparator circuit 7 and the magnetic disk device 2 to put them into operation. The magnetic disk device 2 also sequentially reads data of individuals in the company and transfers it to the host device 1 via the data shift register 5.

したがって磁気ディスク装fj#、2から読出されたデ
ータはデータ・シフト・レジスタ5KM次入力され、比
較回路7においてその識別コードが比較される。そして
データ・ストア回路乙にセットされた識別コードと一致
する識別コードを有するデータが検出されたとき、比較
回路7は一致検出信号をインタラブド選択回路8及びオ
ア回路9に出力する。
Therefore, the data read from the magnetic disk device fj#,2 is input to the data shift register 5KM, and the identification codes thereof are compared in the comparison circuit 7. When data having an identification code matching the identification code set in the data store circuit B is detected, the comparison circuit 7 outputs a match detection signal to the interwoven selection circuit 8 and the OR circuit 9.

このインタラブド選択回路8に出力されたとの一致検出
信号はインタラブド信号工NTとしてホスト装[1に伝
達され、所期のデータが検出されたことを報告する。そ
してこのデータが、データ・シフト−レジスタ5を経由
してホスト装fFlに入力されることになる。またオア
回路9に伝達された一致検出信号は、ターミナル・コン
トロ−5信号TCとして磁気ディスク装置2に出力され
、これにより磁気ディスク装置2はデータ転送を中止す
ることになる。
The coincidence detection signal outputted to the interwoven selection circuit 8 is transmitted to the host device [1 as an interwoven signal NT, and reports that the desired data has been detected. This data is then input to the host device fFl via the data shift register 5. Further, the coincidence detection signal transmitted to the OR circuit 9 is outputted to the magnetic disk drive 2 as a terminal controller 5 signal TC, and the magnetic disk drive 2 thereby stops data transfer.

このようにして磁気ディスク装置2からホスト装置促1
にデータを転送する途中で必要とするデータの有無を検
出することができる。
In this way, the magnetic disk device 2 prompts the host device 1.
The presence or absence of required data can be detected during data transfer.

なお必要とするデータの概略位置があらかじめわかるよ
うな場合には9例えば第2図に点線で示されるサーチ開
始指示回路10を設けておき、磁気ディスク装置2の読
出しデータがその概略位置にきた頃にホスト装R1から
このサーチ開始指示、回路10に対してサーチ開始指示
を行えば、これにより比較回路7が動作して比較を開始
することになり、一致検出を効率的に行うことができる
If the approximate location of the required data is known in advance, a search start instruction circuit 9, for example, shown by a dotted line in FIG. When the host device R1 issues this search start instruction to the circuit 10, the comparator circuit 7 operates and starts the comparison, so that matching can be detected efficiently.

また9例えば転送開始後例バイト目から比較を開始する
ものであるかとか、何バイトまた嬬どのアドレスまで転
送するのかということ等も必要に応じて仁のサーチ開始
指示回路1゛0にセットできるように構成し、ておくこ
ともできる。とれにより比較回路7はあらかじめセット
されていた条件が合うと比較動作を開始し、一致すると
あらかじめセットされていた条件で終了信号であるTC
を磁気ディスク装置2に送出し、インタラブド信号IN
Tとともに送られてくる終了スティタス内容をサーチ完
了報告に変更してホスト装置1に送出するものである。
In addition, information such as whether to start the comparison from the byte after the start of transfer, how many bytes and up to which address to transfer, etc. can be set in the search start instruction circuit 1゛0 as necessary. You can also configure and store it as follows. As a result, the comparison circuit 7 starts the comparison operation when the preset conditions are met, and when they match, the preset conditions are met and the end signal TC is sent.
is sent to the magnetic disk device 2, and an interwoven signal IN is sent to the magnetic disk device 2.
The end status content sent with T is changed into a search completion report and sent to the host device 1.

ところで、第1図のシステムではコマンド実行タイムチ
ャー′トは第3図(イ)〜(ワ)の状態で示される。
By the way, in the system shown in FIG. 1, the command execution time chart is shown in the states shown in FIGS. 3(A) to 3(W).

すなわちコマンドセットが最初にあり9次いでデータ4
をリードするために磁気ディスクへのパラメータ(シリ
ンダ、ヘッド、セクタ等)送出が行われ、これにより第
3図(ハ)に示す如く、リードデーターの転送が行われ
、第3図ト)に示す如く終了スティタスが転送されるこ
とになる。そして第3図(ホ)に示す如く、コマンドセ
ットとともにコマンドの実行を示すピーシ信号BUSY
が出力され、(へ)K示す如くリードデータの転送を報
告する′アテンーンヨンATNが出力され、(ト)に示
す如くデータ転送上ともにトランスファ信号が出力され
る。そしてリードデータの転送終了のときこれを磁気デ
ィスク装置2からホスト装置1にインタ2ブト信号IN
Tが出力されるものである。
i.e. command set first, 9 then data 4
In order to read the data, parameters (cylinder, head, sector, etc.) are sent to the magnetic disk, and as a result, read data is transferred as shown in Figure 3 (c), and as shown in Figure 3 (g). The termination status will be transferred accordingly. Then, as shown in FIG. 3 (e), the command set and the PC signal BUSY indicating the execution of the command.
is output, as shown in (g) K, 'Atenn Yon ATN' is outputted to report the transfer of read data, and as shown in (g), a transfer signal is output together with the data transfer. When the transfer of read data is completed, this is sent from the magnetic disk device 2 to the host device 1 as an interface signal IN.
T is what is output.

ところが、第2図について詳述した如く、データサーチ
回路4が動作して必要とするデータが検出されたとき、
第3図(す)に示す如く一致信号が出力される。これに
よ6 ’1’ Cが磁気ディス1り装置2町山、で皺 に伝達され9.また磁気ディスク装置2から点線で示す
インタラブド信号INTが送出される。そしてこのイン
タラブド信号ととも罠、これまた第3図(ニ)にて点線
で示す如く、終了スティタス信号が転送されるがその終
了ステイfス内容をサーチ完了報告に変更してホスト装
置に送ることに°なる。
However, as described in detail with reference to FIG. 2, when the data search circuit 4 operates and the necessary data is detected,
A coincidence signal is output as shown in FIG. As a result, 6 '1' C is transmitted to the wrinkles by the magnetic disk 1 device 2 Machiyama.9. Further, the magnetic disk device 2 sends out an interlaced signal INT shown by a dotted line. Along with this interwoven signal, an end status signal is also transferred, as shown by the dotted line in FIG. Become.

〔発明の効果〕〔Effect of the invention〕

−このようにして本発明によればデータ転送中に必要と
するデータを検出してその゛前後がホスト装置の主メモ
リに送出することかできる・ので、ホスト装置側でのデ
ータの取扱いが直ちに可能となり。
- In this way, according to the present invention, necessary data can be detected during data transfer and the preceding and following data can be sent to the main memory of the host device, so that the data can be handled immediately on the host device side. It becomes possible.

効率のよいデータ処理を遂行することができる。Able to perform efficient data processing.

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

第1図は本発明のデータサーチ回路の配置状態説明図、
第2図は本発明の一実施例構成図、第3図は本発明の動
作説明図である。 図中、1はホスト装置、2は磁気ディスク装置。 3は磁気ディスク制御装置、4はデータサーチ回路、5
はデータ・シフ)−レジスタ、6はデータ・ストア回路
、7は比較向路、8はインタ2ブト選択回路、9けオア
回路である。 特許出願人 富士通株式会社 代理人弁理士 山 谷 晧 榮 516− : 8 .式 と ヱ 仕 擾  ご
FIG. 1 is an explanatory diagram of the layout of the data search circuit of the present invention;
FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIG. 3 is an explanatory diagram of the operation of the present invention. In the figure, 1 is a host device, and 2 is a magnetic disk device. 3 is a magnetic disk control device, 4 is a data search circuit, 5 is a magnetic disk controller;
is a data shift register, 6 is a data store circuit, 7 is a comparison path, 8 is an interrupt selection circuit, and 9-digit OR circuit. Patent applicant Fujitsu Ltd. Representative Patent Attorney Akira Yamatani 516-: 8. ceremony and ceremony

Claims (1)

【特許請求の範囲】 処理装置と磁気ディスク装置を晶備する計算機システム
であって、データサーチ手段を処理装置と磁気ディスク
装置を接続するインタフェース上に配置するとともに、
このデータサーチ手段は。 サーチデータを保持するデータ保持回路と、磁気ディス
ク装置より読出されて処理装置に転送される転送データ
が111次シフトされるデータシフト回路と、上記サー
チデータと上記転送データを比較するデータ比較回路と
、転送終了指示信号発生回路よシ構成され、サーチすべ
きデータが転送データから検出されたとき転送終了指示
信号発生回路から転送終了指示信号を磁気ディスク装置
に出力して以後のリードデータ転送を停止させるように
したことを特徴とするデータサーチ回路。
[Claims] A computer system equipped with a processing device and a magnetic disk device, wherein data search means is arranged on an interface connecting the processing device and the magnetic disk device,
This data search method. a data holding circuit that holds search data, a data shift circuit that shifts the transfer data read from the magnetic disk device and transferred to the processing device 111 times, and a data comparison circuit that compares the search data and the transfer data. , a transfer end instruction signal generation circuit is configured, and when the data to be searched is detected from the transferred data, the transfer end instruction signal generation circuit outputs a transfer end instruction signal to the magnetic disk device to stop further read data transfer. A data search circuit characterized in that:
JP4275283A 1983-03-15 1983-03-15 Data searching circuit Pending JPS59168559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4275283A JPS59168559A (en) 1983-03-15 1983-03-15 Data searching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4275283A JPS59168559A (en) 1983-03-15 1983-03-15 Data searching circuit

Publications (1)

Publication Number Publication Date
JPS59168559A true JPS59168559A (en) 1984-09-22

Family

ID=12644730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4275283A Pending JPS59168559A (en) 1983-03-15 1983-03-15 Data searching circuit

Country Status (1)

Country Link
JP (1) JPS59168559A (en)

Similar Documents

Publication Publication Date Title
JPS59168559A (en) Data searching circuit
JP2636226B2 (en) Recording medium reader
JPH07101460B2 (en) Code detector
JPS5853791B2 (en) character recognition device
JPH0394322A (en) Method for discriminating identity of noncontact ic card
JPS62236092A (en) Ic card
JPH0564385B2 (en)
JPH01178164A (en) Disk device recognizing system
JPS63268085A (en) Portable memory medium reading and writing device
JPH0371262A (en) Data processor
JPS58114171A (en) Optical character reader
JPH04279973A (en) Character string comparison system
JPH0433147A (en) Data communication device
JPS63148320A (en) Control system for terminal operation procedure
JPH0230542B2 (en)
JPS6337735A (en) Data conversion system in communication processor
JPS6145485A (en) Magnetic bubble memory control device
JPH04342044A (en) Record retrieving device
JPH01233682A (en) Ic card reading system
JPH0737030A (en) Optical character reader
JPH0236415A (en) Printer output processing system
JPH04316159A (en) Slip reading device
JPS6167106A (en) High speed retrieval system of sequence circuit
JPS61127046A (en) Control system for prefetching from data base
JPS58133686A (en) Recognizing system for recording medium