JPH0477120A - Variable-length data encoder - Google Patents

Variable-length data encoder

Info

Publication number
JPH0477120A
JPH0477120A JP2188905A JP18890590A JPH0477120A JP H0477120 A JPH0477120 A JP H0477120A JP 2188905 A JP2188905 A JP 2188905A JP 18890590 A JP18890590 A JP 18890590A JP H0477120 A JPH0477120 A JP H0477120A
Authority
JP
Japan
Prior art keywords
data
parallel
bit
variable length
length
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
JP2188905A
Other languages
Japanese (ja)
Inventor
Akihiro Sato
昭博 佐藤
Yoriyasu Takeguchi
竹口 順康
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2188905A priority Critical patent/JPH0477120A/en
Publication of JPH0477120A publication Critical patent/JPH0477120A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform the bit shift of a parallel variable-length data in a lump and to efficiently perform the variable-length encoding processing at high speed by providing an accumulation adder accumulating the data length of the parallel variable-length data and a parallel shift circuit parallely bit-shifting the parallel variable-length data with the output of the accumulation adder. CONSTITUTION:Data of L1=8 bits are outputted from a parallel shift circuit 12, and when data of L2=10 are inputted to the parallel shift circuit 12, a bit shift number '8' is transmitted from an accumulation adder 13, and the data of L2=10 bits are outputted from the parallel shift circuit 12. Next, when data of L3=7 bits are inputted to the parallel shift circuit 12, the bit shift number outputted from the accumulation adder 13 goes to '18', the signal indicating the alignment with 16-bit width is transmitted to an alignment circuit 14, and a bit shift number '2' (18-16) is transmitted to the parallel shift circuit 12. Thus, the data of L3=7 bits are outputted from the parallel shift circuit 12 while 2 bit-shifted.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、可変長符号化装置に関するものである。[Detailed description of the invention] Industrial applications The present invention relates to a variable length encoding device.

従来の技術 従来、このような分野の技術としては、各可変長符号デ
ータのピント長に応して、1ビツトずつシフトしながら
出力データを作成するものがあった。従来の可変長符号
化装置の一例を第3図に示す。
2. Description of the Related Art Conventionally, as a technique in this field, there has been a technique in which output data is created by shifting one bit at a time in accordance with the focus length of each variable length code data. An example of a conventional variable length encoding device is shown in FIG.

31は変換回路、32.35はシフトレジスタ、33.
36はカウンタ、34はコントローラ、37はラッチ、
38は並列可変長データ、39は並列可変長データのデ
ータ長である。
31 is a conversion circuit, 32.35 is a shift register, 33.
36 is a counter, 34 is a controller, 37 is a latch,
38 is parallel variable length data, and 39 is the data length of parallel variable length data.

まず、固定長データが変換回路31に入力される。そし
てこの固定長データに対応した並列可変長データ38及
びそのデータ長39が変換回路31より出力され、各々
ソフトレジスタ32、カウンタ33に格納される。コン
トローラ34からの指令により、カウンタ33にロード
されたデータ長が0になるまでカウンタ33をカウント
ダウンする。そして、そのカウントダウン数だけシフト
レジスタ32を1ビツトずつシフトする。さらにシフト
レジスタ35は、その出力を取り込みシフトする。この
場合に、シフトレジスタ35の入力データ数をカウンタ
36にて計数し、カウンタ36がある値に達する毎に、
シフトレジスタ35から並列の可変長符号データをラッ
チ37にロードする。
First, fixed length data is input to the conversion circuit 31. Parallel variable length data 38 and its data length 39 corresponding to this fixed length data are output from the conversion circuit 31 and stored in the soft register 32 and counter 33, respectively. In response to a command from the controller 34, the counter 33 is counted down until the data length loaded into the counter 33 becomes 0. Then, the shift register 32 is shifted bit by bit by the countdown number. Furthermore, the shift register 35 receives and shifts the output. In this case, the number of input data of the shift register 35 is counted by the counter 36, and each time the counter 36 reaches a certain value,
Parallel variable length code data is loaded from the shift register 35 into the latch 37.

