EP1222531B1 - Multiple instance implementation of speech codecs - Google Patents
Multiple instance implementation of speech codecs Download PDFInfo
- Publication number
- EP1222531B1 EP1222531B1 EP19990948014 EP99948014A EP1222531B1 EP 1222531 B1 EP1222531 B1 EP 1222531B1 EP 19990948014 EP19990948014 EP 19990948014 EP 99948014 A EP99948014 A EP 99948014A EP 1222531 B1 EP1222531 B1 EP 1222531B1
- Authority
- EP
- European Patent Office
- Prior art keywords
- memory
- codec
- dsp
- instance
- segments
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 claims description 20
- 230000006870 function Effects 0.000 claims description 7
- 230000003139 buffering effect Effects 0.000 claims description 4
- 230000003068 static effect Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 6
- 238000005192 partition Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000003607 modifier Substances 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech 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/04—Speech 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 using predictive techniques
- G10L19/16—Vocoder architecture
- G10L19/18—Vocoders using multiple modes
Definitions
- This invention relates to audio coding, and is particularly applicable in the field of telecommunication and the internet, for example, in which multi-channel speech coders are implemented using a single digital signal processing (DSP) device.
- DSP digital signal processing
- WO 99/10807 discloses how multi-instanced software can be utilized to implement a plurality of virtual modems which can be used simultaneously. Entire controllerless software modems operate multi-instanced with a single code set. Two software modules interface with the DSP hardware. The modem control layer manipulates DSP modes, creates an destroys modem connections, and monitors modem activity. The Line I/O Layer is responsible for transferring data to and from the DSP.
- An alternative is to provide the audio codec functions in software (firmware, micro-code, etc.) for operation on a more general purpose Digital Signal Processor ("DSP").
- DSP Digital Signal Processor
- a powerful DSP to process a plurality of different audio signals or channels in real-time, to thereby implement a plurality of voice coders (''vocoders”) using a single processing device.
- the present invention also provides a data coding and/or decoding system in which a plurality of encoders and/or decoders (codecs) are implemented using a single digital signal processing (DSP) device, comprising:
- a third memory is also provided which is accessible by each of the codec instances for shared storage of temporary variables and data buffering in encoding/decoding said respective separate data streams.
- Each codec instance preferably accesses the corresponding memory segment using indirect addressing based on at least one index register, the at least one index register being set for each codec instance to modify addressing of variables for that codec instance to the corresponding memory segment.
- the plurality of memory segments are contiguous in the second memory, and the at least one index register is set for each codec instance according to an offset based on the difference in address from a first of said memory segments to the memory segment corresponding to that codec instance.
- each of the memory segments in said second memory is the same size.
- the first memory is provided with a plurality of instruction code programs for implementing different kinds of codecs, wherein different codec instances may be selected from the different kinds of codec.
- each of the memory segments in the second memory is the same size, and the size of the memory segments is selected according to the maximum memory required by any of the plurality of different kinds of codec.
- This methodology can be used to modify the existing DSP assembly code or to implement a new algorithm with a multiple instance feature.
- the multiple-instance implementation can be used to process multi-channel signals using one software module.
- the embodiments of the invention described hereinbelow are in the context of audio coders implemented by instruction codes in the form of software, firmware or micro-code operating on a general purpose digital signal processor chip.
- the described embodiments relate to implementation of speech codecs of the type which is the subject of ITU-T Recommendation G.729.
- the present invention is not necessarily limited to such an environment, and may further be used to implement coders for other forms of real-time data streams including other forms of voice and/or facsimile transmission or storage coding.
- a simple audio encoding system 10 based on a general purpose DSP is illustrated in block diagram form in Figure 1.
- the audio coding system 10 comprises a digital signal processor (DSP) 12 which is coupled to receive input data and produce coded output signals.
- the DSP 10 is coupled to a storage memory 14.
- the memory 14 provides data to the DSP 12 to enable coding of the received input data to take place.
- the memory 14 may contain various different forms of data, including read-only data which is permanently stored in the memory, and temporary data which is transiently stored during coding operations.
- the memory 14 may also contain stored instruction codes used by the DSP to perform the coding, which would ordinarily be permanently stored in read-only form.
- One of the considerations which must be dealt with in implementing multiple codecs on a single DSP by operating multiple instances of the DSP instruction codes which control the codec operation is the arrangement of storage memory so that each instance of the codec can have efficient memory usage and not interfere with other codec instances in use at the same time.
- this is achieved by arranging the data memory as illustrated in the block diagram of Figure 2.
- This exemplary embodiment relates to implementation of a 4-channel multiple instance vocoder on a single DSP.
- the data memory is partitioned into different parts, in this case comprising read-only memory (ROM), local RAM, and static RAM.
- the ROM is used to store all the read only data, which may include the program instruction codes and the like.
- the static RAM is used for storage of temporary variables and for data buffering.
- the static RAM is used for storage of all the global and historical variables required for the coding operations, for example data which will be used for processing the next frame of output As shown in the block diagram, in this case the static RAM is partitioned into separate areas for each DSP codec instance.
- the preferred form of the present invention involves partitioning the data memory based on their properties and using an index register or index modifier to modify the address of the static RAM segment data used for each codec instance.
- the program code memory can be arranged as usual. If, however, program memory is used for data accessing, this part of memory also needs to be partitioned in the same way as data memory such as X or Y. This methodology allows the easy management of the operating system or real-time kernel due to the facility of opening and closing the various instances.
- the partition of the data memory according to its accessing property is obtained, for example in the embodiment shown in Figure 2 involving ROM data, temporary local RAM, and static or global RAM segments.
- the data ROM and temporary local RAM are shared for every instance. Only the static RAM segments are used exclusively by corresponding codec instances.
- This static RAM segment is accessed using an index register by adding an offset value to address the static RAM segment for a particular instance.
- index registers In order to pass the addressing information to every channel vocoder, two index registers should be reserved for this reentrant purpose, say IX2 and IY2 if using a D950 DSP. By doing so, the address of all the static variables stored in the respective static RAM segments will be modified by these two index registers from the beginning.
- the multiple-instance 4-channel system can operate as follows,
- This is applicable for a new implementation or for converting existing DSP instruction coding to a re-entrant multiple instance implementation. Since this method does not require a change of the variable names in the DSP coding, it is efficient in both MIPS and porting effort if compared to using pointers.
- the memory may be arranged as illustrated in Figure 3, for which the multiple-instance accessing procedures are described below.
- the memory map for a 4-channel system is shown, in which the 4 active channels could be any possible combination of codecs operating according to ITU-T G729, G723.1 and FAX.
- the size of ROM segment comprises ROM data for all of the codec types.
- the size of the temporary local RAM segment is the maximum local RAM size used by any of the codecs. All of the different codecs share the local RAM segment.
- each of the static RAM segments are of a size to accommodate the frame processing storage requirements of any one of the possible codecs implementations. This enables different codecs to make use of different static RAM segments.
- One example is a 4-channel System with two different speech codecs, say G723.1 and G729.
- the program instruction codes are, in this example, stored separately in a program memory (not shown).
- the data memory is arranged as shown in Figure 3.
- Such a 4-channel system multiple instance system can operate as follows,
Landscapes
- Engineering & 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)
Description
| Before (non-re-entrance) | Modified (re-entrance) | ||
| Direct | Indirect | ||
| varl.x = Register1 | (note #1) | ax0 = #varl | (note #2) |
| *(ax0 + ix2) = Register1 | (note #3) | ||
| Indirect | Indirect | ||
| ax0 = #var10 | (note #2) | ax0 = #var10 | (note #2) |
| Rep N times loop1 | (note #5) | ax0 = ax0+ix2 | (note #4) |
| Register = *ax0+ix1 | (note #6) | ||
| ... | Rep {N-1} times loop1 | (note #5) | |
| loop1 | (note #7) | Register = *ax0+ix1 | (note #6) |
| ... | |||
| loopl | (note #7) |
- /*third instance*/
- Ix2=#offsetx3
- Iy2=#offsety3
- Call coder
- /*fourth instance*/
- Ix2=#offsetx4
- Iy2=#offsety4
- Call coder
- /*second instance*/
- Ix2=#offsetx2
- Iy2=#offsety2
- If (codec_flag2==CODEC1)
- Call coder1
- Else
- Call coder2
- /*third instance*/
- Ix2=#offsetx3
- Iy2=#offsety3
- If (codec_flag3==CODEC1)
- Call coder1
- Else
- Call coder2
- /*fourth instance*/
- Ix2 =#offsetx4
- Iy2=#offsety4
- If (codec_flag4==CODEC1)
- Call coder1
- Else
- Call coder2
Claims (14)
- A method for implementing a plurality of encoders and/or decoders (codecs) using a single digital signal processing (DSP) device, wherein the function of each codec is performed by the DSP according to an instruction code program, the method comprising the steps of:providing an instruction code program stored in a first memory for controlling the DSP to function as a codec;providing a second memory including a plurality of memory segments;implementing a plurality of codecs using the DSP by running said instruction code program in said first memory a plurality of times in re-entrant instances, wherein each codec instance is provided access to a respective separate memory segment in said second memory for storing data used in encoding/decoding a respective separate data stream.
- A method as claimed in claim 1, wherein a third memory is provided which is accessible by each of the codec instances for shared storage of temporary variables and data buffering in encoding/decoding said respective separate data streams.
- A method as claimed in claim 1 or 2, wherein each codec instance accesses the corresponding memory segment using indirect addressing based on at least one index register, the at least one index register being set for each codec instance to modify addressing of variables for that codec instance to the corresponding memory segment.
- A method as claimed in claim 3, wherein the plurality of memory segments are contiguous in said second memory, and said at least one index register is set for each codec instance according to an offset based on the difference in address from a first of said memory segments to the memory segment corresponding to that codec instance.
- A method as claimed in any one of claims 1 to 4, wherein each of the memory segments in said second memory is the same size.
- A method as claimed in claim 1, 2 3, or 4, wherein said first memory is provided with a plurality of instruction code programs for implementing different kinds of codecs, and
wherein different codec instances may be selected from the different kinds of codec. - A method as claimed in claim 6, wherein each of the memory segments in said second memory is the same size, and the size of the memory segments is selected according to the maximum memory required by any of the plurality of different kinds of codec.
- A data coding and/or decoding system in which a plurality of encoders and/or decoders (codecs) are implemented using a single digital signal processing (DSP) device, comprising:wherein a plurality of codecs are implemented using the DSP by running said instruction code program in said first memory a plurality of times in re-entrant instances, and wherein each codec instance is provided access to a respective separate memory segment in said second memory for storing data used in encoding/decoding a respective separate data stream.a digital signal processor (DSP);a first memory coupled to the DSP and containing an instruction code program, the function of each codec being performed by the DSP, in use, according to said instruction code program;a second memory coupled to the DSP and partitioned to include a plurality of separate memory segments;
- A system as claimed in claim 8, including a third memory coupled to said DSP which is accessible by each of the codec instances for shared storage of temporary variables and data buffering in encoding/decoding said respective separate data streams.
- A system as claimed in claim 8 or 9, wherein each codec instance accesses the corresponding memory segment using indirect addressing based on at least one index register, the at least one index register being set for each codec instance to modify addressing of variables for that codec instance to the corresponding memory segment.
- A system as claimed in claim 10, wherein the plurality of memory segments are contiguous in said second memory, and said at least one index register is set for each codec instance according to an offset based on the difference in address from a first of said memory segments to the memory segment corresponding to that codec instance.
- A system as claimed in any one of claims 8 to 11, wherein each of the memory segments in said second memory is the same size.
- A system as claimed in any one of claims 8 to 11, wherein said first memory is provided with a plurality of instruction code programs for implementing different kinds of codecs, and wherein different codec instances may be selected from the different kinds of codec.
- A system as claimed in claim 13, wherein each of the memory segments in said second memory is the same size, and the size of the memory segments is selected according to the maximum memory required by any of the plurality of different kinds of codec.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/SG1999/000095 WO2001023993A1 (en) | 1999-09-29 | 1999-09-29 | Multiple instance implementation of speech codecs |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| EP1222531A1 EP1222531A1 (en) | 2002-07-17 |
| EP1222531B1 true EP1222531B1 (en) | 2003-11-12 |
Family
ID=20430237
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP19990948014 Expired - Lifetime EP1222531B1 (en) | 1999-09-29 | 1999-09-29 | Multiple instance implementation of speech codecs |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP1222531B1 (en) |
| DE (1) | DE69912860T2 (en) |
| WO (1) | WO2001023993A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| AU2002243172A1 (en) * | 2002-03-22 | 2003-10-08 | Telefonaktiebolaget Lm Ericsson (Publ) | Method for processing data streams divided into a plurality of process steps |
| WO2020220935A1 (en) * | 2019-04-27 | 2020-11-05 | 中科寒武纪科技股份有限公司 | Operation apparatus |
| US11841822B2 (en) | 2019-04-27 | 2023-12-12 | Cambricon Technologies Corporation Limited | Fractal calculating device and method, integrated circuit and board card |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| FR2134805A5 (en) * | 1971-04-21 | 1972-12-08 | Cii | |
| US5285264A (en) * | 1990-03-30 | 1994-02-08 | Kabushiki Kaisha Toshiba | Image reproduction apparatus with plural program processing |
| JP2773601B2 (en) * | 1993-06-11 | 1998-07-09 | ヤマハ株式会社 | Signal processing device |
| US6341368B1 (en) * | 1997-08-22 | 2002-01-22 | Cirrus Logic, Inc. | Method and systems for creating multi-instanced software with a preprocessor |
-
1999
- 1999-09-29 WO PCT/SG1999/000095 patent/WO2001023993A1/en not_active Ceased
- 1999-09-29 EP EP19990948014 patent/EP1222531B1/en not_active Expired - Lifetime
- 1999-09-29 DE DE69912860T patent/DE69912860T2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| WO2001023993A1 (en) | 2001-04-05 |
| DE69912860T2 (en) | 2004-11-04 |
| EP1222531A1 (en) | 2002-07-17 |
| DE69912860D1 (en) | 2003-12-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6108584A (en) | Multichannel digital audio decoding method and apparatus | |
| CA2702986A1 (en) | Audio coding using downmix | |
| JPH10512423A (en) | Method and apparatus for coding, manipulating and decoding audio signals | |
| WO1997013193B1 (en) | Instruction buffer organization method and system | |
| US4429367A (en) | Speech synthesizer apparatus | |
| JPH06161885A (en) | Memory access controller | |
| EP0832470A2 (en) | Mpeg audio decoder | |
| US4661946A (en) | Digital switch module having encoding law conversion capability | |
| EP1222531B1 (en) | Multiple instance implementation of speech codecs | |
| EP1021044A1 (en) | Method and apparatus for encoding or decoding audio or video frame data | |
| US6480550B1 (en) | Method of compressing an analogue signal | |
| US5918253A (en) | Memory address generator | |
| US5703579A (en) | Decoder for compressed digital signals | |
| JPH0630063B2 (en) | Microprocessor | |
| KR100774656B1 (en) | Resource allocator | |
| JPS63254544A (en) | Control system for address conversion | |
| US6363448B1 (en) | Set top box integrated circuit | |
| US6272284B1 (en) | Image/audio reproducing apparatus | |
| JPS61177496A (en) | Voice synthesization module | |
| EP1020998A2 (en) | Method and apparatus for encoding or decoding audio or video frame data | |
| US7068280B1 (en) | Method and apparatus to provide overlay buffering | |
| US4205390A (en) | Address converter | |
| EP1161841A1 (en) | A bit stream buffering and demultiplexing apparatus for a dvd audio decoding system | |
| US6711664B1 (en) | Method and system for decoding a row address to assert multiple adjacent rows in a memory structure | |
| KR100308118B1 (en) | Amplifier Audio Decoder |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| 17P | Request for examination filed |
Effective date: 20020502 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LI LU MC NL PT SE |
|
| R17P | Request for examination filed (corrected) |
Effective date: 20020426 |
|
| 17Q | First examination report despatched |
Effective date: 20021022 |
|
| GRAH | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOS IGRA |
|
| GRAS | Grant fee paid |
Free format text: ORIGINAL CODE: EPIDOSNIGR3 |
|
| GRAA | (expected) grant |
Free format text: ORIGINAL CODE: 0009210 |
|
| AK | Designated contracting states |
Kind code of ref document: B1 Designated state(s): DE FR GB IT |
|
| REG | Reference to a national code |
Ref country code: GB Ref legal event code: FG4D |
|
| REF | Corresponds to: |
Ref document number: 69912860 Country of ref document: DE Date of ref document: 20031218 Kind code of ref document: P |
|
| RIN2 | Information on inventor provided after grant (corrected) |
Inventor name: ALVAREZ-TINOCO, ANTONIO, MARIO Inventor name: LEONG, FOO, YUEN Inventor name: TIAN, WENSHUN |
|
| REG | Reference to a national code |
Ref country code: IE Ref legal event code: FG4D |
|
| ET | Fr: translation filed | ||
| PLBE | No opposition filed within time limit |
Free format text: ORIGINAL CODE: 0009261 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT |
|
| 26N | No opposition filed |
Effective date: 20040813 |
|
| REG | Reference to a national code |
Ref country code: IE Ref legal event code: MM4A |
|
| PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: DE Payment date: 20070829 Year of fee payment: 9 |
|
| PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: GB Payment date: 20070830 Year of fee payment: 9 |
|
| PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: IT Payment date: 20070913 Year of fee payment: 9 |
|
| PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: FR Payment date: 20070926 Year of fee payment: 9 |
|
| GBPC | Gb: european patent ceased through non-payment of renewal fee |
Effective date: 20080929 |
|
| REG | Reference to a national code |
Ref country code: FR Ref legal event code: ST Effective date: 20090529 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: IT Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20080929 Ref country code: DE Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20090401 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: FR Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20080930 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: GB Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20080929 |