KR100199100B1 - Apparatus for decoding digital audio signals - Google Patents

Apparatus for decoding digital audio signals Download PDF

Info

Publication number
KR100199100B1
KR100199100B1 KR1019960000252A KR19960000252A KR100199100B1 KR 100199100 B1 KR100199100 B1 KR 100199100B1 KR 1019960000252 A KR1019960000252 A KR 1019960000252A KR 19960000252 A KR19960000252 A KR 19960000252A KR 100199100 B1 KR100199100 B1 KR 100199100B1
Authority
KR
South Korea
Prior art keywords
signal
decoding unit
bit
output
scale factor
Prior art date
Application number
KR1019960000252A
Other languages
Korean (ko)
Other versions
KR970060958A (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 KR1019960000252A priority Critical patent/KR100199100B1/en
Publication of KR970060958A publication Critical patent/KR970060958A/en
Application granted granted Critical
Publication of KR100199100B1 publication Critical patent/KR100199100B1/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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/002Dynamic bit allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

본 발명은 디지털 오디오신호 디코딩 장치에 관한 것으로, 종래의 장치는 많은소자를 사용해야 하기 때문에 비용이 많이 들고, 면적을 많이 차지하는 문제점이 있었다. 본 발명은 이러한 종래의 문제점을 해결하기 위해 헤더정보디코딩부에서 출력되는 비트레이트와 샘플링주파수에 따라 테이블을 선택하고 카운트신호에 따라 플래그가 발생되면 이를 디코딩하여 BPC신호를 출력하는 비트배치데이타디코딩부와; 상기 비트배치데이타디코딩부의 출력신호를 입력받아 스케일팩터를 디코딩하여 출력하는 스케일팩터 디코딩부와; 상기 비트배치데이타디코딩부로부터 신호(gr)와 신호(Tableselect)를 입력받고, 상기 스케일팩터디코딩부로부터 신호(splstart)와 신호(datainen)를 롬테이블을 통해 제어하여 샘플데이타를 디코딩하여 출력하는 샘플데이타디코딩부와; 상기 샘플데이타디코딩부와 상기 스케일팩터디코딩부의 출력신호를 연산하여 PCM데이타를 출력하는 연산부로 구성한 디지털 오디오신호 디코딩 장치를 창안한 것으로, 이의 작용을 통해 즉, 압축된 오디오데이타 포맷을 디코딩하는데 있어서, 기본회로구조로 적용되는 시스템의 신호플로우를 스테이트머신 및 롬테이블 그리고 간단한 제어회로를 추가함으로써 단순화하고 면적 및 비트사이즈를 줄일 수 있는 효과가 있다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital audio signal decoding apparatus, and the conventional apparatus has a problem in that it is expensive and takes up a lot of area because many devices need to be used. In order to solve this problem, the present invention selects a table according to the bit rate and sampling frequency output from the header information decoding unit and decodes it when a flag is generated according to the count signal to output the BPC signal. Wow; A scale factor decoding unit for receiving an output signal of the bit batch data decoding unit and decoding and outputting a scale factor; Receives the signal (gr) and the signal (Tableselect) from the bit batch data decoding unit, and controls the signal (splstart) and signal (datainen) from the scale factor decoding unit through the ROM table to decode and output the sample data A data decoding unit; Invented a digital audio signal decoding device composed of a calculation unit for outputting the PCM data by calculating the output signal of the sample data decoding unit and the scale factor decoding unit, through the operation of the decoding of the compressed audio data format, The signal flow of the system applied as the basic circuit structure can be simplified and the area and bit size can be reduced by adding state machine, ROM table and simple control circuit.

Description

디지털 오디오신호 디코딩 장치Digital audio signal decoding device

제1도는 종래 디지털 오디오신호 디코딩 장치의 블록 구성도.1 is a block diagram of a conventional digital audio signal decoding apparatus.

제2도의 (a)는 layer1의 압축된 비트스트림의 구조도.(A) of FIG. 2 is a structural diagram of a compressed bitstream of layer1.

(b)는 layer2의 압축된 비트스트림의 구조도.(b) is a structural diagram of a compressed bitstream of layer2.

제3도는 제1도에 있어서, 비트배치데이타디코딩부와 샘플데이타디코딩부의 상세 블록 구성도.3 is a detailed block diagram of the bit layout data decoding unit and the sample data decoding unit in FIG.

제4도는 오디오 샘플데이타의 포맷구조도.4 is a format structure diagram of audio sample data.

제5도는 본 발명 비트배치데이타디코딩부의 상세 블록 구성도.5 is a detailed block diagram of the bit layout data decoding unit of the present invention.

제6도는 본 발명 샘플데이타디코딩부의 상세 블록 구성도.6 is a detailed block diagram of a sample data decoding unit of the present invention.

제7도는 샘플데이타디코딩시의 그룹핑 흐름도.7 is a grouping flow chart in sample data decoding.

제8도는 그룹핑데이타를 디코딩하기 위한 롬데일블의 입/출력도.8 is an input / output diagram of a romble for decoding grouping data.

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

100 : 비트배치데이타디코딩부 200 : 샘플데이타디코딩부100: bit batch data decoding unit 200: sample data decoding unit

300 : 스케일팩터디코딩부 400 : 연산부300: scale factor decoding unit 400: calculation unit

500 : 서브밴드필터부 110 : 테이블선택부500: subband filter unit 110: table selection unit

120 : 카운터 130 : 비트배치데이타디코더120: Counter 130: Bit Batch Data Decoder

140 : BPC변환부 150 : 메모리어드레스발생부140: BPC converter 150: memory address generator

160 : 램 210 : 스테이트머신160: RAM 210: State Machine

220 : 리드어드레스발생부 230 : 라이트어드레스발생부220: lead address generation unit 230: light address generation unit

240 : spl디코더 250 : laysbl모드라이트부240: spl decoder 250: laysbl mode light unit

본 발명은 디지털 오디오신호 디코딩 장치에 관한 것으로, 특히 디지털 오디오 데이타 신장과정에서 비트배치데이타 디코딩시 헤더정보에 의한 테이블 선택을 한 후, 롬에 의해 출력되는 Nlevel을 GPBC(Group Bits per Codeword)로 변환하도록 함으로써 비트사이즈 및 면적을 줄일 수 있도록 한 디지털 오디오신호 디코딩장치를 제공하는데 있다.The present invention relates to a digital audio signal decoding apparatus. In particular, the digital audio signal decoding apparatus selects a table based on header information during bit layout data decoding, and converts the Nlevel output from the ROM into GPBC (Group Bits per Codeword). The present invention provides a digital audio signal decoding apparatus capable of reducing bit size and area.

제1도는 종래 디지털 오디오신호 디코더 장치의 블록 구성도로서, 이에 도시한 바와같이 헤더정보디코딩부로부터 포맷된 비트스트림이 입력되면 비트배치데이타디코딩부(100)는 비트배치정보를 디코딩하여 출력한다.FIG. 1 is a block diagram of a conventional digital audio signal decoder. When the formatted bitstream is input from the header information decoding unit, the bit layout data decoding unit 100 decodes and outputs the bit layout information.

이때, 샘플데이타디코딩부(200)는 상기 비트배치데이타디코딩부(100)의 출력신호에서 샘플데이타를 디코딩하여 출력하고, 스케일팩터디코딩부(300)는 스케일팩터를 디코딩하여 출력한다.In this case, the sample data decoding unit 200 decodes and outputs the sample data from the output signal of the bit batch data decoding unit 100, and the scale factor decoding unit 300 decodes and outputs the scale factor.

그러면 연산부(400)는 상기 샘플데이타디코딩부(200)와 상기 스케일팩터디코딩부(300)의 출력신호를 입력받아 이를 연산하여 출력한다.Then, the calculation unit 400 receives the output signals of the sample data decoding unit 200 and the scale factor decoding unit 300 and calculates and outputs them.

그리고 서브밴드필터부(500)는 상기 연산부(400)의 출력신호를 필터링하여 PCM데이타를 출력한다.The subband filter unit 500 filters the output signal of the operation unit 400 and outputs PCM data.

이때, 비트스트림으로는 제2도의 (a)에 도시한 바와같은 layer1방식으로 포맷된 비트스트림 또는 제2도의 (b)에 도시한 바와같은 layer2방식으로 포맷된 비트스트림이 입력된다.At this time, a bitstream formatted in the layer1 method as shown in (a) of FIG. 2 or a bitstream formatted in the layer2 method as shown in (b) of FIG. 2 is input to the bitstream.

제3도는 상기 비트배치데이타디코딩부(100)와 샘플데이타디코딩부(200)의 상세 블록 구성도로서, 이를 참조하여 좀더 상세히 설명하면 다음과 같다.FIG. 3 is a detailed block diagram of the bit layout data decoding unit 100 and the sample data decoding unit 200.

먼저, 제2도의 (a)와 같은 layer1방식으로 포맷된 비트스트림이 입력된 경우를 예를들어 설명하면 다음과 같다.First, a case in which a bitstream formatted in the layer1 method as shown in FIG. 2A is input will be described as an example.

헤더정보디코딩부로부터의 nbal신호와 카운터(120)로부터의 카운트신호를 입력받은 롬(110)은 그에따른 신호(group flag, nlevel)를 출력한다.The ROM 110 receiving the nbal signal from the header information decoding unit and the count signal from the counter 120 outputs a corresponding signal (group flag, nlevel).

즉, 롬(110)에 의해 채널과 서브밴드에 따라 nlevel신호 또는 BPC(Bits per Codeword)로 변환된다.That is, the ROM 110 converts the nlevel signal or bit per codeword (BPC) according to channels and subbands.

상기 nlevel신호는 롬(240)과 멀티플랙서(230)의 궤환루프에 의해 몫과 나머지를 연산하는 작용이 3회반복되어 처리된 다음 신호(spl)로 출력된다.The nlevel signal is processed by the feedback loop of the ROM 240 and the multiplexer 230 three times to process the quotient and the remainder, and is then output as a signal sppl.

그리고 상기 nlevel신호의 값에 따라 배럴시프터(210)의 유효비트를 스테이트머신(220)을 통해 디코드하고, 그룹핑(Groungping) 또는 넌그룹핑(Nongrouping)에 의해 다른 루프를 형성하여 nlevel신호에 의한 샘플값을 디코딩 한다.In addition, according to the value of the nlevel signal, the valid bit of the barrel shifter 210 is decoded through the state machine 220, and another loop is formed by grouping or nongrouping to form a sample value of the nlevel signal. Decode

이때, layer2방식으로 포맷된 비트스트립인 경우에는 서브밴드값은 바운드내에서만 디코드된다.At this time, in the case of the bit strip formatted in the layer 2 method, the subband value is decoded only within the bound.

제4도는 오디오 샘플 데이타의 포맷구조도로서, 이에 도시된 바와같이 12개의 그래뉼(granule)내에는 각 서브밴드가 있는데, 하나의 서브밴드는 스테레오인 경우 레프트와 라이트의 두 채널을 가진다.4 is a format structure diagram of audio sample data. As shown in FIG. 4, each subband is included in 12 granules, and one subband has two channels of left and right when stereo.

그러나 모노인 경우에는 하나의 채널만을 가지며, 조인트모드(Joint Mode)인 경우는 바운드 이전에는 두 채널을 가지며, 바운드 이후에는 한 채널만을 가진다.However, in the case of mono, there is only one channel, in the joint mode (Joint Mode), there are two channels before the bound and only one channel after the bound.

이때, 한 채널내에는 넌그룹핑일때는 layer2방식인 경우 3개의 샘플이 있고, 그룹핑일때는 하나의 샘플코드로 구성되어 있다.At this time, in one channel, there are three samples in the case of the layer 2 method in the case of non-grouping, and one sample code in the case of grouping.

layer2 오디오데이타는 하나의 BPC값에 대해 3개의 샘플로 구성되어 있거나 1개의 압축된 샘플코드로 되어 있다. 1개의 샘플코드는 3개의 샘플로 만들어져 버퍼에 저장된 후 연산된다.The layer2 audio data consists of three samples for one BPC value or one compressed sample code. One sample code is made of three samples, stored in a buffer and then calculated.

이상에서 설명한 바와같이 종래의 장치는 많은소자를 사용해야 하기 때문에 비용이 많이 들고, 면적을 많이 차지하는 문제점이 있었다.As described above, the conventional apparatus has a problem in that it is expensive and takes up a lot of area because many devices must be used.

본 발명의 목적은 이러한 종래의 문제점을 해결하기 위해 디지털 오디오 데이타 신장과정에서 비트배치데이타 디코딩시 헤더정보에 의한 테이블 선택을 한 후, 롬에 의해 출력되는 N레벨을 GPBC로 변환하도록 함으로써 비트사이즈 및 면적을 줄일 수 있는 디지털 오디오신호 디코딩장치를 제공하는데 있다.An object of the present invention is to solve the problems of the prior art by selecting the table by the header information during decoding of the batch data in the digital audio data decompression process, and then converting the N level output by the ROM into GPBC. The present invention provides a digital audio signal decoding apparatus capable of reducing an area.

상기 본 발명의 목적을 달성하기 위한 디지털 오디오신호 디코딩장치는 헤더정보디코딩부에서 출력되는 비트레이트와 샘플링주파수에 따라 테이블을 선택하고 카운트신호에 따라 플래그가 발생되면 이를 디코딩하여 BPC신호를 출력하는 비트배치데이타디코딩부(100)와; 상기 비트배치데이타디코딩부(100)의 출력신호를 입력받아 스케일팩터를 디코딩하여 출력하는 스케일팩터디코딩부(300)와; 상기 비트배치데이타디코딩부(100)로부터 신호(gr)와 신호(Tableselect)를 입력받고, 상기 스케일팩터디코딩부(300)로부터 신호(splstart)와 신호(datainen)를 롬테이블을 통해 제어하여 샘플데이타를 디코딩하여 출력하는 샘플데이타디코딩부(200)와; 상기 샘플데이타디코딩부(200)와 상기 스케일팩터디코딩부(300)의 출력신호를 연산하여 PCM 데이타를 출력하는 연산부(400)로 구성한다.The digital audio signal decoding apparatus for achieving the object of the present invention is to select a table according to the bit rate and sampling frequency output from the header information decoding unit, and if the flag is generated according to the count signal, the bit is decoded to output the BPC signal A batch data decoding unit 100; A scale factor decoding unit 300 which receives the output signal of the bit batch data decoding unit 100 and decodes and outputs the scale factor; Receives the signal (gr) and the signal (Tableselect) from the bit batch data decoding unit 100, and controls the signal (splstart) and signal (datainen) from the scale factor decoding unit 300 through the ROM table to sample data A sample data decoding unit 200 for decoding and outputting the sample data; Comprising an output signal of the sample data decoding unit 200 and the scale factor decoding unit 300 is composed of a calculation unit 400 for outputting PCM data.

이와같은 본 발명을 일실시예를 들어 설명하면 다음과 같다.If the present invention is described with an embodiment as follows.

전체적인 블록 구성도 및 동작은 제1도에 도시한 바와같다. 따라서 본 발명인 비트배치데이타디코딩부와 샘플데이타디코딩부에 대해서만 설명한다. 제5도는 본 발명 비트배치데이타디코딩부(100)의 상세 블록 구성도로서, 이에 도시한 바와같이 비트레이트(4비트)와 샘플링주파수(2비트)에 따라 테이블을 선택하고 카운트신호에 따라 플래그를 발생하는 테이블선택부(110)와; 플래그를 생성해주기 위한 카운터신호(cnt2, cnt3, cnt4)를 출력하는 카운터(120)와; 상기 테이블선택부(110)의 출력신호를 입력받아 비트배치데이타를 디코딩하는 비트배치데이타디코더(130)와; 상기 비트배치데이타디코더(130)의 출력신호를 BPC신호로 변환하는 BPC변환부(140)와; 상기비트배치데이타디코더(130)의 플래그신호에 따른 메모리어드레스를 발생하는 메모리어드레스발생부(150)와; 상기 메모리어드레스발생부(150)의 어드레스에 따라 상기 BPC변환부(140)의 데이타를 저장하는 램(160)으로 구성한다.The overall block diagram and operation are as shown in FIG. Therefore, only the bit batch data decoding unit and the sample data decoding unit of the present invention will be described. 5 is a detailed block diagram of the bit layout data decoding unit 100 according to the present invention. As shown in FIG. Generating table selection unit 110; A counter 120 for outputting counter signals cnt2, cnt3 and cnt4 for generating a flag; A bit batch data decoder (130) for receiving the output signal of the table selecting unit (110) and decoding the bit batch data; A BPC converter 140 for converting the output signal of the bit batch data decoder 130 into a BPC signal; A memory address generator 150 for generating a memory address according to a flag signal of the bit batch data decoder 130; The RAM 160 stores data of the BPC converter 140 according to the address of the memory address generator 150.

이와같이 구성한 비트배치데이타디코딩부(100)의 동작을 설명하면 다음과 같다.The operation of the bit batch data decoding unit 100 configured as described above is as follows.

먼저, 개략적인 동작을 살펴보면, 헤더정보(layer, bri, fsi, mode, modeext)가 입력되면 layer1 또는 layer2를 결정한다.First, referring to the schematic operation, when header information (layer, bri, fsi, mode, modeext) is input, layer1 or layer2 is determined.

만약, layer1인 경우에는 32서브밴드로 할당된 nbal 4비트를 디코드하여 BPC로 변환하고 이를 램에 저장한다.In case of layer1, nbal 4 bits allocated to 32 subbands are decoded to be converted to BPC and stored in RAM.

그러나 layer2인 경우에는 테이블선택부(110)는 비트레이트(4비트)와 샘플링주파수(2비트)에 따라 테이블을 선택한다. 그리고 mode(2비트)와 mode-ext(2비트)에 따라 싱글 또는 스테레오 또는 조인트스테레오모드를 결정한다.However, in the case of layer2, the table selector 110 selects a table according to the bit rate (4 bits) and the sampling frequency (2 bits). The mode (2 bits) and mode-ext (2 bits) determine the single, stereo or joint stereo mode.

만약, 조인트스테레오모드인 경우 오디오 성능을 증가하고, 비트레이트를 줄여 전송하는 바운드를 결정한다.If the joint stereo mode, the audio performance is increased and the bit rate is reduced to determine the bound to transmit.

상기와 같이 비트배치 테이블이 결정되면, 신호(bital-start)후의 입력 비트스트림으로부터 각 서브밴드별로 할당되어 있는 nbal신호(2,3,4비트)을 디코딩할 수 있도록 카운터(120)에서 보내는 cnt2, cnt3, cnt4신호를 테이블에 따라 인식할 수 있도록 제어된다.When the bit allocation table is determined as described above, cnt2 sent from the counter 120 to decode the nbal signal (2, 3, 4 bits) allocated to each subband from the input bitstream after the signal (bital-start) , cnt3, cnt4 signal is controlled to be recognized according to the table.

상기 카운터(120)의 출력신호인 상기 cnt2, cnt3, cnt4신호에 의해 테이블선택부에서는 플래그를 만들며, 이 플래그는 직렬로 들어오는 비트스트림으로부터 병렬로 데이타를 디코딩한다.A table selector generates a flag based on the cnt2, cnt3, and cnt4 signals, which are output signals of the counter 120, which decodes data in parallel from a serially input bitstream.

상기 테이블선택부(110)에 의해 디코딩된 데이타신호(nbal)는 비트배치데이타디코더(130)에 의해 디코딩되는데, 0-15의 값을 가지며 각 서브밴드의 스펙트럼성분(spectral component)인 양자화에 대한 정수(unsigned integer)의 범위 0-65535의 nlevel신호로 변환된다.The data signal nbal decoded by the table selector 110 is decoded by the bit layout data decoder 130. The data signal nbal has a value of 0-15 and is used for quantization, which is a spectral component of each subband. Converts to an nlevel signal in the range 0-65535 of an unsigned integer.

하나의 테이블이 결정된 후, 32개의 서브밴드에 대해 nbal신호의 색인(index)에 따라 나오는 각 nlevel신호의 경우의 수는 512개이다.After one table is determined, the number of cases of each nlevel signal coming out according to the index of the nbal signal for 32 subbands is 512.

이때, BPC변환부(140)는 상기 nlevel신호를 입력받아 변환하여 그룹핑 신호와 BPC신호를 출력하여 램(160)에 라이트한다.At this time, the BPC conversion unit 140 receives the nlevel signal, converts it, outputs the grouping signal and the BPC signal, and writes it to the RAM 160.

상기 BPC변환부(140)는 디코딩된 nlevel신호를 BPC신호로 변환해 주는 5개의 평션테이블을 구성하고 있으며, 5개의 평션테이블은 layer정보 즉, layer1 또는 layer2에 따라 평션을 결정한다.The BPC converter 140 configures five function tables for converting the decoded nlevel signal into a BPC signal. The five function tables determine the function according to layer information, that is, layer1 or layer2.

한편, 메모리어드레스발생부(150)는 테이블선택에 의해 어드레스를 발생한다.On the other hand, the memory address generation unit 150 generates an address by selecting a table.

이와같이 비트배치데이타디코딩이 끝난 후, 스케일팩터 디코딩을 수행하고, 다음으로 샘플데이타를 디코딩이 시작된다.In this manner, after bit batch data decoding is completed, scale factor decoding is performed, and then decoding of sample data is started.

제6도는 본 발명 샘플데이타디코딩부(200)의 상세 블록 구성도로서, 이에 도시한 바와같이 신호(gr)와 비트배치에서 신호(Tableselect)를 입력 받고, 스케일팩터디코딩부에서 출력되는 신호(splstart)와 데이타가 유효한지를 알 수 있는 신호(datainen)를 입력받아 그에따른 제어를 하는 스테이트머신(210)과; 상기 스테이트머신(210)의 출력신호에 따라 리드어드레스신호를 발생하는 리드어드레스발생부(220)와; 상기 스테이트머신(210)의 출력신호에 따라 라이트어드레스신호를 발생하는 라이트어드레스발생부(230)와; 상기 스테이트머신(210)의 제어신호에 따라 상기 리드어드레스발생부(220) 또는 라이트어드레스발생부(230)의 출력신호를 선택하여 출력하는 멀티플렉서(240)와; 상기 스테이트머신(210)의 제어신호에 따라 spl신호를 디코드하는 spl디코더(250)와; 상기 멀티플렉서(240)의 출력신호와 상기 spl디코더(250)의 출력신호를 입력받아 샘플을 리드하여 신호(splramwin, ramaddr, wrspl, web, splend)를 출력하는 laysbl모드라이트부(260)로 구성한다.FIG. 6 is a detailed block diagram of the sample data decoding unit 200 according to the present invention. As shown therein, a signal (Tableselect) is input from a signal (gr) and a bit arrangement, and a signal (splstart) is output from the scale factor decoding unit. And a state machine 210 which receives a signal (datainen) capable of knowing whether data is valid and controls accordingly; A read address generator 220 generating a read address signal according to the output signal of the state machine 210; A light address generator 230 for generating a write address signal according to the output signal of the state machine 210; A multiplexer (240) for selecting and outputting an output signal of the read address generator (220) or the write address generator (230) according to the control signal of the state machine (210); A spl decoder 250 for decoding the spl signal according to the control signal of the state machine 210; The output signal of the multiplexer 240 and the output signal of the spl decoder 250 are input to constitute a laysbl mode light unit 260 for reading a sample and outputting signals (splramwin, ramaddr, wrspl, web, splend). .

이와같이 구성한 샘플데이타디코딩부(200)는 샘플데이타디코딩시, 헤더정보디코딩부에서 출력되는 헤더정보(layer, mode, bri, fsi, mode-exe)를 받아 디코딩을 해야 하는데, 비트배치데이타디코딩부(100)에서 헤더정보를 받아 테이블선택을 결정했으므로 손실을 줄이기 위해 비트배치데이타디코딩부(100)에서 결정한 테이블선택을 입력으로 받아 처리한다.The sample data decoding unit 200 configured as described above should receive and decode the header information (layer, mode, bri, fsi, mode-exe) output from the header information decoding unit when decoding the sample data. Since the table selection is determined in response to the header information in step 100), the table selection determined by the bit batch data decoding unit 100 is processed as an input to reduce the loss.