発明が解決しようとする課題 以上のように、従来の可変長符号化装置では、可変長符
号データを1ビツトずつシフトするために、符号化作成
に時間がかかり処理のスピードを遅らせるといった問題
があった。
Problems to be Solved by the Invention As mentioned above, conventional variable length encoding devices have the problem of shifting variable length code data one bit at a time, which takes time to create the encoding and slows down the processing speed. Ta.

本発明は、上記問題点を除去し、効率よく高速処理が行
える可変長符号化装置を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a variable length encoding device that eliminates the above-mentioned problems and can efficiently perform high-speed processing.

課題を解決するための手段 本発明は、上記問題点を解決するために、固定長データ
を並列可変長データと前記並列可変長データに対応する
データ長に変換する変換回路と、前記並列可変長データ
のデータ長を累積するlog2N(Nは2のべき乗値)
ビットの累加算器と、前記累加算器の出力により前記並
列可変長データを並列にビットシフトする並列シフト回
路と、前記並列シフト回路の出力をレジスタに順次蓄積
し蓄積したビット幅がNビットを越えた時Nビット分の
データを出力する整列回路を備えたものである。
Means for Solving the Problems In order to solve the above problems, the present invention provides a conversion circuit that converts fixed length data into parallel variable length data and a data length corresponding to the parallel variable length data; log2N (N is a power of 2) to accumulate the data length of data
a bit accumulator, a parallel shift circuit that bit-shifts the parallel variable length data in parallel using the output of the accumulator, and the output of the parallel shift circuit is sequentially accumulated in a register so that the accumulated bit width is N bits. It is equipped with an alignment circuit that outputs N bits of data when the number exceeds the limit.

作用 本発明によれば、上記のように、固定長データを並列可
変長データと前記並列可変長データに対応するデータ長
に変換する変換回路と、前記並列可変長データのデータ
長を累積するlog2N(Nは2のべき乗値)ビットの
累加算器と、前記累加算器の出力により前記並列可変長
データを並列にビットシフトする並列シフト回路と、前
記並列シフト回路の出力をレジスタに順次蓄積し蓄積し
たビット幅がNビットを越えた時Nビット分のデータを
出力する整列回路を備えているので、データ長が累加算
器に累積され、その累積値により並列可変長データが一
括にビットシフトできる。
According to the present invention, as described above, there is provided a conversion circuit that converts fixed length data into parallel variable length data and a data length corresponding to the parallel variable length data, and a log2N circuit that accumulates the data length of the parallel variable length data. (N is a power of 2) bit accumulator, a parallel shift circuit that bit-shifts the parallel variable length data in parallel using the output of the accumulator, and the output of the parallel shift circuit is sequentially accumulated in a register. Equipped with an alignment circuit that outputs N bits of data when the accumulated bit width exceeds N bits, the data length is accumulated in the accumulator, and the accumulated value allows parallel variable length data to be bit-shifted all at once. can.

従って、効率よくかつ高速に可変長符号化処理を行うこ
とができる。
Therefore, variable length encoding processing can be performed efficiently and at high speed.

実施例 以下、本発明の実施例を図面を用いて詳細に説明する。Example Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例を示す可変長符号化装置の概
略構成図、第2図は本発明の実施例を示す並列シフト回
路の動作説明図である。
FIG. 1 is a schematic configuration diagram of a variable length encoding device showing an embodiment of the present invention, and FIG. 2 is an explanatory diagram of the operation of a parallel shift circuit showing an embodiment of the present invention.

第1図において、11は変換回路、12は並列シフト回
路、13は累加算器、14は整列回路、15.18は並
列可変長データ、16は並列可変長データのデータ長、
17はビットシフト数、19は信号である。
In FIG. 1, 11 is a conversion circuit, 12 is a parallel shift circuit, 13 is an accumulator, 14 is an alignment circuit, 15.18 is parallel variable length data, 16 is the data length of parallel variable length data,
17 is the number of bit shifts, and 19 is a signal.

