JPS63278468A - Decoding circuit for variable length code data - Google Patents

Decoding circuit for variable length code data

Info

Publication number
JPS63278468A
JPS63278468A JP11168687A JP11168687A JPS63278468A JP S63278468 A JPS63278468 A JP S63278468A JP 11168687 A JP11168687 A JP 11168687A JP 11168687 A JP11168687 A JP 11168687A JP S63278468 A JPS63278468 A JP S63278468A
Authority
JP
Japan
Prior art keywords
data
bits
dummy
bit
length code
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
JP11168687A
Other languages
Japanese (ja)
Inventor
Yoshiji Nishizawa
西沢 美次
Takashi Sakata
隆 坂田
Shinichi Maki
新一 牧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP11168687A priority Critical patent/JPS63278468A/en
Publication of JPS63278468A publication Critical patent/JPS63278468A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent even the decoding of data with consecutive zero at a latter half from being performed accidentally, by deciding the number of bits of the data included in the final byte of a transmitted data string and the number of bits of dummy bits, bracketing the data and the dummy bit when a correspondence relation exists between them, and stopping the decoding behind the dummy bit. CONSTITUTION:A data segmenting part 12 segments each code data by inputting a reception data string of byte unit. At this time, the code length of each code data can be recognized simultaneously. The number of bits of the code data included in the final byte consisting of the reception data string by impressing and processing the code length on a bit number calculation part 13. Calculated number of bits are impressed on the input on one side of a dummy bit detecting part 14, and when the number of bits of a corresponding dummy bit exist in the reception data string at the dummy bit detecting part 14, the operation of a readout control part 11 is stopped. In such a way, it is possible to obtain a decode circuit by which the bracketing of the dummy bit and the data just before can be performed clearly.

Description

【発明の詳細な説明】 〔4既  要〕 後半にデータOが連続するときはその伝送を省略すると
ともに、シリアルに出力された可変長符号のデータ列を
バイト単位で伝送されたデータ列より、各可変長符号デ
ータを切り出す可変長符号データ解読回路であっ°ζ、
伝送されたデータ列の最終バイトに含まれるデータのビ
ット数をまず算出し、そのとき存在すべきダミービット
のビット数を判定してこれらのビット数の間に一定の対
応関係があることを検出したときに、データとダミービ
ットの切り分けをし、そのダミービット以降の解読を停
止することにより、後半の0連続データまでも誤って解
読することがないようにする。
[Detailed Description of the Invention] [4 Required] When data O continues in the latter half, its transmission is omitted, and the data string of the variable length code output serially is replaced by the data string transmitted in byte units. It is a variable length code data decoding circuit that cuts out each variable length code data.
First calculates the number of data bits included in the final byte of the transmitted data string, determines the number of dummy bits that should be present at that time, and detects that there is a certain correspondence between these bit numbers. When this happens, data and dummy bits are separated and decoding after the dummy bit is stopped, thereby preventing erroneous decoding even of the latter half of the 0-consecutive data.

〔産業の利用分野〕[Field of industrial use]

本発明は可変長符号データ解読回路に関する。 The present invention relates to a variable length code data decoding circuit.

一般にデータを取扱うにはこれを一定ビット長の符号(
例えば8ビツト)で表現するのが普通である。しかし必
要に応じそのデータを可変長符号とすることも行われて
いる。−例を挙げると、画像データの場合である。特に
DPCM等のような差分符号化が行われる場合、最も発
生穎度の高いデータO(前フレームの同一筒所との間で
画像データに変化がないとき)に最も短いビット長の符
号を割り当て、逆に発生頻度が低くなるにつれて、徐々
に長いビット長の符号を割り当てる。これにより、帯域
圧縮が図れ伝送効率は同一ヒする。
Generally, when handling data, this is a code with a fixed bit length (
For example, it is usually expressed in 8 bits). However, if necessary, the data may be converted into a variable length code. - An example is the case of image data. In particular, when differential encoding such as DPCM is performed, the code with the shortest bit length is assigned to the data O with the highest degree of occurrence (when there is no change in image data from the same tube in the previous frame). , conversely, as the frequency of occurrence decreases, codes with gradually longer bit lengths are assigned. As a result, the bandwidth can be compressed and the transmission efficiency can be maintained at the same level.

