KR960011111B1 - Variable length decoder of digital image signal - Google Patents

Variable length decoder of digital image signal Download PDF

Info

Publication number
KR960011111B1
KR960011111B1 KR1019930012112A KR930012112A KR960011111B1 KR 960011111 B1 KR960011111 B1 KR 960011111B1 KR 1019930012112 A KR1019930012112 A KR 1019930012112A KR 930012112 A KR930012112 A KR 930012112A KR 960011111 B1 KR960011111 B1 KR 960011111B1
Authority
KR
South Korea
Prior art keywords
variable length
code
latch
decoding
signal
Prior art date
Application number
KR1019930012112A
Other languages
Korean (ko)
Other versions
KR950002251A (en
Inventor
김영준
Original Assignee
대우전자 주식회사
배순훈
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 대우전자 주식회사, 배순훈 filed Critical 대우전자 주식회사
Priority to KR1019930012112A priority Critical patent/KR960011111B1/en
Publication of KR950002251A publication Critical patent/KR950002251A/en
Application granted granted Critical
Publication of KR960011111B1 publication Critical patent/KR960011111B1/en

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
    • 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/3084Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction using adaptive string matching, e.g. the Lempel-Ziv method

Landscapes

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

Abstract

the first latch (22) for latching a variable length coded data from a FIFO(First-In First-Out) buffer (10); a barrel shifter (24) for outputting the variable length data shifted based on the shift value from the second latch (28) using the latched variable length coded data as the upper bits to a decoding table (30); an adder (26) for outputting a carrier signal to a read signal generator (12); and the second latch (28).

Description

디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기Variable Length Decoder in Decoding Device of Digital Video Signal

제1도는 본 발명에 따른 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기의 블록구성도.1 is a block diagram of a variable length decoder in an apparatus for decoding a digital video signal according to the present invention.

제2도 및 제3도는 제1도에 도시된 본 발명의 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기에 채용되는 베렐 쉬프터의 흐름도와 타이밍도.2 and 3 are flow charts and timing diagrams of a berel shifter employed in a variable length decoder in the apparatus for decoding a digital video signal of the present invention shown in FIG.

제4도 및 제5도는 제1도에 도시된 본 발명의 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기에 채용되는 가산부의 흐름도와 타이밍도.4 and 5 are flowcharts and timing diagrams of an adder used in a variable length decoder in the apparatus for decoding a digital video signal of the present invention shown in FIG.

제6도는 종래의 가변길이부호 복호화장치의 블록구성도.6 is a block diagram of a conventional variable length code decoding apparatus.

제7도는 복호테이블내의 부호길이 테이블의 메모리 구조를 보여주는 것으로,7 shows a memory structure of a code length table in a decoding table.

(a)는 본 발명에 따른 부호길이 테이블의 메모리구조도.(a) is a memory structure diagram of a code length table according to the present invention;

(b)는 종래장치에 따른 부호길이 테이블의 메모리구조도.(b) is a memory structure diagram of a code length table according to a conventional apparatus.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

10 : 선입 선출버퍼(FIFO) 12 : 독취신호 발생부/ AND 게이트10: first-in first-out buffer (FIFO) 12: read signal generator / AND gate

20 : 신호처리수단 22 : 제1래치20: signal processing means 22: first latch

24 : 베렐 쉬프터부 26 : 가산부24: berel shifter part 26: adder part

28 : 제2래치 30 : 복호 테이블28: second latch 30: decoding table

32 : 부호어 테이블 34 : 부호길이 테이블32: codeword table 34: code length table

36 : 복호어 테이블36: decryptor table

본 발명은 디지탈 영상신호의 복호화장치에 있어서의 가변길이 복호화에 관한 것으로, 특히 부호화된 영상신호를 복호화시, 복호화에 따른 처리속도 향상과 구성의 단순화를 행할 수 있도록 된 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to variable length decoding in an apparatus for decoding a digital video signal. In particular, the present invention relates to a digital video signal decoding apparatus capable of improving processing speed and simplifying configuration according to decoding. It relates to a variable length decoder.

일반적으로 HDTV, 영상전화기 등과 같이 영상신호를 디지털 신호로 하여 전송하고자 하는 경우에, 송신측에서는 이러한 전송에 따르는 많은 양의 데이터를 저감시키기 위하여 압축부호화 방법을 사용하고 있다.In general, when a video signal is to be transmitted as a digital signal, such as an HDTV or a video telephone, the transmitting side uses a compression encoding method to reduce a large amount of data due to such a transmission.

따라서, 영상신호 복호화장치는 송신측에서 부호화장치를 통해 가변길이 부호화된 영상데이터를 원신호로의 복원을 위하여 가변길이 복호화를 행하여 처리하게 된다.Accordingly, the video signal decoding apparatus performs variable length decoding on the transmission side to perform variable length decoding on the original signal to restore the variable length coded image data.

이러한 전송의 경우에 있어서, 데이터의 원활한 전송을 위해 수신측의 출력단과 송신측의 입력단에 각각 선입선출 버퍼가 구비되며, 이 선입선출 버퍼는 입력되는 가변길이 부호화된 데이터를 처리하게 된다.In the case of such a transmission, a first-in first-out buffer is provided at the output end of the receiving side and the input end of the transmitting side for smooth transmission of data, and the first-in first-out buffer processes the input variable length coded data.

본 발명은 이러한 시스템에 있어서 실질적으로 수신측 장치인 영상신호 복호화장치에서의 가변길이 복호화에 관련된 것이다.The present invention relates to variable length decoding in a video signal decoding apparatus which is substantially a receiving side apparatus in such a system.

제6도는 종래의 가변길이부호 복호화장치로서, 통상의 영상신호 부호화장치를 통해 가변길이 부호화된 영상데이터를 선입 선출버퍼를 통해 입력받아서 가변길이 복호화하는 것을 도시한 것이다.FIG. 6 illustrates a conventional variable length code decoding apparatus for receiving variable length coded image data through a first-in, first-out buffer through a conventional video signal encoding apparatus.

동도면에 도시된 바와같이, 종래의 가변길이 복호화장치는 앤드게이트(42)로부터 독취신호에 의거하여 선입 선출버퍼(40)에서 출력되는 가변길이부호 데이터를 복호화하기 위하여 적절하게 신호처리하는 복호 테이블(60)로 구성된다.As shown in the figure, the conventional variable length decoding apparatus decodes the signal appropriately for processing the variable length code data output from the first-in, first-out buffer 40 based on the read signal from the AND gate 42. It consists of 60.

또한, 복호화를 위하여 가변길이 부호화된 데이터를 처리하는 신호처리수단(50)은 4개의 래치(52,54,56,58)와, 두 개의 래치(52,54)를 통해 입력되는 소정비트의 길이신호에 따라 순차적으로 소정비트씩 분할하여 출력하는 베렐 쉬프터(53) 및 누산기(56)를 포함한다.In addition, the signal processing means 50 for processing the variable length coded data for decoding includes four latches 52, 54, 56 and 58 and a predetermined bit length input through the two latches 52 and 54. And a berel shifter 53 and an accumulator 56 for dividing and outputting predetermined bits sequentially according to the signal.

복호 테이블(60)은 베렐 쉬프터(53)로부터 입력되는 일련의 가변길이 부호들에서 가변길이 부호구간을 검출하기 위한 앤드플랜(AND-PLANE)으로된 부호어 테이블(62)과, 검출된 가변길이 부호구간의 비트수를 검출하기 위한 오아플랜(OR-PLANE)으로된 부호길이 테이블(64)과, 검출된 가변길이 부호구간을 복호하기 위한 앤드플랜으로된 복호어 테이블(66)로 구성된다.The decoding table 60 includes a codeword table 62 made of an AND-PLANE for detecting a variable length code section from a series of variable length codes input from the berel shifter 53, and the detected variable length. It consists of a code length table 64 in an OR-PLANE for detecting the number of bits in a code section, and a decoded table 66 in an end plan for decoding the detected variable length code section.

이러한 구성을 갖는 종래의 가변길이부호 복호화장치의 동작과정을 이하에 설명한다. 시스템이 작동중인 상황하에서 AND게이트(42)로부터 독취신호가 선임 선출버퍼(40)에 인가될 때마다, 이 선임 선출버퍼(40)는 차례로 저장되어 있는 가변길이부호 데이터, 즉 24비트의 데이터를 순차적으로 출력하게 된다.An operation process of a conventional variable length code decoding apparatus having such a configuration will be described below. Whenever a read signal from the AND gate 42 is applied to the senior election buffer 40 while the system is operating, the senior election buffer 40 in turn stores the variable length code data, i.e., 24-bit data, which are stored in sequence. The output will be sequentially.

따라서 래치(54)는 제6도에 도시된 바와같이 선입 선출버퍼(40)로부터의 가변길이부호 데이터를 래치한 후에 AND 게이트(42)로부터 독취신호가 인가되면 24비트의 가변길이 부호 데이터를 출력하며, 래치(52)또한 상기 래치(54)의 출력 데이터를 래치한 후에 상술한 AND 게이트(42)로부터 독취신호가 인가되면 24비트의 가변길이 부호 데이터를 출력하게 된다.Accordingly, the latch 54 outputs 24-bit variable length code data when the read signal is applied from the AND gate 42 after latching the variable length code data from the first-in, first-out buffer 40 as shown in FIG. In addition, the latch 52 also outputs 24-bit variable length code data when the read signal is applied from the AND gate 42 described above after latching the output data of the latch 54.

이와같이 두 개의 래치(52,54)로부터 출력된 각각 24비트, 즉 총 48비트의 가변길이부호 데이터는, 다음단의 베렐 쉬프터(53)에 입력된다. 베렐 쉬프터(53)는 최초 48비트중 24비트의 가변길이부호 데이터를 복호테이블(60)에 인가하며, 복호 테이블(60)은 내장된 부호어 테이블(62)을 통해 입력된 24비트의 가변길이부호 데이터중 소정비트의 가변길이부호 데이터를 검출하고, 이 검출된 가변길이부호를 복호어 테이블(66)을 통해 원래의 데이터, 즉 가변길이 부호화되기 전의 데이터로 복호하여 출력한다.In this way, variable-length code data of 24 bits, that is, a total of 48 bits, respectively, output from the two latches 52 and 54 is input to the next stage berel shifter 53. The Berrel shifter 53 applies 24-bit variable length code data of the first 48 bits to the decoding table 60, and the decoding table 60 has a 24-bit variable length input through the built-in codeword table 62. The variable length code data of a predetermined bit is detected from the code data, and the detected variable length code is decoded into the original data, that is, the data before the variable length code is encoded, through the decode word table 66, and then output.

이때 부호길이 테이블(64)은 부호어 테이블(62)에서 검출된 가변길이부호의 비트수를 검출하여 입력 비트수에 상응하는 24비트라인을 통해 누산기(55)에 입력한다.At this time, the code length table 64 detects the number of bits of the variable length code detected by the codeword table 62 and inputs it to the accumulator 55 through a 24-bit line corresponding to the number of input bits.

이상과 같은 과정이 계속됨에 따라 누산기(55)에서는 복호 테이블(60)에서 복호된 가변길이부호의 총 비트수가 누산된다.As the above process continues, the accumulator 55 accumulates the total number of bits of the variable length code decoded in the decoding table 60.

그런 다음, 누산기(55)에서 누산된 값이 래치(56)에 래치된 후 클럭신호에 동기되어 다음에 복호하고자 하는 가변길이부호에 대한 비트수를 베렐 쉬프터(53)에 인가한다.Then, the value accumulated in the accumulator 55 is latched in the latch 56 and then synchronized with the clock signal to apply the number of bits for the variable length code to be decoded to the berel shifter 53.

이때 누산기(55)는 누산된 값이 24를 초과하게 되면, 즉, 복호 테이블(60)에서 24비트 이상의 가변길이부호가 복호화되면, 누산기(55)는 케리신호를 발생하여 래치(58)에 인가하고, 이 래치(58)는 클럭신호의 입력에 상응하여 래치되었던 캐리신호를 AND게이트(42)의 일측단자에 인가하게 된다. 이에 따라 AND 게이트(42)는 독취신호, 즉 하이레벨의 신호를 상술한 선입 선출버퍼(40)에 출력하게 된다.In this case, when the accumulated value exceeds 24, that is, when a variable length code of 24 bits or more is decoded in the decoding table 60, the accumulator 55 generates a carry signal and applies it to the latch 58. The latch 58 then applies a carry signal that has been latched corresponding to the input of the clock signal to one terminal of the AND gate 42. As a result, the AND gate 42 outputs a read signal, that is, a high level signal, to the first-in, first-out buffer 40 described above.

따라서, 선입 선출버퍼(40)는 전술한 바와같이, 독취신호에 의거하여 차례로 저장된 다음의 24비트 가변길이부호 데이터를 출력하게 되며, 이와같은 처리과정을 계속적으로 반복함으로써, 종래장치는 가변길이 부호화된 영상신호를 가변길이 복호화한다.Therefore, the first-in, first-out buffer 40 outputs the next 24-bit variable length code data which are sequentially stored based on the read signal as described above, and by repeating such a process continuously, the conventional apparatus has variable length encoding. Variable length decoding the received video signal.

상기에서 그 구체적인 기술은 없었으나, 종래의 가변길이부호 복호화장치에 있어서, 복호 테이블내의 부호길이 테이블은, 제7도(b)에 도시된 바와같이, 가변길이부호의 비트수와 동일한 비트수, 즉 24비트라인을 갖는다.In the above variable length decoding apparatus, the code length table in the decoding table has the same number of bits as the number of bits of the variable length code, as shown in FIG. That is, it has a 24-bit line.

상술한 바와같은 처리과정을 통해 종래의 가변길이부호 복호화장치는 가변길이 부호화된 데이터를 원활하게 가변길이 복호화하지만, 가변길이 부호화된 데이터를 가변길이 복호화하는 복호화장치에 있어서, 빠른 동작속도가 요구된다는 점과 복호화장치의 소형화, 경량화 및 저가격화를 추구하는 최근의 추세에 부응하지 못하고 있다.Although the conventional variable length code decoding apparatus smoothly variable length decodes the variable length coded data through the above-described process, a fast operation speed is required in the decoding device for variable length decoding the variable length coded data. The recent trend of miniaturization, weight reduction and low price of point and decoding devices has not been met.

따라서, 본 발명은 이러한 점에 착안하여 안출한 것으로서, 불필요한 지연을 초래하는 래치와, 복호 테이블의 부호길이 테이블에서 가변길이부호의 비트수와 동일 라인을 갖는 비트라인을 축소시킴으로써 가변길이 처리속도향상과 구성의 단순화할 수 있는 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기를 제공하는데 그 목적이 있다.Accordingly, the present invention has been made in view of this point, and the variable length processing speed is improved by reducing the latch that causes unnecessary delay and the bit line having the same line as the number of bits of the variable length code in the code length table of the decoding table. An object of the present invention is to provide a variable length decoder in an apparatus for decoding a digital video signal, which can simplify the configuration.

상기의 목적을 달성하기 위한 본 발명에 따르면, 선입 선출버퍼(10)에 저장된 가변길이 부호화된 데이터를 독취신호 발생부로부터의 제어신호에 따라 출력하여 신호처리수단을 통해 처리한 다음 부호어 테이블, 부호길이 테이블 및 복호어 테이블로 구성된 복호 테이블을 통해 가변길이 복호화하는 가변길이부호 복호화장치에 있어서, 상기 신호처리수단(20)은, 클럭신호에 동기되어 상기 선입 선출버퍼(10)로부터 출력되는 가변길이부호 데이트를 래치하는 제1래치(22)와 ; 상기 선입 선출버퍼(10)로부터 출력되는 가변길이부호 데이터를 하위비트로 하고, 상기 제1래치(10)로부터의 래치된 가변길이부호 데이터를 상위비트로 하여, 일측에 접속된 제2래치(28)로부터의 쉬프트값에 의거하여 쉬프트되는 가변길이부호 데이터를 상기 복호 테이블(30)로 출력하는 베렐 쉬프터부(24)와 ; 복수의 비트라인을 통해 부호길이 테이블(34)로부터 입력된 부호길이값과 이전의 부호길이값을 누산하여 다음 가변길이값 이상일 때 상기 독취신호 발생부(12)로 캐리신호를 출력하는 가산부(36)와 ; 상기 가산부(26)에 의해 주산된 부호길이값을 클럭신호에 동기되어 상기 베렐 쉬프터부(24)에 쉬프트값으로 출력하는 제2래치(28)로 구성됨을 특징으로 한다.According to the present invention for achieving the above object, the variable length coded data stored in the first-in, first-out buffer 10 is output in accordance with the control signal from the read signal generator for processing through a signal processing means, and then codeword table, In the variable length code decoding apparatus for variable length decoding through a decoding table consisting of a code length table and a decoded table, the signal processing means 20 is a variable outputted from the first-in, first-out buffer 10 in synchronization with a clock signal. A first latch 22 for latching the length data; From the second latch 28 connected to one side, the variable length code data output from the first-in, first-out buffer 10 is the lower bit, and the latched variable length code data from the first latch 10 is the higher bit. A berel shifter section 24 for outputting, to the decoding table 30, variable length code data shifted on the basis of a shift value of? An adder for accumulating the code length value input from the code length table 34 and the previous code length value through a plurality of bit lines, and outputting a carry signal to the read signal generator 12 when it is equal to or greater than the next variable length value ( 36) and; And a second latch 28 that outputs the code length value calculated by the adder 26 to the berel shifter 24 as a shift value in synchronization with a clock signal.

본 발명의 기타 목적과 여러가지장점은 이 기술분야에 숙련된 사람들에 의해 첨부된 도면을 참조하여 하기에 기술되는 본 발명의 바람직한 실시예로부터 더욱 명확하게 될 것이다.Other objects and various advantages of the present invention will become more apparent from the preferred embodiments of the present invention described below with reference to the accompanying drawings by those skilled in the art.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 대하여 기술한다. 제1도는 본 발명에 따른 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기의 블록 구성도를 나타낸다.Hereinafter, with reference to the accompanying drawings will be described a preferred embodiment of the present invention. 1 is a block diagram of a variable length decoder in a digital video signal decoding apparatus according to the present invention.

제1도를 참조하면, 본 발명에 따른 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기는 선입선출버퍼(10)와, 독취신호 발생부(12), 신호처리수단(20) 및, 복호 테이블(30)을 포함한다.Referring to FIG. 1, a variable length decoder in a digital video signal decoding apparatus according to the present invention includes a first-in first-out buffer 10, a read signal generator 12, a signal processing means 20, and a decoding table. (30).

선입 선출버퍼(10)는 도시생략된 부호화장치를 통해 가변길이 부호화된 데이터를 입력받아 저장하고, 후술될 독취신호 발생부(12)로부터의 독취신호에 의거하여 상기 저장된 데이터를 복원하여 후술하는 제1래치(22) 및 베렐 쉬프터부(24)로 출력하도록 구성된다.The first-in, first-out buffer 10 receives and stores variable length coded data through a coding apparatus, not shown, and restores the stored data based on a read signal from the read signal generator 12 to be described later. It is configured to output to one latch 22 and the barrel shifter 24.

독취신호 발생부(12)는 입력 클럭과 후술될 가산부(26)로부터 캐리신호에 의거하여 논리곱된 독출신호를 상기 선입 선출버퍼(10)로 제공되도록 구성되며, 상기 독취신호 발생부(12)는 AND 게이트로 이루어진다. 신호처리수단(20)은 선입 선출버퍼(10)로부터 가변길이 부호화된 데이터를 입력받아 신호처리후 출력되는 소정비트의 부호화데이터를 후술하는 복호 테이블(30)로 제공되도록 하여, 상기 신호처리수단(20)는 누산된 부호길이값이 가변길이 부호길이값 이상일 때, 상기 독취신호 발생부(12)로 캐리신호를 출력하며, 상기 신호처리수단(20)은 제1래치(22), 베렐 쉬프터부(24), 가산부(26) 및 제2래치(28)로 구성된다.The read signal generator 12 is configured to provide a read signal multiplied by an input clock and a carry signal from the adder 26 to be described later to the first-in, first-out buffer 10. 12 consists of an AND gate. The signal processing means 20 receives the variable length coded data from the first-in, first-out buffer 10 so that the signal processing means 20 is provided to a decoding table 30 which will be described later. 20) outputs a carry signal to the read signal generator 12 when the accumulated code length value is equal to or greater than the variable length code length value, and the signal processing means 20 includes the first latch 22 and the berel shifter. (24), an adder (26) and a second latch (28).