まず、固定長データが変換回路11に入力される。そし
てこの固定長データに対応した並列可変長データ15及
びそのデータ長16が変換回路11より出力され、各々
並列シフト回路12、累加算器13に入力される。累加
算器13に入力されたデータ長16は累積され、その累
積値によりビットシフト数17が決まる。このビットシ
フト数17が累加算器13より出力され、並列シフト回
路12に入力されるが、並列シフト回路12においては
、この入力されたビットシフト数17により並列可変長
データ15のビットシフトを行う。
First, fixed length data is input to the conversion circuit 11. Parallel variable length data 15 and its data length 16 corresponding to this fixed length data are output from the conversion circuit 11 and input to the parallel shift circuit 12 and accumulator 13, respectively. The data length 16 input to the accumulator 13 is accumulated, and the number of bit shifts 17 is determined by the accumulated value. This bit shift number 17 is outputted from the accumulator 13 and inputted to the parallel shift circuit 12. In the parallel shift circuit 12, the bit shift of the parallel variable length data 15 is performed using the input bit shift number 17. .

ビットシフトを行った並列可変長データ18は整列回路
14に人力される。また、累加算器13において累積さ
れた累積値により、並列可変長データがNビット幅で整
列したことを示す信号19が整列回路14に送られる。
The bit-shifted parallel variable length data 18 is manually input to the alignment circuit 14. In addition, a signal 19 indicating that the parallel variable-length data has been aligned with N bit width is sent to the alignment circuit 14 based on the cumulative value accumulated in the accumulator 13.

この信号19により、Nビット幅の並列可変長データが
整列回路14より出力される。
In response to this signal 19, N-bit wide parallel variable length data is output from the alignment circuit 14.

次に、本発明の実施例を示す並列シフト回路の動作説明
図について第2図を参照しながら説明する。
Next, an explanation diagram of the operation of a parallel shift circuit showing an embodiment of the present invention will be described with reference to FIG.

第2図(a)において、21は並列可変長データである
。また、しは並列可変長データのデータ長、Mは並列シ
フト回路12の出力、Nは整列回路14における出力ビ
ツト幅、Xはビットシフト数である0本実施例では、L
は最大19ビツトの可変長、Mは34ビツトの固定長、
Nは16ビツトの固定長、Xは0≦X≦(M−L)の値
をとる。
In FIG. 2(a), 21 is parallel variable length data. In addition, is the data length of the parallel variable length data, M is the output of the parallel shift circuit 12, N is the output bit width in the alignment circuit 14, and X is the number of bit shifts.
is a variable length of maximum 19 bits, M is a fixed length of 34 bits,
N is a fixed length of 16 bits, and X takes a value of 0≦X≦(ML).

例として、並列可変長データのデータ長りを、L□=8
.L2=10.L8=7.L、=5と設定した場合を考
える。
As an example, the data length of parallel variable length data is L□=8
.. L2=10. L8=7. Consider the case where L,=5.

まず、第2図(b)に示すように、Ll−8ピントのデ
ータが並列シフト回路12より出力される。
First, as shown in FIG. 2(b), the data of L1-8 pinto is output from the parallel shift circuit 12.