먼저, 스테이트머신(210)은 상기 비트배치데이타디코딩부(100)에서 리드된 GBPC값의 MSB 1비트인 그룹핑신호에 의해 그룹핑플로우와 넌그룹핑플로우로 구분되어 동작한다.First, the state machine 210 is divided into a grouping flow and a non-grouping flow by a grouping signal of MSB 1 bit of the GBPC value read from the bit batch data decoding unit 100.

비트배치테이블에서 nlevel이 3, 5, 9인 경우 3개의 연속적인 샘플이 하나의 서브밴드에 대해 하나의 코드워드로 엔코딩되는데, 엔코딩된 하나의 코드워드(5, 7, 10비트)는 샘플데이타디코딩 과정에서 그룹핑을 인식하여 코드워드를 디코딩할 때, 3개의 샘플로 다시 생성해 준다.If nlevel is 3, 5, or 9 in the bitmap table, three consecutive samples are encoded into one codeword for one subband, and one codeword (5, 7, 10 bits) encoded is sample data. When decoding the codeword by recognizing the grouping in the decoding process, it generates three samples again.

이때, 엔코딩에서 코드워드 Cm(m=3,5,9)와 3개의 연속적인 서브샘플 S[0], S[1], S[2]의 관계는In this case, the relationship between the codeword Cm (m = 3,5,9) and three consecutive subsamples S [0], S [1], S [2] in encoding is