〔従来の技術〕[Conventional technology]

可変長符号データは、符号長がランダムに変化するにも
拘らず、そのままビットシリアルに送出されるから、復
号回路では受信データ列から、それぞれ長さの異なるデ
ータを切り出しながら各データを再生しなければならな
い。この切り出しは、各データのパターンが予め定めた
パターンと一致するか否かを識別することにより行われ
る。このため、各データの再生が確実に行われるために
は、全てのデータが漏れなくデータの供給源から与えら
れることが前提となる。
Variable-length code data is sent bit-serial as it is, even though the code length changes randomly, so the decoding circuit must reproduce each piece of data by cutting out data of different lengths from the received data string. Must be. This cutting is performed by identifying whether the pattern of each data matches a predetermined pattern. Therefore, in order to reliably reproduce each piece of data, it is a prerequisite that all data is supplied from the data source without omission.

ところが、上記の画像データの場合を例にとると、帯域
圧縮の一層の向上のために特定のデータ0についてはそ
の伝送を省略するということが行われるようになってい
る。具体例を挙げるとテレビ画像の各フレームのデータ
は、その中を多数のブロックに分割し、ブロック単位で
データ伝送をするが、各ブロック内において後半にデー
タ0が連続するときはその伝送を省略するということが
行われるようになった。
However, taking the case of the above-mentioned image data as an example, in order to further improve band compression, transmission of specific data 0 is now omitted. To give a specific example, the data of each frame of a TV image is divided into many blocks and data is transmitted in block units, but if data 0 continues in the latter half of each block, the transmission is omitted. It has become common practice to do so.

一方、上記の各ブロックのデータ伝送を行うに際しては
これをバイト単位(例えば10数バイト)で行う。一般
の処理回路は殆どの場合バイト単位で処理を行うように
設計されているからである。
On the other hand, when data transmission of each block is performed, this is done in byte units (for example, 10-odd bytes). This is because general processing circuits are designed to perform processing in byte units in most cases.

そうすると、一連のバイトのうち最終バイトについてみ
ると、上記の0連続データの省略により、当該最終バイ
トが所定個数のビットで埋まらないという事態が発生す
る。つまり、その最終バイトは、ビット数についてみる
と、1バイトとして完成していない。そこで、このよう
な場合は、ダミービットを付加し、1バイトとして完成
した最終′バイトを形成した上で、復号回路側に伝送す
ることとしている。
Then, when looking at the final byte of the series of bytes, a situation occurs in which the final byte is not filled with a predetermined number of bits due to the above-mentioned omission of consecutive 0 data. In other words, the final byte is not a complete byte in terms of the number of bits. Therefore, in such a case, a dummy bit is added to form the final byte, which is completed as one byte, and then transmitted to the decoding circuit side.

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

上記のように最終バイトにダミービットが付加される場
合、復号回路側の解読において、そのダミービットと真
実のデータとの切り分けが明確でなく、最終バイトの次
に現れるダミービットを通常のデータとして解読してし
まうという問題があった。このような誤った解読がなさ
れると、当然データエラーとなり、上記の画像データの
例においては、画像品質の劣化を招く。
When a dummy bit is added to the final byte as described above, the decoding circuit does not clearly distinguish between the dummy bit and the real data, and the dummy bit that appears next to the final byte is treated as normal data. There was a problem with deciphering it. Such erroneous decoding naturally results in a data error, and in the above example of image data, it causes deterioration in image quality.

従って本発明は、0連続データに対しダミービットを付
加して1バイトを完成し、これを復号回路側に供給する
場合に、復号回路側でそのダミービットと直前のデータ
との切り分けを明確にすることのできる可変長符号デー
タの解読回路を提案することを目的とするものである。
Therefore, in the present invention, when a dummy bit is added to continuous 0 data to complete one byte and this is supplied to the decoding circuit, the decoding circuit clearly distinguishes between the dummy bit and the immediately preceding data. The purpose of this invention is to propose a decoding circuit for variable length code data that can be used to decode variable length code data.

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