次にL2=10ビットのデータが並列シフト回路12に
入力されると、累加算器13からビットシフト数“8°
゛が送られて、第2図(C)に示すように、L2=10
ビットのデータは8ビ、トシフトした形で並列シフト回
路12より出力される。次にL3=7ビノトのデータが
並列シフト回路12に入力されると、累加算器13から
出力されるビットシフト数は“18”となり、整列回路
14における出力ビツト幅である16ビツトを超えてい
るので、整列回路14には16ビツト幅で整列したこと
を示す信号を送り、並列シフト回B12にはビットシフ
ト数°“2”(1B−16)を送る。よってL8=7ビ
ツトのデータは第2図(d)に示すように、2ビツトシ
フトした形で並列シフト回路12より出力される。その
後、L、=5ビットのデータが並列シフト回路12に入
力されると、第2図(e)に示すように、9ビツトシフ
トした形で並列シフト回路12より出力される。
Next, when L2=10 bits of data is input to the parallel shift circuit 12, the accumulator 13 outputs the bit shift number “8°”.
゛ is sent, and as shown in Figure 2 (C), L2 = 10
The bit data is output from the parallel shift circuit 12 in a form shifted by 8 bits. Next, when L3=7 bits of data is input to the parallel shift circuit 12, the number of bit shifts output from the accumulator 13 becomes "18", exceeding the output bit width of 16 bits in the alignment circuit 14. Therefore, a signal is sent to the alignment circuit 14 indicating that the bits have been aligned with a width of 16 bits, and a bit shift number .degree. "2" (1B-16) is sent to the parallel shift circuit B12. Therefore, the data of L8=7 bits is output from the parallel shift circuit 12 in a form shifted by 2 bits, as shown in FIG. 2(d). Thereafter, when data of L,=5 bits is input to the parallel shift circuit 12, it is outputted from the parallel shift circuit 12 in a form shifted by 9 bits, as shown in FIG. 2(e).

上記のように、本貫施例の可変長符号化装置は、並列可
変長データのデータ長を累積する累加算器と、累加算器
の出力により並列可変長データを並列にピントシフトす
る並列シフト回路を備えているので、並列可変長データ
のビットソフトが一括にでき、効率よくかつ高速に可変
長符号化処理を行うことができる。
As described above, the variable length encoding device of this embodiment includes an accumulator that accumulates the data length of parallel variable length data, and a parallel shifter that shifts the focus of the parallel variable length data in parallel using the output of the accumulator. Since it is equipped with a circuit, bit software of parallel variable-length data can be processed at once, and variable-length encoding processing can be performed efficiently and at high speed.

なお、本発明は上記実施例に限定されるものではなく、
本発明の趣旨に基づいて種々の変形が可能であり、これ
らを本発明の範囲から排除するものではない。
Note that the present invention is not limited to the above embodiments,
Various modifications are possible based on the spirit of the present invention, and these are not excluded from the scope of the present invention.

発明の効果 以上、詳細に説明したように本発明は、並列可変長デー
タのデータ長を累積する累加算器と、累加算器の出力に
より並列可変長データを並列にピントシフトする並列シ
フト回路を備えているので、並列可変長データのビット
シフトを一括に行え、効率よくかつ高速に可変長符号化
処理を行うことができる。
Effects of the Invention As explained in detail above, the present invention includes an accumulator that accumulates the data length of parallel variable-length data, and a parallel shift circuit that shifts the focus of the parallel variable-length data in parallel using the output of the accumulator. Since it is equipped with this feature, bit shifting of parallel variable length data can be performed all at once, and variable length encoding processing can be performed efficiently and at high speed.

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

