JPS63240648A - Data compressing/storing system - Google Patents

Data compressing/storing system

Info

Publication number
JPS63240648A
JPS63240648A JP7543487A JP7543487A JPS63240648A JP S63240648 A JPS63240648 A JP S63240648A JP 7543487 A JP7543487 A JP 7543487A JP 7543487 A JP7543487 A JP 7543487A JP S63240648 A JPS63240648 A JP S63240648A
Authority
JP
Japan
Prior art keywords
data
word
comparator
priority
compressed
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.)
Granted
Application number
JP7543487A
Other languages
Japanese (ja)
Other versions
JPH0650478B2 (en
Inventor
Morio Takeishi
竹石 守雄
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
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 filed Critical NEC Corp
Priority to JP7543487A priority Critical patent/JPH0650478B2/en
Publication of JPS63240648A publication Critical patent/JPS63240648A/en
Publication of JPH0650478B2 publication Critical patent/JPH0650478B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To decrease the quantity of stored data by performing simultaneously the comparison of data of the same pattern with plural word width and then compressing the data with plural word widths. CONSTITUTION:A data latch circuit stores temporarily the (nX2)-word data and a (1-n)-word comparator compares the patterns of the (1-n)-word data and its following (1-n)-word data with each other. A priority deciding circuit 10 counts the repeating frequency of the same pattern every (m) words or counts the word number of the discontinuous data trains according to a fact whether the priority should be given to an m-word comparator based on the result of said comparison. Then a control circuit 11 decides whether the compressed word width data and the compressed code data or the compressed word width data and the discontinuous word number are added at the head of the data train and stored. In such a way, the same patterns are compared with each other with plural word widths and the quantity of stored data can be decreased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ圧縮記憶方式に関し、特に情報処理装置
において記憶装置等にデータを圧縮して記憶するための
データ圧縮記憶方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data compression storage system, and more particularly to a data compression storage system for compressing and storing data in a storage device or the like in an information processing apparatus.

(従来の技術〕 従来、この種のデータ圧縮記憶方式は、ある−定のワー
ド幅のデータ、例えば1ワ一ド幅のデータを1データと
して同一パターンのデータの繰返しを判定することによ
り、同一パターンのデータがn(正整数)個連続的に続
くデータ列については同一パターンのデータの繰返しで
あることを示すピント、繰返し回数nおよび繰り返され
るデータによって表し、同一パターンのデータが連続し
ていないデータ列(以下、不連続データ列と称する)に
ついては同一パターンのデータが連続していないデータ
数およびその不連続データ列によって表すことにより、
データ量を通常よりも削減させて記憶装置等に記憶させ
るという方式であった。
(Prior Art) Conventionally, this type of data compression storage method uses data of a certain word width, for example, data of one word width, as one data, and determines whether the same pattern of data is repeated. For a data string in which n (positive integer) data of a pattern continues consecutively, it is expressed by a focus indicating that the data of the same pattern is repeated, the number of repetitions n, and the repeated data, and the data of the same pattern is not consecutive. Regarding data strings (hereinafter referred to as discontinuous data strings), by representing the number of data in which data of the same pattern is not consecutive and the discontinuous data strings,
The method was to reduce the amount of data compared to normal and store it in a storage device or the like.

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

上述した従来のデータ圧縮記憶方式は、固定されたワー
ド幅のデータについてのみ同一パターンの繰返しがある
か否かを判定していたので、そのワード幅で同一パター
ンが繰り返されるデータ列に対してはデータの圧縮が可
能であったが、そのワード幅の複数倍のワード幅で同一
パターンが繰り返されるデータ列を圧縮することはでき
ず、他のワード幅では圧縮可能なデータ列が設定された
ワード幅では圧縮できないという欠点がある。
The conventional data compression storage method described above determines whether or not the same pattern is repeated only for data with a fixed word width. It was possible to compress data, but it was not possible to compress a data string that repeated the same pattern with a word width multiple times the word width, and a word with a data string that could be compressed with other word widths. The disadvantage is that it cannot be compressed by width.

本発明の目的は、上述の点に鑑み、同一パターンの比較
を同時に複数のワード幅で行うことができるようにする
ことにより、複数のワード幅でデータの圧縮が行われる
ようにしたデータ圧縮記憶方式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to provide a data compression storage in which data can be compressed in a plurality of word widths by making it possible to simultaneously compare the same pattern in a plurality of word widths. The goal is to provide a method.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のデータ圧縮記憶方式は、n(正整数)×2ワー
ドのデータを一時的に保持するデータランチ回路と、こ
のデータランチ回路に保持された1x2ワードのデータ
の先頭のワードから数えて1ワードないしnワードのデ
ータとこれに続<1ワードないしnワードのデータとが
同一パターンのデータであるか否かを比較する1ワード
比較器ないしnワード比較器と、これら1ワード比較器
ないしnワード比較器の比較結果に基づいてm(1≦m
≦nの正整数)ワード比較器に優先権を与えるかいずれ
の比較器にも優先権を与えない優先順位判定回路と、こ
の優先順位判定回路によりmワード比較器に優先権が与
えられた場合にはmワード毎に同一パターン繰返し回数
を計数しいずれの比較器にも優先権が与えられなかった
場合には不連続データ列のワード数を計数するカウンタ
と、前記優先順位判定回路によりmワード比較器に優先
権が与えられた場合には前記mワード比較器に対応する
圧縮ワード幅データおよび前記カウンタの計数値である
同一パターン繰返し回数からなる圧縮コードデータを先
頭に付加して前記mワードの同一パターンのデータを記
憶させ前記優先順位判定回路によりいずれの比較器にも
優先権が与えられなかった場合には圧縮なしを示す圧縮
ワード幅データおよび前記カウンタの計数値である不連
続ワード数を先頭に付加して不連続データ列を記憶させ
る制御回路とを有する。
The data compression storage method of the present invention includes a data launch circuit that temporarily holds data of n (positive integer) x 2 words, and 1 x 2 words of data held in this data launch circuit, counting from the first word of the A 1-word comparator to an n-word comparator that compares data of a word to n words with data of the following <1 word to n words to see if they have the same pattern; Based on the comparison result of the word comparator, m (1≦m
≦ positive integer of n) A priority determination circuit that gives priority to a word comparator or does not give priority to any comparator, and a case where priority is given to m word comparators by this priority determination circuit. is a counter that counts the number of times the same pattern is repeated every m words, and if priority is not given to any comparator, counts the number of words in a discontinuous data string, and the priority determination circuit calculates the number of repetitions of the same pattern. When priority is given to a comparator, compressed word width data corresponding to the m-word comparator and compressed code data consisting of the number of repetitions of the same pattern, which is the count value of the counter, are added to the beginning of the m-word data. If the priority determination circuit does not give priority to any of the comparators, compressed word width data indicating no compression and the number of discontinuous words which is the count value of the counter are stored. and a control circuit that stores a discontinuous data string by adding the following to the beginning.

〔作用〕[Effect]

本発明のデータ圧縮記憶方式では、デークラッチ回路が
n(正整数)×2ワードのデータを一時的に保持し、1
ワード比較器ないしnワード比較器がデータランチ回路
に保持されたn×2ワードのデータの先頭のワードから
数えてlワードないしnワードのデータとこれに続く1
ワードないしnワードのデータとが同一パターンのデー
タであるか否かを比較し、優先順位判定回路が1ワード
比較器ないしnワード比較器の比較結果に基づいてm(
1≦m≦nの正整数)ワード比較器に優先権を与えるか
いずれの比較器にも優先権を与えず、カウンタが優先順
位判定回路によりmワード比較器に優先権が与えられた
場合にはmワード毎に同一パターン繰返し回数を計数し
いずれの比較器にも優先権が与えられなかった場合には
不連続データ列のワード数を計数し、制御回路が優先順
位判定回路によりmワード比較器に優先権が与えられた
場合にはmワード比較器に対応する圧縮ワード幅データ
およびカウンタの計数値である同一パターン繰返し回数
からなる圧縮コードデータを先頭に付加してmワードの
同一パターンのデータを記tαさせ優先順位判定回路に
よりいずれの比較器にも優先権が与えられなかった場合
には圧縮なしを示す圧縮ワード幅データおよびカウンタ
の計数値である不連続ワード数を先頭に付加して不連続
データ列を記憶させる。
In the data compression storage method of the present invention, the data latch circuit temporarily holds data of n (positive integer) x 2 words, and
A word comparator or an n-word comparator outputs l to n words of data, counting from the first word of the n×2 words of data held in the data launch circuit, and the following 1.
The data of the word to n word are compared to see if they have the same pattern, and the priority determination circuit determines whether the data has the same pattern as m(
(Positive integer of 1≦m≦n) Give priority to the word comparator or give priority to no comparator, and if the counter gives priority to the m word comparator by the priority determination circuit. counts the number of repetitions of the same pattern every m words, and if priority is not given to any comparator, counts the number of words in the discontinuous data string, and the control circuit compares the m words using the priority determination circuit. When priority is given to the m-word comparator, compressed word width data corresponding to the m-word comparator and compressed code data consisting of the number of repetitions of the same pattern, which is the count value of the counter, are added to the beginning of the m-word same pattern. If the data is written tα and the priority determination circuit does not give priority to any comparator, compressed word width data indicating no compression and the number of discontinuous words, which is the count value of the counter, are added to the beginning. to store a discontinuous data string.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

本実施例のデータ圧縮記憶方式は、1ワードを1バイト
(8ビツト)とし同一パターンの一致を比較可能な最大
ワード幅nを3とした場合の一例を示すものである。こ
のデータ圧縮記憶方式は、5 (=nX2)個のデータ
ラッチ回路1〜6と、1バイト比較器7と、2バイト比
較器8と、3ハイド比較H9と、優先順位判定回路lO
と、制御回路11と、カウンタ12と、切換え回路13
と、記憶回路14とから構成されている。
The data compression storage method of this embodiment shows an example in which one word is one byte (8 bits) and the maximum word width n that allows comparison of matching of the same pattern is three. This data compression storage system consists of 5 (=n
, a control circuit 11 , a counter 12 , and a switching circuit 13
and a memory circuit 14.

データランチ回路1〜6は、それぞれ1バイトのデータ
を保持するランチ回路であり、初段のデータラッチ回路
1から終段のデータラッチ回路6まで順次直列に接続さ
れている。初段のデータラッチ回路lの入力には、記憶
する入力データをのせるデータバス21が接続されてお
り、データランチ回路1〜6はデータバス21からの入
力データを順次後段のデータラッチ回路に送りながら全
体で6バイトの入力データを一時的に保持する。各デー
タランチ回路1〜6の出力は、ラッチデータをのせるデ
ータラッチバス22〜27にそれぞれ接続されている。
Data launch circuits 1 to 6 are launch circuits each holding 1 byte of data, and are sequentially connected in series from data latch circuit 1 at the first stage to data latch circuit 6 at the final stage. A data bus 21 carrying input data to be stored is connected to the input of the data latch circuit l in the first stage, and data launch circuits 1 to 6 sequentially send input data from the data bus 21 to the data latch circuit in the subsequent stage. However, a total of 6 bytes of input data is temporarily held. The outputs of each data launch circuit 1-6 are connected to data latch buses 22-27 carrying latch data, respectively.

1バイト比較器7は、入力がデータラッチバス26とデ
ータラッチバス27とにそれぞれ接続されており、デー
タランチバス26の1バイトデータとデータラッチバス
27の1バイトデータとを比較して一致したときにその
旨を示す1バイト比較一致信号を1バイト比較一致信号
vA31に出力する。
The 1-byte comparator 7 has inputs connected to the data latch bus 26 and the data latch bus 27, respectively, and compares the 1-byte data on the data launch bus 26 with the 1-byte data on the data latch bus 27 to determine whether they match. In some cases, a 1-byte comparison match signal indicating this fact is output as the 1-byte comparison match signal vA31.

2バイト比較器8は、入力がデータラッチバス24およ
び25とデータラッチバス26および27とにそれぞれ
接続されており、データラッチバス24および25の2
バイトデークとデータラッチバス26および27の2バ
イトデータとを比較して一致したときにその旨を示す2
バイト比較一致信号を2バイト比較一致信号線32に出
力する。
The 2-byte comparator 8 has inputs connected to data latch buses 24 and 25 and data latch buses 26 and 27, respectively, and has inputs connected to two of the data latch buses 24 and 25.
Compares the byte data with the 2-byte data on the data latch buses 26 and 27 and indicates when they match.
A byte comparison match signal is output to the 2-byte comparison match signal line 32.

3バイト比較器9は、入力がデータラッチバス22、2
3および24とデータラッチバス25.26および27
とにそれぞれ接続されており、データラッチバス22.
23および24の3バイトデータとデータラッチバス2
5.26および27の3バイトデータとを比較して一致
したときにその旨を示す3バイト比較一致信号を3バイ
ト比較一致信号線33に出力する。
The input of the 3-byte comparator 9 is the data latch bus 22, 2.
3 and 24 and data latch bus 25.26 and 27
are connected to the data latch buses 22 .
23 and 24 3-byte data and data latch bus 2
5. Compare the 3-byte data of 26 and 27 and when they match, output a 3-byte comparison match signal indicating that fact to the 3-byte comparison match signal line 33.

優先順位判定回路10は、入力を1バイト比較一致信号
線31.2バイト比較−敗信号線32および3バイト比
較−敗信号線33にそれぞれ接続されていて、1バイト
比較一致信号線31,2バイト比較一致信号線32およ
び3バイト比較−敗信号線33上の1バイト比較一致信
号、2バイト比較−敗信号および3バイト比較−敗信号
の優先順位を判定して優先権を与える比較器の番号を2
ビツトで表した一致比較器番号データを2ビツトの一致
比較器番号データバス29に出力する。すなわち、優先
順位判定回路IOは、1バイト比較器7に優先権を与え
る場合には“Ol” (“で囲われた数字は2進数であ
ることを示す、以下同様)を、2バイト比較器8に優先
権を与える場合には“10”を、3バイト比較器9に優
先権を与える場合には“11”をそれぞれ一致比較器番
号データバス29に出力する。なお、1バイト比較−敗
信号、2バイト比較一致信号および3バイト比較一致信
号のいずれも出力されておらず、いずれの比較器にも優
先権を与えない場合には、優先順位判定回路IOはその
旨を示す“OO”を一致比較器番号データとして一致比
較器番号データバス29に出力する。
The priority determination circuit 10 has inputs connected to a 1-byte comparison match signal line 31, a 2-byte comparison-defeat signal line 32, and a 3-byte comparison-defeat signal line 33, and connects the 1-byte comparison match signal lines 31, 2 A comparator that determines the priority of the 1-byte comparison match signal, 2-byte comparison-defeat signal, and 3-byte comparison-defeat signal on the byte comparison match signal line 32 and the 3-byte comparison-defeat signal line 33 and gives priority. number 2
Coincidence comparator number data expressed in bits is output to a 2-bit coincidence comparator number data bus 29. That is, when giving priority to the 1-byte comparator 7, the priority determination circuit IO assigns "Ol" (a number enclosed in " indicates a binary number, the same applies hereinafter) to the 2-byte comparator 7. When giving priority to 8, "10" is output to the coincidence comparator number data bus 29, and when giving priority to 3-byte comparator 9, "11" is output to the coincidence comparator number data bus 29. If neither the 2-byte comparison match signal nor the 3-byte comparison match signal is output and priority is not given to any comparator, the priority determination circuit IO outputs "OO" to indicate that. is output to the coincidence comparator number data bus 29 as coincidence comparator number data.

制御回路11は、入力を一致比較器番号データハス29
に接続されており、−敗比較器番号データバス29上の
一致比較器番号データを保持して、カウンタ計数指示線
34にカウンタ計数指示信号を、切換え指示線35に切
換え指示信号を、書込み指示線36に書込み指示信号を
、書込みアドレスデータバス37に書込みアドレスデー
タを、圧縮ワード幅データバス38に圧縮ワード幅デー
タをそれぞれ出力する。
The control circuit 11 inputs the match comparator number data hash 29.
It holds the match comparator number data on the -defeat comparator number data bus 29 and instructs to write a counter count instruction signal to the counter count instruction line 34 and a switching instruction signal to the switching instruction line 35. A write instruction signal is output to line 36, write address data is output to write address data bus 37, and compressed word width data is output to compressed word width data bus 38.

カウンタ12は、人力をカウンタ計数指示線34に接続
され、カウンタ計数指示線34からのカウンタ計数指示
信号に基づいてmワードの同一パターンの繰返し回数ま
たは不連続データ列のワード数を計数し、その計数値を
6ビツトの圧縮ワード数データバス30に出力する。
The counter 12 is connected manually to a counter count instruction line 34, and counts the number of repetitions of the same pattern of m words or the number of words of a discontinuous data string based on a counter count instruction signal from the counter count instruction line 34. The count value is output to the 6-bit compressed word count data bus 30.

切換え回路13は、一方の入力に2ビツトの圧縮ワード
幅データバス38と6ビツトの圧縮ワード数データバス
30とを合わせた1バイト(8ビツト)幅の圧縮コード
データが入力され、他方の入力にデータラッチバス27
が接続されている。また、制御入力に切換え指示線35
が接続されている。切換え回路13は、切換え指示線3
5からの切換え指示信号に基づいて圧縮コードデータと
データラッチバス27からのデータとを選択的に切り換
えて書込みデータバス28に出力する。
The switching circuit 13 receives compressed code data of 1 byte (8 bits) width, which is a combination of the 2-bit compressed word width data bus 38 and the 6-bit compressed word number data bus 30, at one input, and the other input. data latch bus 27
is connected. In addition, the command line 35 is switched to the control input.
is connected. The switching circuit 13 connects the switching instruction line 3
The compressed code data and the data from the data latch bus 27 are selectively switched based on the switching instruction signal from the data latch bus 27 and output to the write data bus 28.

記憶回路I4は、書込み指示線36からの書込み指示信
号に基づいて書込みデータバス28上のデータを書込み
アドレスデータバス37により指示されたアドレスに書
き込んで記憶する。
The storage circuit I4 writes and stores the data on the write data bus 28 at the address specified by the write address data bus 37 based on the write instruction signal from the write instruction line 36.

第2図を参照すると、本実施例のデータ圧縮記憶方式に
おける圧縮コードデータは1バイト(8ビツト)で構成
されていて、ビット0および1が圧縮ワード幅を示し、
ビット2〜7がビットOおよびlにより示された圧縮ワ
ード幅の同一パターンのデータの同一パターン繰返し回
数を示す。
Referring to FIG. 2, the compressed code data in the data compression storage method of this embodiment is composed of 1 byte (8 bits), and bits 0 and 1 indicate the compressed word width.
Bits 2 to 7 indicate the number of repetitions of the same pattern of compressed word width data indicated by bits O and l.

次に、このように構成された本実施例のデータ圧縮記憶
方式の動作について説明する。
Next, the operation of the data compression storage system of this embodiment configured as described above will be explained.

(1)  同一パターンのデータが連続しない場合最初
に送られてきたデータは、データラッチ回路6に保持さ
れ、次に送られてきたデータはデータラッチ回路5に保
持され、以下順次3〜6バイト目のデータがデータラッ
チ回路4〜lにそれぞれ保持されて、データラッチ回路
1〜6に全体で6バイトのデータが保持される。
(1) When data of the same pattern is not consecutive The first data sent is held in the data latch circuit 6, the next data sent is held in the data latch circuit 5, and the following 3 to 6 bytes are held in sequence. The second data is held in data latch circuits 4 to 1, respectively, and a total of 6 bytes of data is held in data latch circuits 1 to 6.

この状態では、1バイト比較器7によりデータランチ回
路6の1バイトのデータとデータラッチ回路5の1バイ
トのデータとが互いに比較され、2バイト比較器8によ
りデータラッチ回路6および5の2バイトのデータとデ
ータランチ回路4および3の2バイトのデータとが互い
に比較され、3バイト比較器9によりデークラッチ回路
6.5および4の3バイトのデータとデータラッチ回路
3.2およびIの3バイトのデータとが互いに比較され
る。
In this state, the 1-byte comparator 7 compares the 1-byte data of the data launch circuit 6 with the 1-byte data of the data latch circuit 5, and the 2-byte comparator 8 compares the 2-byte data of the data latch circuits 6 and 5. and the 2-byte data of data launch circuits 4 and 3 are compared with each other, and the 3-byte comparator 9 compares the 3-byte data of data latch circuits 6.5 and 4 with the 3-byte data of data latch circuits 3.2 and I. Bytes of data are compared with each other.

いま、同一パターンのデータが連続していない場合であ
るので、1バイト比較器7,2バイト比較器8および3
バイト比較器9の全てがデータの不一致を検出する。し
たがって、1バイト比較一致信号線31.2バイト比較
−敗信号線32および3バイト比較−敗信号線33に出
力される1バイト比較一致信号、2バイト比較一致信号
および3バイト比較一致信号はそれぞれ0”となり、優
先順位判定回路10は一致比較器番号データバス29に
一致比較器番号データとして“00′を出力する。
Now, since the data of the same pattern is not consecutive, 1-byte comparators 7, 2-byte comparators 8 and 3
All of the byte comparators 9 detect data mismatches. Therefore, the 1-byte comparison match signal, the 2-byte comparison match signal, and the 3-byte comparison match signal output to the 1-byte comparison match signal line 31, the 2-byte comparison-defeat signal line 32, and the 3-byte comparison-defeat signal line 33, respectively. 0'', and the priority determination circuit 10 outputs "00'" to the coincidence comparator number data bus 29 as coincidence comparator number data.

一致比較器番号データパス29上の一致比較器番号デー
タ“00”を入力した制御回路11は、この一致比較器
番号データ“OO″を保持し、切換え指示線35に切換
え指示信号を出力して切換え回路13にデータラッチバ
ス27を選択するように指示する。切換え指示信号を受
けた切換え回路13は、データランチバス27のデータ
を書込みデータバス28に出力するように切り換える。
The control circuit 11 inputting the coincidence comparator number data “00” on the coincidence comparator number data path 29 holds this coincidence comparator number data “OO” and outputs a switching instruction signal to the switching instruction line 35. The switching circuit 13 is instructed to select the data latch bus 27. Upon receiving the switching instruction signal, the switching circuit 13 switches to output the data on the data launch bus 27 to the write data bus 28.

また、制御回路11は、書込みアドレスデータバス37
に書込みアドレスデータを出力して記憶回路14に対し
て書込みアドレスを指示する。なお、制御回路11は、
書込みアドレスとして圧縮コードデータを格納するアド
レスを保持して、その次のアドレスから順にアドレッシ
ングする。
The control circuit 11 also controls the write address data bus 37.
The write address data is outputted to instruct the storage circuit 14 of the write address. Note that the control circuit 11 is
The address for storing compressed code data is held as a write address, and addressing is performed sequentially starting from the next address.

さらに、制御回路11は、書込み指示線36に書込み指
示信号を出力して記憶回路14に書込みデータバス28
上のデータを書き込むように指示するとともに、カウン
タ計数指示線34にカウンタ計数指示信号を出力してカ
ウンタ12に計数を行うように指示する。このため、記
憶回路14に不連続データ列のデータが1バイトだけ書
き込まれるとともに、カウンタ12が1つ計数される。
Further, the control circuit 11 outputs a write instruction signal to the write instruction line 36 to send the write data bus 28 to the memory circuit 14.
It instructs the counter 12 to write the above data, and outputs a counter count instruction signal to the counter count instruction line 34 to instruct the counter 12 to perform counting. Therefore, only one byte of data of the discontinuous data string is written into the memory circuit 14, and the counter 12 counts by one.

なお、カウンタ12の値は、−敗比較器番号データバス
29上の一致比較器番号データの値が変化した際に制御
回路12を介してゼロクリアされる。
The value of the counter 12 is cleared to zero via the control circuit 12 when the value of the match comparator number data on the -defeat comparator number data bus 29 changes.

記憶回路14にデータラッチ回路6にラッチされた1バ
イトのデータが書き込まれると、前段のデ−クラッチ回
路にランチされていた各データはそれぞれ次段のデータ
ランチ回路に転送され、初段のデータラッチ回路lには
データバス21から供給される新たな1バイトのデータ
が保持される。
When the 1-byte data latched by the data latch circuit 6 is written into the memory circuit 14, each data launched in the previous stage data latch circuit is transferred to the next stage data launch circuit, and the data is transferred to the first stage data latch circuit. New 1-byte data supplied from the data bus 21 is held in the circuit l.

上述と同様の処理が順次行われ、不連続データ列のデー
タがIハイドずつ次々に記憶回路14に書き込まれる。
Processes similar to those described above are performed sequentially, and the data of the discontinuous data string is written into the storage circuit 14 one after another in I-hyde units.

この状態から1バイト比較器7,2バイト比較器8およ
び3バイト比較器9のうちのいずれが1つの比較器でも
データの一致を検出すると、優先順位判定回路lOは一
致比較器番号データバス29に出力する一致比較器番号
データを“oo”がら他の値に変更する。
In this state, when any one of the 1-byte comparator 7, 2-byte comparator 8, and 3-byte comparator 9 detects a data match, the priority determination circuit 1O sends the match comparator number data bus 29 Change the match comparator number data output from "oo" to another value.

一致比較器番号データバス29からの一致比較器番号デ
ータが変化したことを制御回路11が検出すると、制御
回路11は保持していた圧縮コードデータをイδ納する
アドレスを書込みアドレスデータバス37に出力し、保
持していた一致比較器番号データ“00”を圧縮ワード
幅データとして圧縮ワード幅データバス3日に出力する
。また、制御回路11は、切換え指示線35に切換え指
示信号を出力して圧縮ワード幅データバス38上の2ビ
ツトの圧縮ワード幅データと圧縮ワード数データバス3
0上の圧縮ワード数データとを合成した圧縮コードデー
タを選択するように切換え回路13に指示する。さらに
、制御回路11は、記tα回路14に対して書込み指示
線36により凹込みを指示する。
When the control circuit 11 detects that the coincidence comparator number data from the coincidence comparator number data bus 29 has changed, the control circuit 11 writes an address for storing the held compressed code data δ onto the address data bus 37. The held match comparator number data "00" is output as compressed word width data on the compressed word width data bus on the third day. Further, the control circuit 11 outputs a switching instruction signal to the switching instruction line 35 to output the 2-bit compressed word width data on the compressed word width data bus 38 and the compressed word number data bus 3.
The switching circuit 13 is instructed to select the compressed code data obtained by combining the compressed word number data above 0. Further, the control circuit 11 instructs the tα circuit 14 to perform recessing via the write instruction line 36.

この結果、記憶回路14の不連続データ列が書き込まれ
た先頭のアドレス位置に圧縮コードデータが書き込まれ
る。
As a result, the compressed code data is written to the first address position in the storage circuit 14 where the discontinuous data string has been written.

(21m (rnはl≦m≦nの正整数)ハイド幅の同
一パターンのデータが連続する場合 mバイト幅のデータが一致したことをmバイト比較器が
検出すると、mバイト比較−敗信号をmバイト比較−敗
信号線に出力する。
(21m (rn is a positive integer of l≦m≦n) When data with the same pattern of hide width is consecutive When the m-byte comparator detects that m-byte-wide data match, it sends an m-byte comparison-defeat signal. Compare m bytes - Output to the failure signal line.

優先順位判定回路lOは、複数の比較−敗イε号を入力
した場合には優先順位を判定し、優先権を付与する比較
器に対応する一致比較器番号データを一致比較器番号デ
ータバス29に出力する。ここでは、一致比較器番号デ
ータバス29に出力される一致比較器番号データをmと
する。
The priority order determination circuit 1O determines the priority order when a plurality of comparison-defeat ε numbers are input, and transmits the match comparator number data corresponding to the comparator to which priority is given to the match comparator number data bus 29. Output to. Here, the coincidence comparator number data output to the coincidence comparator number data bus 29 is assumed to be m.

一致比較器番号データバス29より一致比較器番号デー
タmを入力した制御回路11は、この一致比較器番号デ
ータmを保持し、記憶回路14への書込み指示線36に
よる書込み指示を行わずにデータラッチ回路1〜6のm
バイト分のデータを次段以降のデータランチ回路に送り
、データバス21よりmハイド分の入力データを受は取
る。また、1lll ?11回路11は、mバイトごと
にカウンタ計数指示信号をカウンタ計数指示線34に出
力し、このためカウンタ12はmハイドごとに1ずつ計
数される。
The control circuit 11 that receives the coincidence comparator number data m from the coincidence comparator number data bus 29 holds the coincidence comparator number data m and writes the data without issuing a write instruction to the memory circuit 14 via the write instruction line 36. m of latch circuits 1 to 6
The data for bytes is sent to the data launch circuit of the next stage and subsequent stages, and the input data for m hides is received from the data bus 21. Also, 1llll? The 11 circuit 11 outputs a counter count instruction signal to the counter count instruction line 34 every m bytes, so that the counter 12 counts by 1 every m bytes.

上述と同様の処理が、一致比較器番号データパス29上
の一致比較器番号データがmから他の値に変化するまで
連続して行われる。
Processing similar to that described above is performed continuously until the coincidence comparator number data on the coincidence comparator number data path 29 changes from m to another value.

ここで、一致比較器番号データバス29上の一致比較器
番号データがm以外に変化すると、制御回路11は保持
していた一致比較器番号データmを圧縮ワード幅データ
バス3日に圧縮ワード幅データとして出力し、切換え指
示線35に切換え指示信号を出力して切換え回路13に
対して圧縮ワード幅データバス38と圧縮ワード数デー
タバス30とを合成した圧縮コードデータを選択するよ
うに指示する。
Here, when the match comparator number data on the match comparator number data bus 29 changes to a value other than m, the control circuit 11 transfers the held match comparator number data m to the compressed word width data bus 3. output as data and output a switching instruction signal to the switching instruction line 35 to instruct the switching circuit 13 to select compressed code data that is a combination of the compressed word width data bus 38 and the compressed word number data bus 30. .

切換え指示線35により圧縮コードデータを選択するよ
うに指示された切換え回路13は、圧縮コードデータを
書込みデータバス28に出力する。また、制御回路11
は、記憶回路14に対して書込み1旨示線36により書
込みを指示する。これにより、圧縮コードデータが記憶
回路14に書き込まれる。
The switching circuit 13 instructed to select the compressed code data by the switching instruction line 35 outputs the compressed code data to the write data bus 28 . In addition, the control circuit 11
Instructs the memory circuit 14 to write using the write 1 indication line 36. As a result, compressed code data is written into the storage circuit 14.

次に、制御回路11は、切換え指示線35に切換え指示
信号を出力して切換え回路13にデータラッチバス27
の選択を指示し、記憶回路14の圧縮ヨー1データを書
き込んだアドレスに続くアドレスから連続して後段側の
データランチ回路からmハイドのデータを記憶回路14
に書き込んでゆく。すなわち、mバイトの同一パターン
のデータを記憶回路14に書き込む。
Next, the control circuit 11 outputs a switching instruction signal to the switching instruction line 35 to send the data latch bus 27 to the switching circuit 13.
The memory circuit 14 instructs the selection of m-hide data from the data launch circuit on the subsequent stage successively from the address following the address where the compressed yaw 1 data of the memory circuit 14 is written.
I will write it in. That is, m bytes of data of the same pattern are written into the storage circuit 14.

本実施例のデータ圧縮記憶方式では、上記(1)および
(2)の処理を適宜繰り返すごとにより、人力データを
圧縮して記憶回路14に記憶することができる。
In the data compression storage system of the present embodiment, manual data can be compressed and stored in the storage circuit 14 by appropriately repeating the processes (1) and (2) above.

第3図は、入力データと圧縮後のデータとの関係の一例
を示す図である。本例では、入力データのバイトO〜3
は、不連続データ列として圧縮コードデータ”04”、
(″ イで囲われた数字は16進数であることを示す。
FIG. 3 is a diagram showing an example of the relationship between input data and compressed data. In this example, bytes O to 3 of the input data
is compressed code data “04” as a discontinuous data string,
(The numbers enclosed in squares are hexadecimal numbers.

以下同様)を先頭に付加されて圧縮後のデータのバイト
θ〜4に記憶されている。入力データのバイト4〜9は
、2バイト幅のデータが3回連続していることを示す圧
縮コードデータ“83”を先頭に付加された“FFDF
”+1というデータに圧縮されて圧縮後のデータのバイ
ト5〜7に記憶されている。入力データのバイト10〜
15は、3バイト幅のデータが2回連続していることを
示す圧縮コードデータ“C2”を先頭に付加された“A
A55DB″、というデータに圧縮されて圧縮後のデー
タのバイト8〜11に記憶されている。入力データのバ
イト16〜19は、1バイト幅のデータが4回連続して
いるということを示す圧縮コードデータ“44”□を先
頭に付加された“00″8というデータに圧縮されて圧
縮後のデータのハイド12および13に記憶されている
。このように本例では、入力データの数が20に対して
圧縮後のデータの数は14となり、記憶データ数が削減
されている。
) is added to the beginning and stored in bytes θ to 4 of the compressed data. Bytes 4 to 9 of the input data are "FFDF" with compression code data "83" added to the beginning indicating that 2-byte wide data is consecutive three times.
"+1" is compressed and stored in bytes 5 to 7 of the compressed data. Bytes 10 to 7 of the input data
15 is "A" with compressed code data "C2" added to the beginning indicating that 3-byte wide data is consecutive twice.
A55DB" and is stored in bytes 8 to 11 of the compressed data. Bytes 16 to 19 of the input data are compressed data indicating that 1-byte wide data is consecutive four times. Code data "44" □ is compressed into data "00" 8 added to the beginning and stored in hides 12 and 13 of the compressed data.In this way, in this example, the number of input data is 20. In contrast, the number of data after compression is 14, reducing the number of stored data.

ところで、本実施例のデータ圧縮記憶方式により圧縮記
憶されたデータを記憶回路14から読み出す場合には、
圧縮コードデータ内のビットOおよびlの圧縮ワード幅
データを調べて“00”ならばビット2〜7の同一パタ
ーン繰返し回数で示されるバイト数分を出力し、“01
”ならば次の1バイトデータを同一パターン繰返し回数
分出力し、lO”ならば次の2バイトのデータを同一パ
ターン繰返し回数分出力し、“11”ならば次の3バイ
トのデータを同一パターン繰返し回数分出力するように
する。
By the way, when reading data compressed and stored by the data compression storage method of this embodiment from the storage circuit 14,
Check the compressed word width data of bits O and l in the compressed code data, and if it is "00", output the number of bytes indicated by the number of repetitions of the same pattern in bits 2 to 7, and output "01".
”, then output the next 1 byte data for the number of times the same pattern is repeated, 1O”, output the next 2 bytes of data for the same pattern repeat times, and “11”, output the next 3 bytes of data for the same pattern. Output for the number of repetitions.

なお、上記実施例では、1ワードを1バイト(8ビツト
)とし同一パターンの一敗を比較可能な最大ワード幅n
を3とした場合の一例について説明したが、1ワードは
かならずしも1バイトである必要はなく、また同一パタ
ーンの一致を比較可能な最大ワード幅nも3である必要
はないことばいうまでもない。
In addition, in the above embodiment, one word is one byte (8 bits), and the maximum word width n that allows comparison of one defeat of the same pattern is
An example has been described in which the number is 3, but it goes without saying that 1 word does not necessarily have to be 1 byte, and the maximum word width n that allows comparison of matches of the same pattern does not need to be 3.

また、圧縮ワード幅データを2ビツトで示すようにした
が、同一パターンの一致を比較可能な最大ワード幅nを
大きくとった場合には、その分だけ大きなビット数が必
要になる。−最に、同一パターンの一致を比較可能な最
大ワード幅をnとすると、圧縮ワード幅データのビット
数は(1+[iogzn])ビット必要となる。
Furthermore, although the compressed word width data is shown in 2 bits, if the maximum word width n that allows matching of the same pattern to be compared is increased, a correspondingly larger number of bits will be required. -Finally, if the maximum word width that allows matching of the same pattern to be compared is n, then the number of bits of compressed word width data is (1+[iogzn]) bits.

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

以上説明したように本発明は、同一パターンの一致を比
較可能な最大ワード幅の2倍の数のデータラッチ回路と
、同一パターンの一敗を比較するlワード比較器ないし
nワード比較器と、これら比較器の優先順位判定回路と
、同一パターン繰返し回数および不連続ワード数を計数
するカウンタと、書込み動作の制御を行う制御回路とを
設けたことにより、同一パターンの比較を同時に複数の
ワード幅で行うことができ、固定ワード幅でデータ圧縮
を判定する場合に比べてさらに記憶データ量を削減でき
るという効果がある。
As explained above, the present invention includes a number of data latch circuits twice the maximum word width that can compare matches of the same pattern, an l-word comparator or an n-word comparator that compares one failure of the same pattern, By providing a priority determination circuit for these comparators, a counter that counts the number of repetitions of the same pattern and the number of discontinuous words, and a control circuit that controls the write operation, the same pattern can be compared simultaneously across multiple word widths. This has the effect of further reducing the amount of stored data compared to the case where data compression is determined based on a fixed word width.

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

第1図は本発明の一実施例を示すプロ・ツク図、第2図
は本実施例のデータ圧縮記憶方式における圧縮コードデ
ータの構成の一例を示す図、第3図は本実施例のデータ
圧縮記憶方式による入力データと圧縮後のデータとの関
係の一例を示す符号構成図である。 図において、 1〜6・データランチ回路、 7・・・1バイト比較器、 8・・・2バイト比較器、 9・・・3バイト比較器、 io・・・優先順位判定回路、 11・・・制御回路、 12・・・カウンタ、 13・・・切換え回路、 14・・・記憶回路、 21・・・データバス、 22〜27・データランチバス、 28・・・書込みデータバス、 29・・・一致比較器番号データパス、30・・・圧縮
ワード数データバス、 31・・・1バイト比較一致信号線、 32・・・2バイト比較−敗信号線、 33・・・3バイト比較一致信号線、 34・・・カウンタ計数指示線、 35・・・切換え指示線、 36・・・書込み指示線、 37・・・書込みアドレスデークバス、38・・・圧縮
ワード幅データバスである。
FIG. 1 is a program diagram showing one embodiment of the present invention, FIG. 2 is a diagram showing an example of the structure of compressed code data in the data compression storage method of this embodiment, and FIG. 3 is a diagram showing data of this embodiment. FIG. 2 is a code configuration diagram showing an example of the relationship between input data and compressed data using a compression storage method. In the figure, 1 to 6: data launch circuit, 7: 1-byte comparator, 8: 2-byte comparator, 9: 3-byte comparator, io: priority determination circuit, 11... -Control circuit, 12...Counter, 13...Switching circuit, 14...Storage circuit, 21...Data bus, 22-27-Data launch bus, 28...Write data bus, 29... - Match comparator number data path, 30... Compressed word number data bus, 31... 1 byte comparison match signal line, 32... 2 byte comparison - failure signal line, 33... 3 byte comparison match signal 34...Counter count instruction line, 35...Switching instruction line, 36...Write instruction line, 37...Write address data bus, 38...Compressed word width data bus.

Claims (1)

【特許請求の範囲】 n(正整数)×2ワードのデータを一時的に保持するデ
ータラッチ回路と、 このデータラッチ回路に保持されたn×2ワードのデー
タの先頭のワードから数えて1ワードないしnワードの
データとこれに続く1ワードないしnワードのデータと
が同一パターンのデータであるか否かを比較する1ワー
ド比較器ないしnワード比較器と、 これら1ワード比較器ないしnワード比較器の比較結果
に基づいてm(1≦m≦nの正整数)ワード比較器に優
先権を与えるかいずれの比較器にも優先権を与えない優
先順位判定回路と、 この優先順位判定回路によりmワード比較器に優先権が
与えられた場合にはmワード毎に同一パターン繰返し回
数を計数しいずれの比較器にも優先権が与えられなかっ
た場合には不連続データ列のワード数を計数するカウン
タと、 前記優先順位判定回路によりmワード比較器に優先権が
与えられた場合には前記mワード比較器に対応する圧縮
ワード幅データおよび前記カウンタの計数値である同一
パターン繰返し回数からなる圧縮コードデータを先頭に
付加して前記mワードの同一パターンのデータを記憶さ
せ前記優先順位判定回路によりいずれの比較器にも優先
権が与えられなかった場合には圧縮なしを示す圧縮ワー
ド幅データおよび前記カウンタの計数値である不連続ワ
ード数を先頭に付加して不連続データ列を記憶させる制
御回路と、 を有することを特徴とするデータ圧縮記憶方式。
[Claims] A data latch circuit that temporarily holds n (positive integer) x 2 words of data, and 1 word counted from the first word of the n x 2 words of data held in the data latch circuit. A 1-word comparator to an n-word comparator that compares 1 to n words of data with the following 1 to n words of data to see if they have the same pattern; and 1-word to n-word comparisons. a priority determination circuit that gives priority to m (a positive integer of 1≦m≦n) word comparators or does not give priority to any of the comparators based on the comparison results of the comparators; If priority is given to m-word comparators, count the number of repetitions of the same pattern every m words; if priority is not given to any comparator, count the number of words in a discontinuous data string. and a counter consisting of compressed word width data corresponding to the m-word comparator when priority is given to the m-word comparator by the priority determination circuit, and the number of times the same pattern is repeated, which is the count value of the counter. Compressed word width data that adds compressed code data to the beginning and stores the same pattern data of the m words, and indicates that no compression is performed when the priority determining circuit does not give priority to any of the comparators. and a control circuit that stores a discontinuous data string by adding the number of discontinuous words, which is the count value of the counter, to the beginning.
JP7543487A 1987-03-27 1987-03-27 Data compression storage system Expired - Lifetime JPH0650478B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7543487A JPH0650478B2 (en) 1987-03-27 1987-03-27 Data compression storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7543487A JPH0650478B2 (en) 1987-03-27 1987-03-27 Data compression storage system

Publications (2)

Publication Number Publication Date
JPS63240648A true JPS63240648A (en) 1988-10-06
JPH0650478B2 JPH0650478B2 (en) 1994-06-29

Family

ID=13576118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7543487A Expired - Lifetime JPH0650478B2 (en) 1987-03-27 1987-03-27 Data compression storage system

Country Status (1)

Country Link
JP (1) JPH0650478B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05108304A (en) * 1991-10-14 1993-04-30 Nec Corp Data compression system
JPH0629861A (en) * 1990-12-31 1994-02-04 Internatl Business Mach Corp <Ibm> Data compression method
US7051183B2 (en) 2001-08-01 2006-05-23 Nec Corporation Circuit for recording digital waveform data and method of doing the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0629861A (en) * 1990-12-31 1994-02-04 Internatl Business Mach Corp <Ibm> Data compression method
JPH05108304A (en) * 1991-10-14 1993-04-30 Nec Corp Data compression system
US7051183B2 (en) 2001-08-01 2006-05-23 Nec Corporation Circuit for recording digital waveform data and method of doing the same

Also Published As

Publication number Publication date
JPH0650478B2 (en) 1994-06-29

Similar Documents

Publication Publication Date Title
US4314356A (en) High-speed term searcher
US5936560A (en) Data compression method and apparatus performing high-speed comparison between data stored in a dictionary window and data to be compressed
JPH08274649A (en) Data compression equipment using lempel-ziv type algorithm
US4035780A (en) Priority interrupt logic circuits
JPH0795093A (en) Equipment and method for executing progressive data compresion algorithm
JPS63240648A (en) Data compressing/storing system
JPS6224741A (en) Multiplex transmission system
JP4703394B2 (en) Interface system
JPS61256440A (en) Comparison processing system with mask
JPS62154139A (en) Data selecting device
JPH05122250A (en) Message composition equipment
JPS6288031A (en) Register filing system
JPH01159729A (en) Symbol string collation memory and its cascade connection system
JPS6029671A (en) Sequence controlling circuit
JPH04352534A (en) Address comparing system for communication control equipment
JPH08125545A (en) Data compression device
JPS61198351A (en) Direct memory access control circuit
JPS62151028A (en) Data converting device
JPH06204884A (en) Data restoration circuit
JPH023093A (en) Display control circuit
JPS613244A (en) Data comparison system
JPH01133134A (en) Key value overlap checking system
JPS62239255A (en) Data input/output equipment selection system
JPH0352108B2 (en)
JPH09161488A (en) Address converter

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070629

Year of fee payment: 13