CN1140366A - Parameter Table Reduction Device for Variable Length Decoder - Google Patents

Parameter Table Reduction Device for Variable Length Decoder Download PDF

Info

Publication number
CN1140366A
CN1140366A CN95108191A CN95108191A CN1140366A CN 1140366 A CN1140366 A CN 1140366A CN 95108191 A CN95108191 A CN 95108191A CN 95108191 A CN95108191 A CN 95108191A CN 1140366 A CN1140366 A CN 1140366A
Authority
CN
China
Prior art keywords
input data
parameter table
parameter list
table device
length decoder
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.)
Granted
Application number
CN95108191A
Other languages
Chinese (zh)
Other versions
CN1049309C (en
Inventor
黄柏川
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.)
United Microelectronics Corp
Original Assignee
United Microelectronics 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 United Microelectronics Corp filed Critical United Microelectronics Corp
Priority to CN95108191A priority Critical patent/CN1049309C/en
Publication of CN1140366A publication Critical patent/CN1140366A/en
Application granted granted Critical
Publication of CN1049309C publication Critical patent/CN1049309C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A parameter table reduction device of a variable length decoder comprises a parameter table device and a mask circuit. The parameter table device decodes the input data into a level code and a length code, and uses the mask circuit to operate the input data and the length code to generate a symbol bit, and then takes the level code and the symbol bit as the output.

Description

可变长度解码器的参 数表缩减装置Parameter Table Reduction Device for Variable Length Decoder

本发明是有关于数据传输系统中的解码装置,特别是有关于一种可变长度解码器(variable length decoder)的参数表(codetable)装置。The present invention relates to a decoding device in a data transmission system, in particular to a parameter table (codetable) device of a variable length decoder.

可变长度编码(variable length coding)技术是为需要无损耗(lossless)的数据压缩系统所利用,而将固定长度的数据依照统计结果转换成具有不定长度的码字,使出现频率较高的数据能以较少的信息量来贮存或传输,较庞大的数据量便可被压缩。也因此,在需要较大量数据的传输或处理系统中,例如高画质电视(HDTV),即以配合较快处理速度的可变长度解码电路,提供视频信息数据的高效率转换。Variable length coding (variable length coding) technology is used for data compression systems that require lossless (lossless), and converts fixed-length data into codewords with an indefinite length according to statistical results, so that data with higher frequency It can be stored or transmitted with a small amount of information, and a larger amount of data can be compressed. Therefore, in a transmission or processing system that requires a large amount of data, such as high-definition television (HDTV), a variable-length decoding circuit with a faster processing speed is used to provide high-efficiency conversion of video information data.

一般用以进行可变长度解码的结构,如图1所示,包括一桶式移位器(barrel shifter)15、一参数表装置(code table)17和一多路复用器19等。在上述结构中,特别是用以配合MPEG I(MotionPicture Experts Group)或MPEG II标准的视频信息处理系统,其用以解码离散余弦转换(Discrete cosine transform,简称DCT)的系数的参数表装置,将是最为庞大的部份。例如适用于MPEG II标准的第零个DCT参数表装置即有114个可变长度码字,而当中最长的码字更含17个位元。因此,若能适当设计此部份结构,使所占面积缩减,使得整体视频信息处理系统更精致而高密度化。The structure generally used for variable-length decoding, as shown in FIG. In the above structure, especially for the video information processing system used to cooperate with MPEG I (Motion Picture Experts Group) or MPEG II standard, it is used to decode the parameter table device of the coefficient of discrete cosine transform (Discrete cosine transform, referred to as DCT), will is the largest part. For example, the zeroth DCT parameter table device applicable to the MPEG II standard has 114 variable-length codewords, and the longest codeword among them contains 17 bits. Therefore, if this part of the structure can be properly designed, the occupied area can be reduced, making the overall video information processing system more refined and high-density.