第1図は本発明に係る可変長符号データ解読回路の原理
構成を示すブロック図である。本図において、D i 
nは符号回路側よりシリアルに出力された可変長符号の
データ列であり、可変長符号データの解読によって、各
符号データD 611Lが切り出される。D o u 
tは復号部(図示せず)に入力されて、原データが再生
される。ただし、本発明の要点はその符号データD。u
Lを切り出すための解読にある。
FIG. 1 is a block diagram showing the basic configuration of a variable length code data decoding circuit according to the present invention. In this figure, D i
n is a data string of variable length codes serially output from the code circuit side, and each code data D 611L is cut out by decoding the variable length code data. D o u
t is input to a decoding unit (not shown), and the original data is reproduced. However, the key point of the present invention is the code data D. u
It is in the deciphering to cut out L.

可変長符号データ解読回路lOの入力段には読出し制御
部11があり、ここで入力データ列Diをバイト単位に
受信する。データ切出し部12はバイト単位の受信デー
タ列を入力として、各符号データを切り出す。この切出
しに際しては、各符号データの符号長も同時に判明する
。この符号長を、ビット数算出部13に印加して処理す
ることにより、該受信データ列をなす最終バイトに含ま
れる符号データのビット数を算出する。
There is a read control section 11 at the input stage of the variable length code data decoding circuit 1O, which receives the input data string Di in units of bytes. The data cutting unit 12 receives the received data string in units of bytes as input and cuts out each code data. During this extraction, the code length of each code data is also known at the same time. By applying this code length to the bit number calculating section 13 and processing it, the number of bits of code data included in the final byte of the received data string is calculated.

この算出されたビット数は、ダミービット検出部14の
一方の入力に印加され、その他方の入力にはデータ切出
し部12において、各符号データを含む各バイトに変換
された受信データ列が印加される。このダミ二ビット検
出部14で、前記の算出されたビット数に対応するダミ
ービットのビット数が、その受信データ列に存在するこ
とが検出されたとき、読出し制御部11の動作を停止さ
せる。
This calculated number of bits is applied to one input of the dummy bit detection unit 14, and the received data string converted into each byte including each code data is applied to the other input in the data extraction unit 12. Ru. When the dummy bit detection section 14 detects that the number of dummy bits corresponding to the calculated number of bits is present in the received data string, the operation of the read control section 11 is stopped.

〔作 用〕[For production]

第2図は可変長符号データのパターン例を示す図であり
、前記符号回路側にて発生せしめられる可変長の符号デ
ータである。既述の例によれば、各ブロック内に12個
のデータa1〜a12が発生し、後半のデータa6〜a
12はデータ0の連続であって、これらは伝送を省略す
る。第1図のデータ列D!、1は第2図のデータa1〜
a5をシリアルに並べたものに相当する。この場合、バ
イト単位の伝送を行うので、データa5を含む最終バイ
トが、1バイトを構成する所定のビット数に満たないと
きはダミービット(11・・・)を付加する。
FIG. 2 is a diagram showing an example of a pattern of variable length code data, which is variable length code data generated on the code circuit side. According to the example described above, 12 data a1 to a12 are generated in each block, and the second half data a6 to a
12 is a series of data 0, and these are omitted from transmission. Data string D in Figure 1! , 1 is the data a1~ in Fig. 2
It corresponds to a5 arranged in serial form. In this case, since transmission is performed in byte units, dummy bits (11 . . . ) are added when the final byte including data a5 is less than a predetermined number of bits constituting one byte.

第3図は本発明の原理説明に用いるデータパターン図で
あり、前記のデータ列Diが、シリアルなデータ列al
−a5およびダミービットからなるとともに、バイト単
位I、■および■で区切られていることを示す。最終バ
イト■では、0連続データの直前のデータa5を少なく
とも含みかつダミービットを有している。
FIG. 3 is a data pattern diagram used to explain the principle of the present invention, in which the data string Di is a serial data string al.
-a5 and dummy bits, and is separated by byte units I, ■, and ■. The final byte {circle around (2)} includes at least the data a5 immediately before the 0 continuous data and has a dummy bit.