제1래치(12)는 선입 선출버퍼(10)로부터의 가변길이 부호화된 데이터를 입력클럭에 연동되어 상기 데이터를 래치하여 후술하는 베렐 쉬퍼터부(24)로 제공되도록 구성된다.The first latch 12 is configured to latch a variable length coded data from the first-in, first-out buffer 10 to an input clock and provide the latched data to the bevel shifter unit 24 described later.

베렐 쉬퍼터부(24)는 선입 선출버퍼(10)로부터 출력되는 가변길이부호 데이터를 하위비트로 하고, 상기 제1래치(10)로부터 래치된 가변길이부호 데이터를 상위비트로 하여, 일측에 접속된 제2래치(28)로부터의 쉬프트값에 의거하여 쉬프트되는 가변길이부호 데이터를 후술하는 복호 테이블(30)로 출력되도록 구성된다.The bevel shifter part 24 uses the variable length code data output from the first-in, first-out buffer 10 as a lower bit, and the variable length code data latched from the first latch 10 as an upper bit and is connected to one side. The variable length code data shifted on the basis of the shift value from the latch 28 is output to the decoding table 30 described later.

가산부(26)는 복수의 비트라인을 통해 후술되는 부호길이 테이블(34)로부터 입력된 부호길이값과 이전의 부호길이값을 누산한 다음 가변길이부호에 대한 쉬프트값을 할당하는 신호를 출력하며, 상기 누산된 부호길이값이 가변길이부호의 부호길이값 이상일 때, 캐리신호를 발생하여 독취신호 발생부(12)로 출력하도록 구성된다.The adder 26 accumulates the code length value and the previous code length value inputted from the code length table 34 to be described later through a plurality of bit lines, and then outputs a signal for allocating a shift value for the variable length code. When the accumulated code length value is equal to or greater than the code length value of the variable length code, a carry signal is generated and output to the read signal generator 12.