由于一般平行可变长度解码器多以可编程逻辑阵列(PLA)提供解码所需的信息,以致可编程逻辑阵列的尺寸及其传递信号的延迟时间均为可变长度解码器解码效率的关键因素。因而,为了满足上述提高整体视频信息处理系统功能的要求,目前有将可变长度解码器结构重新设计,或重建可编程逻辑阵列的组合型式。甚至以只读存储器(ROM)取代可编程逻辑阵列,试图借以提高处理速度。但终因只读存储器所需占用空间较大,虽提供较快速运行功能,亦难以接受。Since the general parallel variable-length decoder mostly uses the programmable logic array (PLA) to provide the information required for decoding, so that the size of the programmable logic array and the delay time of the transmitted signal are the key factors of the decoding efficiency of the variable-length decoder. . Therefore, in order to meet the above-mentioned requirements for improving the functions of the overall video information processing system, there are currently redesigning the structure of the variable-length decoder, or rebuilding the combined type of the programmable logic array. Even read-only memory (ROM) replaced the programmable logic array in an attempt to increase processing speed. However, because the ROM requires a large space, it is unacceptable even though it provides a faster running function.

于是,分析可变长度解码器内参数表装置的配置情形,以MPEG标准为例,将离散余弦转换系数表解码成一长度码(run)和一位阶码(Level),令位阶码为具备正负值的码字。请参照图2所示的参数表装置结构,因有正负值之故,位阶码内部含一数据和一符号位元(sign bit),而以符号位元结合其数据一并为参数表装置内既定码字规划的一部份。亦即,在参数表装置中,相应于相同数据但不同符号位元码字就必须分别处理,将正和负值的位阶码视为二不相干的码字,而分别于正值码区11和负值码区12进行转换。如此一来,参数表装置势必因提供处理仅符号位元不同的码字,而必须重复支持其他相同的数据,造成硬件空间浪费,更导致延迟时间变长,而影响处理效率。Then, analyze the configuration situation of the parameter table device in the variable length decoder, take the MPEG standard as an example, the discrete cosine transform coefficient table is decoded into a length code (run) and a level code (Level), so that the bit level code has Codewords with positive and negative values. Please refer to the device structure of the parameter table shown in Figure 2, because there are positive and negative values, the bit-level code contains a data and a sign bit (sign bit), and the data is combined with the sign bit to form a parameter table Part of a given codeword plan within a device. That is to say, in the parameter table device, corresponding to the same data but different symbol bit code words must be processed separately, and the order codes of positive and negative values are regarded as two irrelevant code words, and respectively in the positive value code area 11 Convert with the negative value code area 12. In this way, the parameter table device must repeatedly support other identical data because it provides and processes codewords with only different sign bits, resulting in waste of hardware space, and even longer delay time, which affects processing efficiency.

因此,本发明的主要目的在于提供一种可变长度解码器参数表缩减装置,避免码字符号位元的重复处理,以节省硬件空间,提高解码效率。Therefore, the main purpose of the present invention is to provide a variable-length decoder parameter table reduction device, which avoids repeated processing of bits of codeword symbols, saves hardware space, and improves decoding efficiency.

为了达到上述目的,本发明即提供一种可变长度解码器参数表缩减装置,用以解码一具有正负值的输入数据,该装置包括:In order to achieve the above object, the present invention promptly provides a kind of variable length decoder parameter list reduction device, in order to decode an input data with positive and negative values, and this device comprises:

一参数表装置,以该输入数据的数值部份产生一对应的位阶码和一长度码;以及A parameter table device generates a corresponding scale code and a length code with the numerical value part of the input data; and

一掩模电路,运算该输入数据与该参数表装置提供的该长度码,而产生一符号位元;该符号位元与该参数表装置产生的位阶码结合即为解码结果。A mask circuit operates the input data and the length code provided by the parameter table device to generate a sign bit; the combination of the sign bit and the level code generated by the parameter table device is the decoding result.

其中,该参数表装置可为一可编程逻辑阵列。该参数表装置也可为一只读存储器装置。Wherein, the parameter table device can be a programmable logic array. The parameter table device may also be a read-only memory device.

该参数表装置所利用的该输入数据数值部份可由去除该输入数据的符号位元而得。The value portion of the input data used by the parameter table device can be obtained by removing the sign bit of the input data.

