JPH04102120A - Demodulator - Google Patents

Demodulator

Info

Publication number
JPH04102120A
JPH04102120A JP22076590A JP22076590A JPH04102120A JP H04102120 A JPH04102120 A JP H04102120A JP 22076590 A JP22076590 A JP 22076590A JP 22076590 A JP22076590 A JP 22076590A JP H04102120 A JPH04102120 A JP H04102120A
Authority
JP
Japan
Prior art keywords
data
code
variable length
bit
output
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
JP22076590A
Other languages
Japanese (ja)
Inventor
Takashi Masuno
貴司 増野
Koji Arii
浩二 有井
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 JP22076590A priority Critical patent/JPH04102120A/en
Publication of JPH04102120A publication Critical patent/JPH04102120A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To segment a variable length code at high speed in a fixed cycle without exerting the influence of time for demodulation upon the code length of the variable length code by providing four storing means. CONSTITUTION:A FIFO 17 inputs the first word of a variable length code data, which is a first data (f) inputted from an input terminal 18, to storing means 11a, 11b, 11c and 11d. In a ring buffer 19, a data including one variable length code at least is extracted by a selecting means 12 from a position shown by a read pointer in the ringularly continued outputs of the four storing means 11a, 11b, 11c and 11d and by detecting the code length at a detecting means 13, the units of the variable length code can be separated by a code separating means 16. At such a time, the selecting means 12 can select the data including the undetected variable length code according to a read pointer (k) even in any cases. Therefore, decoding outputs outputted from a decoding output terminal 20 can be continuously decoded without being interrupted. Thus, the variable length code can be segmented without exerting the influence of time for demodulation upon the code length of the variable length code.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、可変長符号化の復調装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a demodulation device for variable length coding.

従来の技術 第4図は従来の復調装置の構成図を示す。第4図におい
て、41は可変長符号データをシフトクロックによって
1ビツトづつ入力し上位ビットに向かってシフトするシ
フトレジスタ、42はシフトレジスタ41から出力され
るパラレルデータの最上位ビットから始まる可変長符号
を検出する検出手段、43は検出手段42で検出した可
変長符号の符号長分のシフトクロックを出力するカウン
タ、44はシフトレジスタ41から出力されるパラレル
データの最上位ビットから検出手段42で検出した可変
長符号の符号長分のデータを分離出力する符号分離手段
である。
Prior Art FIG. 4 shows a block diagram of a conventional demodulator. In FIG. 4, 41 is a shift register that inputs variable length code data one bit at a time using a shift clock and shifts it toward the higher bits, and 42 is a variable length code starting from the most significant bit of the parallel data output from the shift register 41. 43 is a counter that outputs a shift clock corresponding to the code length of the variable length code detected by the detection means 42; 44 is a counter that detects from the most significant bit of the parallel data output from the shift register 41 by the detection means 42; This is a code separating means that separates and outputs data corresponding to the code length of the variable length code.

このように構成された従来の復調装置においては、シフ
トレジスタ41が出力するパラレルデータの最上位ビッ
トから始まる可変長符号の符号長は検出手段42によっ
て検出され、カウンタ43と符号分離手段44に出力さ
れる。
In the conventional demodulator configured as described above, the code length of the variable length code starting from the most significant bit of the parallel data output from the shift register 41 is detected by the detection means 42 and output to the counter 43 and the code separation means 44. be done.

カウンタ43は検出手段42で検出された符号長分のシ
フトクロックをシフトレジスタ41に対して出力する。
The counter 43 outputs a shift clock corresponding to the code length detected by the detection means 42 to the shift register 41.

続いてシフトレジスタ41はカウンタ43が出力するシ
フトクロックによって検出済みの可変長符号をシフトア
ウトし、次に続く可変長符号をパラレルデータの最上位
ビットから位置付る。
Subsequently, the shift register 41 shifts out the detected variable length code using the shift clock output from the counter 43, and positions the next variable length code from the most significant bit of the parallel data.