第1図のビット数算出部13は最終バイト■内の符号デ
ータのビット数を算出する。第3図の例では、データa
4の一部(1)とデータa5の全部(5)の合計6(=
1+5)である。今、1バイトを8ビツトで構成した例
で示しているので、ダミービットのビット数は2  (
=8−6)となる。
The bit number calculation unit 13 in FIG. 1 calculates the number of bits of code data in the final byte (2). In the example in Figure 3, data a
Part of 4 (1) and all of data a5 (5) total 6 (=
1+5). In this example, one byte consists of 8 bits, so the number of dummy bits is 2 (
=8-6).

つまり、6 vs 2という対応関係があれば、その2
ビツトはダミーピントであると判定できる。この対応関
係はダミービット検出部14が予め把握している。
In other words, if there is a correspondence relationship of 6 vs 2, the 2
It can be determined that the bit is in dummy focus. This correspondence relationship is known in advance by the dummy bit detection unit 14.

なお、ダミービットのビット数は1がら7までの7通り
である。ダミービットのビット数が0ということは、ダ
ミービットなしに、整数個のパイトロ、■・・・)でデ
ータ列り、11が構成されていることを意味する。この
場合は、もともとダミービットが付加されていないから
、ダミービットと直前のデータとの切分けを行う必要は
ない。
Note that there are seven numbers of dummy bits from 1 to 7. The fact that the number of dummy bits is 0 means that the data string 11 is composed of an integer number of pitros, . . . ) without the dummy bits. In this case, since no dummy bits are originally added, there is no need to separate the dummy bits from the immediately preceding data.

ダミービット検出部14がダミービットを検出すれば、
それ以降はデータ0の連続であることを知るとともに、
D 4 aの読出しを第2図のa6〜a12の分につい
て中断すべきことを知る。a6〜a12は伝送されてい
ないからである(この間、復号回路ではデータ0を自ら
再生する)。なお、引続き送られて来る次のブロックの
旧、は前段のバッファメモリ (図示せず)に格納され
る。
If the dummy bit detection unit 14 detects a dummy bit,
After knowing that data will continue to be 0,
It is known that the reading of D4a should be interrupted for a6 to a12 in FIG. This is because data a6 to a12 are not being transmitted (during this time, the decoding circuit reproduces data 0 by itself). Note that the old block of the next block that is subsequently sent is stored in the previous stage buffer memory (not shown).

〔実施例〕〔Example〕