该掩模电路可包括:The mask circuit may include:

一与门,具有双组输入端口,用以分别输入该长度码与该输入数据作逻辑运算;An AND gate has two sets of input ports for respectively inputting the length code and the input data for logical operation;

一或门,具有多个输入端口,将该与门的输出各位元进行“或”逻辑运算产生该符号位元。该输入数据可由一桶式移位器所提供。An OR gate has a plurality of input ports, and performs "OR" logic operation on the output bits of the AND gate to generate the sign bit. The input data may be provided by a barrel shifter.

由于掩模电路仅需以简单逻辑电路组成即可,能大幅缩减解码器的空间,并以较小尺寸的可编程式逻辑阵列为参数表装置,可将延迟时间减至最短,而提升解码效率。Since the mask circuit only needs to be composed of simple logic circuits, the space of the decoder can be greatly reduced, and a smaller-sized programmable logic array is used as a parameter table device, which can minimize the delay time and improve decoding efficiency. .

为使本发明的上述和其他目的、特征和优点能更明显,特举一较佳实施例,并配合附图,作详细说明如下:In order to make the above-mentioned and other purposes, features and advantages of the present invention more obvious, a preferred embodiment is specifically cited, and in conjunction with the accompanying drawings, the detailed description is as follows:

图1绘示了一熟知可变长度解码器的结构。FIG. 1 shows the structure of a known variable length decoder.

图2绘示了图1结构内参数表装置的配置示意图。FIG. 2 is a schematic diagram showing the configuration of the parameter table device in the structure of FIG. 1 .

图3为依照本发明一较佳实施例的可变长度解码器结构。FIG. 3 is a structure of a variable length decoder according to a preferred embodiment of the present invention.

图4为图3结构内的掩模电路结构图。FIG. 4 is a structural diagram of a mask circuit in the structure of FIG. 3 .

在本发明的可变长度解码器中,输入码字的符号位元并不送入参数表装置内解码,而是另以一掩模电路来处理,而有如图3所示的电路结构。In the variable length decoder of the present invention, the sign bit of the input codeword is not sent to the parameter table device for decoding, but is processed by a mask circuit, and has a circuit structure as shown in FIG. 3 .

在图3所示的较佳实施例电路中,包括有桶式移位器25、一参数表装置27和掩模电路29。桶式移位器25是依照参数表装置27所提供的码字长度信息而将输入数据馈入参数表装置27。但是,参数表装置27仅取输入数据的数值部份进行解码,而摒除输入数据的符号位元。亦即,对于具有相同数值部份但符号互异的输入数据,参数表装置27是由相同一解码区进行处理产生位阶码,而使解码电路能减少一半。In the preferred embodiment circuit shown in FIG. 3, a barrel shifter 25, a parameter table device 27 and a mask circuit 29 are included. The barrel shifter 25 feeds input data into the parameter table device 27 according to the code word length information provided by the parameter table device 27 . However, the parameter table device 27 only takes the numerical part of the input data for decoding, and discards the sign bit of the input data. That is to say, for the input data having the same value part but different signs, the parameter table device 27 generates scale codes by processing in the same decoding area, so that the decoding circuit can be reduced by half.

在另一方面,参数表装置27解出的长度信息,即前述的长度码,则配合桶式移位器25所提供的输入数据一并于掩模电路29内进行逻辑运算,以择取出输入数据的符号位元。由于此逻辑运算仅为单纯的“与”(AND)和“或”(OR)处理,电路结构甚为简单,十分适合集成电路高密度制造使用。On the other hand, the length information deciphered by the parameter table device 27, that is, the aforementioned length code, is combined with the input data provided by the barrel shifter 25 to carry out logic operations in the mask circuit 29 to select the input data. The sign bit of the data. Since this logic operation is only simple "AND" (AND) and "or" (OR) processing, the circuit structure is very simple, which is very suitable for high-density manufacturing of integrated circuits.

