JPH03147036A - Variable length data processor - Google Patents

Variable length data processor

Info

Publication number
JPH03147036A
JPH03147036A JP1285659A JP28565989A JPH03147036A JP H03147036 A JPH03147036 A JP H03147036A JP 1285659 A JP1285659 A JP 1285659A JP 28565989 A JP28565989 A JP 28565989A JP H03147036 A JPH03147036 A JP H03147036A
Authority
JP
Japan
Prior art keywords
comparison
data
condition
word
record
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
JP1285659A
Other languages
Japanese (ja)
Inventor
Makoto Kimura
誠 木村
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP1285659A priority Critical patent/JPH03147036A/en
Publication of JPH03147036A publication Critical patent/JPH03147036A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To speed up the extraction processing or a record which fits a condition by executing the specific processing of data concerned in the setting of the condition, and the discrimination processing of a condition compatibility as to specified data in a process where word constitution data in respective variable length records are sequentially read one by one. CONSTITUTION:A comparator 44 compares a count value from a counter CNT with the number of digits from a comparison digit number register Ra. When they coincide, the comparator outputs the coincidence signal to a condition comparison circuit 43 as a comparison termination instruction signal. The condition comparison circuit 43 compares read data from a read data buffer Bu with a comparison word from a comparison word register Rc with the detection signal of a record start code from a delimiter detection circuit 42 as a comparison start instruction signal, and discriminates whether the compared result satisfies the condition from a condition setting register Rb. Then, the discriminated result is outputted to an address generation circuit 41.

Description

【発明の詳細な説明】 II産業上の利用分野] この発明は、デリミタコート等の区切データで区分され
た可変長データを処理する処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION II. INDUSTRIAL APPLICATION FIELD The present invention relates to a processing device that processes variable length data divided by delimiter data such as delimiter coats.

[発明の概要] この発明は、複数の可変長レコードの中から、所定のワ
ードが所定の条件を満足するレコードを抽出する可変長
データ処理装置において、条件設定像るデータの特定処
理を行う回路と、この回路にて特定されたデータについ
て条件適合性を判別する比較回路とを設け、これら各回
路による処理が、各可変長レコード内の各ワード企構成
するワード構成データを1つずつシーケンシャルに読出
している過程で実行されるようにして、条件に適合する
レコードの抽出処理の高速イヒを14つなものである。
[Summary of the Invention] The present invention provides a circuit for specifying data based on condition settings in a variable-length data processing device that extracts a record in which a predetermined word satisfies a predetermined condition from among a plurality of variable-length records. and a comparison circuit that determines whether the data specified by this circuit conforms to the conditions. There are 14 ways to quickly extract records that meet the conditions by being executed during the reading process.

[従来の技術] 従来、多数のレコーlくの中から所定の条件を満足する
レコードを抽出する場合、ソフトウェアでこれを実現し
ていた。
[Prior Art] Conventionally, when extracting a record that satisfies a predetermined condition from among a large number of records, this has been achieved using software.

すなわち、レコードが固定長の場合、 ■各しコードを)煩次読出して抽出条件を満足するか否
かを判別する。
That is, if the record has a fixed length, (1) each code is read out repeatedly to determine whether the extraction conditions are satisfied.