제2래치(28)는 가산부(26)에 의해 누산된 부호길이값과 입력 클럭에 연동되어 상기 베렐 쉬퍼터부(24)와 가산부(26)로 쉬프트값을 출력하도록 구성된다.The second latch 28 is configured to output the shift value to the berel shifter 24 and the adder 26 in association with the code length accumulated by the adder 26 and the input clock.

복호 테이블(30)은 신호처리수단(20)으로부터의 가변길이부호 데이터를 가변길이 복호화하여 출력하도록 구성되며, 상기 복호 테이블(30)은 부호어 테이블(32)과, 부호길이 테이블(34) 및 복호어 테이블(36)로 이루어진다.The decoding table 30 is configured to variable length decode and output variable length coded data from the signal processing means 20. The decoding table 30 includes a codeword table 32, a code length table 34, It consists of a decryptor table 36.

부호어 테이블(32)은 신호처리수단(20)의 베렐 쉬퍼터부(24)로부터의 가변길이부호 데이터에서 가변길이 부호구간을 검출하고, 그 검출된 데이터를 후술하는 부호길이 테이블(34)와 복호어 테이블(36)로 제공되도록 구성된다.The codeword table 32 detects a variable length code section from the variable length code data from the berel shifter section 24 of the signal processing means 20, and decodes the code length table 34 and the following to describe the detected data. A table 36 is configured to be provided.

