JPH02206292A - Code converting circuit for variable length code - Google Patents

Code converting circuit for variable length code

Info

Publication number
JPH02206292A
JPH02206292A JP1025841A JP2584189A JPH02206292A JP H02206292 A JPH02206292 A JP H02206292A JP 1025841 A JP1025841 A JP 1025841A JP 2584189 A JP2584189 A JP 2584189A JP H02206292 A JPH02206292 A JP H02206292A
Authority
JP
Japan
Prior art keywords
bits
variable length
input
shift register
circuit
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
JP1025841A
Other languages
Japanese (ja)
Inventor
Toshiyuki Takahashi
敏幸 高橋
Hideo Kuroda
英夫 黒田
Yutaka Suzuki
豊 鈴木
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP1025841A priority Critical patent/JPH02206292A/en
Publication of JPH02206292A publication Critical patent/JPH02206292A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make unnecessary the effective bits of a variable length code as an input and to simplify a circuit by adding more than one discriminatable additional bits after the effective data of a variable length encoded word at a different bit length, making the lengths fixed, and detecting and eliminating the additional bits from the fixed length encoded word. CONSTITUTION:When (n)-bit variable length codes are inputted from variable length code input terminals DI1 to DIn, the bits of an input shift register 14 are shifted by one to a high-order side at the timing of a clock 2. A comparing circuit 15 inputs one discriminatable additional bit or more other than the highest-order bit of the input shift register 14 in units of a clock, and the circuit 15 detects a pattern. Further an output shift register 17 shifts the bits by one to the high-order side, and simultaneously inputs one bit outputted from the input shift register 14 to the lowest-order bit. A counter 16 counts the bits until the data of the output shift register 17 amount to the (n) bits, and when they amount to the (n) bits, the data of the output shift register 17 are outputted from output terminals DO1 DOn in parallel.

Description

【発明の詳細な説明】 (発明の属する技術分野) 本発明はテレビジョン信号の可変長符号の符号変換回路
に関するものである8 (従来の技術) テレビジョン信号の可変長符号の符号変換回路として、
−船釣な構成例を第3図に示す。同図において、DII
、DI2・・・DInは可変長符号入力端子、BII、
Br3・・・BImは可変長符号の有効ビット数入力端
子、1はローティト回路、2は第1のフリップフロップ
回路、3は切換回路、4は第2のフリップフロップ回路
、5は第3のフリップフロップ回路、6は制御回路、D
ol、002・・・D Onは出力端子である。
Detailed description of the invention (Technical field to which the invention pertains) The present invention relates to a code conversion circuit for variable length codes of television signals.8 (Prior art) As a code conversion circuit for variable length codes of television signals. ,
- An example of a boat fishing configuration is shown in Figure 3. In the same figure, DII
, DI2...DIn are variable length code input terminals, BII,
Br3...BIm is an input terminal for the effective number of bits of a variable length code, 1 is a rotation circuit, 2 is a first flip-flop circuit, 3 is a switching circuit, 4 is a second flip-flop circuit, and 5 is a third flip-flop circuit. 6 is a control circuit, D
ol, 002...D On is an output terminal.

この符号変換回路の動作を簡単にのべると、可変長符号
入力端子DII〜DInよりnビットの可変長符号がロ
ーティト回路1に並列に入力される。ローティト回路1
は、nビット内で任意のビット数、データをローティト
シフトさせて並列に出力する機能を有する。ローティト
回路1のシフト数は、可変長符号の有効ビット数入力端
子B11〜BImより制御回路6に入力される情報によ
り、制御回路6からシフト数を制御する。ローティト回
路1の出力信号は、第1のフリップフロップ回路2と、
切換回路3を介して第2のフリップフロップ回路に同時
に書き込まれる。この場合、前回のデータ書き込み時に
おいてnビットからはみ出した書き込み残しデータがあ
れば、第1のフリップフロップ回路2から切換回路3を
介して、並列データの先頭に付加する形で第2のフリッ
プフロップ回路4に書き込まれる。
Briefly describing the operation of this code conversion circuit, n-bit variable length codes are input in parallel to the rotate circuit 1 from the variable length code input terminals DII to DIn. Rotito circuit 1
has a function of rotating data by an arbitrary number of bits within n bits and outputting the data in parallel. The number of shifts in the rotate circuit 1 is controlled by the control circuit 6 based on information input to the control circuit 6 from the effective bit number input terminals B11 to BIm of the variable length code. The output signal of the rotate circuit 1 is transmitted to a first flip-flop circuit 2,
It is simultaneously written to the second flip-flop circuit via the switching circuit 3. In this case, if there is unwritten data that protrudes from n bits during the previous data write, it is transferred from the first flip-flop circuit 2 via the switching circuit 3 to the second flip-flop circuit 2 by adding it to the beginning of the parallel data. Written into circuit 4.

