JPH01158547A - Buffer control system for data file device - Google Patents

Buffer control system for data file device

Info

Publication number
JPH01158547A
JPH01158547A JP62318241A JP31824187A JPH01158547A JP H01158547 A JPH01158547 A JP H01158547A JP 62318241 A JP62318241 A JP 62318241A JP 31824187 A JP31824187 A JP 31824187A JP H01158547 A JPH01158547 A JP H01158547A
Authority
JP
Japan
Prior art keywords
data
bit
unit
stored
buffer
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
JP62318241A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Harada
原田 一良
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP62318241A priority Critical patent/JPH01158547A/en
Publication of JPH01158547A publication Critical patent/JPH01158547A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve an access efficiency on reading by maintaining a physical continuity in a data buffer and storing data to have a mutual relation or to be consecutive. CONSTITUTION:A pit map part 7 is split into unit pit rows a1-am which plural continuous pits are made into one group, and new data are stored in a buffer area 6 corresponding to the top pit of the unit pit rows of which all pits are '0'. Beside, the data which have a mutual relation are stored in buffer areas B1-Bn corresponding to the pits of the same unit pit rows a1-am. Thus, a detecting time is reduced comparing to a usual system to detect the pit map part 7 for every one pit. Besides, since the storage of the data to the buffer area is practiced physically consecutive continuous area, for the reading of the data, reading is practiced continuously and the excessive detecting time is not needed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理装置にて処理されたデータをデー
タバッファを有するファイル装置に格納する際のバッフ
ァ管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a buffer management method when data processed by a data processing device is stored in a file device having a data buffer.

〔従来の技術〕[Conventional technology]

電文等のデータをデータバッファを有するファイル装置
に格納する際のデータバッファの管理方式として、たと
えば特公昭61−26684号公報に開示されているよ
うなビットマツプ方式が知られている。
As a data buffer management method for storing data such as telegrams in a file device having a data buffer, a bitmap method is known, for example, as disclosed in Japanese Patent Publication No. 61-26684.

このビットマツプ方式は、データバッファを所定のデー
タ量に分割した各バッファ領域それぞれにデータが既に
格納済みであるか否かを表すビットマツプ部を有してお
り、たとえば各ビット力ぜ1”(オン)の場合はそのビ
ットに対応するバッファ領域には既にデータが格納され
ており、また“0”(オフ)の場合はデータが格納され
ていない状態を示している。
This bitmap method has a bitmap section that indicates whether or not data has already been stored in each buffer area obtained by dividing the data buffer into a predetermined amount of data. In the case of , data is already stored in the buffer area corresponding to that bit, and in the case of "0" (off), data is not stored.

そして、データをデータバッファに格納する際には、ビ
ットマツプ部を検索して“0”のビットを検出し、これ
に対応するバッファ領域にデータを格納した後にそのビ
ットを“1″に書換え更新する。
When storing data in the data buffer, the bitmap section is searched to detect a "0" bit, and after storing the data in the corresponding buffer area, the bit is rewritten and updated to "1". .

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

この際の“0″のビットの検索は、ビットマツプ部の先
頭ビットから順に検索する手法が一般的である。このた
め、“O”のビットの位置により検索の時間がそれぞれ
異なり、特に“0”のビットがビットマツプ部の最終ピ
ット近くにある場合には検索時間が非常に長くなるとい
う問題がある。
In this case, the general method of searching for the "0" bit is to search sequentially from the first bit of the bitmap section. Therefore, the search time differs depending on the position of the "0" bit, and there is a problem in that the search time becomes extremely long, especially when the "0" bit is located near the final pit of the bitmap section.

また−群の相互に何等かの関連性を有するデータを格納
するような場合には、それらのデータ群がデータバッフ
ァ内に拡散して格納される可能性が高い。このため、こ
れらの−群のデータを連続的に読出す際にはそれぞれの
バッファ領域間において次のバッファ領域を読出すため
の検索に時間が必要になる。
Furthermore, when storing data that has some kind of relationship with each other in a - group, there is a high possibility that these data groups will be stored in a diffused manner within the data buffer. Therefore, when reading these - group data successively, time is required to search between the respective buffer areas to read the next buffer area.

本発明は以上のような事情に鑑みてなされたものであり
、ビットマツプ部を検索する際の“0”ビットの検出ま
でに要する時間を短縮し、また相互に関連を有しあるい
は一連のデータをデータバッファ内に物理的な連続性を
維持して格納することにより、その読出しの際のアクセ
ス効率の向上を図ったデータファイル装置のバッファ管
理方式の提供を目的とする。
The present invention has been made in view of the above-mentioned circumstances, and is intended to shorten the time required to detect a "0" bit when searching a bitmap section, and also to reduce the time required to detect a "0" bit when searching a bitmap section, and to The present invention aims to provide a buffer management method for a data file device that improves access efficiency when reading data by maintaining physical continuity in the data buffer.