이다.to be.

그리고 디코딩시 적용되는 알고리즘은And the algorithm applied in decoding

이다.to be.

종래에는 상기 제3도에서 하나의 정수(Unsinged Integer)인 코드워드가 결정되면 그룹핑인 경우 멀티플렉서와 롬을 구성하여 3번의 피드백 루프가 생겨야 몫과 나머지에 대한 샘플디코딩이 가능하였다.Conventionally, in FIG. 3, when an unsinged integer codeword is determined, in the case of grouping, the multiplexer and the ROM may be configured to generate three feedback loops to enable sample decoding of the quotient and the rest.

그러나 본 발명에서는 먼저, 스테이트머신(210)에서 12개의 그래뉼(granule)을 알 수 있는 gr신호와 비트배치에서 Tableselect신호를 입력 받고, 스케일팩터디코딩부(300)에서 출력되는 splstart신호와 데이타가 유효한지를 알 수 있는 datainen신호를 입력받아 그에따른 제어를 한다.However, in the present invention, first, the gr signal, which knows 12 granules, and the tableselect signal in the bit arrangement are input from the state machine 210, and the splstart signal and data output from the scale factor decoding unit 300 are valid. It receives the datainen signal which can know whether it is known and controls accordingly.

상기 스테이트머신(210)의 출력신호에 따라 리드어드레스발생부(220)와 라이트어드레스발생부(230)는 그에따른 리드 또는 라이트어디레스신호를 출력한다.According to the output signal of the state machine 210, the read address generator 220 and the write address generator 230 outputs the read or write address signal accordingly.

