05.06.2013 Views

A Study of the ITU-T G.729 Speech Coding Algorithm ...

A Study of the ITU-T G.729 Speech Coding Algorithm ...

A Study of the ITU-T G.729 Speech Coding Algorithm ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Open<br />

MASTER THESIS<br />

Uppgjord - Prepared Datum - Date Rev Dokumentnr - Document no.<br />

Johannes Celander 04-09-28 PA1<br />

Godkänd - Approved Kontr - Checked Tillhör/Referens - File/Reference<br />

4.3 Gateway Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

4.3.1 H.323 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

4.3.2 Session Initiation Protocol (SIP) . . . . . . . . . . . . . . . . . . . . 41<br />

4.3.3 A Comparison Between H.323 and SIP . . . . . . . . . . . . . . . . 42<br />

4.4 RTP and RTCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

4.5 Quality <strong>of</strong> Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43<br />

4.5.1 Packet Loss and Jitters . . . . . . . . . . . . . . . . . . . . . . . . . 44<br />

4.5.2 Latency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44<br />

4.5.3 The trade-<strong>of</strong>f between bit-rate and voice quality . . . . . . . . . . . . 45<br />

4.6 Frames per packet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />

5 Overview <strong>of</strong> <strong>the</strong> Flexible ASIC Concept 46<br />

5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46<br />

5.2 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46<br />

5.3 ASIC and DSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46<br />

5.4 DSP cores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47<br />

5.5 Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49<br />

6 The Capella ASIC 50<br />

6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50<br />

6.2 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50<br />

6.3 Performance Specifics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51<br />

7 Flexible ASIC Development Tools 52<br />

7.1 The Flexible ASIC Assembler (Flasm) . . . . . . . . . . . . . . . . . . . . . 52<br />

7.2 ANSI-C Compiler with DSP-C Extension . . . . . . . . . . . . . . . . . . . . 52<br />

7.3 Flexible ASIC Link Editor (Flink) . . . . . . . . . . . . . . . . . . . . . . . . . 53<br />

7.4 Fladb/flunk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54<br />

7.5 Flism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54<br />

8 Implementation Process 56<br />

8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56<br />

8.1.1 Computers Used for Simulation . . . . . . . . . . . . . . . . . . . . . 56<br />

8.2 <strong>ITU</strong>-T <strong>G.729</strong>A Source Code . . . . . . . . . . . . . . . . . . . . . . . . . . . 56<br />

8.3 Test Run in Micros<strong>of</strong>t Visual C . . . . . . . . . . . . . . . . . . . . . . . . . 56<br />

8.4 Initial Modifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56<br />

8.4.1 Flextools Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . 56<br />

8.4.2 Makefile Modifications . . . . . . . . . . . . . . . . . . . . . . . . . . 58<br />

8.4.3 File Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58<br />

8.5 Initial Simulation Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58<br />

8.6 Flism Simulation Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59<br />

8.7 Coder and Decoder Main Files Modification . . . . . . . . . . . . . . . . . . 59<br />

8.8 Error-Seeking and <strong>Algorithm</strong>ic Changes . . . . . . . . . . . . . . . . . . . . 60<br />

8.8.1 Big and Little Endian . . . . . . . . . . . . . . . . . . . . . . . . . . . 60<br />

8.8.2 Known limitations to <strong>the</strong> C-compiler . . . . . . . . . . . . . . . . . . 61<br />

8.8.3 Rewriting 32bit Comparison Loops . . . . . . . . . . . . . . . . . . . 62<br />

8.8.4 Rewriting Function Pointer . . . . . . . . . . . . . . . . . . . . . . . . 62<br />

8 (78)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!