C問題点を解決するための手段〕 本発明のデータファイル装置のバッファ管理方式では、
ビットマツプ部を連続する複数のビットを一組とした単
位ビット列に分割し、新たなデータを全ビットが0″の
単位ビット列の先頭ビットに対応するバッファ領域に格
納し、また相互に関連性を有するデータは同一の単位ビ
ット列のビットに対応するバッファ領域に格納するよう
にしている。
Means for Solving Problem C] In the buffer management method of the data file device of the present invention,
Divide the bitmap part into unit bit strings that are a set of multiple consecutive bits, store new data in the buffer area corresponding to the first bit of the unit bit string where all bits are 0'', and have mutual relationships. Data is stored in buffer areas corresponding to bits of the same unit bit string.

本発明は、複数個の単位ブロックに分割されたデータバ
ッファと、前記各単位ブロックにデータが格納されてい
るか否かを各ビットのオン/オフにて表すビットマツプ
部と、該ビットマツプ部の各ビットのオン/オフを検索
してオフのビットを検出するビット検出部とを備え、オ
フビットに対応するデータバッファの単位プロ・/りに
データを格納すべくなしたデータファイル装置のバッフ
ァ管理方式において、前記ビットマツプ部のビットを所
定数を一組として複数組の単位ビット列に分割し、格納
すべき新たなデータが与えられた場合に、前記ビット検
出部により全ビットがオフであると検出された単位ビッ
ト列の第1のビットに対応する前記データバッファの単
位ブロックに前記データを格納し、データが格納された
単位ブロックに対応するビットマツプ部のと7)をオン
にし、格納すべきデータが既にデータバッファに格納さ
れているデータと連続性がある場合は、既に格納されて
いるデータが格納されている最終の単位ブロックに対応
するビットを含む単位ビット列内のオフピットを検出し
てこれに対応する単位ブロックに前記データを格納し、
データが格納された単位ブロックに対応するビットをオ
ンにし、前記単位ビット列が総てオンの場合は新たに全
ビットがオフの単位ビット列を検出してデータの格納を
行うことを特徴とする。
The present invention provides a data buffer divided into a plurality of unit blocks, a bitmap section that indicates whether data is stored in each unit block by turning each bit on or off, and each bit of the bitmap section. In a buffer management method of a data file device, the data file device is equipped with a bit detection unit that searches for on/off of a bit and detects an off bit, and stores data in a unit program of a data buffer corresponding to an off bit. , when the bits in the bitmap section are divided into a plurality of unit bit strings, each consisting of a predetermined number of bits, and new data to be stored is given, the bit detection section detects that all bits are off. Store the data in the unit block of the data buffer corresponding to the first bit of the unit bit string, turn on and 7) of the bitmap section corresponding to the unit block in which the data is stored, and confirm that the data to be stored is already data. If there is continuity with the data stored in the buffer, detect the off-pit in the unit bit string that includes the bit corresponding to the final unit block in which the already stored data is stored, and generate the corresponding unit. Store the data in a block,
The method is characterized in that bits corresponding to a unit block in which data is stored are turned on, and when all of the unit bit strings are on, a new unit bit string in which all bits are off is detected and data is stored.

〔作用〕 本発明のデータファイル装置のバッファ管理方式では、
相互に関連性を有するデータあるいは連続するデータは
、データバッファの物理的に連続するバッファ領域に格
納される。
[Operation] In the buffer management method of the data file device of the present invention,
Interrelated or consecutive data are stored in physically consecutive buffer areas of the data buffer.

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

以下、本発明をその実施例を示す図面を参照して詳述す
る。
Hereinafter, the present invention will be explained in detail with reference to the drawings showing embodiments thereof.

第1図は本発明に係るバッファ管理方式が通用されるデ
ータファイル装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a data file device to which the buffer management method according to the present invention is applied.

図中、1はデータ処理装置、2はそのデータ処理部であ
る。
In the figure, 1 is a data processing device, and 2 is its data processing section.

またこのデータ処理装置1にて処理されたデータはメモ
リ3に一旦格納されるが、必要に応じてファイル装置4
にも格納される。
Further, the data processed by this data processing device 1 is temporarily stored in the memory 3, but if necessary, it can be stored in the file device 4.
It is also stored in