第4図は本発明に基づく可変長符号データ解読回路の一
実施例を示す図であり、参照番号111゜112は第1
図の読出し制御部11に対応し、同様に、121.12
2.123はデータ切出し部12に、131はビット数
算出部13に、141 、142はダミービット検出部
14にそれぞれ対応する。参照番号111は8ビツトの
レジスタであり、クロック制御回路112の制御により
、バイト単位でデータを受信する。第5図(八)〜(E
)は第4図のA−Eにそれぞれ現れる信号を表す図であ
り、第5図(A)のパターンをもってり1.、が現れる
。第5図(A)に示すデータはバイト単位で、すなわち
第5図<A)の縦列単位でデータ回転回路121に印加
される。データ回転とは、各符号データが各バイト内に
含まれるように、データ回転回路121の入力8ビツト
線を順番に切替えることをいう(データ回転回路の詳細
例は後述)。この回転量を決めるのは回転設定回路12
3であり、例えばデコーダよりなる(後述)。このデー
タ回転回路121の機能は、第5[M (B)より明ら
かであり、各バイト(縦列)の先頭からそれぞれデータ
al、a2゜a3.a4.a5およびダミービットが現
れるよう再配置している。
FIG. 4 is a diagram showing an embodiment of the variable-length code data decoding circuit according to the present invention, and reference numbers 111 and 112 indicate the first
Similarly, 121.12 corresponds to the readout control unit 11 in the figure.
2.123 corresponds to the data extraction section 12, 131 corresponds to the bit number calculation section 13, and 141 and 142 correspond to the dummy bit detection section 14, respectively. Reference number 111 is an 8-bit register, which receives data in bytes under the control of clock control circuit 112. Figure 5 (8) - (E
) is a diagram representing the signals appearing in A to E of FIG. 4, respectively, and has the pattern of FIG. 5(A).1. , appears. The data shown in FIG. 5A is applied to the data rotation circuit 121 in units of bytes, that is, in units of columns in FIG. 5<A. Data rotation refers to sequentially switching the input 8-bit lines of the data rotation circuit 121 so that each code data is included in each byte (a detailed example of the data rotation circuit will be described later). The rotation setting circuit 12 determines this amount of rotation.
3, and includes, for example, a decoder (described later). The function of this data rotation circuit 121 is clear from the fifth [M (B), where data al, a2, a3, . a4. It is rearranged so that a5 and dummy bits appear.

データ回転回路121からの出力(第5図(B)の信号
)は抽出回路122に印加され、ここでパターンマツチ
ングを行い、各符号データの切出しを行う。マツチング
すべきパターンは、al、a2・・・等の予め決められ
たパターンであり、第5図(B)の各縦列の先頭よりパ
ターンが一致するが否かを検出する。もし内蔵のパター
ン(0010)と一致がとれればデータa1であること
が検出され、これが符号データD 6 ++ tとして
出力される。また、もしパターン(000) と一致す
れば、a4と検出される。
The output from the data rotation circuit 121 (signal in FIG. 5(B)) is applied to the extraction circuit 122, where pattern matching is performed and each code data is extracted. The patterns to be matched are predetermined patterns such as al, a2, etc., and it is detected whether the patterns match from the beginning of each column in FIG. 5(B). If it matches the built-in pattern (0010), it is detected that it is data a1, and this is output as code data D 6 ++ t. Furthermore, if it matches the pattern (000), a4 is detected.

一方、そのパターンマツチングでは、パターンの一致し
た符号データの符号長も同時に判明する。
On the other hand, in the pattern matching, the code length of code data with matching patterns is also found at the same time.

alなら4、a2なら6であるがら、抽出図H122の
もう一方の出力(C)には例えば3ビツトで表された符
号長が第5図(C)のごとく現れる(分かり易く10進
数で示す)。3ビツトとしたのは、1バイトを8ビツト
としているからである。なお、抽出回路122は例えば
デコーダで構成できる。
For al, it is 4, for a2, it is 6, but in the other output (C) of extraction diagram H122, a code length expressed in 3 bits appears as shown in Fig. 5 (C) (for easy understanding, it is shown in decimal notation). ). The reason why it is 3 bits is because 1 byte is 8 bits. Note that the extraction circuit 122 can be configured with a decoder, for example.

3ビツトの上記符号長は3ビツトの加算器131におい
で、第5図(C)の符号長4,6.4・・・の順に累積
加算される。3ビツトの加算器であるから第5図CD)
に示すごとく、キャリーCRを出しながら加算を進める
。このキャリーCRはクロック制御回路112に対し、
バイト区切りの同期制御信号として与えられる。
The 3-bit code lengths are cumulatively added in the 3-bit adder 131 in the order of code lengths 4, 6.4, . . . in FIG. 5(C). Since it is a 3-bit adder, Figure 5 CD)
As shown in the figure, the addition proceeds while issuing a carry CR. This carry CR is sent to the clock control circuit 112.
It is given as a byte-separated synchronous control signal.

一方、加算器131の累積加算値は第5図(E)のごと
く、lO進数で示すと、4,2.6・・・のように変化
する。この初めの4は、判定済みのデータa1の符号長
であり、これを取り除いて次のデータa2を先頭に出す
ようデータ回転回路121を制御する。この制御は回転
設定回路(デコーダ)123によりなされる。つまり、
第5図(B)を参照すれば、データalを4ビツト分上
方に押し出して、次のデータa2を先頭に配置する。こ
のデータa2の判定が済めば、再び6ビツト分上方にシ
フトし、次のデータa3を先頭に配置する。以下、同様
の繰り返しである。
On the other hand, the cumulative addition value of the adder 131 changes as 4, 2.6, etc. when expressed in lO base as shown in FIG. 5(E). The first 4 is the code length of the determined data a1, and the data rotation circuit 121 is controlled to remove it and output the next data a2 at the beginning. This control is performed by a rotation setting circuit (decoder) 123. In other words,
Referring to FIG. 5(B), data al is pushed upward by 4 bits and the next data a2 is placed at the beginning. Once this data a2 has been determined, it is again shifted upward by 6 bits and the next data a3 is placed at the beginning. The same process is repeated below.