このようにして、第2のフリップフロップ回路4に書き
込まれた並列データがnビットに達しない場合には1次
の可変長符号データは、先頭ビットが第2のフリップフ
ロップ回路4に書き込まれたデータの最後尾に位置する
ように変換され、第2のフリップフロップ回路4に書き
込まれる。
In this way, when the parallel data written to the second flip-flop circuit 4 does not reach n bits, the first bit of the primary variable length code data is written to the second flip-flop circuit 4. The data is converted to be located at the end of the data and written to the second flip-flop circuit 4.

このようにして、第2のフリップフロップ回路4に書き
込まれたデータ数がnビットに達したときは、その内容
が第3のフリップフロップ回路5に書き込まれ、所定の
タイミングにおいて出力データとして出力端子Dot〜
Donから出力される。
In this way, when the number of data written to the second flip-flop circuit 4 reaches n bits, the content is written to the third flip-flop circuit 5, and at a predetermined timing, the data is output to the output terminal. Dot~
Output from Don.

この符号変換回路では、可変長符号と可変長符号の有効
ビット数の2つのデータが必要であり。
This code conversion circuit requires two pieces of data: a variable length code and the number of effective bits of the variable length code.

第3図に示すように回路が複雑な構成となるという欠点
がある。
There is a drawback that the circuit has a complicated configuration as shown in FIG.

(発明の目的) 本発明は、上記従来欠点を解決し、入力として可変長符
号の有効ビット数を必要としないようにして1回路構成
を簡単化することを目的とするものである。
(Objective of the Invention) It is an object of the present invention to solve the above conventional drawbacks and to simplify one circuit configuration by eliminating the need for the effective number of bits of a variable length code as an input.

(発明の構成) (発明の特徴と従来技術との差異) 本発明は上記目的を達成するため、発生頻度の高い、低
い事象に対して夫々短い符号語、長い符号語を割り当て
ることにより、平均符号語を短くする可変長符号化回路
において、ビット長の異なる可変長符号語の有効データ
の後に、1ビツト以上の識別可能な付加ビットを加える
ことにより、固定長化した符号語を入力して、この固定
長の符号語から前記付加ビットを検出して除去し、可変
長符号のみを連続したビット列に変換し出力することを
特徴とする。
(Structure of the Invention) (Characteristics of the Invention and Differences from the Prior Art) In order to achieve the above object, the present invention assigns short code words and long code words to events with high and low occurrence frequencies, so that the average In a variable-length encoding circuit that shortens codewords, a fixed-length codeword is input by adding one or more distinguishable additional bits after the valid data of a variable-length codeword with a different bit length. , the additional bits are detected and removed from the fixed-length code word, and only the variable-length code is converted into a continuous bit string and output.

従来技術では、符号変換する際に、可変長符号と可変長
符号の有効ビット数の2つのデータが必要であるに対し
1本発明は入力として可変長符号の有効ビット数を必要
としない点が異なる。
In the conventional technology, when performing code conversion, two pieces of data are required: the variable length code and the effective number of bits of the variable length code.One advantage of the present invention is that the effective number of bits of the variable length code is not required as input. different.

(実施例) 第1図は本発明の一実施例に、よる回路図を示し。(Example) FIG. 1 shows a circuit diagram according to an embodiment of the present invention.