ファイル装置4は、バッファ領域6、ビットマツプ部7
及びビット検知部5等にて構成されている。またビット
検知部5は、アドレスカウンタ8、単位ビット列レジス
タ9及び単位ブロック番号レジスタ10等にて構成され
ている。
The file device 4 includes a buffer area 6 and a bitmap section 7.
and a bit detection section 5. Further, the bit detection section 5 includes an address counter 8, a unit bit string register 9, a unit block number register 10, and the like.

バッファ領域6は、それぞれ一定のデータ長の単位ブロ
ック81〜Bnに分割されている。
The buffer area 6 is divided into unit blocks 81 to Bn each having a fixed data length.

またビットマツプ部7はバッファ領域6の単位ブロック
81〜Bnの数と同一数のビットb1〜bnにて構成さ
れており、それぞれのビットb1〜bnがバッファ領域
6の各単位ブロック81〜anに対応している。そして
、各ビットb1〜bnの値が“1′(オン)であればそ
れに対応する単位ブロックに既にデータが格納されてい
ることを、また0”(オフ)であればデータが格納され
ていないことを示している。
Further, the bit map section 7 is composed of the same number of bits b1 to bn as the number of unit blocks 81 to Bn of the buffer area 6, and each bit b1 to bn corresponds to each unit block 81 to an of the buffer area 6. are doing. If the value of each bit b1 to bn is "1' (ON), it means that data is already stored in the corresponding unit block, and if it is 0" (OFF), no data is stored. It is shown that.

更に、このビットマツプ部7の各ビットb1〜bnは、
たとえば本実施例では連続する4ビア)単位で、即ち単
位ビット列a1はビットb1〜b4にて、a2はb5〜
b8にてというように、単位ビット列al”am(m=
n/4)に分割されている。
Furthermore, each bit b1 to bn of this bitmap section 7 is
For example, in this embodiment, the unit bit string a1 consists of bits b1 to b4, and the unit bit string a2 consists of bits b5 to b5.
b8, the unit bit string al”am(m=
n/4).

アドレスカウンタ8は、ビットマツプ部7の単位ビット
列a1〜aIl!の値が順次書込まれる。
The address counter 8 receives the unit bit strings a1 to aIl! of the bitmap section 7. The values of are written sequentially.

単位ビット列レジスタ9は、アドレスカウンタ8にて書
込まれる単位ビット列alxamそれぞれを構成する各
4ビツトの値が書き込まれる読出し・書込みレジスタで
ある。
The unit bit string register 9 is a read/write register into which 4-bit values forming each unit bit string ALXAM written by the address counter 8 are written.

また単位ブロック番号レジスタ10には、次にデータが
書込まれるべきバッファ領域6の単位ブロック番号B1
=Bnが書き込まれる。
The unit block number register 10 also contains the unit block number B1 of the buffer area 6 into which data is to be written next.
=Bn is written.

さて、このようなデータファイル装置では、データ処理
装置1によりデータが受理されると、処理部2はそのデ
ータを処理してメモリ3に一旦格納する。ここで、デー
タ処理装置lが受理したデータのデータ長がバッファ領
域6の単位プ0.7り4個分のデータ長であるとすると
、メモリ3には単位ブロック4個分のデータ格納されて
いることになる。
Now, in such a data file device, when data is received by the data processing device 1, the processing section 2 processes the data and temporarily stores it in the memory 3. Here, if the data length of the data received by the data processing device l is the data length of 0.7 unit blocks of the buffer area 6, then the data of 4 unit blocks is stored in the memory 3. There will be.

そして、このようにメモリ3に一旦格納されたデータを
バッファ領域6に格納する際には以下のような手順で行
う。
The data once stored in the memory 3 in this way is stored in the buffer area 6 using the following procedure.

この場合、処理部2はビット検知部5に対してビットマ
ツプ部7から総てのビアLが“θ′である単位ビット列
を検出させる。
In this case, the processing section 2 causes the bit detection section 5 to detect a unit bit string in which all the vias L are "θ'" from the bit map section 7.

部ち、処理部2はアドレスカウンタ8のビットマツプ部
7の単位ビット列al=amの値を順次書換えることに
より各単位ビット列a1〜amのビットの値を単位ビッ
ト列レジスタ9に順次書込む。そして、この単位ビ・7
ト列レジスタ9の4つのビット値総てが“0”である単
位ビット列81〜al11を検出させる。
The processing section 2 sequentially writes the values of the bits of each unit bit string a1 to am into the unit bit string register 9 by sequentially rewriting the value of the unit bit string al=am in the bit map section 7 of the address counter 8. And this unit Bi・7
The unit bit strings 81 to al11 in which all four bit values of the bit string register 9 are "0" are detected.