부호길이 테이블(34)은 부호어 테이블(32)에서 검출된 부호구간의 비트수를 검출하여 5개의 비트라인을 통해 상기 가산부(26)로 제공하도록 구성된다.The code length table 34 is configured to detect the number of bits of the code section detected in the codeword table 32 and provide it to the adder 26 through five bit lines.

상기와같이 구성된 본 발명의 동작을 상세히 설명하면 다음과 같다.Referring to the operation of the present invention configured as described above in detail.

먼저, 선입 선출버퍼(10)는 부호화되어 입력되는 가변길이부호 데이터(예 : 24비트)가 순차적으로 저장되며, 외부로부터의 입력 클록신호는 AND게이트(12)의 일측단자와 제1래치(22) 및 제2래치(28)로 제공되어 동기된다.First, the first-in, first-out buffer 10 sequentially stores variable length code data (for example, 24 bits) that are encoded and input, and an input clock signal from the outside is connected to one side terminal of the AND gate 12 and the first latch 22. ) And second latch 28 to be synchronized.

초기 동작시, 가산부(26)는 캐리신호와 24비트의 부호길이 값을 생성하며, 상기 캐리신호는 AND게이트(12)의 타측단자에 인가된다. 따라서, AND게이트(12)는 그의 타측단자를 통해 입력되는 클록신호(CLK)와 상기 캐리신호에 의거하여 논리곱되며, 이때 발생되는 독취신호는 선입 선출버퍼(10)로 출력된다.In an initial operation, the adder 26 generates a carry signal and a code length value of 24 bits, and the carry signal is applied to the other terminal of the AND gate 12. Therefore, the AND gate 12 is logically multiplied based on the clock signal CLK inputted through the other terminal thereof and the carry signal, and the read signal generated at this time is output to the first-in, first-out buffer 10.