一方、符号分離手段44はシフトレジスタ41から出力
されるパラレルデータから検出された符号長分のデータ
を分離出力していくことで可変長符号化されたデータを
符号化単位まで復調するものである。
On the other hand, the code separation means 44 demodulates variable-length coded data to the coding unit by separating and outputting data corresponding to the code length detected from the parallel data output from the shift register 41. .

発明が解決しようとする課題 しかしながら前記のような構成では、データをシフトし
ていくことで可変長符号を検出するために、データのビ
ット数分のシフトが必要であり、復調しようとする全デ
ータの復調時間はシフトクロック周期のビット数倍であ
る。よって、復調時間を短縮するにはシフトクロックを
高速にする必要があるが、高速化には限界があるため、
ある程度の復調速度しか達成できず、また、復調出力が
一定周期でないため、後段で行われるであろう可変長符
号の復号を効率よく行えないという課題を有していた。
Problems to be Solved by the Invention However, in the above configuration, in order to detect a variable length code by shifting the data, it is necessary to shift the data by the number of bits, and all the data to be demodulated is The demodulation time is the number of bits times the shift clock period. Therefore, in order to shorten the demodulation time, it is necessary to increase the speed of the shift clock, but there is a limit to increasing the speed.
Since only a certain level of demodulation speed can be achieved and the demodulated output does not have a constant cycle, there is a problem that decoding of variable length codes, which will be performed at a later stage, cannot be performed efficiently.

本発明はかかる点に鑑み、可変長符号の符号長に復調時
間が影響を受けず、一定周期での可変長符号の切り出し
を高速に行える復調装置を提供することを目的とするも
のである。
In view of the above, an object of the present invention is to provide a demodulation device that is not affected by the code length of the variable-length code and is capable of cutting out the variable-length code at a high speed at a constant period.