이때, 멀티플렉서(240)는 상기 스테이트머신(210)의 제어신호에 따라 상기 리드어드레스발생부(220) 또는 라이트어드레스발생부(230)의 출력신호를 선택하여 출력한다.In this case, the multiplexer 240 selects and outputs an output signal of the read address generator 220 or the write address generator 230 according to the control signal of the state machine 210.

그리고 spl디코더(250)에서 상기 스테이트머신(210)의 제어신호를 받아 spl신호를 디코드한다.The spl decoder 250 receives the control signal of the state machine 210 and decodes the spl signal.

그러면 laysbl모드라이트부(260)에서는 상기 멀티플렉서(240)의 출력신호와 상기 spl디코더(250)의 출력신호를 입력받아 샘플을 리드하여 신호(splramwin, ramaddr, wrspl, web, splend)를 출력한다.Then, the laysbl mode write unit 260 receives the output signal of the multiplexer 240 and the output signal of the spl decoder 250, reads a sample, and outputs signals (splramwin, ramaddr, wrspl, web, and splend).

그룹핑에 대해 3개의 샘플생성은 그룹핑 데이타를 디코드하기 위한 롬테이블의 입ㆍ출력도를 나타낸 제8도에 도시한 바와같이 간단한 롬테이블로 구성되었으며, 그 롬테이블을 거친 출력 12비트는 스테이트머신(210)의 출력 플래그로 제어되어 순차적으로 3개의 샘플로 생성된다. 이때, 입력과 출력의 비트표현은 ##에 나타나 있다.The three sample generations for the grouping consisted of a simple ROM table as shown in FIG. 8, which shows the input / output diagram of the ROM table for decoding the grouping data. It is controlled by the output flag of 210 to sequentially generate three samples. The bit representations of the input and output are shown in ##.