于是,若将参数表装置27和掩模电路29产生的结果,即符号位元和位阶码相结合,解码结果即可得。为使本发明的运行情况更易了解,下面举一实施例以作说明。Therefore, if the result generated by the parameter table device 27 and the mask circuit 29, that is, the sign bit and the scale code, are combined, the decoding result can be obtained. In order to make the operation of the present invention easier to understand, an embodiment is given below for illustration.

假设若由桶式移位器25送出的一部份输入数据为0111,共四位元,其最末一位元是符号位元S,即S=1,则其数值部份为011。于是,码字011经参数表装置27接收后进行解码而产生位阶码,并有长度码0001000……0分别送至桶式移位器25和掩模电路29。Assume that if a part of the input data sent by the barrel shifter 25 is 0111, a total of four bits, and the last bit is the sign bit S, that is, S=1, then the value part is 011. Therefore, the code word 011 is received by the parameter table device 27 and decoded to generate a scale code, and the length code 0001000...0 is sent to the barrel shifter 25 and the mask circuit 29 respectively.

本发明一较佳实施例的掩模电路29则如图4所示,包括一与门290和一或门291。与门290提供二组输入端口分别由参数表装置27和桶式移位器25输入数据,再以各组数据的相同位元进行“与”运算。由于来自参数表装置27的长度码仅有相对于符号位元的单一位置的值“1”,其他位元皆为“0”,如上述的000100......0,其与输入数据进行与逻辑运算后,若输入数据的符号位元为“1”,其结果将与长度码的形式相同,否则,与门290的输出各位元将皆为“0”。因此经由或门291将与门290输入所有位元进行“或”逻辑运算后,将可产生符号位元值“1”或“0”。A mask circuit 29 of a preferred embodiment of the present invention is shown in FIG. 4 , including an AND gate 290 and an OR gate 291 . The AND gate 290 provides two sets of input ports to input data from the parameter table device 27 and the barrel shifter 25 respectively, and then performs an "AND" operation with the same bits of each set of data. Since the length code from the parameter table device 27 has only the value "1" of a single position relative to the sign bit, other bits are all "0", such as the above-mentioned 000100...0, which is consistent with the input data After the AND logic operation, if the sign bit of the input data is "1", the result will be in the same form as the length code, otherwise, the output bits of the AND gate 290 will all be "0". Therefore, after all the bits are input into the AND gate 290 via the OR gate 291 to perform "OR" logic operation, the sign bit value "1" or "0" will be generated.

于是,经由掩模电路29和参数表装置27产生的符号位元和位阶码即可结合成为输出。Thus, the sign bits and scale codes generated by the mask circuit 29 and the parameter table device 27 can be combined into an output.

由于本发明的参数表装置并不限定由可编程逻辑阵列做成,其亦可因实际需要改由只读存储器做成。与熟知技术相比,若采以可编程逻辑阵列做成参数表装置,本发明的装置单在此一部份即可节省一半的电路空间,虽有另设掩模电路,然其仅为简单逻辑,设计容易,体积亦小,整体而言,可变长度解码器的设计和尺寸皆有极大优点,甚至考虑选择只读存储器做为参数表装置更加可行。Since the parameter table device of the present invention is not limited to be made of a programmable logic array, it can also be made of a read-only memory according to actual needs. Compared with the known technology, if the parameter table device is made of a programmable logic array, the device of the present invention can save half of the circuit space in this part alone. Although there is another mask circuit, it is only simple. Logic, design is easy, and the volume is small. Overall, the design and size of the variable-length decoder have great advantages. It is even more feasible to consider choosing a read-only memory as a parameter table device.

虽然本发明揭露较佳实施例如上,然其并非用以限定本发明,任何熟悉此项技艺者,在不脱离本发明的精神和范围内,当可作一些更动与修饰,因此本发明的保护范围当视后附的权利要求所界定者为准。Although the preferred embodiment disclosed in the present invention is as above, it is not intended to limit the present invention. Anyone skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall prevail as defined by the appended claims.

Claims (6)