따라서, 선입 선출버퍼(10)는 AND게이트(12)의 독취신호에 의거하여 상기 저장되어 있던 가변길이부호 데이터를 순차적으로 제1래치(22)와 베렐 쉬프터부(24)로 제공되며, 또한, 상기 가변길이부호 데이터는 제1래치(22)에 의해서 래치된 다음 베렐 쉬프터부(24)로 제공된다.Accordingly, the first-in, first-out buffer 10 sequentially supplies the stored variable length code data to the first latch 22 and the berel shifter 24 based on the read signal of the AND gate 12. The variable length code data is latched by the first latch 22 and then provided to the berel shifter portion 24.

베렐 쉬프터부(24)는 선입 선출버퍼(10)에 저장되어 있던 가변길이부호 데이터 즉, 하위 24비트와 제1래치(22)에서 래치된 값 즉, 상위 24비트로한 48비트의 가변길이부호가 입력되는 것이다.The Berrel shifter section 24 has variable length code data stored in the first-in, first-out buffer 10, that is, the lower 24 bits and the latched value of the first latch 22, that is, the 48-bit variable length code as the upper 24 bits. It is input.

따라서, 최초에 48비트의 가변길이부호 데이터중 상위 24비트는 복호 테이블(30)로 인가되는데, 이때, 베렐 쉬프터부(24)의 흐름과 그 타이밍은 제2도 및 3도에 도시된 바와 같다.Therefore, the upper 24 bits of the 48-bit variable length code data are first applied to the decoding table 30, where the flow and timing of the berel shifter section 24 are as shown in Figs. .