상기 생성된 샘플은 라이트어드레스발생부(230)에 의해 만들어진 어드레스에 의해 버퍼에 저장된다.The generated sample is stored in a buffer by an address generated by the write address generator 230.

넌그룹핑 플로우인 경우 스테이트머신(210)에서 순차적으로 3번의 정정신호에 의해 16비트 datain신호를 디코딩한다. 그리고 BPC에 해당되는 비트수 만큼 16비트 datain신호에서 LSB에서 MSB로 래치한다.In the non-grouping flow, the state machine 210 sequentially decodes the 16-bit datain signal by three correction signals. The LB latches the MSB from the 16-bit datain signal by the number of bits corresponding to the BPC.

만약, BPC가 제로인 경우 서브밴드의 샘플은 필터링을 위해 제로로 기억된다.If the BPC is zero, the samples of the subbands are stored as zero for filtering.

한편, 제7도는 제6도는 그룹핑플로우 중 하나의 코드워드에 대한 3개의 생성된 샘플 [0], [1], [2]의 사이즈를 비교한 것이다.7 is a comparison of sizes of three generated samples [0], [1], and [2] for one codeword of a grouping flow.

이상에서 설명한 바와같이 본 발명은 압축된 오디오데이타 포맷을 디코딩하는데 있어서, 기본회로구조로 적용되는 시스템의 신호플로우를 스테이트머신 및 롬테이블 그리고 간단한 제어회로를 추가함으로써 단순화 하고 면적 및 비트사이즈를 줄일 수 있는 효과가 있다.As described above, in the decoding of the compressed audio data format, the present invention simplifies the signal flow of the system applied as the basic circuit structure by adding a state machine, a ROM table, and a simple control circuit, and reduces the area and bit size. It has an effect.