かくして得た第5図(E)の累積加算値の最後の6は、
第3図の右端に示す最終パイ)III内の6ビツトを示
すことになり、この最終バイト■におい□てその先頭か
ら6ビツト目までデータが有効に存在していることを示
す。これを確認するため、その残りの2ビツトを見る。
The last 6 of the cumulative addition value in Figure 5 (E) obtained in this way is
This indicates the 6 bits in the final pie (III) shown at the right end of FIG. 3, and indicates that data is validly present in this final byte (□) from the beginning to the 6th bit. To confirm this, look at the remaining 2 bits.

この2ビツトがダミービットの“11”ならば、確実に
最終データa5とダミービットの切り分けができたこと
になる。
If these two bits are the dummy bits "11", it means that the final data a5 and the dummy bits have been reliably separated.

そこで、ダミービット検出部14をなすROM(Rea
d 0nly Memory)141のXアドレス入力
に上記の「6」が入力されたときの第5図(B)の最後
のバイトのパターンをROM141のXアドレス入力に
入力する。この場合、ダミービットの“11”(ビット
数2)が出現しているから、既述の6vs2という対応
関係がとれ、ROM141より、ダミービット検出信号
DMが出力される。信号DMはクロック制御回路112
を停止させる。上記の場合、Xアドレス入力に「6」が
与えられても、Xアドレス入力にダミービットの111
”が印加されない限り信号DMは出力されない。すなわ
ち、第5図(F、 )の最初に現れる「6」では信号D
Mは出力されない。なお信号DMは“1” (対応関係
あり)または“O” (対応関係なし)の1ビット信号
である。
Therefore, the ROM (Rea) forming the dummy bit detection section 14
The pattern of the last byte in FIG. 5B when the above "6" is input to the X address input of the ROM 141 is input to the X address input of the ROM 141. In this case, since the dummy bit "11" (bit number 2) appears, the above-mentioned 6 vs 2 correspondence is established, and the ROM 141 outputs the dummy bit detection signal DM. Signal DM is clock control circuit 112
to stop. In the above case, even if "6" is given to the X address input, the dummy bit 111 is input to the X address input.
” is applied, the signal DM is not output. In other words, at “6” that appears at the beginning of FIG. 5 (F, ), the signal D
M is not output. Note that the signal DM is a 1-bit signal of "1" (correspondence exists) or "O" (correspondence does not exist).

ダミービット検出部14は遅延回路142も有する。デ
ータ回転回路121の出力と、これと対応関係を見るべ
き加算器131の出力とでは後者の方が1バイト分遅れ
る。そこで両者のタイミングをROM141のアドレス
入力で一致させるべく、その遅延回路142を設ける。
The dummy bit detection section 14 also has a delay circuit 142. The output of the data rotation circuit 121 and the output of the adder 131 whose correspondence is to be seen are delayed by one byte. Therefore, a delay circuit 142 is provided in order to match the timings of both at the address input of the ROM 141.

第6図は第4図におけるデータ回転回路の一例を示す回
路図である。レジスタ111からのバイト単位のデータ
列は、8個のセレクタ61 、62・・・68に並列に
入力される。各セレクタは入力ビットに対する出力ビッ
トの順番が1ビツトずつシフトしている。この1ビツト
シフトがデータの回転量の1単位であり、所望の回転量
に見合ったセレクタ(61〜68)を1つ能動状態にす
る。どれを能動状態にするかは、回転設定回路123か
ら指示される。
FIG. 6 is a circuit diagram showing an example of the data rotation circuit in FIG. 4. A data string in bytes from the register 111 is input in parallel to eight selectors 61, 62, . . . , 68. In each selector, the order of output bits relative to input bits is shifted by one bit. This 1-bit shift is one unit of the data rotation amount, and one selector (61 to 68) corresponding to the desired rotation amount is activated. The rotation setting circuit 123 instructs which one should be activated.

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