즉, 베렐 쉬프터부(24)는 상기 선입 선출버퍼(10)와 제1래치(22)로부터 입력되는 48비트(제3도에 도시된 바와같이 a,b 각각 24비트)의 가변길이부호 데이터중 상위 24비트의 가변길이부호 데이터는, 제2래치(28)로부터 출력되는 쉬프트값(5비트)에 따라 쉬프트한 후 복호 테이블(30)로 인가된다.That is, the berel shifter 24 has a variable length code data of 48 bits (24 bits each of a and b as shown in FIG. 3) input from the first-in first-out buffer 10 and the first latch 22. The variable length code data of the upper 24 bits is shifted according to the shift value (5 bits) output from the second latch 28 and then applied to the decoding table 30.

한편, 복호 테이블(30)은 내장된 부호어 테이블(32)을 통해 입력된 24비트의 가변길이부호 데이터에 대하여, 가변길이 부호구간을 검출하고, 복호어 테이블(36)을 통해 검출된 가변길이부호 데이터를 원래의 데이터(가변길이 부호화되기 전의 데이터)로 복호하여 출력된다.On the other hand, the decoding table 30 detects a variable length code section with respect to 24-bit variable length coded data input through the embedded codeword table 32, and detects the variable length coded section through the decoded table 36. The coded data is decoded into original data (data before variable length coding) and output.

이때, 부호길이 테이블(34)은 부호어 테이블(32)에서 검출된 가변길이 부호구간의 비트수를 검출하여 5개의 비트라인을 통해 가산부(26)로 전달된다.At this time, the code length table 34 detects the number of bits of the variable length code section detected by the codeword table 32 and transfers the number of bits to the adder 26 through five bit lines.