4つのビット総てが“O”である単位ビット列81〜a
mが見つかると、その時点のアドレスカウンタ8の値を
基に単位ビット列81〜amを特定し、その先頭のビッ
トに対応するバッファ領域6の単位ブロックが特定され
、その番@BI〜Bnが単位ブロック番号レジスフ10
に保持される。
Unit bit strings 81 to a in which all four bits are “O”
When m is found, the unit bit string 81 to am is specified based on the value of the address counter 8 at that time, the unit block of the buffer area 6 corresponding to the first bit is specified, and the number @BI to Bn is the unit. Block number Regisf 10
is maintained.

そして、処理部2はメモリ3に格納されているデータの
最初の単位ブロックのデータ量相当部分を単位ブロック
番号レジスタ10が保持している単位ブロック番号に従
ってバッファ領域6に書込み、この単位ブロックに対応
する単位プロンク番号レジスタ10のビットを“1”に
書き換える。
Then, the processing unit 2 writes a portion corresponding to the data amount of the first unit block of the data stored in the memory 3 to the buffer area 6 according to the unit block number held in the unit block number register 10, and writes the data corresponding to this unit block. Rewrite the bit of the unit pronk number register 10 to "1".

以下、更に連続するデータがある場合には同一の単位ビ
ット列a1〜am内の次項のビットに対応する単位ブロ
ックの番号B1=Bnが単位ブロック番号レジスタlO
に保持され、これに従ってバッファ領域6にデータが格
納される。勿論この際、対応する単位ブロック番号レジ
スタ10のビットも“1″に上述同様書換えられる。
Hereinafter, if there is further consecutive data, the unit block number B1=Bn corresponding to the next bit in the same unit bit string a1 to am is the unit block number register lO
The data is stored in the buffer area 6 accordingly. Of course, at this time, the bit of the corresponding unit block number register 10 is also rewritten to "1" in the same manner as described above.

最後に、単位ビット列レジスタ9に保持されている4つ
のビットの値をアドレスカウンタ8に保持されている単
位ビット列の値に対応するビットマツプ部7の単位ビッ
ト列の4つのビットに書込むことによりデータのバッフ
ァ領域6への書込みの処理が完了する。
Finally, the values of the four bits held in the unit bit string register 9 are written to the four bits of the unit bit string of the bitmap section 7 corresponding to the value of the unit bit string held in the address counter 8, thereby converting the data. The writing process to the buffer area 6 is completed.

なお上記実施例では、ビットマツプ部7の単位ビット列
alxamそれぞれのビット数を4としているが、これ
に限るものではない。
In the above embodiment, the number of bits of each unit bit string alxam of the bit map section 7 is set to 4, but the number of bits is not limited to this.

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

以上に詳述したように、本発明によれば、ビソトマフプ
の連続した複数のビットを一組とし、これらのビットに
対応するバッファ領域の単位ブロックに一連のデータを
格納するようにしているので、ビットマツプ部を1ビッ
トずつ検索する従来の方式に比して検索時間が短縮され
、またバッファ領域へのデータの格納は物理的に連続す
る一連の領域に行われるので、データの読出しに際して
は連続的に読出しが行われて余分な検索時間等を要しな
い。
As described in detail above, according to the present invention, a plurality of consecutive bits of a bit map are set as a set, and a series of data is stored in a unit block of a buffer area corresponding to these bits. The search time is shorter than the conventional method of searching the bitmap section one bit at a time, and since data is stored in the buffer area in a series of physically continuous areas, data can be read out in a continuous manner. Since reading is performed immediately, no extra search time is required.

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

第1図は本発明のバ・ノファ管理方式が通用されるデー
タファイル装置の構成を示すブロック図である。 1・・・データ処理装置  2・・・処理部  4・・
・ファイル装置  5・・・ビット検知部  6・・・
バッファ領域  7・・・ビットマツプ部  8・・・
アドレスカウンタ  9・・・単位ビット列レジスタ 
 10・・・単位ブロック番号レジスタ 特 許 出願人  三洋電機株式会社 代理人 弁理士  河 野  登 夫
FIG. 1 is a block diagram showing the configuration of a data file device to which the Banofa management system of the present invention is applied. 1... Data processing device 2... Processing section 4...
・File device 5...Bit detection unit 6...
Buffer area 7...Bitmap section 8...
Address counter 9...Unit bit string register
10...Unit block number register patent Applicant: Sanyo Electric Co., Ltd. Agent Patent attorney: Noboru Kono

Claims (1)