同図において、DII、DI2・・・DInは可変長符
号入力端子、10はクロック端子、11はリセット端子
、12は入力要求端子、13は遅延回路、14は入力シ
フトレジスタ、15は比較回路、16はカウンタ、17
は出力シフトレジスタ、18は出力要求端子、001,
002・・・Donは出力端子である。
In the figure, DII, DI2...DIn are variable length code input terminals, 10 is a clock terminal, 11 is a reset terminal, 12 is an input request terminal, 13 is a delay circuit, 14 is an input shift register, 15 is a comparison circuit, 16 is a counter, 17
is an output shift register, 18 is an output request terminal, 001,
002...Don is an output terminal.

次に動作を説明すると、この回路はその動作開始時にリ
セット端子11にリセットパルスが入力され、入力シフ
トレジスタ14と出力レジスタ17の全てのビットが0
”クリアされる。また同時に、カウンタ16のカウンタ
値が“0”クリアされる。
Next, to explain the operation, when this circuit starts operating, a reset pulse is input to the reset terminal 11, and all bits of the input shift register 14 and output register 17 are set to 0.
" is cleared. At the same time, the counter value of the counter 16 is cleared to "0".

この回路はクロック端子10から入力されるクロックを
基に動作する。
This circuit operates based on the clock input from the clock terminal 10.

第2図は可変長符号入力端子DII〜DInのビット幅
を8ビツトとした場合の入力シフトレジスタ14と出力
シフトレジスタ17のクロック単位((1) 〜(9)
)でのデータ(a□〜a、、b1〜b2.c1〜as)
をそれぞれSl(入力)と82(出力)に示す。
Figure 2 shows the clock units ((1) to (9)) of the input shift register 14 and output shift register 17 when the bit width of the variable-length code input terminals DII to DIn is 8 bits.
) data (a□~a,,b1~b2.c1~as)
are shown at Sl (input) and 82 (output), respectively.

いま、可変長符号入力端子DII〜DInからnビット
可変長符号が入力シフトレジスタ14に並列に入力され
ると、次に、入力シフトレジスタ14のビットを第2図
81に示すクロック(2)のタイミングで上位側に1ビ
ツトシフトさせる。
Now, when n-bit variable length codes are input in parallel to the input shift register 14 from the variable length code input terminals DII to DIn, the bits of the input shift register 14 are changed to the clock (2) shown in FIG. Shift one bit to the upper side at the appropriate timing.

比較回路15では、クロック単位に入力シフト?。In the comparison circuit 15, the input is shifted in clock units? .

ジスタ14の最上位の1ビツトを除く1ビツト以上の識
別可能な付加ビットを入力し、回倒では入力したビット
列の最上位ビットがII I 11、その後の最下位ビ
ットまでが“0”が付加され、そのパターンを比較回路
15で検出する。そしてこのパターンが検出された場合
は、第2図に示すクロック(4)、 (6)のタイミン
グで比較回路15は入力要求端子12と遅延回路13に
入力要求パルスを出力し、第2図に示す次のクロック(
5)、 (7)のタイミングで、遅延回路13は入力シ
フトレジスタ14に入力要求パルスを出力し、それと同
時に、可変長符号化端子DII〜DInから可変長符号
を入力シフトレジスタ14に入力する。
Input one or more distinguishable additional bits excluding the most significant bit of the register 14, and in the inversion, the most significant bit of the input bit string is II I 11, and "0" is added to the subsequent least significant bits. The comparison circuit 15 detects the pattern. If this pattern is detected, the comparison circuit 15 outputs an input request pulse to the input request terminal 12 and the delay circuit 13 at the timing of clocks (4) and (6) shown in FIG. Shows the next clock (
At the timings 5) and (7), the delay circuit 13 outputs an input request pulse to the input shift register 14, and at the same time inputs variable length codes to the input shift register 14 from the variable length encoding terminals DII to DIn.

出力シフトレジスタ17は、上位側に1ビツトシフトし
、それと同時に、入力シフトレジスタ14から出力され
る1ビツトを最下位ビットに入力する。
The output shift register 17 shifts one bit to the higher order side, and at the same time inputs the one bit output from the input shift register 14 to the least significant bit.