第1図は本発明の一実施例を示す可変長符号化装置の概
略構成図、第2図は本発明の一実施例を示す並列シフト
回路の動作説明図、第3図は従来の可変長符号化装置の
概略構成図である。 11・・・・・・変換回路、12・・・・・・並列シフ
ト回路、13・・・・・・累加算器、14・・・・・・
整列回路、15゜18.22・・・・・・並列可変長デ
ータ、1G・・・・・・並列可変長データのデータ長、
17・・・・・・ビットシフト数、19・・・・・・信
号。 代理人の氏名 弁理士 粟野重孝 ほか1名第1図 第2図 2g (0,) (b) (C) (d→ (e)
FIG. 1 is a schematic configuration diagram of a variable length encoding device showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of the operation of a parallel shift circuit showing an embodiment of the present invention, and FIG. 3 is a conventional variable length encoding device. FIG. 1 is a schematic configuration diagram of an encoding device. 11... Conversion circuit, 12... Parallel shift circuit, 13... Accumulator, 14...
Alignment circuit, 15° 18.22...Parallel variable length data, 1G...Data length of parallel variable length data,
17... Bit shift number, 19... Signal. Name of agent: Patent attorney Shigetaka Awano and one other person Figure 1 Figure 2 2g (0,) (b) (C) (d→ (e)

Claims (1)

【特許請求の範囲】[Claims]  固定長データを並列可変長データと前記並列可変長デ
ータに対応するデータ長に変換する変換回路と、前記並
列可変長データのデータ長を累積するlog_2N(N
は2のべき乗値)ビットの累加算器と、前記累加算器の
出力により前記並列可変長データを並列にビットシフト
する並列シフト回路と、前記並列シフト回路の出力をレ
ジスタに順次蓄積し蓄積したビット幅がNビットを越え
た時Nビット分のデータを出力する整列回路を備えたこ
とを特徴とする可変長符号化装置。
a conversion circuit that converts fixed length data into parallel variable length data and a data length corresponding to the parallel variable length data; and a log_2N(N) that accumulates the data length of the parallel variable length data.
is a power of 2) bit accumulator, a parallel shift circuit that bit-shifts the parallel variable length data in parallel using the output of the accumulator, and the output of the parallel shift circuit is sequentially accumulated in a register. A variable length encoding device comprising an alignment circuit that outputs N bits worth of data when the bit width exceeds N bits.
JP2188905A 1990-07-17 1990-07-17 Variable-length data encoder Pending JPH0477120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2188905A JPH0477120A (en) 1990-07-17 1990-07-17 Variable-length data encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2188905A JPH0477120A (en) 1990-07-17 1990-07-17 Variable-length data encoder

Publications (1)

Publication Number Publication Date
JPH0477120A true JPH0477120A (en) 1992-03-11

Family

ID=16231938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2188905A Pending JPH0477120A (en) 1990-07-17 1990-07-17 Variable-length data encoder

Country Status (1)

Country Link
JP (1) JPH0477120A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07177040A (en) * 1993-12-20 1995-07-14 Nec Corp Variable length encoder
CN102310237A (en) * 2011-09-02 2012-01-11 莱州市山普管件制造有限公司 Automatic tapping machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5178945A (en) * 1974-12-30 1976-07-09 Nippon Telegraph & Telephone BATSUFUAMEMORIKAKIKOMI HOSHIKI
JPH01241793A (en) * 1988-03-23 1989-09-26 Hitachi Ltd Thin film el element

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5178945A (en) * 1974-12-30 1976-07-09 Nippon Telegraph & Telephone BATSUFUAMEMORIKAKIKOMI HOSHIKI
JPH01241793A (en) * 1988-03-23 1989-09-26 Hitachi Ltd Thin film el element

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07177040A (en) * 1993-12-20 1995-07-14 Nec Corp Variable length encoder
CN102310237A (en) * 2011-09-02 2012-01-11 莱州市山普管件制造有限公司 Automatic tapping machine

Similar Documents

Publication Publication Date Title
EP0021283A1 (en) Digital data apparatus
JP2502836B2 (en) Preprocessing device for division circuit
KR920003176B1 (en) Control data regenerating device for sort processor
JPH0477120A (en) Variable-length data encoder
US20020042804A1 (en) Parallel processing syndrome calculating circuit and reed-solomon decoding circuit
JPH02281811A (en) Digital filter processor
JPS62233932A (en) Decoding circuit for bch code
JPH02287874A (en) Product sum arithmetic unit
JPS6291081A (en) Facsimile encoder
US20020057742A1 (en) Sorting device of variable-length code
JP2629737B2 (en) accumulator
SU1564617A2 (en) Device for extraction of square root
JPH0216632A (en) Fixed point number/floating point number converting circuit
US4141077A (en) Method for dividing two numbers and device for effecting same
SU1626385A1 (en) Device for binary-residue conversion
RU1791818C (en) Device for control of modulo three residual code
SU894699A1 (en) Binary-to binary coded decimal code converter
SU1179322A1 (en) Device for multiplying two numbers
JPH07105731B2 (en) Decryption device
SU783791A1 (en) Polynominal multiplying device
Campbell et al. An analysis of carry transmission in computer addition
JPH05313886A (en) Digital signal processor
JPS6148177B2 (en)
JPH05327516A (en) Variable length code decoder and processor
JPS6439169A (en) Run length detecting circuit