【特許請求の範囲】 1、複数個の単位ブロックに分割されたデータバッファ
と、前記各単位ブロックにデータが格納されているか否
かを各ビットのオン/オフにて表すビットマップ部と、
該ビットマップ部の各ビットのオン/オフを検索してオ
フのビットを検出するビット検出部とを備え、オフビッ
トに対応するデータバッファの単位ブロックにデータを
格納すべくなしたデータファイル装置のバッファ管理方
式において、前記ビットマップ部のビットを所定数を一 組として複数組の単位ビット列に分割し、 格納すべき新たなデータが与えられた場合 に、前記ビット検出部により全ビットがオフであると検
出された単位ビット列の第1のビットに対応する前記デ
ータバッファの単位ブロックに前記データを格納し、デ
ータが格納された単位ブロックに対応するビットマップ
部のビットをオンにし、 格納すべきデータが既にデータバッファに 格納されているデータと連続性がある場合は、既に格納
されているデータが格納されている最終の単位ブロック
に対応するビットを含む単位ビット列内のオフビットを
検出してこれに対応する単位ブロックに前記データを格
納し、データが格納された単位ブロックに対応するビッ
トをオンにし、 前記単位ビット列が総てオンの場合は新た に全ビットがオフの単位ビット列を検出してデータの格
納を行うことを特徴とするデータファイル装置のバッフ
ァ管理方式。
[Scope of Claims] 1. A data buffer divided into a plurality of unit blocks, and a bitmap section that indicates whether data is stored in each unit block by turning each bit on or off;
A data file device comprising: a bit detection unit that searches for on/off of each bit of the bitmap portion and detects off bits, and stores data in a unit block of a data buffer corresponding to an off bit. In the buffer management method, the bits in the bitmap section are divided into a plurality of unit bit strings, each consisting of a predetermined number of bits, and when new data to be stored is given, all bits are turned off by the bit detection section. Store the data in the unit block of the data buffer corresponding to the first bit of the unit bit string detected as being present, turn on the bit of the bitmap section corresponding to the unit block in which the data is stored, and store the data. If the data is continuous with the data already stored in the data buffer, detect the off bit in the unit bit string containing the bit corresponding to the last unit block where the already stored data is stored. The data is stored in the corresponding unit block, the bits corresponding to the unit block in which the data is stored are turned on, and if all the unit bit strings are on, a new unit bit string with all bits turned off is detected. A buffer management method for a data file device, characterized in that data is stored in a data file device.
JP62318241A 1987-12-15 1987-12-15 Buffer control system for data file device Pending JPH01158547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62318241A JPH01158547A (en) 1987-12-15 1987-12-15 Buffer control system for data file device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62318241A JPH01158547A (en) 1987-12-15 1987-12-15 Buffer control system for data file device

Publications (1)

Publication Number Publication Date
JPH01158547A true JPH01158547A (en) 1989-06-21

Family

ID=18097002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62318241A Pending JPH01158547A (en) 1987-12-15 1987-12-15 Buffer control system for data file device

Country Status (1)

Country Link
JP (1) JPH01158547A (en)

Similar Documents

Publication Publication Date Title
US4959811A (en) Content addressable memory including comparison inhibit and shift register circuits
US5319762A (en) Associative memory capable of matching a variable indicator in one string of characters with a portion of another string
JP3196720B2 (en) Associative memory control circuit and control method
US4064489A (en) Apparatus for searching compressed data file
KR100230767B1 (en) Method of data storage and search for dynamic memory
US6430672B1 (en) Method for performing address mapping using two lookup tables
CA1151310A (en) Data processing system having hierarchal memories
US4679139A (en) Method and system for determination of data record order based on keyfield values
JPH02178730A (en) Internal sorting system using dividing method
US4975872A (en) Dual port memory device with tag bit marking
JP3703518B2 (en) Associative memory system
JPH09167495A (en) Data storage unit and data storage device using the same
US5659733A (en) Sort processing method and apparatus for sorting data blocks using work buffer merge data records while sequentially transferring data records from work buffers
JPH01158547A (en) Buffer control system for data file device
CN87104487A (en) In having the data handling system of virtual memory address, carry out the apparatus and method of page frame replacement
JPH03228298A (en) Data store system
GB1513586A (en) Data processing
JPH0430632B2 (en)
JPH0743942B2 (en) Compound associative memory
JPH11282758A (en) Device and method for data writing into nonvolatile memory
JP2558821B2 (en) Associative memory device
US6604173B1 (en) System for controlling access to external cache memories of differing size
JPH03100997A (en) Selective associative memory and control system for the same
JPS60150128A (en) Buffer memory controller of rotary magnetic memory controller
JPS63239521A (en) Data processing system for magnetic tape device