以上説明したように本発明によれば、バイト単位の形成
のためにダミービットが付加されても、ダミービットと
有効な直前のデータとを誤りな(切り分けることのでき
る可変長符号データ解読回路が実現される。
As explained above, according to the present invention, even if dummy bits are added to form bytes, a variable-length code data decoding circuit that can separate the dummy bits from the valid immediately preceding data is provided. Realized.

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

第1図は本発明に係る可変長符号データ解読回路の原理
構成を示すブロック図、 第2図は可変長符号データのパターン例を示す図、 第3図は本発明の詳細説明に用いるデータパターン図、 第4図は本発明に基づく可変長符号データ解読回路の一
実施例を示す図、 第5図(A)〜(E)は第4図のA−Eにそれぞれ現れ
る信号を表す図、 第6図は第4図におけるデータ回転回路の一例を示す回
路図である。 図において、 10・・・可変長符号データ解読回路、11・・・読出
し制御部、 12・・・データ切出し部、 13・・・ビット数算出部、 14・・・ダミービット検出部。
FIG. 1 is a block diagram showing the principle configuration of a variable-length code data decoding circuit according to the present invention, FIG. 2 is a diagram showing an example of a pattern of variable-length code data, and FIG. 3 is a data pattern used for detailed explanation of the present invention. 4 is a diagram showing an embodiment of a variable-length code data decoding circuit based on the present invention. FIGS. 5(A) to 5(E) are diagrams representing signals appearing at A to E in FIG. 4, respectively. FIG. 6 is a circuit diagram showing an example of the data rotation circuit in FIG. 4. In the figure, 10... variable length code data decoding circuit, 11... readout control section, 12... data cutting section, 13... bit number calculation section, 14... dummy bit detection section.

Claims (1)

【特許請求の範囲】 1、シリアルに出力された可変長符号のデータ列をバイ
ト単位に区切り、しかもそのデータ列の後半にデータ0
が連続するときはその0連続データの伝送を省略すると
ともにダミービットを付加して最終バイトとした前記可
変長符号のデータ列を、読出し制御部(11)にて前記
バイト単位で受信した後、各可変長符号データを切り出
すための解読を、データ切出し部(12)にて行う可変
長符号データ解読回路において、 前記データ切出し部(12)にて検出された各前記可変
長符号データの符号長を累積加算して前記最終バイトに
含まれる前記符号データのビット数を算出するビット数
算出部(13)と、 前記データ切出し部(12)にて各前記可変長符号デー
タを含むように変換されたバイトと、前記の算出された
ビット数とを入力とし、該変換されたバイト内の前記ダ
ミービットのビット数と該算出されたビット数とが予め
定めた対応関係にあるか否かを判別し、その対応関係に
あると判別されたとき該ダミービットが前記最終バイト
に存在することを検出するダミービット検出部(14)
とを有し、 該ダミービットが検出されたとき、前記読出し制御部(
11)の動作を停止させることを特徴とする可変長符号
データ解読回路。 2、前記ビット数算出部(13)が、前記データ切出し
部(12)にて切り出された各前記可変長符号データの
符号長を、キャリーを出しながら累積加算する加算器(
131)からなり、その累積加算値をもって前記の算出
されたビット数となす特許請求の範囲第1項記載の解読
回路。 3、前記ダミービット検出部(14)が、前記の算出さ
れたビット、数をXアドレス入力とし、前記ダミービッ
トのビット数をYアドレス入力とするROM(Read
 Only Memory)(141)からなり、該R
OM(141)には、前記ダミービットが存在するとき
に有すべき、前記算出されたビット数と前記ダミービッ
トのビット数との対応関係が予め記憶される特許請求の
範囲第1項記載の解読回路。
[Scope of Claims] 1. Divide the serially output variable length code data string into byte units, and furthermore, the second half of the data string contains data 0.
When the 0 consecutive data is consecutive, transmission of the continuous 0 data is omitted and a dummy bit is added to make the data string of the variable length code the final byte, and after receiving the data string of the variable length code in units of bytes, In a variable-length code data decoding circuit that performs decoding for cutting out each variable-length code data in a data cut-out section (12), the code length of each variable-length code data detected by the data cut-out section (12); a bit number calculation unit (13) that calculates the number of bits of the code data included in the final byte by cumulatively adding the code data; and a bit number calculation unit (13) that calculates the number of bits of the code data included in the final byte; input the converted byte and the calculated number of bits, and determine whether or not the number of bits of the dummy bits in the converted byte and the calculated number of bits have a predetermined correspondence relationship. and a dummy bit detection unit (14) that detects that the dummy bit exists in the final byte when it is determined that there is a corresponding relationship.
and when the dummy bit is detected, the read control unit (
11) A variable length code data decoding circuit characterized in that the operation of 11) is stopped. 2. An adder (1) in which the bit number calculation unit (13) cumulatively adds the code lengths of each variable length code data extracted by the data extraction unit (12) while outputting a carry;
131), and the cumulative addition value is the calculated number of bits. 3. The dummy bit detection unit (14) uses a ROM (Read
Only Memory) (141), and the R
Claim 1, wherein the OM (141) stores in advance a correspondence relationship between the calculated number of bits and the number of bits of the dummy bits, which should be present when the dummy bits exist. decoding circuit.
JP11168687A 1987-05-09 1987-05-09 Decoding circuit for variable length code data Pending JPS63278468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11168687A JPS63278468A (en) 1987-05-09 1987-05-09 Decoding circuit for variable length code data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11168687A JPS63278468A (en) 1987-05-09 1987-05-09 Decoding circuit for variable length code data