課題を解決するための手段 上記課題を解決するために、本発明の復調装置は、最大
ビット長をm (mは正の整数)とする可変長符号化が
なされた第1のデータをn (nは正の整数)ビット幅
で入力し外部からの入力指示信号で制御されて順次記憶
し、読み出し指示信号で記憶した順番に出力する先入れ
先出しメモリ(以下FIFOと称す)と、前記FIFO
からの出力データを入力とし書き込み指示信号で制卸さ
れ保持出力するnビット幅の記憶手段がp (pは正に
整数)個と、前記p個の記憶手段のn×pビット幅の出
力を第2のデータとし、前記第2のデータの中から読み
出しポインタで示される位置のビットから下位ビット方
向に連続するmビットを第3のデータとして選択出力す
る選択手段とで構成されたリングバッファと、前記第3
のデータの最上位ビットから始まる可変長符号の符号長
を第4のデータとして出力する符号長検出手段と、前記
第4のデータの積算値を第5のデータとして出力する符
号長積算手段と、前記第5のデータを(H×p)で除算
した余り値を前記読み出しポインタとして出力し、かつ
前記リングバッファが現在出力している前記第3のデー
タを含まず、すでに前記第3のデータとして出力された
データを保持した前記該当記憶手段に前記FIFOでバ
ッファリングされた新たな前記第1のデータの保持を指
示する前記書き込み指示信号を出力する制御手段と、前
記第3のデータの最上位ビットから下位ビットに向かっ
て前記第4のデータの示す符号長を第6のデータとして
選択出力する符号分離手段とを備えたことを特徴とする
ものである。
Means for Solving the Problems In order to solve the above problems, the demodulator of the present invention converts first data that has been subjected to variable length encoding with a maximum bit length of m (m is a positive integer) into n ( A first-in, first-out memory (hereinafter referred to as FIFO) that inputs a bit width (n is a positive integer), stores it sequentially under the control of an external input instruction signal, and outputs it in the stored order according to a read instruction signal;
There are p (p is a positive integer) n-bit width storage means which receives output data from the input device and holds and outputs data controlled by a write instruction signal, and n×p bit width outputs of the p storage means. a ring buffer configured to select and output m bits consecutive from the bit at the position indicated by the read pointer in the direction of lower bits from the second data as third data; , the third
code length detecting means for outputting the code length of the variable length code starting from the most significant bit of the data as fourth data; code length integrating means for outputting the integrated value of the fourth data as fifth data; The remainder value obtained by dividing the fifth data by (H×p) is output as the read pointer, and the ring buffer does not include the third data currently being output and has already been treated as the third data. a control means for outputting the write instruction signal for instructing the corresponding storage means holding the output data to hold the new first data buffered in the FIFO; and the topmost part of the third data The present invention is characterized by comprising code separation means for selectively outputting the code length indicated by the fourth data as sixth data from bits to lower bits.

作用 本発明は前記した構成により、まず第1のデータである
可変長符号化データがnビット単位でFIFOに順次記
憶される。FIFOへの書き込みは外部からの入力指示
信号で制御され、常にFIFOには第1のデータが途切
れることなく記憶され、読み出し指示信号で順次出力さ
れる。FIFOを経由して順次出力された第1のデータ
は順次p個の記憶手段に保持される。保持を指示するの
は書き込み指示信号であり、FIFOの読み出し指示信
号と同期した信号である。すなわち第1のデータの先頭
からn×pビットがpIIの記憶手段によって分割保持
出力され、このH×pビットのデータを第2のデータと
する。以降、第1のデータをnビット単位で入力し書き
込み指示信号によって保持するデータを更新していく。
Effect of the Invention According to the above-described configuration, the first data, variable-length encoded data, is sequentially stored in the FIFO in units of n bits. Writing to the FIFO is controlled by an input instruction signal from the outside, and the first data is always stored in the FIFO without interruption, and is sequentially output in response to a read instruction signal. The first data sequentially output via the FIFO is sequentially held in p storage means. It is the write instruction signal that instructs the holding, which is a signal synchronized with the FIFO read instruction signal. That is, n×p bits from the beginning of the first data are divided and held and output by the pII storage means, and this H×p bit data is used as the second data. Thereafter, the first data is input in units of n bits, and the data held is updated by the write instruction signal.

次に、選択手段は読み出しポインタの示すビット位置か
ら下位ビット方向に連続するmビットを選択し第3のデ
ータとして出力する。
Next, the selection means selects m consecutive bits in the lower bit direction from the bit position indicated by the read pointer and outputs them as third data.

第3のデータ中には、最大ビット長がmであるから少な
くとも1つは可変長符号が含まれる。符号長検出手段は
第3のデータの最上位ビットから始まる可変長符号を検
出し、その符号長を第4のデータとして出力する。
Since the maximum bit length is m, the third data includes at least one variable length code. The code length detection means detects a variable length code starting from the most significant bit of the third data, and outputs the code length as fourth data.

符号分離手段では第3のデータの最上位ビットから下位
ビット方向に連続して第4のデータの示す符号長を第6
のデータとして選択出力する。
The code separation means successively converts the code length indicated by the fourth data into the sixth data from the most significant bit to the least significant bit of the third data.
Selectively output as data.

一方、第4のデータは符号長積算手段で積算され、第5
のデータとして出力される。
On the other hand, the fourth data is accumulated by the code length accumulation means, and the fifth data is accumulated by the code length accumulation means.
is output as data.

第5のデータは制御手段に入力され、(n x p)で
除算した余り値、すなわちリングt<7ソフアの先頭か
らのオフセットを読み出しポインタとして出力し、同時
にリングバッファが現在出力して一\る第3のデータを
含まず、すでに第3のデータとして出力されたデータを
保持した該当記憶手段に新たな第1のデータの保持を指
示する書き込み指示信号を出力する。
The fifth data is input to the control means, which outputs the remainder after dividing by (n x p), that is, the offset from the beginning of the ring t<7 software, as a read pointer, and at the same time, the ring buffer currently outputs A write instruction signal is output to the storage means that does not include the third data and instructs the storage means that has already held the data that has been output as the third data to hold the new first data.

このようにして読み出しポインタの値は、第1のデータ
先頭の可変長符号に続いて2番目の可変長符号、3番目
の可変長符号と連続して可変長符号単位に変化し、その
結果リングツくツファからの第3のデータ出力には必ず
最上位ビットから可変長符号が含まれる。したがって符
号分離手段で(よ、その符号長を示す第4のデータ値で
第3のデータを分離することにより可変長符号の切り出
しを行い、第6のデータとして出力されるものである。
In this way, the value of the read pointer changes successively in units of variable length codes, starting with the variable length code at the beginning of the first data, the second variable length code, and the third variable length code, resulting in a ring tour. The third data output from the buffer always includes a variable length code starting from the most significant bit. Therefore, the variable length code is extracted by separating the third data using the fourth data value indicating the code length in the code separation means, and is output as the sixth data.

実施例 以下本発明の一実施例を図面に基づいて説明する。Example An embodiment of the present invention will be described below based on the drawings.

第1図は本発明の一実施例における可変長符号の最大ビ
ット長を21ビツト、nを16、pを4とした場合の復
調装置の構成図である。312図は可変長符号化された
データの例を示す図、第3図は本実施例の各部の状態を
示しその動作を説明するための図である。
FIG. 1 is a block diagram of a demodulation device in an embodiment of the present invention in which the maximum bit length of a variable length code is 21 bits, n is 16, and p is 4. FIG. 312 is a diagram showing an example of variable-length coded data, and FIG. 3 is a diagram showing the state of each part of this embodiment and explaining its operation.

第1図において、17は先入れ先出しメモリ(以下FI
FOと称す)であり、最大ビット長mを21ビツトとし
て可変長符号化された第1のデータfが入力端子18か
らnビット幅すなわち16ビツト幅で入力され、外部か
らの入力指示信号pで制御されて順次記憶される。ll
a、in、tic、lidはFIFO17からの16ビ
ツトの出力が入力されてこれを保持する記憶手段であり
、nビット幅すなわち16ビツトの幅を有し、9個すな
わち4個からなっている。12は選択手段であり、4個
の記憶手段11a、llb、llc、lidから出力さ
れる4X16ビツト幅の第2のデータgの中から連続す
るmビットすなわち21ビツトを第3のデータhとして
選択出力する。これらFIFO17、記憶手段11a。
In FIG. 1, 17 is a first-in first-out memory (hereinafter referred to as FI).
The first data f, which has been variable-length coded with a maximum bit length m of 21 bits, is input from the input terminal 18 with a width of n bits, that is, a width of 16 bits. It is controlled and stored sequentially. ll
A, in, tic, and lid are storage means into which the 16-bit output from the FIFO 17 is input and hold it, and have a width of n bits, that is, 16 bits, and consist of nine pieces, that is, four pieces. Reference numeral 12 denotes a selection means, which selects consecutive m bits, that is, 21 bits, as the third data h from the second data g of 4×16 bit width output from the four storage means 11a, llb, llc, and lid. Output. These FIFO 17 and storage means 11a.

11b、 lie、 lid選択手段12によりリング
バッファ19が構成されている。
11b, lie, and lid selection means 12 constitute a ring buffer 19.

13は符号長検出手段であり、篇3のデータhの最上位
ビットから始まる可変長符号の符号長を検出し、第4の
データiとして出力する。14は符号長積算手段であり
、第4のデータiの積算値を第5のデータjとして出力
する。15は制御手段であり、第5のデータjを(n×
p)すなわち(16×4)で除算し、余り値を選択手段
12に対して、前記のように選択手段12が箪2のデー
タgの中から連続する21ビツトを第3のデータとして
下位ビット方向に読み出す際の位置を決める読み出しポ
インタにとして出力し、さらに記憶手段11a、 ll
b。
Reference numeral 13 denotes a code length detection means, which detects the code length of the variable length code starting from the most significant bit of data h in section 3 and outputs it as fourth data i. 14 is a code length accumulating means, which outputs the accumulated value of the fourth data i as the fifth data j. 15 is a control means, which controls the fifth data j by (n×
p) That is, divide by (16 x 4), and send the remainder value to the selection means 12. As mentioned above, the selection means 12 selects the consecutive 21 bits from the data g in the box 2 as the third data and selects the lower bits. The storage means 11a, ll is output as a read pointer that determines the position when reading in the direction.
b.

lie、 lidに対して書き込み指示信号a、 b、
 e。
write instruction signals a, b, for lie, lid;
e.

dを、またFIFO17に対して読み出し指示信号eを
互いに同期して8カする。16は符号分離手段であり、
第3のデータhの最上位ビットから下位ビットに向かっ
て第4のデータiの示す符号長を第6のデータlとして
選択し、復号出力端子2o;;出力する。
d and a read instruction signal e to the FIFO 17 in synchronization with each other. 16 is a code separation means;
The code length indicated by the fourth data i from the most significant bit to the least significant bit of the third data h is selected as the sixth data l, and is outputted to the decoding output terminal 2o.

このように構成された本実施例の復調装置において、第
2図、第3図を用いて以下その動作を説明する。
The operation of the demodulator of this embodiment configured as described above will be described below with reference to FIGS. 2 and 3.

まず、制御手段15は読み出し指示信号eをPIFol
N、:対して出力し、FIFO17は入力端子111か
ら入力される第1のデータfである可変長符号データの
1ワード目(ワードは16ビツト)を記憶手段Ha、l
lb、llc、lidに入力させる。次に、制御手段1
5は記憶手段11aに対して書き込み指示信号aを出力
し、1ワード目の可変長符号データを記憶手段11aに
保持させる。同様に、制御手段15は読み出し指示信号
e’kF I FO17に対して出力し、FIFOI7
は記憶手段11a、 llb、 llc、’11d1.
[1のデータfの可変長符号データの2ワード目を入力
させる。続いて制御手段I5は記憶手段11bに対して
書き込み指示信号すを出力し、2ワード目の可変長符号
データを記憶手段tlbに保持させる。以下同様の手順
で記憶手段11c、 1lclにそれぞれ3ワード目、
4ワード目の可変長符号データを保持させる。
First, the control means 15 sends the read instruction signal e to PIFol.
The FIFO 17 outputs the first word (a word is 16 bits) of the variable length code data, which is the first data f input from the input terminal 111, to the storage means Ha,l.
Input to lb, llc, and lid. Next, control means 1
5 outputs a write instruction signal a to the storage means 11a to cause the storage means 11a to hold the variable length code data of the first word. Similarly, the control means 15 outputs a read instruction signal e'kF I FO17,
are storage means 11a, llb, llc, '11d1.
[Input the second word of variable length code data of data f of 1. Subsequently, the control means I5 outputs a write instruction signal S to the storage means 11b, and causes the storage means tlb to hold the second word variable length code data. Following the same procedure, write the third word to the storage means 11c and 1lcl, respectively.
The variable length code data of the fourth word is held.

以上のようにして4つの記憶手段11a、 Ilb。As described above, the four storage means 11a and Ilb are stored.

tic、 lidに可変長符号データの先頭から64ビ
ツトを保持させる。この64ビツトが第2のデータgで
ある。このときの各記憶手段11a、 llb、 ll
c。
tic and lid hold 64 bits from the beginning of variable length code data. These 64 bits are the second data g. At this time, each storage means 11a, llb, ll
c.

lidは第3図に示す5teplの状態である。The lid is in a state of 5 tepl as shown in FIG.

ここで記憶手段11aの最上位ビットをビット0として
始まり最下位ビットをビット15、記憶手段11bの最
上位ビットをビットI6として始まり最下位ビットをビ
ット31、記憶手段11cの最上位ビットをビット32
として始まり最下位ビットをビット47、記憶手段11
dの最上位ビットをビット48として始まり最下位ビッ
トをビット63とする。
Here, the most significant bit of the storage means 11a starts with bit 0, the least significant bit is bit 15, the most significant bit of the storage means 11b starts with bit I6, the least significant bit is bit 31, and the most significant bit of the storage means 11c is bit 32.
The least significant bit is bit 47, storage means 11
Let the most significant bit of d start with bit 48 and the least significant bit with bit 63.

次に制御手段15は選択手段12に対して読み出しポイ
ンタにのポインタ値をOにして出力し、選択手段I2は
第3のデータhとしてビットOからビット20までの2
1ビツトを選択出方させる。この様子は第3図の5je
plに示される。
Next, the control means 15 outputs the pointer value of the read pointer to O to the selection means 12, and the selection means I2 selects 2 from bit O to bit 20 as third data h.
Select one bit and make it appear. This situation is shown in 5je in Figure 3.
It is shown in pl.

選択手段12から出力される第3のデータhの21ビツ
トの最上位ビットから始まる可変長符号は検出手段13
によって検出され、第3図では4ビツトの符号長を第4
のデータ1として出方する。
The variable length code starting from the most significant bit of the 21 bits of the third data h output from the selection means 12 is detected by the detection means 13.
In Fig. 3, the code length of 4 bits is detected by
It appears as data 1.

選択手段12が出力している第3のデータhは符号分離
手段16にも入力され、ビット0からビット20方向に
検出手段13が出方する第4のデータiである符号長分
の4ビツトのデータを分離出方する。
The third data h output by the selection means 12 is also input to the code separation means 16, and the detection means 13 outputs the fourth data i, 4 bits corresponding to the code length, in the direction from bit 0 to bit 20. Separate and output the data.

これは第3図の5jeplに示す4ビツト符号の部分に
相当する。
This corresponds to the 4-bit code portion shown at 5jepl in FIG.

一方、検出手段13が出方する第4のデータiである符
号長は積算手段14にも入力されて積算され、第5のデ
ータjとして出方される。最初の符号長であるから出方
される積算符号長は4である。
On the other hand, the code length, which is the fourth data i output by the detection means 13, is also input to the integration means 14, where it is integrated, and output as the fifth data j. Since this is the initial code length, the resulting cumulative code length is 4.

制御手段15は積算符号長を(n×p)64で除算し、
余り値を次の読み出しポインタにとする。現時点ではポ
インタ値は4となる。したがって、選択手段12は読み
出しポインタにで示される4ビツト位置から下位ビット
方向に連続する21ビツトを第3のデータhとして選択
出力する。この様子は第3図の5tep2に示される。
The control means 15 divides the accumulated code length by (n×p)64,
Use the remaining value as the next read pointer. At this point, the pointer value is 4. Therefore, the selection means 12 selects and outputs 21 consecutive bits in the lower bit direction from the 4-bit position indicated by the read pointer as the third data h. This situation is shown at 5tep2 in FIG.

      ゛このようにして第3図に示す5jep4
まで進んでくると、読み出しポインタにのポインタ値は
21になり、記憶手段11aで保持していたデータ内の
可変長符号は全て検出され、制御手段15は読み出し指
示信号eと書き込み指示信号aを順次出力し、記憶手段
11aに新たに第1のデータfである可変長符号データ
の5ワード目を保持させる。
゛In this way, 5jep4 shown in Figure 3
When the pointer value of the read pointer reaches 21, all the variable length codes in the data held in the storage means 11a are detected, and the control means 15 sends the read instruction signal e and the write instruction signal a. The data is sequentially output, and the fifth word of the variable length code data, which is the first data f, is newly held in the storage means 11a.

同様に第3図に示すs+ep7まで進んでくると、読み
出しポインタhのポインタ値は52となり、Nep4で
新たに保持した第1のデータfである可変長符号データ
の5ワード目を選択手段12が選択するようになる。ざ
らにueplOまで進めると、読み出しポインタhのポ
インタ値は3となり、折返し処理を進めていく。
Similarly, when the process advances to s+ep7 shown in FIG. You get to choose. When the process roughly advances to ueplO, the pointer value of the read pointer h becomes 3, and the loopback process proceeds.

以上のようにこの実施例によれば、リングバッファ19
では4つの記憶手段11a、 llb、 llc。
As described above, according to this embodiment, the ring buffer 19
Then, there are four storage means 11a, llb, llc.

lidの出力が環状に゛連続した中から読み出しポイン
タの示す位置から選択手段12によって可変長符号長を
少な(とも1つは含むデータを取り出し、検出手段13
で符号長を検出することにより、符号分離手段16で可
変長符号単位の分離を行えるものである。このとき、選
択手段12は如何なる場合でも読み出しポインタkによ
り未検出の可変長符号を含むデータを選択できる。した
がって、aカ端子2aから出力される復号8カも途切れ
ることなく連続して復号することができる。
The selection means 12 extracts the variable length code length (at least one data) from the position indicated by the read pointer from the circularly continuous output of the lid, and the detection means 13
By detecting the code length at , the code separation means 16 can separate variable length code units. At this time, the selection means 12 can select data including an undetected variable length code using the read pointer k in any case. Therefore, the eight decoded signals output from the a terminal 2a can be decoded continuously without interruption.

なお実施例では、nは16、pは4としたが、特に限定
するものではない。
In the example, n was set to 16 and p was set to 4, but these are not particularly limited.

また、制御手段からの各記憶手段への書き込み指示信号
を共通の書き込み指示信号とし、書き込みポインタを用
いて書き込み記憶手段を指示する構成でもよいことはい
うまでもない。
It goes without saying that a configuration may also be adopted in which the write instruction signal from the control means to each storage means is a common write instruction signal, and a write pointer is used to instruct the write storage means.

発明の詳細 な説明したように、本発明によれば、可変長符号の符号
長に復調時間が影響を受けず、一定周期で可変長符号の
切り出しが行え、後段で行われるであろう可変長符号の
復号を効率よく行わせることができ、その実用的効果は
大きい。
As described in detail, according to the present invention, the demodulation time is not affected by the code length of the variable-length code, and the variable-length code can be cut out at a constant period, and the variable-length code that will be cut out at a later stage can be cut out. Code decoding can be performed efficiently, and its practical effects are great.

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

第1図は本発明の一実施例における復調装置の構成図、
第2図は可変長符号化されたデータの例を示す図、第3
図は実施例の各部の状態を示し動作を説明するための図
、第4図は従来の復調装置の構成図である。 11a、 Ilb、 llc、 l1d−・・記憶手段
、12−・・選択手段、13・・・検出手段、14・・
・積算手段、15・・・制御手段、16・・・符号分離
手段、17・・・先入れ先8しメモリ(FIFO)、1
8・・・入力端子、19・・・リングバッファ、20・
・・復号出力端子。 代理人   森  本  義  弘
FIG. 1 is a configuration diagram of a demodulator in an embodiment of the present invention;
Figure 2 shows an example of variable-length encoded data;
The figure shows the state of each part of the embodiment and is a diagram for explaining the operation, and FIG. 4 is a block diagram of a conventional demodulator. 11a, Ilb, llc, l1d--storage means, 12--selection means, 13--detection means, 14-.
・Integration means, 15... Control means, 16... Code separation means, 17... First input first 8 memory (FIFO), 1
8...Input terminal, 19...Ring buffer, 20...
...Decoding output terminal. Agent Yoshihiro Morimoto

Claims (1)

【特許請求の範囲】 1、最大ビット長をm(mは正の整数)とする可変長符
号化がなされた第1のデータをn(nは正の整数)ビッ
ト幅で入力し、外部からの入力指示信号で制御されて順
次記憶し、読み出し指示信号で記憶した順番に出力する
先入れ先出しメモリと、前記先入れ先出しメモリからの
出力データを入力とし書き込み指示信号で保持出力する
nビット幅の記憶手段がp(pは正の整数)個と、前記
p個の記憶手段のn×pビット幅の出力を第2のデータ
とし、前記第2のデータの中から読み出しポインタで示
される位置のビットから下位ビット方向に連続するmビ
ットを第3のデータとして選択出力する選択手段とで構
成されたリングバッファと、 前記第3のデータの最上位ビットから始まる可変長符号
の符号長を第4のデータとして出力する符号長検出手段
と、 前記第4のデータの積算値を第5のデータとして出力す
る符号長積算手段と、 前記第5のデータを(n×p)で除算した余り値を前記
読み出しポインタとして出力し、かつ前記リングバッフ
ァが現在出力している前記第3のデータを含まず、すで
に前記第3のデータとして出力されたデータを保持した
前記該当記憶手段に前記先入れ先出しメモリでバッファ
リングされた新たな前記第1のデータの保持を指示する
前記書き込み指示信号を出力する制御手段と、 前記第3のデータの最上位ビットから下位ビットに向か
って前記第4のデータの示す符号長を第6のデータとし
て選択出力する符号分離手段とを備えたことを特徴とす
る復調装置。
[Claims] 1. First data that has been subjected to variable length encoding with a maximum bit length of m (m is a positive integer) is input with a width of n (n is a positive integer) bits, and a first-in, first-out memory that is controlled by an input instruction signal to sequentially store data and output data in the stored order in response to a read instruction signal; and an n-bit wide storage means that receives output data from the first-in, first-out memory and holds and outputs it in response to a write instruction signal. p (p is a positive integer) and n×p bit width outputs of the p storage means are used as second data, and from the second data, the lower bits are read from the bit at the position indicated by the read pointer. a ring buffer configured with a selection means for selectively outputting m bits consecutive in the bit direction as third data; and a code length of a variable length code starting from the most significant bit of the third data as fourth data. code length detecting means for outputting; code length integrating means for outputting an integrated value of the fourth data as fifth data; and a remainder value obtained by dividing the fifth data by (n×p) to the read pointer. buffered in the first-in, first-out memory in the corresponding storage means that does not include the third data currently being output by the ring buffer and holds data that has already been output as the third data. a control means for outputting the write instruction signal instructing to hold the new first data; 1. A demodulation device comprising code separation means for selectively outputting the data as data.
JP22076590A 1990-08-21 1990-08-21 Demodulator Pending JPH04102120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22076590A JPH04102120A (en) 1990-08-21 1990-08-21 Demodulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22076590A JPH04102120A (en) 1990-08-21 1990-08-21 Demodulator

Publications (1)

Publication Number Publication Date
JPH04102120A true JPH04102120A (en) 1992-04-03

Family

ID=16756203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22076590A Pending JPH04102120A (en) 1990-08-21 1990-08-21 Demodulator

Country Status (1)

Country Link
JP (1) JPH04102120A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5404166A (en) * 1992-09-09 1995-04-04 Sony United Kingdom Ltd. Variable-length to fixed-length data word reformatting apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5404166A (en) * 1992-09-09 1995-04-04 Sony United Kingdom Ltd. Variable-length to fixed-length data word reformatting apparatus

Similar Documents

Publication Publication Date Title
KR0183173B1 (en) Buffer memory control device
JP3294032B2 (en) Variable length code decoding device
KR0178201B1 (en) Variable length decoding apparatus
KR900701101A (en) Variable-length encoded data decoding device
US5488366A (en) Segmented variable length decoding apparatus for sequentially decoding single code-word within a fixed number of decoding cycles
JPH04102120A (en) Demodulator
KR100207385B1 (en) Variable length decoding apparatus
KR980006960A (en) Code converter and variable length code decoding device and decoding method
KR970068622A (en) Code word detection method and apparatus
JPS6338152B2 (en)
JP3197408B2 (en) Additional bit processing device for marker identification
JPH04298164A (en) Data compression/release circuit for facsimile apparatus
JPH03140018A (en) Demodulator
JPS58225779A (en) Decoding system for picture signal
JP2556160B2 (en) Compression code decompression device
JPH0149072B2 (en)
KR100209881B1 (en) Memory controller in high speed variable length decoder
JPH04258025A (en) Variable length coding/decoding circuit
KR960013053A (en) Variable length decoding method and apparatus
JPS5927502B2 (en) encoding device
KR0179903B1 (en) First in first out memory
KR0173334B1 (en) Bit allocating method suitable for audio decoder
JP3409845B2 (en) Variable length bit string processing apparatus and variable length bit string processing method using the same
JPH05219133A (en) Coded data reception circuit
JPH0212417B2 (en)