JPS6032437A - Coding system - Google Patents

Coding system

Info

Publication number
JPS6032437A
JPS6032437A JP14101783A JP14101783A JPS6032437A JP S6032437 A JPS6032437 A JP S6032437A JP 14101783 A JP14101783 A JP 14101783A JP 14101783 A JP14101783 A JP 14101783A JP S6032437 A JPS6032437 A JP S6032437A
Authority
JP
Japan
Prior art keywords
terminal
data
given
register
latch
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
JP14101783A
Other languages
Japanese (ja)
Inventor
Masaaki Takizawa
正明 滝沢
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP14101783A priority Critical patent/JPS6032437A/en
Publication of JPS6032437A publication Critical patent/JPS6032437A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/40Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To reduce the number of indexings of a decoding table by incorporating information representing a code word length to a predetermined position of a code word. CONSTITUTION:Inputted data is inputted to a data input terminal 8 of a shift register 7. When a clock is given to a terminal 10 of the register 7 during the period when logical ''1'' is given to an enable terminal 9, the register 7 shifts the data by 1 bit and the data is inputted in parallel to a latch 11. When a load signal is given to a terminal 12 of the latch 11, the latch 11 stores the parallel data. The content is decoded by the decoding table 19 and the result is outputted to a terminal 20. The load signal is given to a load terminal 14 of a counter 13 at the same time and a value inverting 2-bit data at the low end of the register 7 by an inverter 15 and fixed values of 1, 0 are fetched from a load data input terminal 16.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は符号化復号化方式、特に符号語長が可変な場合
の高速解読に適する符号語構成法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to an encoding/decoding system, and particularly to a codeword construction method suitable for high-speed decoding when the codeword length is variable.

〔発明の背景〕[Background of the invention]

従来の可変長符号の解読法として標準的な方法(例えば
吹抜: 「FAX−QA:のだめの画像の信号処理」、
日刊工業新聞社刊pi67)が知られている。即ち、第
1図に示すような方法で、同図において(a)が符号語
(Tree)を示し、(b)が解読回路の構成図を示す
。B(−0,1)の場合を例にとシ、その動作を説明す
る。
Standard methods for decoding conventional variable-length codes (e.g., "FAX-QA: Nodame image signal processing",
Nikkan Kogyo Shimbunsha publication pi67) is known. That is, in the method shown in FIG. 1, (a) shows a code word (Tree), and (b) shows a block diagram of a decoding circuit. The operation will be explained using the case of B(-0, 1) as an example.

(1)(S+受信データO)をアドレスとしてXOを読
出す。
(1) Read XO using (S+received data O) as an address.

(2)XOのLSBがOであるから(X十受信データ1
)をアドレスとしてB1を読出す。
(2) Since the LSB of XO is O (X0 received data 1
) is used as the address to read B1.

(3)BlのLSBが1であるからB1を出力する。(3) Since the LSB of Bl is 1, B1 is output.

以上水したように、従来の可変長符号を解読するために
は、解読用のテーブルをくシ返し引く必要があった。こ
れが解読時の処理ネックとなり、高速化が困難であった
As mentioned above, in order to decode conventional variable length codes, it was necessary to comb through the decoding table. This became a processing bottleneck during decoding, making it difficult to speed up the process.

このように、テーブルヲ<シ返し索表する理由は、符号
語長が最後まで解読回路にわからないことである。
The reason why the table is searched in this way is that the codeword length is not known to the decoding circuit until the end.

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

本発明の目的は、可変長符号語の解読を高速化するため
、解読テーブルの紫衣回数を減小することにある。
SUMMARY OF THE INVENTION An object of the present invention is to reduce the number of times in a decoding table in order to speed up the decoding of variable length code words.

〔発明の概要〕[Summary of the invention]

上記目的を達成するために、本発明は符号語の先頭の1
ないし数ビットに符号語長を示す情報を含ませ、解読回
路はそれによって得られたビット数だけ符号語をシフト
する手段と、シフト結果を上記の解読テーブルによシ解
読することを特徴とする。
In order to achieve the above object, the present invention provides the first one of the codewords.
Information indicating the code word length is included in one or several bits, and the decoding circuit is characterized by having means for shifting the code word by the number of bits obtained thereby, and decoding the shift result using the above decoding table. .

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