Publications (1)

Publication Number Publication Date
JPS63278468A true JPS63278468A (en) 1988-11-16

Family

ID=14567604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11168687A Pending JPS63278468A (en) 1987-05-09 1987-05-09 Decoding circuit for variable length code data

Country Status (1)

Country Link
JP (1) JPS63278468A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015505432A (en) * 2011-12-07 2015-02-19 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method, computer program, and apparatus for decoding a variable length encoded data stream in a data processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015505432A (en) * 2011-12-07 2015-02-19 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method, computer program, and apparatus for decoding a variable length encoded data stream in a data processing system
DE112012004873B4 (en) 2011-12-07 2024-03-21 International Business Machines Corporation High bandwidth decompression of variable-length encrypted data streams

Similar Documents

Publication Publication Date Title
US5148271A (en) Method for transmission of variable length code and apparatus for coding a video signal
US7428667B2 (en) Method and device for interleaving and method and device for de-interleaving
AU603641B2 (en) Error correction method using reed-solomon code
JP3013381B2 (en) Variable length data decoding device
US20060273937A1 (en) Data encoding apparatus, data encoding method, and recording medium recorded with program
JPH06104767A (en) Variable length code decoder
JPS6068729A (en) Method and device for compressing digital data
EP0658982B1 (en) System for bi-level symbol coding-decoding with saved storage and method for the same
JPS63278468A (en) Decoding circuit for variable length code data
JP2710427B2 (en) Data block signal transmission method and apparatus
JP2010050697A (en) Apparatus and method for compressing/decompressing image
US6510248B1 (en) Run-length decoder with error concealment capability
JPS5818824B2 (en) Fukushima Shingouno Fugoukahoushiki
JPH0738626B2 (en) Word sync detection circuit
JPH07312556A (en) Decoding processing unit for variable length code
KR101733299B1 (en) Binary data real time compression and decompression method
JP2785822B2 (en) High-efficiency encoding device and decoding device for television signal
US5963152A (en) Resolving block method for synchronization correction in run-length limited codes
CA2600569C (en) Interleaving system
JPH04219033A (en) Transmission method for variable length coding data
JP3729129B2 (en) Encoding method, encoding apparatus, and recording method
JPH04109781A (en) Recording device and reproducing device
JP3108243B2 (en) Encoding and decoding device
JPH07111461A (en) Variable length coding/decoding device
JPH04277933A (en) Data compression and decompression methods