여기에서 본 발명에 따른 부호길이 테이블(34)은, 제7도(b)에 도시된 바와같이 가변길이부호의 비트수(24비트)와 같은 수의 비트라인(24비트라인)을 갖는 전술한 종래 장치에서의 그것과는 달리, 제7도(b)에 도시된 바와같이 24비트수를 표현하는 부호자리수를 값(즉, 5비트)으로 축소하여 구성된다.Herein, the code length table 34 according to the present invention has the same number of bit lines (24 bit lines) as the number of bits (24 bits) of the variable length code as shown in FIG. Unlike that in the conventional apparatus, as shown in Fig. 7 (b), the number of sign digits representing a 24-bit number is reduced to a value (that is, 5 bits).

따라서, 가산기(26)는 부호길이 테이블(34)로부터 입력된 부호길이값과 이전의 부호길이값을 누산한 결과값에 따라 다음으로 입력되는 가변길이부호에 대한 쉬프트값을 할당하며, 이렇게 하여 할당된 쉬프트값은 제2래치(28)에 래치된 다음 클럭신호(CLK)에 동기되어 상술한 베렐 쉬프터부(24)와 가산부(26)로 제공된다.Therefore, the adder 26 assigns a shift value for the next variable length code input according to the code length value input from the code length table 34 and the result of accumulating the previous code length value. The shift value is latched to the second latch 28 and then provided to the above-described berel shifter 24 and the adder 26 in synchronization with the clock signal CLK.

제4도 및 5도는 본 발명의 가변길이부호 복호화장치에 채용되는 가산부의 흐름도 및 타이밍도를 보여주는 것으로, 가산부(25)로의 입력값은 5비트이고 출력값 또한 5비트이다. 따라서, 가산부(26)는 전술한 바와같이 입력되는 5비트의 입력값에 따라 다음 가변길이부호에 대한 부호길이값을 누산하게 되어, 부호길이값이 24비트 이상일 경우 캐리신호를 발생하게 된다.4 and 5 show a flowchart and a timing diagram of an adder employed in the variable length code decoding apparatus of the present invention. The input value to the adder 25 is 5 bits and the output value is 5 bits. Therefore, the adder 26 accumulates the code length value for the next variable length code according to the 5-bit input value as described above, and generates a carry signal when the code length value is 24 bits or more.

이상 설명한 바와같이 본 발명은, 가변길이부호 복호화장치는 전술한 종래장치와 거의 유사한 처리과정을 통해 가변길이 부호화된 데이터를 가변길이 복호화하지만, 실질적으로 본 발명은 종래장치에 있어서 선입 선출버퍼에서 상위비트를 구성하기 위해 사용하던 래치를 사용하지 않고, 복호 테이블내의 부호길이 테이블의 비트라인수를 종래장치에 비해 저감시켰으며(24비트라인에서 5비트라인으로), 가산기능을 수행하는 부분에 있어서도 임의의 부호 길이값(5비트)에 따라 쉬프트값을 구하는 구조로 변경하여 감소된 비트라인수에 대응하도록 종래 장치에 비해 구조를 간소화 시켰다.As described above, in the present invention, the variable length code decoding apparatus performs variable length decoding on the variable length coded data through a process similar to that of the conventional apparatus described above, but the present invention substantially differs from the first-in first-out buffer in the conventional apparatus. The number of bit lines in the code length table in the decoding table is reduced (from 24 bit lines to 5 bit lines) without using the latch used to configure the bits. The structure is simplified compared to the conventional apparatus to correspond to the reduced number of bit lines by changing the structure to obtain a shift value according to an arbitrary code length value (5 bits).

또한, 종래 장치에서 캐리신호를 래치하던 래치를 본 발명의 장치에서는 제거함으로써 전반적으로 장치의 간소화도 도모될 뿐만 아니라 메모리부분의 상당한 감소(예를들면, 24비트인 경우 224에서 25으로 감소)로 인해 복호화과정의 처리속도 향상을 도모할 수 있다.In addition, by eliminating the latch used to carry the carry signal in the conventional device in the device of the present invention, the overall device is not only simplified, but also a significant reduction in the memory portion (for example, from 24 to 2 5 for 24 bit). ) Can improve the processing speed of the decoding process.

Claims (2)