カウンタ16は、出力シフトレジスタ17のデータがn
ビットになるのをカウンタし、nビットになった場合は
、第2図に示すクロック(9)のタイミングで出力要求
端子18から要求パルスを出力し、出力シフトレジスタ
17のデータを出力端子D○1〜Donから並列に出力
する。
The counter 16 is configured so that the data in the output shift register 17 is n.
When the number of n bits is reached, a request pulse is output from the output request terminal 18 at the timing of clock (9) shown in FIG. 2, and the data of the output shift register 17 is transferred to the output terminal D○. Output in parallel from 1 to Don.

上述した付加ビットとして、it 1 uと連続する“
07+で構成する例を示したが(第2図参照)、この逆
でも全く支障がない。また、他の任意の識別可能な付加
ビットであっても同様の効果が得られる。
As the additional bit mentioned above, “
07+ (see FIG. 2), the reverse is also possible without any problem. Furthermore, the same effect can be obtained using any other distinguishable additional bit.

(発明の効果) 以上説明したように1本発明によれば、従来のように入
力として可変長符号の有効ビット数を必要としないので
、その分目路が簡単に構成することができる。また、符
号変換回路としてマイクロプロセッサ(MPU)または
ディジタルシグナルプロセッサ(D S P)で回路を
構成することも容易である。
(Effects of the Invention) As described above, according to the present invention, the effective number of bits of a variable length code is not required as an input unlike in the conventional case, and therefore the route can be configured easily. Further, it is also easy to configure the code conversion circuit using a microprocessor (MPU) or a digital signal processor (DSP).

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

第1図は本発明の一実施例としての符号変換回路の回路
図、第2図は第1図の符号変換回路の動作説明図、第3
図は従来の符号変換回路の回路図である。 DII〜DIn ・・・可変長符号入力端子、001〜
Don ・・・出力端子、10・・・クロック端子、1
1・・・ リセット端子、12・・・入力要求端子、1
3・・・遅延回路、14・・・入力シフトレジスタ、1
5・・・比較回路、16・・・カウンタ、17・・・出
力シフトレジスタ、18・・・出力要求端子。 特許出願人 日本電信電話株式会社
FIG. 1 is a circuit diagram of a code conversion circuit as an embodiment of the present invention, FIG. 2 is an explanatory diagram of the operation of the code conversion circuit of FIG. 1, and FIG.
The figure is a circuit diagram of a conventional code conversion circuit. DII~DIn...Variable length code input terminal, 001~
Don...Output terminal, 10...Clock terminal, 1
1... Reset terminal, 12... Input request terminal, 1
3...Delay circuit, 14...Input shift register, 1
5... Comparison circuit, 16... Counter, 17... Output shift register, 18... Output request terminal. Patent applicant Nippon Telegraph and Telephone Corporation

Claims (1)

【特許請求の範囲】[Claims] 発生頻度の高い、低い事象に対して夫々短い符号語、長
い符号語を割り当てることにより、平均符号語を短くす
る可変長符号化回路において、ビット長の異なる可変長
符号語の有効データの後に、1ビット以上の識別可能な
付加ビットを加えることにより、固定長化した符号語を
入力して、この固定長の符号語から前記付加ビットを検
出して除去し、可変長符号のみを連続したビット列に変
換し出力することを特徴とする可変長符号の符号変換回
路。
In a variable-length encoding circuit that shortens the average codeword by assigning short and long codewords to events with high and low occurrence frequencies, respectively, after valid data of variable-length codewords with different bit lengths, A code word made into a fixed length by adding one or more distinguishable additional bits is input, and the additional bits are detected and removed from this fixed length code word, and only a variable length code is made into a continuous bit string. A code conversion circuit for a variable length code, which converts and outputs a variable length code.
JP1025841A 1989-02-06 1989-02-06 Code converting circuit for variable length code Pending JPH02206292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1025841A JPH02206292A (en) 1989-02-06 1989-02-06 Code converting circuit for variable length code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1025841A JPH02206292A (en) 1989-02-06 1989-02-06 Code converting circuit for variable length code

Publications (1)