(め抽出条件を満足するレコードを出力する、というス
テップで実現していた。
(This was achieved by outputting records that satisfy the extraction conditions.

また、レコードが可変長の場合は、 ■レコード区切コードを見つける、 ■見つけたレコード区切コードに基づいて1可変長レコ
ードを切出す、 ■切出した可変長レコードについて、抽出条件を満足す
るか否かを判別する、 ■抽出条件を満足する可変Jそlノコードの場合は、そ
の可変長レコードを出力する、 というステップで実現していた。
In addition, if the record is variable length, ■ Find the record delimiter code, ■ Extract one variable length record based on the found record delimiter code, ■ Check whether the extracted variable length record satisfies the extraction conditions. This was accomplished through the following steps: 1) If there is a variable-length code that satisfies the extraction conditions, output that variable-length record.

「発明が解決しようとする課題1 この様に、レコードか可変長の場合は、ステップ数が多
くなるなめ、固定長レコードの場合に比べて処理速度が
低下していな9 この原因は、可変長レコードのため、レニ1−ドの区切
りに基づいてレコードを特定する処理か追加され、その
レコード特定処理と抽出条件に適合性するレコードの抽
出処理とを、時系列的にしか実行できないことに起因す
る。
``Problem to be solved by the invention 1 In this way, in the case of variable-length records, the processing speed is lower than in the case of fixed-length records because the number of steps increases.''9 The reason for this is that This is due to the fact that the record identification process and the process of extracting records that match the extraction conditions can only be executed in chronological order. do.

してみれば、レコード特定処理、より厳;÷4;に占え
ば、抽出条件との適合性の判断対象となるデータの特定
処理と、レコード抽出処理とを4L行的に実行できれば
、迅速化がIAれることは明らかである。
Considering this, record identification processing is more strict; ÷ 4; if we can perform the identification processing of the data subject to judgment of compatibility with the extraction conditions and the record extraction processing in a 4L manner, it will be faster. It is clear that IA is applied.

この発明の課題は、抽出条件が設定されたデータの特定
処理と、レコード抽出処理とをaf=−行的に実行でき
るようにすることである。
An object of the present invention is to enable data identification processing for which extraction conditions are set and record extraction processing to be executed in an af=- row manner.

[課題を解決するための手段J この発明の手段は次の通りである。[Means to solve the problem J The means of this invention are as follows.

第1の記憶手段A(第1図の機能11777図を参照、
以下同じ)は、各レコード、及び各レコード中の各ワー
ドが所定の区切データで区切られてなる複数の可変長レ
コードを記憶する。
First storage means A (see function 11777 diagram in FIG. 1,
(the same applies hereinafter) stores a plurality of variable length records in which each record and each word in each record is separated by predetermined delimiter data.

第2の記憶手段Bは、第1の記憶手段Aから抽出すべき
可変長レコードの所定のワードの条件を記憶する。
The second storage means B stores the conditions of a predetermined word of the variable length record to be extracted from the first storage means A.

読出回路Cは、第1の記憶手段Aから各可変長し7−ド
を構成する上記区切コード、及び各ワードの各ワード構
成データを1つずつ連続的に読出す。
The readout circuit C continuously reads out the delimiter codes constituting each variable length code and each word configuration data of each word from the first storage means A one by one.

検出回路りは、読出回路Cにて順次読出されてくるデー
タを順次チェックし、条件設定に係るワードの区切デー
タを検出する。
The detection circuit sequentially checks the data sequentially read out by the reading circuit C and detects word delimiter data related to condition setting.

比較回路Eは、検出回路りにて検出された区切データに
続いて読出された条件設定に係るワードのワード構成デ
ータと、第2の記憶・r−段Hに記憶された条件とを1
デ一タ!b位で比較する。
The comparison circuit E compares the word configuration data of the word related to the condition setting read out subsequent to the delimiter data detected by the detection circuit with the condition stored in the second storage r-stage H.
Data! Compare at rank b.

出力手段Fは、比較回路Hによる比較の結果、条件が一
致するとき、当該ワードを3むi’if変J是レコード
を順次出力する9 [作 用1 この発明の手段の作用は次の通りである9今、第1の記
憶手段Aは、各レコードがレコードスタートコートで区
切られ、各レコード中の各ワードがワード区切コードで
区切られてなる複数の可変長レコードを記憶しているも
のとする。
When the conditions match as a result of the comparison by the comparator circuit H, the output means F sequentially outputs an i'if change record that includes the word in question. 9 Now, assume that the first storage means A stores a plurality of variable length records, each record separated by a record start code, and each word in each record separated by a word delimiter code. do.

また、第2の記憶手段Bは、第1の記憶・L段Aから抽
出すべき可変長レコードのキーワード(各レコードスタ
ートコードの直後に格納されている10進2桁の数値デ
ータ)の条件として、パ25以−h”を記憶しているも
のとする。
In addition, the second storage means B stores keywords (2-digit decimal numerical data stored immediately after each record start code) of the variable-length record to be extracted from the first storage L stage A as a condition. , P25~h'' are stored.

この状態で、第1の記憶手段Aから各可変長1゜コード
を構成するト記区切コード、及び各ワードの各ワード構
成データが、読出回路Cにより1つずつ連続的に読出さ
れている過程で、検出回路1〕は、そのデータを順次チ
ェックし、条件設定に係るキーワードを1−ν定ずべく
、レコードスタートコードを検出する。すなわち、読出
し処理と検出処I’1gとは、同時並行して進められて
いる。
In this state, the delimiter codes constituting each variable length 1° code and the word configuration data of each word are successively read out one by one by the reading circuit C from the first storage means A. Then, the detection circuit 1] sequentially checks the data and detects the record start code in order to determine the keyword related to the condition setting. That is, the reading process and the detection process I'1g are being carried out simultaneously and in parallel.

そして、比較回路Eは、検出回路りにてレコー1くスタ
ートコードが検出されると、それにに続いて読出された
キーワードのワード構成データと、第2の記憶ニド段B
に記憶された条件とを1デ一タ単位で比較する。すなわ
ち、先ず先に読出された10”の位の数値データと、条
件25以L”の’ 10 ”の位の数値データ“2“と
を比較する。
When the start code of record 1 is detected by the detection circuit E, the comparison circuit E stores the word configuration data of the keyword read out subsequently and the second storage stage B.
The conditions stored in the data are compared on a data-by-data basis. That is, first, the numerical data of the 10" digit read out first is compared with the numeric data "2" of the 10" digit of the condition 25 to L".

そして、その次に読出された°゛1°°の位の数値デー
タと、条件゛25以上パの°“】”の位の数値データパ
5”とを比較する。この比較処理も+4記読出し処理、
検出処理と同時並行して進められている。
Then, the next read numerical data in the 1°° position is compared with the numerical data in the 5th place under the condition ``25 or more. ,
This is being carried out concurrently with the detection process.

出力手段■7は、比較回路Eによる比較の結果、条件が
一致するとき、すなわち、読出したキーワードが゛″2
525以上−ワードのときは、そのキーワードを含む可
変長レコードを順次出力する9この出力処理も、上記読
出し処理、検出処理。
Output means (7) outputs when the conditions match as a result of the comparison by the comparison circuit E, that is, the read keyword is "2".
If it is 525 or more words, variable-length records containing that keyword are sequentially output.9 This output process is also the above-mentioned read process and detection process.

比較処理と同時並行して進められている9すなわち、読
出し処理が中断されることなく連続的に行われている過
程で、上記読出し処理、検出処理、比較処理、出力処理
も同時に行われており、連続的な読出し処理が完了する
のとほぼ同時に、目的のレコード抽出処理も完了する。
In other words, the readout process, detection process, comparison process, and output process are also being performed at the same time in the process in which the readout process is being performed continuously without interruption. , the target record extraction process is also completed almost simultaneously with the completion of the continuous read process.

bでって、抽出条件が設定されたデータの特定処理と、
レコード抽出処理とを並行的に実行できる。
b, specifying data for which extraction conditions have been set,
Record extraction processing can be executed in parallel.

[実施例] 以下、実施例を第2図ないし第5図を参照しながら説明
する。
[Example] Hereinafter, an example will be described with reference to FIGS. 2 to 5.

ハ 第2図は、実施例による可変長データ処理装置の概略ブ
ロック構成図である。
C. FIG. 2 is a schematic block diagram of a variable length data processing device according to an embodiment.

この可変長データ処理装置は、CPUIの制御の下に、
可変長データ形式でRAM21でファイル処理等の各種
のデータ処理業務を行うものである。これら処理を行う
際、ファイルを形成する可変長レコード■Yの中から指
定条件を満足するiir変長レコードを抽出するときは
、ローカルRAM3、及びデータ抽出部4が活用される
This variable length data processing device is under the control of the CPUI.
Various data processing operations such as file processing are performed in the RAM 21 in variable length data format. When performing these processes, the local RAM 3 and the data extraction unit 4 are utilized to extract an IIR variable length record that satisfies the designated conditions from among the variable length records Y forming the file.

R,A M 2 、)、に形成されたり変長レコード形
式のファイルでは、各可変長レコード、及び可変長ワー
ドは、夫々データの区切りを示すデリミタコードにより
区切られている。このデリミタコードとしては、第3図
にシンボルで示した“(°゛等があり、”(”はレコー
ドスタートコード、°はワードエンドコードを示してい
る9CP LJ 1は、上記指定条件を満足する可変長
レコードの抽出対象となるファイルを、RAM2かt)
l″77−カルRM 3に転送して展開する。
In a variable-length record format file, each variable-length record and variable-length word is separated by a delimiter code that indicates data separation. This delimiter code includes symbols such as "(°゛" shown in Figure 3, where "(" indicates the record start code and ° indicates the word end code. 9CP LJ 1 satisfies the above specified conditions. The file from which variable-length records are to be extracted is RAM2 or t)
Transfer to l''77-Cal RM 3 and develop.

データ抽出部4は、ローカルRAM3に展1mされたフ
ァイルに対して、上記レコード抽出処理を実行する。
The data extraction unit 4 executes the record extraction processing described above for the file expanded to 1 m in the local RAM 3.

このデータ抽出部4は、アドレス発生回路41、リード
バッファB 11−デリミタ検出回路42、条件比較回
路43、カウンタCNT、比較器44、比較桁数レジス
タRa、条件レジスタRb 、比較ワードレジスタRc
を有している。
The data extraction section 4 includes an address generation circuit 41, a read buffer B11-delimiter detection circuit 42, a condition comparison circuit 43, a counter CNT, a comparator 44, a comparison digit number register Ra, a condition register Rb, and a comparison word register Rc.
have.

アドレス発生回路41は、ローカルRA M 3に展開
されたファイルの可変長レコードデータをアクセスすべ
く、アクセスアドレスを発生する。このアクセスアドレ
スは、アドレスバスABを介してローカルRA M 3
に出力され、そのアドレスエリアのデータは、データバ
スDBを介してリードバッファBuに格納され、デリミ
タ検出回路42、及び条件比較回路43に出力される。
The address generation circuit 41 generates an access address to access the variable length record data of the file developed in the local RAM 3. This access address is transferred to the local RAM 3 via the address bus AB.
The data in the address area is stored in the read buffer Bu via the data bus DB, and is output to the delimiter detection circuit 42 and the condition comparison circuit 43.

テ゛リミタ検出回路42は、レコードスタートコードを
検出すると、その旨の信号をカウンタCN1゛、及び条
件比較回路43に出力すると共に、各種のデリミタコー
ドをアドレス発生回路41に出力する。すると、条件比
較回路43は、レコードスタートコードの検出信号に基
づいて、所定の条件比較処理を開始する。
When the delimiter detection circuit 42 detects the record start code, it outputs a signal to that effect to the counter CN1' and the condition comparison circuit 43, and also outputs various delimiter codes to the address generation circuit 41. Then, the condition comparison circuit 43 starts a predetermined condition comparison process based on the record start code detection signal.

カウンタCNTは、デリミタ検出回路42がらのレコー
ドスタートコードの検出信号によりリセットされ、その
次のワード、すなわちキーワードについて、データ数(
桁数・語数)をカウントし、そのカウント値を比較器4
4に出力する。
The counter CNT is reset by the detection signal of the record start code from the delimiter detection circuit 42, and for the next word, that is, the keyword, the number of data (
(number of digits, number of words), and compares the count value with comparator 4.
Output to 4.

比較桁数レジスタRa、条件レジスタRb、比較ワード
レジスタRcには、夫々、比較桁数、条件、比較ワード
がCPUIの制御の下にセットされている1例えば、キ
ーワードが10進2桁の数値データの場合に、25以−
トのキーワードのレコードを抽出しないときは、図示省
略したキー人力部より、比較桁数として′2°°、条件
として“コ゛。
In comparison digit number register Ra, condition register Rb, and comparison word register Rc, the number of comparison digits, condition, and comparison word are set respectively under the control of CPUI.1For example, the keyword is 2-digit decimal numerical data. 25 or more in case of
If you do not want to extract a record for the target keyword, use the key manual section (not shown) to set the number of digits for comparison to '2°' and the condition to 'co'.

、比較ワードとして25”を指定入力すると、これらが
c P LJ iの制御の下に対応のレジスタにセット
される。すなわち、比較桁数レジスタRa内の比較桁数
は、比較器44に出力され、条件レジスタr(b、比較
ワードレジスタRc内の条件、比較ワードは、条件比較
回路43に出方される。
, 25'' as the comparison word is set in the corresponding register under the control of c P LJ i. In other words, the number of comparison digits in the comparison digit number register Ra is output to the comparator 44. , condition register r(b, condition and comparison word in comparison word register Rc are output to condition comparison circuit 43.

そこで、比較器44は、カウンタCN Tがらのカウン
ト値と、比較桁数レジスタRaからの桁数とを比較し、
一致したときは、その一致信号を比較終了指示信号とし
て条件比較回路43に出力する。すなわち、デリミタ検
出回路42、ILI咬器・′14、カウンタCN”F、
及び比較桁数レジスタ17;lは、抽出条件が設定され
たキーワードの特定処理を行っている。
Therefore, the comparator 44 compares the count value from the counter CN_T and the number of digits from the comparison digit number register Ra,
When a match occurs, the match signal is output to the condition comparison circuit 43 as a comparison end instruction signal. That is, the delimiter detection circuit 42, the ILI articulator '14, the counter CN'F,
and comparison digit number register 17;l performs processing for specifying keywords for which extraction conditions are set.

一方、条件比較回路43は、上記デリミタ検出回路42
からのレコードスタートコートの検出信号を比較開始指
示信号として、リードデータバ・ソファB uからのリ
ードデータと比較ワードレジスタRcからの比較ワード
・とを比較し、その比較結果が条件設定レジスタ[でl
)からの条件を満足しているかを判別する。そして、F
JIj別結果をアドレス発生回路41に出力する。
On the other hand, the condition comparison circuit 43 is connected to the delimiter detection circuit 42.
The read data from the read data bar Sofa Bu is compared with the comparison word from the comparison word register Rc using the detection signal of the record start coat from the buffer as a comparison start instruction signal, and the comparison result is stored in the condition setting register l
) is satisfied. And F
The JIj-specific results are output to the address generation circuit 41.

アドレス発生回路41は、この判別結果に基づいて、条
件を満足するキーワードを含むレコーF・のみをローカ
ルRAM3の所定エリアに抽出(書込む)すべく、ライ
トアドレスを生成する。この際、ライトアドレスレジス
タWAI、〜■A2を活用する。また、リードする場合
は、リードアドレスレジスタF(Aを活用する9なお、
アドレス発生回路41は、CP LJ 1の指示に基づ
いて、アI・レス発生を開始し、デリミタ検出回路/′
12から所定時間以上、デリミタの検出信号が入力され
たくなったとき等にアドレス発生を停止する。
Based on this determination result, the address generation circuit 41 generates a write address in order to extract (write) only the record F that includes the keyword that satisfies the condition into a predetermined area of the local RAM 3. At this time, the write address registers WAI, ~■A2 are utilized. In addition, when reading, use read address register F (A).
The address generation circuit 41 starts generating an address based on the instruction from the CP LJ 1, and the delimiter detection circuit /'
12, address generation is stopped when a delimiter detection signal is desired to be input for a predetermined period of time or more.

上記アドレス発生回路4Iによるデータアクセス処理、
デリミタ検出回路42、比較器44′!!Fによる抽出
条件が設定されたキーワードの特定処理、抽出条件適合
性のチェック処理等は、同時並行的に実行される。
Data access processing by the address generation circuit 4I,
Delimiter detection circuit 42, comparator 44'! ! The process of specifying a keyword for which an extraction condition has been set, the process of checking the suitability of the extraction condition, etc. by F are executed simultaneously in parallel.

次に第3図ないし第5図を参照しながら実施例の動作を
具体的に説明する。
Next, the operation of the embodiment will be specifically explained with reference to FIGS. 3 to 5.

今、第3図(a)に示したような可変長レコードデータ
がローカルRAM3に格納されており。
Currently, variable length record data as shown in FIG. 3(a) is stored in the local RAM 3.

比較桁数レジスタRa、条件レジスタRb、比較ワード
レジスタRcには、第4図に示したように、25以上の
キーワードのレコードを抽出すべく、夫々、比較桁数”
2”、条件“≧”、比較ワード゛25”°がセットされ
ているものとする。なお、第3図の枠外の数値は、ロー
カルRAMB上のアドレスを示し、第3図(a)ではリ
ードアドレス、第3図(b)ではライトアドレスを意味
している9 まず、アドレス発生回路41により発生され、リードア
ドレスレジスタRAにセットされたり一ドアトレス゛′
0°°に基づいて、1コーカルF? A M 3からレ
コードスタートコード”(”が読出され、リードバッフ
ァBuに格納されろく第5図”a”b”、第3図参照)
、この際、比較開始指示信号がテ′リミタ検出回1?1
2から条件比較回fl?f43に出力される。また、ラ
イトアドレス゛100°。
As shown in FIG. 4, the comparison digit number register Ra, condition register Rb, and comparison word register Rc each contain the comparison digit number "" in order to extract records with keywords of 25 or more.
2", the condition "≧", and the comparison word "25"° are set. Note that the numbers outside the frame in FIG. 3 indicate addresses on the local RAMB, and in FIG. 3(a) they mean read addresses and in FIG. 3(b) they mean write addresses. is generated and set in the read address register RA or single address ''
Based on 0°°, 1 cocal F? The record start code "(") is read from A M 3 and stored in the read buffer Bu (see Figure 5 "a" and "b", Figure 3)
, At this time, the comparison start instruction signal is 1?1 when the limiter is detected.
Conditional comparison times fl from 2? It is output to f43. Also, the write address is 100°.

は、ライトアドレスレジスタWAIかちライトアドレス
レジスタWA2に退避される(第5図“C参照)。
is saved in the write address register WAI and the write address register WA2 (see "C" in FIG. 5).

そして、次のリードアドレス゛1゛で実デーダ゛2“°
が読出され、リードバッファBuに格納される(第5図
“°dパ、 e 、第3図参照)。そこで、条件比較回
路43は、上記比較開始指示信号に基づいて比較処理を
開始する。
Then, at the next read address “1”, the actual data “2”° is read.
is read out and stored in the read buffer Bu (see FIG. 5, "°d, e", and FIG. 3).The condition comparison circuit 43 then starts comparison processing based on the comparison start instruction signal.

すなわち、条件比較回路43は、リードバッファBuを
介して入力された2°゛と、比較ワードレジスタRcか
らの比較ワード°’ 25 ”のうちの」三位桁“2′
°とを比較し、条件レジスタRbからの条件゛≧°゛を
満足するか否かを判別する〈第5図”e  、”f”参
照)、この場合は条件に一致するので、条件比較回路4
3は、一致信号をアドレス発生回路41に出力する。す
ると、アドレス発生回路41は、次のライト期間では、
次のライトアドレス“°101°′を発生し、ライトア
ドレスレジスタWAIにセットする(第5図“g゛参照
次のリートアドレス゛°2”に基づいてリードされた実
デーダ゛1”は、比較ワード゛’ 25 ”のうちの下
位桁” 5 ”とを比較されるが、この下位桁“5゛よ
り小さく条件“≧°゛を満足しないので、条件比較回路
43は、不一致信号をアドレス発生回路41に出力する
(第5図”h”   ’“i ”°゛j°“、第3図参
照)、すると、アドレス発生回路41は、次のライト期
間では、ライトアドレスレジスタWA2に退避しておい
なライトアドレス“100”をライトアドレスレジスタ
WAIに戻ず(第5図” k ”参照)。
That is, the condition comparison circuit 43 compares the third digit "2" of the comparison word "25" inputted through the read buffer Bu and the comparison word "25" from the comparison word register Rc.
° and determines whether the condition ゛≧°゛ from the condition register Rb is satisfied (see "e" and "f" in Figure 5). In this case, since the conditions match, the condition comparison circuit 4
3 outputs a match signal to the address generation circuit 41. Then, in the next write period, the address generation circuit 41
Generates the next write address "°101°" and sets it in the write address register WAI (see Figure 5 "g"). The lower digit ``5'' of ``25'' is compared, but the lower digit ``5'' does not satisfy the condition ``≧°'', so the condition comparison circuit 43 sends a mismatch signal to the address generation circuit 41. Then, in the next write period, the address generation circuit 41 outputs the write address that has been saved in the write address register WA2. The address "100" is not returned to the write address register WAI (see "k" in FIG. 5).

そして、本実施例では、レコードスタートコードの次の
キーワードのみに抽出条件が設定されているので、次の
レコードスタートコードが読出されるまでライトアドレ
スは更新されず、ライトアドレスレジスタWAIに戻さ
れたライトアドレス” t o o”はロックされた状
態となる(第5図°″!°′参照)。
In this embodiment, since the extraction condition is set only for the keyword next to the record start code, the write address is not updated until the next record start code is read, and the write address is returned to the write address register WAI. The write address "t o o" is in a locked state (see Figure 5 °''!°').

そして、リードアドレス゛10°゛により次のレコード
スタートコードが読出されると、それはロックされてい
たライトアドレス゛’100”に書込まれ、ライトアド
レス“100°°は、ライトアドレスレジスタWAIか
らライトアドレスレジスタWA2に退避される(第5図
” rn    nO゛参照)。
Then, when the next record start code is read by the read address "10°", it is written to the locked write address "100", and the write address "100°" is transferred from the write address register WAI to the write address register. It is saved to WA2 (see "rnnO" in Figure 5).

次にリードされたキーワード“” 28 ”は、上位桁
(10の位)、下位桁(1の位)ともに比較ワード“°
25°°の各桁の数値以上の数値であり、比較条件“≧
°゛を満足するので、キーワード゛28”の上位桁“2
”、下位桁°“8”がリードされたときは、共に条件比
較回路43がちは一致信号が出力されるので、上記のよ
うなライトアドレスのロック等は行われず、当該レコー
ドの各データは、レコードスタートコードが書込まれた
ライトアドレス゛°100°°より後ろのアドレスに順
次書込まれていく。
The next leading keyword “” 28 ” has the comparison word “°” in both the upper digit (tens digit) and lower digit (1s digit).
The value is greater than or equal to the value of each digit of 25°°, and the comparison condition “≧
Since °゛ is satisfied, the upper digit "2" of the keyword "28"
", when the lower digit "8" is read, the condition comparison circuit 43 outputs a match signal, so the write address is not locked as described above, and each data of the record is The record start code is sequentially written to addresses after the written write address ゛°100°°.

すなわち、抽出条件を満足しないキーワードがリードさ
れたときは、ライトアドレスを現在のレコードスタート
コードのライトアドレスに固定しておき、次のレコード
スタートコードを固定されたライトアドレスに書込むこ
とにより、抽出条件を満足するキーワードが含まれたレ
コードのみを、ローカルRAM3の所定エリアに書込ん
でいく。
In other words, when a keyword that does not satisfy the extraction conditions is read, the write address is fixed to the write address of the current record start code, and the extraction is performed by writing the next record start code to the fixed write address. Only records containing keywords that satisfy the conditions are written into a predetermined area of the local RAM 3.

なお、第5図には示されていないが、キーワードの“1
0”の位の数値が“2°°未溝のときは、それだけで抽
出条件である°゛2525以上足しないことが明らかな
ので、” l ”の位の比較処理は省略し、上記のよう
な不一致の場合の処理を行っている。
Although not shown in Figure 5, the keyword “1”
If the numerical value in the digit ``0'' is not equal to ``2°,'' it is obvious that the extraction condition of 2525 or more cannot be added, so the comparison process in the digit ``l'' is omitted and the above Handling the case of mismatch.

上記の説明及び第5図から明らかなように、可変長デー
タのアクセス処理、抽出条件が設定されたキーワードの
特定処理、そのキーワードと抽出条件との比較・一致検
出処理、抽出条件を満足するキーワードを含むレコード
の抽出処理等は、皆、同時並行的に実行されていく、す
なわち、ローカルRAMBからの可変長データの読出し
が完了したときには、抽出条件を満足するキーワードを
含むレコードの抽出処理もほぼ同時に完了することとな
り、高速処理が実現されている。さらに、ハードウェア
により実現しなので、その点でも高速化が実現されてい
る。
As is clear from the above explanation and FIG. 5, processing for accessing variable length data, processing for identifying keywords for which extraction conditions have been set, processing for comparing and detecting matches between the keywords and extraction conditions, and keywords that satisfy the extraction conditions. The processing for extracting records containing keywords that satisfy the extraction conditions is all executed in parallel.In other words, when the reading of variable-length data from the local RAMB is completed, the processing for extracting records containing keywords that satisfy the extraction conditions is almost complete. They are completed simultaneously, achieving high-speed processing. Furthermore, since it is implemented using hardware, speed-up is achieved in that respect as well.

なお、この発明は、上記の実施例に限定されることなく
、例えば、4桁の数値データのワードに対して5000
°゛という抽出条件が設定されているような場合に、“
1000”の位の数値データのみを比較するといったよ
うに、ワードの一部のみを比較することにより、更に高
速化を図ることも可能である。また、抽出条件が“’1
000°゛と設定され、その設定対象ワードが可変長ワ
ードであるような場合に、桁数によって抽出条件適合性
をチェックすることもできる。
Note that the present invention is not limited to the above-mentioned embodiments, and for example, 5000
When the extraction condition “°゛” is set, “
It is also possible to further speed up the comparison by comparing only part of the word, such as comparing only numerical data in the digit ``1000''.Also, if the extraction condition is ``'1''
000°'' and the word to be set is a variable length word, the suitability of the extraction condition can also be checked based on the number of digits.

また、抽出条件設定対象のワードは、レコード」二の何
番目のワード、複数個のワード、数値以外のデータ種で
あっても良い9 43・・・条件比較回路、1(計・・比較桁数しジスタ
、r? b・条件レジスタ、Rc、・・比較ワーlくレ
ジスタ。
In addition, the word for which the extraction conditions are set may be any word in the second record, multiple words, or data types other than numerical values. Counter register, r?b/condition register, Rc, . . . comparison register.

[発明の効果] この発明によれば、抽出条件が設定されたデータの特定
処理と、レコード抽出処理とを並行的に実行でき、レコ
ード形式が可変長であっても高速に抽出条件に適合する
レコードを高速に抽出できるようになる。
[Effects of the Invention] According to the present invention, the process of specifying data for which extraction conditions have been set and the record extraction process can be executed in parallel, and even if the record format is variable length, the extraction conditions can be met at high speed. Records can be extracted quickly.

1−7許出願人 カシオ計算機株式会社1-7 applicant Casio Computer Co., Ltd.

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

第1図は本発明の機能11797図、第2図は実施例の
ブロック構成図、第3図はローカルRA M内のデータ
例を示すIA、第4図は抽出条件を例示した図、第5図
は第3図及び第4図に対応する抽出動作を示すタイムチ
ャートである。 3・・・ローカルRAM、4・・−データ検出部、41
−・・アドレス発生回路、42・・・データ検出回路、
第 4 図 ((L) (b) 第 図
Fig. 1 is a functional diagram of the present invention, Fig. 2 is a block diagram of the embodiment, Fig. 3 is an IA showing an example of data in the local RAM, Fig. 4 is a diagram illustrating extraction conditions, Fig. 5 The figure is a time chart showing the extraction operation corresponding to FIGS. 3 and 4. 3...Local RAM, 4...-Data detection unit, 41
--Address generation circuit, 42...Data detection circuit,
Figure 4 ((L) (b) Figure 4

Claims (1)

【特許請求の範囲】 各レコード、及び各レコード中の各ワードが所定の区切
データで区切られてなる複数の可変長レコードを記憶す
る第1の記憶手段と、 この第1の記憶手段から抽出すべき可変長レコードの所
定のワードの条件を記憶する第2の記憶手段と、 上記第1の記憶手段から各可変長レコードを構成する上
記区切コード、及び各ワードの各ワード構成データを1
つずつ連続的に読出す読出回路と、この読出回路にて順
次読出されてくるデータを順次チェックし、条件設定に
係るワードの区切データを検出する検出回路と、 この検出回路にて検出された区切データに続いて読出さ
れた条件設定に係るワードのワード構成データと、上記
第2の記憶手段に記憶された条件とを1データ単位で比
較する比較回路と、 この比較回路による比較の結果、条件が一致するとき、
当該ワードを含む可変長レコードを順次出力する出力手
段と、 を備えたことを特徴とする可変長データ処理装置。
[Claims] A first storage means for storing a plurality of variable length records in which each record and each word in each record are separated by predetermined delimiter data; a second storage means for storing the conditions of a predetermined word of the variable length record to be stored; and a second storage means for storing the conditions of a predetermined word of the variable length record;
A readout circuit that sequentially reads data one by one, a detection circuit that sequentially checks the data read out sequentially by this readout circuit and detects word delimiter data related to condition setting, and a comparison circuit that compares the word configuration data of the word related to the condition setting read out subsequent to the delimited data with the conditions stored in the second storage means in units of data; and the results of the comparison by the comparison circuit; When the conditions match,
A variable length data processing device comprising: output means for sequentially outputting variable length records including the word.
JP1285659A 1989-11-01 1989-11-01 Variable length data processor Pending JPH03147036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1285659A JPH03147036A (en) 1989-11-01 1989-11-01 Variable length data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1285659A JPH03147036A (en) 1989-11-01 1989-11-01 Variable length data processor

Publications (1)

Publication Number Publication Date
JPH03147036A true JPH03147036A (en) 1991-06-24

Family

ID=17694399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1285659A Pending JPH03147036A (en) 1989-11-01 1989-11-01 Variable length data processor

Country Status (1)

Country Link
JP (1) JPH03147036A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008047432A1 (en) * 2006-10-19 2008-04-24 Fujitsu Limited Information retrieval program, recording media having the program recorded therein, information retrieving method, and information retrieving device
JP2009116395A (en) * 2007-11-01 2009-05-28 Mitsubishi Electric Corp Data format conversion device, data format conversion program and data format conversion method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008047432A1 (en) * 2006-10-19 2008-04-24 Fujitsu Limited Information retrieval program, recording media having the program recorded therein, information retrieving method, and information retrieving device
JP4707198B2 (en) * 2006-10-19 2011-06-22 富士通株式会社 INFORMATION SEARCH PROGRAM, RECORDING MEDIUM CONTAINING THE PROGRAM, INFORMATION SEARCH METHOD, AND INFORMATION SEARCH DEVICE
US8131721B2 (en) 2006-10-19 2012-03-06 Fujitsu Limited Information retrieval method, information retrieval apparatus, and computer product
US9081874B2 (en) 2006-10-19 2015-07-14 Fujitsu Limited Information retrieval method, information retrieval apparatus, and computer product
JP2009116395A (en) * 2007-11-01 2009-05-28 Mitsubishi Electric Corp Data format conversion device, data format conversion program and data format conversion method

Similar Documents

Publication Publication Date Title
US4053871A (en) Method and system for the iterative and simultaneous comparison of data with a group of reference data items
CN104067282B (en) Counter operation in state machine lattice
WO2010080403A2 (en) Pattern-recognition processor with matching-data reporting module
JPS5823375A (en) Selective cash clearing method of and apparatus for data processing system
US4325117A (en) Apparatus for calculating a check digit for a stream of data read from a document
US3344404A (en) Multiple mode data processing system controlled by information bits or special characters
US5142673A (en) Bus monitor with dual port memory for storing selectable trigger patterns
JPH03147036A (en) Variable length data processor
JP2880199B2 (en) Symbol string search method and search device
JPS5853791B2 (en) character recognition device
JP2731047B2 (en) Program operand check method
JP2735255B2 (en) Hatching treatment method
JPH07120356B2 (en) Character string pattern matching device
JP2586155B2 (en) Logic simulator
JPH0394325A (en) Data selector
JPS6243731A (en) Retrieval auxiliary device
SU1571676A2 (en) Associative memory device
JPH01255924A (en) Directory memory access control device
JPH0833812B2 (en) Sorting device
JPH02133831A (en) Error information storing circuit
JPH0926872A (en) Pipeline merge sorter
JPS62186328A (en) Sort processing system
JPS6175441A (en) Address history storage device
JPH0774988B2 (en) Processing equipment
JPH0746309B2 (en) Data processing device