本発明による符号語の一例を第2図に示す。即ち、各符
号語の先頭の2ピツ) (00,01゜10.11)を
2進数Nとすると、符号語長は式1式% (1) 上記第2図に示す符号語の復調部の構成を示すブロック
図である。
An example of a code word according to the present invention is shown in FIG. That is, the first two bits of each code word) (00,01°10.11) is the binary number N, then the code word length is Equation 1% (1) FIG. 2 is a block diagram showing the configuration.

バッファメモリ1は、従来から周知のPIF’Q等と同
等の機能を持ち、入力、出力間の速度の差を平滑化する
ものである。即ち、X・IMMg23に入力信号のデー
タとクロックが与えられ、その信号をメモリに蓄積する
。また、エネーブル端子4に′1″の信号が与えられる
期間に、端子5にクロックを与えられると、端子6から
1ビツトずつ上記の蓄積されたデータを送出する。
The buffer memory 1 has the same function as a conventionally known PIF'Q or the like, and smoothes the difference in speed between input and output. That is, the input signal data and clock are given to the X-IMMg 23, and the signals are stored in the memory. Furthermore, when a clock is applied to the terminal 5 during the period when the signal '1'' is applied to the enable terminal 4, the accumulated data is sent out from the terminal 6 one bit at a time.

上記の送出されたデータはシフトレジスタ7のデータ入
力端子8に入力される。シフトレジスタ7ば、エネーブ
ル端子9に1″の信号が与えられた期間に、端子10に
クロックを与えられると、データを1ビツトずつシフト
させる。その結果のデータは、並列にラッチ11に人力
される。
The above sent data is input to the data input terminal 8 of the shift register 7. The shift register 7 shifts data one bit at a time when a clock is applied to the terminal 10 during the period when a 1'' signal is applied to the enable terminal 9.The resulting data is manually input to the latch 11 in parallel. Ru.

上記のラッチ11は、端子12にロード信号を与えられ
ると、上記の並列のデータを記[意する。
When the latch 11 is given a load signal to the terminal 12, it records the parallel data.

その内容は、解読テーブル19によシ解読され、その結
果は端子20に出力される。
The contents are decoded by the decoding table 19, and the result is output to the terminal 20.

同時に、上記のロード信号は、カウンタ13のロード端
子14に与えられ、シフトレジスタの下端の2ビツトの
データをインバータ15で反転した値、ならびに1と0
の固定値を、ロードデータ入力端子1Gからを収り込丑
せる。例えばノフトレジスタの下端の2ピントの値が2
進数の10とすると、カウンタ13が取シ込んだ値は、
1010となる。下線を引いた値は固定値である。この
結果2の3乗の桁を出力する・’114子17の値が°
I IIとなるので、カウンタ13のエネーブル端子も
1”となシ、カウント動作がII1始され、その値が1
ずつ増加する。クロックが6発与えられると、上記のカ
ウンタ値が” oooo”となシェネープル端子がuO
″となるので、カウント動作が停止する。
At the same time, the above load signal is applied to the load terminal 14 of the counter 13, and the value obtained by inverting the lower end 2-bit data of the shift register by the inverter 15, as well as 1 and 0.
The fixed value can be stored from the load data input terminal 1G. For example, the value of the 2nd pin at the bottom of the noft register is 2
Assuming the base number to be 10, the value received by the counter 13 is
It becomes 1010. Underlined values are fixed values. As a result, the digit of 2 to the 3rd power is output ・The value of '114 child 17 is °
I II, so the enable terminal of the counter 13 also becomes 1'', the counting operation starts II1, and the value becomes 1.
Increase by increments. When six clocks are given, the above counter value becomes "oooo" and the Chene pull terminal becomes uO.
'', the counting operation stops.

この間、上記のエネーブル信号が6クロツクの期間“1
”なので、上記のバッファメモリ1やシフトレジスタ7
は6クロツク分のデータを送出し、シフトする。これに
より、下端の2ビツトのデータが2進数の”10Mであ
る符号語長6の符号がすべてシフトされ、次の符号がシ
フトレジスタ7に入る。
During this period, the above enable signal is “1” for a period of 6 clocks.
” Therefore, the above buffer memory 1 and shift register 7
sends and shifts data for 6 clocks. As a result, all the codes of code word length 6 whose lower end 2-bit data is "10M" in binary are shifted, and the next code is entered into the shift register 7.

なお、以下の変形も本発明の範囲に含まれることは明ら
かである−0 (a) 符号語の上位2ビツトと符号語長との関係は、
式(1)の他に、任意の式で結ばれてよい。
It is clear that the following modifications are also included within the scope of the present invention.
In addition to equation (1), they may be connected using any other equation.

(b) 符号は、第2図に示す、長さで単位の準可変長
符号の他に、N単位の準可変長符号や通常の可変長符号
を用いてもよい。
(b) As for the code, in addition to the semi-variable length code shown in FIG. 2 whose length is a unit, a semi-variable length code whose length is a unit of N or a normal variable length code may be used.

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

本発明によれば、符号語長にかかわらず、解読テーブル
の索表回数が1となるので、処理の高速化が図れる。
According to the present invention, the number of times the decoding table is looked up is 1 regardless of the codeword length, so processing speed can be increased.

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

第1図は従来の可変長符号解読方式の説明図、第2図は
本発明による符号語の一実施例、第3図は本発明の実施
例を示す解読回路のブロック図である。 1・・・バッファメモリ、2,8・・・データ入力端子
、3.5.10・・・クロック入力端子、4,9.18
・・・エネーブル入力端子、6・・・バッファメモリデ
ータ出力1喘子、7・・・シフトレジスタ、11・・・
ラッチ、12.14・・・ロード信号入力端子、13・
・・カウンタ、15・・・インバータ、16・・・ロー
ドデータ入力端子、17・・・2の3乗桁出力端子、1
9・・・解読テ゛も1図 (b、) r Z 図 第 3 図
FIG. 1 is an explanatory diagram of a conventional variable length code decoding system, FIG. 2 is an embodiment of a code word according to the present invention, and FIG. 3 is a block diagram of a decoding circuit showing an embodiment of the present invention. 1... Buffer memory, 2, 8... Data input terminal, 3.5.10... Clock input terminal, 4, 9.18
... Enable input terminal, 6... Buffer memory data output 1 terminal, 7... Shift register, 11...
Latch, 12.14...Load signal input terminal, 13.
...Counter, 15...Inverter, 16...Load data input terminal, 17...2 cubed digit output terminal, 1
9...Decoding data is also shown in Figure 1 (b,) r Z Figure Figure 3

Claims (1)

【特許請求の範囲】[Claims] 符号語長が、可変となる可変長符号化方式において、上
記の符号語のうちあらかじめ定められた位置に符号語長
を示す情報を含ませることを特徴とする符号化方式。
A variable-length encoding system in which the codeword length is variable, characterized in that information indicating the codeword length is included in a predetermined position of the codeword.
JP14101783A 1983-08-03 1983-08-03 Coding system Pending JPS6032437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14101783A JPS6032437A (en) 1983-08-03 1983-08-03 Coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14101783A JPS6032437A (en) 1983-08-03 1983-08-03 Coding system

Publications (1)

Publication Number Publication Date
JPS6032437A true JPS6032437A (en) 1985-02-19

Family

ID=15282255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14101783A Pending JPS6032437A (en) 1983-08-03 1983-08-03 Coding system

Country Status (1)

Country Link
JP (1) JPS6032437A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61237520A (en) * 1985-04-13 1986-10-22 Canon Inc Data processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61237520A (en) * 1985-04-13 1986-10-22 Canon Inc Data processing method

Similar Documents

Publication Publication Date Title
US5150430A (en) Lossless data compression circuit and method
US4044347A (en) Variable-length to fixed-length conversion of minimum-redundancy codes
JP3249405B2 (en) Error correction circuit and error correction method
KR870008446A (en) Binary data compression and extension processing unit
JPS6032437A (en) Coding system
US4551706A (en) Apparatus for decoding run-length encoded data
US4914616A (en) Coded incrementer having minimal carry propagation delay
JP3190846B2 (en) Asynchronous readout circuit of binary counter
JPH0255987B2 (en)
JPS6134166B2 (en)
JP3014999B2 (en) Huffman decoding device
JPS60128722A (en) Variable length encoding and decoding system
JPH0149072B2 (en)
JPH0427754B2 (en)
JPH0377708B2 (en)
JPH039661B2 (en)
SU1536511A1 (en) Device for decoding codes with minimum redundancy
JPH01221918A (en) Variable length code converter
JPS5917456B2 (en) Buffer memory write control method
JPS60128721A (en) Variable length encoding and decoding system
JPH0456492B2 (en)
JPH0779247B2 (en) Decode circuit
JPH03198143A (en) Bus interface device and read-modified-write control system
JPS5829916B2 (en) Weyl code decoding circuit
JPH053185B2 (en)