Publication Number Publication Date
JPH02206292A true JPH02206292A (en) 1990-08-16

Family

ID=12177078

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1025841A Pending JPH02206292A (en) 1989-02-06 1989-02-06 Code converting circuit for variable length code

Country Status (1)

Country Link
JP (1) JPH02206292A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998010591A1 (en) * 1996-09-02 1998-03-12 Kabushiki Kaisha Toshiba Information transmitting method, encoder/decoder of information transmitting system using the method, and encoding multiplexer/decoding inverse multiplexer

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63279686A (en) * 1987-05-12 1988-11-16 Mitsubishi Electric Corp Variable length coding transmitter

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63279686A (en) * 1987-05-12 1988-11-16 Mitsubishi Electric Corp Variable length coding transmitter

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998010591A1 (en) * 1996-09-02 1998-03-12 Kabushiki Kaisha Toshiba Information transmitting method, encoder/decoder of information transmitting system using the method, and encoding multiplexer/decoding inverse multiplexer
US6876676B2 (en) 1996-09-02 2005-04-05 Kabushiki Kaisha Toshiba Information transmission method and encoding/decoding apparatus and encoding-multiplexing/decoding-demultiplexing apparatus in information transmission system to which information transmission method is applied
US6952432B2 (en) 1996-09-02 2005-10-04 Kabushiki Kaisha Toshiba Information transmission method and encoding/decoding apparatus and encoding- multiplexing/decoding- demultiplexing apparatus in information transmission system to which information transmission method is applied
US6959018B2 (en) 1996-09-02 2005-10-25 Kabushiki Kaisha Toshiba Information transmission method and encoding/decoding apparatus and encoding-multiplexing/decoding-demultiplexing apparatus in information transmission system to which information transmission method is applied
US6961354B2 (en) 1996-09-02 2005-11-01 Kabushiki Kaisha Toshiba Information transmission method and encoding/decoding apparatus and encoding-multiplexing/decoding-demultiplexing apparatus in information transmission system in which information transmission method is applied
US7002999B2 (en) 1996-09-02 2006-02-21 Kabushiki Kaisha Toshiba Information transmission method and encoding/decoding apparatus and encoding-multiplexing/decoding-demultiplexing apparatus in information transmission system to which information transmission method is applied
US7010003B2 (en) 1996-09-02 2006-03-07 Kabushiki Kaisha Toshiba Information transmission method and encoding/decoding apparatus and encoding-multiplexing/decoding-demultiplexing apparatus in information transmission system to which information transmission method is applied
US7269170B2 (en) 1996-09-02 2007-09-11 Kabushiki Kaisha Toshiba Information transmission method and encoding/decoding apparatus and encoding-multiplexing/decoding-demultiplexing apparatus in information transmission system to which information transmission method is applied

Similar Documents

Publication Publication Date Title
JP3294026B2 (en) High-speed variable-length decoding device
KR850001444B1 (en) Digital signal processing circuit
JPS61237520A (en) Data processing method
US4481648A (en) Method and system for producing a synchronous signal from _cyclic-redundancy-coded digital data blocks
JPH02206292A (en) Code converting circuit for variable length code
JPH0578104B2 (en)
JPS5958929A (en) Device for transmitting wide band audio signal
JP3225821B2 (en) Pulse width selection signal output device
JP3201352B2 (en) Synchronization circuit
JPH01314023A (en) Digital signal processing circuit
JPS6313607B2 (en)
JP3389292B2 (en) Divider circuit
JPH071885B2 (en) Word synchronizer
KR860001344B1 (en) Digital data code conversion circuit for variable word-length data code
KR0133508B1 (en) Interleaving and channel dividing circuit for digital data i/o
JP2661811B2 (en) Frame pattern detection circuit
SU1441486A1 (en) Table code converter
JPH053185B2 (en)
JPH0340986B2 (en)
JPH0241214B2 (en)
JPH07123214B2 (en) D / A converter
JPS5832826B2 (en) Orthogonal transform encoding circuit
JPH10215185A (en) Asynchronous read circuit for binary counter
JPH0779247B2 (en) Decode circuit
JPH053187B2 (en)