Claims (3)

헤더정보디코딩부에서 출력되는 비트레이트와 샘플링주파수에 따라 테이블을 선택하고 카운트신호에 따라 플래그가 발생되면 이를 디코딩하여 BPC신호를 출력하는 비트배치데이타디코딩부와; 상기 비트배치데이타디코딩부의 출력신호를 입력받아 스케일팩터를 디코딩하여 출력하는 스케일팩터디코딩부와; 상기 비트배치데이타디코딩부로부터 신호(gr)와 신호(Tableselect)를 입력받고, 상기 스케일팩터디코딩부로부터 신호(splstart)와 신호(datainen)를 롬테이블을 통해 제어하여 샘플데이타를 디코딩하여 출력하는 샘플데이타디코딩부와; 상기 샘플데이타디코딩부와 상기 스케일팩터디코딩부의 출력신호를 연산하여 PCM데이타를 출력하는 연산부로 구성한 것을 특징으로 하는 디지털 오디오신호 디코딩 장치.A bit batch data decoding unit for selecting a table according to the bit rate and sampling frequency output from the header information decoding unit, decoding the flag when the flag is generated according to the count signal, and outputting the BPC signal; A scale factor decoding unit which receives an output signal of the bit batch data decoding unit and decodes and outputs a scale factor; Receives the signal (gr) and the signal (Tableselect) from the bit batch data decoding unit, and controls the signal (splstart) and signal (datainen) from the scale factor decoding unit through the ROM table to decode and output the sample data A data decoding unit; And a calculation unit for outputting PCM data by calculating an output signal of the sample data decoding unit and the scale factor decoding unit. 제1항에 있어서, 비트배치데이타디코딩부는 비트레이트(4비트)와 샘플링 주파수(2비트)에 따라 테이블을 선택하고 카운트신호에 따라 플래그를 발생하는 테이블선택부와; 플래그를 생성해주기 위한 카운터신호(cnt2, cnt3, cnt4)를 출력하는 카운터와; 상기 테이블선택부의 출력신호를 입력받아 비트배치데이타를 디코딩하는 비트배치데이타디코더와; 상기 비트배치데이타디코더의 출력신호를 BPC신호로 변환하는 BPC변환부와; 상기 비트배치데이타디코더의 플래그신호에 따른 메모리어드레스를 발생하는 메모리어드레스발생부와; 상기 메모리어드레스발생부의 어드레스에 따라 상기 BPC변환부의 데이터를 저장하는 램으로 구성한 것을 특징으로 하는 디지털 오디오신호 디코딩 장치.2. The apparatus of claim 1, wherein the bit layout data decoding section comprises: a table selection section for selecting a table according to a bit rate (4 bits) and a sampling frequency (2 bits) and generating a flag according to a count signal; A counter for outputting counter signals cnt2, cnt3, cnt4 for generating a flag; A bit batch data decoder which receives the output signal of the table selector and decodes the bit batch data; A BPC converter for converting the output signal of the bit batch data decoder into a BPC signal; A memory address generator for generating a memory address according to a flag signal of the bit batch data decoder; And a RAM for storing data of the BPC converter according to the address of the memory address generator. 제1항에 있어서, 샘플데이타디코딩부는 상기 비트배치데이타디코딩부로부터 신호(gr)와 신호(Tableselect)를 입력받고, 상기 스케일팩터디코딩부로부터는 신호(splstart)와 신호(datainen)를 입력받아 그에따른 제어를 하는 스테이트머신과; 상기 스테이트머신의 출력신호에 따라 리드어드레스 신호를 발생하는 리드어드레스발생부와; 상기 스테이트머신의 출력신호에 따라 라이트어드레스신호를 발생하는 라이트어드레스발생부와; 상기 스테이트머신의 제어신호에 따라 상기 리드어드레스발생부 또는 라이트어드레스발생부의 출력신호를 선택하여 출력하는 멀티플렉서와; 상기 스테이트머신의 제어신호에 따라 spl신호를 디코드하는 spl디코더와; 상기 멀티플렉서의 출력신호와 상기 spl디코더의 출력신호를 입력받아 샘플을 리드하여 신호(splramwin, ramaddr, wrspl, web, splend)를 출력하는 laysbl모드라이트부로 구성한 것을 특징으로 하는 디지털 오디오신호 디코딩 장치.The method of claim 1, wherein the sample data decoding unit receives a signal (gr) and a signal (Tableselect) from the bit batch data decoding unit, and receives a signal (splstart) and a signal (datainen) from the scale factor decoding unit according to A state machine for controlling; A read address generator for generating a read address signal according to the output signal of the state machine; A write address generator for generating a write address signal according to the output signal of the state machine; A multiplexer for selecting and outputting an output signal of the read address generator or the write address generator according to the control signal of the state machine; A spl decoder for decoding the spl signal according to the control signal of the state machine; And a laysbl mode light unit configured to output a signal (splramwin, ramaddr, wrspl, web, splend) by reading the output signal of the multiplexer and the output signal of the spl decoder.
KR1019960000252A 1996-01-09 1996-01-09 Apparatus for decoding digital audio signals KR100199100B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960000252A KR100199100B1 (en) 1996-01-09 1996-01-09 Apparatus for decoding digital audio signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960000252A KR100199100B1 (en) 1996-01-09 1996-01-09 Apparatus for decoding digital audio signals