선입 선출버퍼(10)에 저장된 가변길이 부호화된 데이터를 독취신호 발생부로부터의 제어신호에 따라 출력하여 신호처리수단(20)을 통해 처리한 다음 부호어 테이블, 부호길이 테이블 및 복호어 테이블로 구성된 복호 테이블(30)을 통해 가변길이 복호화하는 가변길이부호 복호화장치에 있어서, 상기 신호처리수단(20)은, 클럭신호에 동기되어 상기 선입 선출버퍼(10)로부터 출력되는 가변길이부호 데이터를 래치하는 제1래치(22)와 ; 상기 선입 선출버퍼(10)로부터 출력되는 가변길이부호 데이터를 하위비트로 하고, 상기 제1래치(10)로부터의 래치된 가변길이부호 데이터를 상위비트로 하여, 일측에 접속된 제2래치(28)로부터의 쉬프트값에 의거하여 쉬프트되는 가변길이부호 데이터를 상기 복호 테이블(30)로 출력하는 베렐 쉬프터부(24)와 ; 복수의 비트라인을 통해 부호길이 테이블(34)로부터 입력된 부호길이값과 이전의 부호길이값을 누산하여 다음 가변길이이부호에 대한 쉬프트값을 할당하는 신호를 출력하고, 상기 누산된 부호길이값이가변길이부호의 부호 길이값 이상일 때 상기 독취신호 발생부(12)로 캐리신호를 출력하는 가산부(36)와 ; 상기 가산부(26)에 의해 누산된 부호길이값을 클럭신호에 동기되어 상기 베렐 쉬프터부(24)에 쉬프트값으로 출력하는 제2래치(28)로 구성됨을 특징으로 하는 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기.The variable length coded data stored in the first-in, first-out buffer 10 is output in accordance with the control signal from the read signal generator, processed by the signal processing means 20, and then composed of a codeword table, a code length table, and a decoded table. In the variable length code decoding apparatus for variable length decoding through a decoding table 30, the signal processing means 20 latches the variable length code data output from the first-in, first-out buffer 10 in synchronization with a clock signal. The first latch 22; From the second latch 28 connected to one side, the variable length code data output from the first-in, first-out buffer 10 is the lower bit, and the latched variable length code data from the first latch 10 is the higher bit. A berel shifter section 24 for outputting, to the decoding table 30, variable length code data shifted on the basis of a shift value of? The signal length value inputted from the code length table 34 and the previous code length value are accumulated through a plurality of bit lines, and a signal for allocating a shift value for the next variable length code is output. An adder 36 for outputting a carry signal to the read signal generator 12 when it is equal to or greater than a code length value of a variable length code; And a second latch 28 which outputs the code length value accumulated by the adder 26 to the berel shifter 24 as a shift value in synchronization with a clock signal. Variable-length decoder in. 제1항에 있어서, 상기 복수의 비트라인은 5개의 비트라인인 것을 특징으로 하는 디지털 영상신호의 복호화장치에 있어서의 가변길이 복호화기.The variable length decoder of claim 1, wherein the plurality of bit lines are five bit lines.
KR1019930012112A 1993-06-30 1993-06-30 Variable length decoder of digital image signal KR960011111B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930012112A KR960011111B1 (en) 1993-06-30 1993-06-30 Variable length decoder of digital image signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930012112A KR960011111B1 (en) 1993-06-30 1993-06-30 Variable length decoder of digital image signal

Publications (2)

Publication Number Publication Date
KR950002251A KR950002251A (en) 1995-01-04
KR960011111B1 true KR960011111B1 (en) 1996-08-20

Family

ID=19358346

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930012112A KR960011111B1 (en) 1993-06-30 1993-06-30 Variable length decoder of digital image signal

Country Status (1)

Country Link
KR (1) KR960011111B1 (en)

Also Published As

Publication number Publication date
KR950002251A (en) 1995-01-04

Similar Documents

Publication Publication Date Title
KR100324833B1 (en) Variable length code decoder
US6339386B1 (en) Variable length coder of a video coder
US5225832A (en) High speed variable length decoder
US6008745A (en) Variable length decoding using lookup tables
US6215424B1 (en) System for variable length codeword processing suitable for video and other applications
US6043765A (en) Method and apparatus for performing a parallel speculative Huffman decoding using both partial and full decoders
US5892791A (en) High-speed variable length decoding apparatus
US5561690A (en) High speed variable length code decoding apparatus
US5706001A (en) Run-length decoding apparatus for use in a video signal decoding system
US5280349A (en) HDTV decoder
US5648774A (en) Variable length coding with three-field codes
KR0178201B1 (en) Variable length decoding apparatus
US5663726A (en) High speed variable-length decoder arrangement with reduced memory requirements for tag stream buffering
KR19980702512A (en) Variable length decoder
KR0152032B1 (en) Variable length decoder for image signal
US5781135A (en) High speed variable length code decoder
KR960003452B1 (en) Vlc
US5663725A (en) VLC decoder with sign bit masking
KR960011111B1 (en) Variable length decoder of digital image signal
US6020835A (en) Code decoding apparatus
JPH08223055A (en) Variable-length cord decoder
US6496602B2 (en) Sorting device of variable-length code
KR0125125B1 (en) High-speed apparatus for decoding variable length code
KR0125126B1 (en) High-speed apparatus for decoding variable length code
KR100292050B1 (en) Data simulator of variable length decoder

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120801

Year of fee payment: 17

EXPY Expiration of term