1, the parameter table reduction device of a kind of variable-length decoder (variable Length decoder), in order to the input data with positive negative value of decoding, this device comprises:
One parameter list device partly produces the position exponent and a length code of a correspondence with the numerical value of these input data; And
One mask circuit, this length code that these input data of computing and this parameter list device provide, and produce a symbol bit; This symbol bit combines with the position exponent that this parameter list device produces and is decoded result.
2, device as claimed in claim 1, wherein, this parameter list device is a programmable logic array (PLA).
3, device as claimed in claim 1, wherein, this parameter list device is a ROM device.
4, device as claimed in claim 1, wherein, this input value data that this parameter list device utilized partly is to get with the symbol bit of removing these input data.
5, device as claimed in claim 1, wherein, this mask circuit comprises:
One with door, have two group input ports, in order to import this length code respectively and this input data are done logical operation;
One or door, have a plurality of input ports, this each bit of output with door is carried out " or " logical operation, and produce this symbol bit.
6, device as claimed in claim 1, wherein, these input data are provided by a barrel shifter.
CN95108191A 1995-07-10 1995-07-10 Coefficient table reduction device for variable length decoder Expired - Lifetime CN1049309C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN95108191A CN1049309C (en) 1995-07-10 1995-07-10 Coefficient table reduction device for variable length decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN95108191A CN1049309C (en) 1995-07-10 1995-07-10 Coefficient table reduction device for variable length decoder

Publications (2)

Publication Number Publication Date
CN1140366A true CN1140366A (en) 1997-01-15
CN1049309C CN1049309C (en) 2000-02-09

Family

ID=5076667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN95108191A Expired - Lifetime CN1049309C (en) 1995-07-10 1995-07-10 Coefficient table reduction device for variable length decoder

Country Status (1)

Country Link
CN (1) CN1049309C (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2766302B2 (en) * 1989-04-06 1998-06-18 株式会社東芝 Variable length code parallel decoding method and apparatus
JPH04185119A (en) * 1990-11-20 1992-07-02 Matsushita Electric Ind Co Ltd Variable length coder

Also Published As

Publication number Publication date
CN1049309C (en) 2000-02-09

Similar Documents

Publication Publication Date Title
US6819271B2 (en) Parallel compression and decompression system and method having multiple parallel compression and decompression engines
US6885319B2 (en) System and method for generating optimally compressed data from a plurality of data compression/decompression engines implementing different data compression algorithms
US6587057B2 (en) High performance memory efficient variable-length coding decoder
US7817864B2 (en) Coding apparatus and decoding apparatus
US5225832A (en) High speed variable length decoder
US6653955B1 (en) Multi-symbol variable length code decoder
US6043765A (en) Method and apparatus for performing a parallel speculative Huffman decoding using both partial and full decoders
JPH08116266A (en) Coding method, coder, coding device, decoding method, decoder, entropy decoder and initializing method
US5280349A (en) HDTV decoder
US5663725A (en) VLC decoder with sign bit masking
Min et al. A memory-efficient VLC decoder architecture for MPEG-2 application
Hsieh et al. A concurrent memory-efficient VLC decoder for MPEG applications
Fukuzawa et al. A programmable VLC core architecture for video compression DSP
US20010030615A1 (en) Variable length decoding system and method
US5701126A (en) High speed variable length decoder
Ong et al. A high throughput low cost context-based adaptive arithmetic codec for multiple standards
CN106488245A (en) System and method for being decoded to digital video data stream
CN1140366A (en) Parameter Table Reduction Device for Variable Length Decoder
Albanese et al. An area reduced design of the Context-Adaptive Variable-Length encoder suitable for embedded systems
US5619200A (en) Code table reduction apparatus for variable length decoder
US5745603A (en) Two dimensional context model obtained without a line buffer for arithmetic coding
Lee et al. A memory-based architecture for very-high-throughput variable length codec design
Lee et al. A design of high-performance pipelined architecture for H. 264/AVC CAVLC decoder and low-power implementation
Molloy et al. Low power VLSI architectures for variable-length encoding and decoding
KR100848905B1 (en) Variable length decoder

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Expiration termination date: 20150710

Granted publication date: 20000209

EXPY Termination of patent right or utility model