Publications (2)

Publication Number Publication Date
KR970060958A KR970060958A (en) 1997-08-12
KR100199100B1 true KR100199100B1 (en) 1999-06-15

Family

ID=19449148

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960000252A KR100199100B1 (en) 1996-01-09 1996-01-09 Apparatus for decoding digital audio signals

Country Status (1)

Country Link
KR (1) KR100199100B1 (en)

Also Published As

Publication number Publication date
KR970060958A (en) 1997-08-12

Similar Documents

Publication Publication Date Title
KR100489908B1 (en) Digital information signal encoding method and apparatus
CN1639984B (en) Digital signal encoding method, decoding method, encoding device, decoding device
US5852805A (en) MPEG audio decoder for detecting and correcting irregular patterns
US5299239A (en) Signal encoding apparatus
CN102124655B (en) Method for encoding a symbol, method for decoding a symbol, method for transmitting a symbol from a transmitter to a receiver, encoder, decoder and system for transmitting a symbol from a transmitter to a receiver
EP0702458A1 (en) Method and device for encoding signal, signal transmitting method, signal recording medium, and method and device for decoding signal
EP1047198A2 (en) Encoder with optimally selected codebook
US8682680B2 (en) Methods and apparatuses for bit stream decoding in MP3 decoder
JP2001094433A (en) Sub-band coding and decoding medium
US7107111B2 (en) Trick play for MP3
US5812982A (en) Digital data encoding apparatus and method thereof
JP3811110B2 (en) Digital signal encoding method, decoding method, apparatus, program and recording medium
KR100199100B1 (en) Apparatus for decoding digital audio signals
KR100215342B1 (en) Transmission system and receiver to be used in the transmission system
JP3046213B2 (en) Sub-band audio signal synthesizer
CN1157853C (en) Transmitting device for transmitting a digital information signal alternately in encoded form and non-encoded form
JP4351684B2 (en) Digital signal decoding method, apparatus, program, and recording medium
US5884048A (en) Digital audio signal processor having small input buffer
KR100304137B1 (en) Sound compression/decompression method and system
KR0141736B1 (en) Digital audio data decoder
KR100201413B1 (en) Sample decoding of digital audio decoder
KR100686354B1 (en) Huffman decoding method and device for using variable length tree
JPH08305393A (en) Reproducing device
KR100200478B1 (en) Scale factor decoding apparatus and method
KR100490638B1 (en) Encoding and Decoding Systems for Lossless Encoding of Digital Audio Signals

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20080102

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee