Responsive image
博碩士論文 etd-0109104-102150 詳細資訊
Title page for etd-0109104-102150
論文名稱
Title
具數位訊號處理強化功能之微控器上的MP3解碼軟體實作
MP3 Decoding Software Implementation for a DSP-enhanced Microcontroller
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
105
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2003-11-12
繳交日期
Date of Submission
2004-01-09
關鍵字
Keywords
MP3解碼、多媒體應用、定點數、單一指令多筆資料、改良式反餘弦轉換
MP3 decoding, Fixed-point, SIMD, multimedia applications, IMDCT
統計
Statistics
本論文已被瀏覽 5717 次,被下載 44
The thesis/dissertation has been browsed 5717 times, has been downloaded 44 times.
中文摘要
多媒體應用在嵌入式系統中一直扮演著很重要的角色,產品更是五花八門,諸如各種酷炫造型的手機、輕巧而方便攜帶的MP3 player及上班族的最愛PDA等都是我們日常生活中無時無刻在接觸的。因此這類的產品通常都不會是高價位的,而誰的設計與生產成本低誰就能在這競爭的市場上獲利。所以在眾多的多媒體應用中,最流行的MP3應用就為我們選擇研究的目標。
目前有關MP3 player的設計方法不外乎是利用高效能的處理器或是利用通用處理器(general purpose processor)搭配一顆運算能力很強的數位訊號處理器(DSP)來達成。其效能雖能滿足多媒體運算的要求,但是同時也在系統中增加了不少硬體成本,這在許多強調低成本更甚於高效能的嵌入式產品當中,這或許不是最佳的解決方案。
因此,在本篇論文的焦點將會放在MP3軟體演算法的最佳化上,透過對MP3解碼演算法的分析,找出其中的關鍵運算,利用本實驗室自行發展的低成本多媒體微控器(命名為ME-MCU)的SIMD運算特性予以加速,使得我們不需要用一顆運算能力很強的CPU或DSP而同樣也能完成MP3的解碼動作。我們也希望對軟體演算法做最佳化的同時,也能對ME-MCU之後續改良能提供一些建議,以期能使之更加適合於多媒體的應用。
Abstract
Multimedia workloads have always held an important role in embedded applications. Products are multifarious, such as various modeling mobile phone, MP3 player which is deft and convenient to carry and PDA which is popular with workers. We touch them all the time in our life. So these kinds of products are usually not high price. If their design cost and production cost are lower than others, then they can earn profits in this competition market. In so much multimedia applications, the most popular MP3 is our research goal.
The design methods of multimedia audio application are using high performance CPU or combining general purpose processor with a DSP. Their performance satisfied the demand of multimedia application really, but the system hardware cost will increase at the same time. It is not the best solution in embedded products which emphasizing that low cost is better than high performance.
So, my thesis will focus on MP3 algorithm optimization. We analyzed MP3 decoder algorithms, and found out the key operation. Using the SIMD operation feature of low cost multimedia processor development from our lab (It’s named ME-MCU) to accelerate the processor speed. Then, I don’t need a strong CPU or DSP, and I also can complete the MP3 decode operations as well. When I optimized the MP3 algorithm, I hope to provide some suggestion for ME-MCU modification. And the multimedia application will more agree with ME-MCU.
目次 Table of Contents
Chapter 1. Introduction 1
1.1 Background 1
1.2 Motivation 2
1.3 Proposed Method 3
1.4 Contribution 4
1.5 Thesis Organization 4
Chapter 2. Related Work 5
2.1 Software optimization techniques for embedded systems 5
2.2 Hardware design techniques for embedded systems 7
Chapter 3. Platform Architecture 12
3.1 Multimedia Instruction Set Extension 12
3.1.1 Single Instruction Multiple Data, SIMD 12
3.1.2 Multimedia Operations 13
3.2 MCU Architecture 16
3.2.1 CPU 17
3.2.2 Interface to Data Memory 19
3.2.3 Peripheral modules 20
Chapter 4. Principle and analysis of MP3 Decoding Algorithm 22
4.1 MP3 Introduction 22
4.2 MP3 Frame format 24
4.2.1 Header format 24
4.2.2 Side information 27
4.2.3 Main (Audio) Data and Ancillary Data 29
4.3 MP3 Decoding flow 29
4.3.1 Synchronization、Header decoding and Side information decoding 30
4.3.2 Scale factor decoding 30
4.3.3 Huffman decoding 31
4.3.4 De-quantization 31
4.3.5 Stereo processing 32
4.3.6 Reorder processing (使用短窗框時才須要執行) 33
4.3.7 Alais processing (使用長窗框時才須要執行) 34
4.3.8 IMDCT processing 35
4.3.9 Polyphase Synthesis processing 37
Chapter 5. Optimization for Performance/Cost 39
5.1 MP3 algorithm optimization (C level) 39
5.2 Fixed-point 41
5.3 Memory layout 45
5.4 Register Allocation 47
5.5 MME/DSP feature optimization 48
5.5.1 Huffman decoder optimization 49
5.5.2 Dequqntization optimization 51
5.5.3 Stereo optimization (only short window) 53
5.5.4 Alias reduction optimization (only long window) 56
5.5.5 IMDCT optimization 58
5.5.6 Poly-phase synthesis optimization 60
Chapter 6. Hardware Feature Tradeoffs 64
6.1 MME instruction set 64
6.2 Data size 66
6.3 Memory size 67
6.3.1 Program Memory,PM 68
6.3.2 Read Only Memory,ROM 69
6.3.2 Data Memory,DM 71
Chapter 7 Verification 72
7.1 MP3 C program 72
7.2 MP3 assembly code 75
Chapter 8. Experiments 78
8.1 Instruction counts/Clock cycle counts/Power/Chip size 78
8.2 MME instruction contribution 82
Chapter 9. Conclusion 84
參考文獻(References) 87
附錄A (Appendix A) – ME-MCU指令編碼表 89
附錄B (Appendix B) – Memory Mapped Registers 94
附錄C (Appendix C) – Side information 97
附錄D (Appendix D) – Poly-phase synthesis assembly code 100
附錄E (Appendix E) – Dynamic instructions (short window) 101
附錄F (Appendix F) – DSP56654 Chip Features 104
參考文獻 References
[1] J. Eyre and J. Bier, “The Evolution of DSP Processors,” IEEE Signal Processing
Magazine, Volume: 17, Issue: 2, pp. 43-51, March, 2000.
[2] M3321 MPEG-2 & Dolby Digital A/V Decoder, ALi Corporation,
http://www.ali.com.tw/images/documentation/
[3] M5705 DVD-ROM Controller with Embedded Microprocessor, ALi Corporation,
http://www.ali.com.tw/images/documentation/
[4] High-End Audio Controllers, Audio Codecs, VIA Technologies, Inc. ,
http://www.viatech.com.tw/en/multimedia/multimedia.jsp
[5] MPEG Layer-3 Stereo Decoder, Fraunhofer Institut Integrierte Schaltungen,
http://www.iis.fraunhofer.de/amm/products/audio_dsp/adi.html
[6] Application Note, Music Media Player, Motorola Semiconductor Sector,
http://e-www.motorola.com/webapp/sps/site/application.jsp
[7] Sekyoung Hong, Byungcheol Park, Yoonseok Song, Hangyo See, Jonghyun Kim,
Hyungjong Lee, Dalsoo Kim, Minkyu Song, “A full accuracy MPEG1 audio layer 3
(MP3) decoder with internal data converters”, Proc. of Custom Integrated
Circuits Conference, Orlando, page(s): 563-566, May 21-24, 2000.
[8] Kyu Ha Lee, Keun-Sup Lee, Tae-Hoon Hwang, Young-Cheol Park, Dae Hee Youn,
“An architecture and implementation of MPEG audio layer III decoder using
dual-core DSP”, IEEE Transactions on Consumer Electronics, Volume: 47, pp. 928-
933, Nov., 2001.
[9] Sekyoung Hong, Byungcheol Park, Dalsoo Kim, Minkyu Song, “A low power full
accuracy MPEG1 audio layer III (MP3) decoder with on-chip data converters”,
Proc. of International Conference on Consumer Electronics, Los Angles, pp.
903-906, June 13-15, 2000.
[10] Ian Bryant, and Yankin Tanurhan., “The Actel Embeddable FPGA Core”, Actel
Corporation, Sunnyvale CA.
[11] Alfred V. Aho, Ravi Sethi, Jeffrey D. Ullman, Compiler Principles, Techniques,
And Tools, 松岡電腦圖書資料股份有限公司出版, Jan., 2002.
[12] Kraeling, M.B., “Fixed-point math in time-critical C applications”, Proc. of
Western Electronics Conference, page(s): 587-593, Oct. 22-24, 1996.
[13] Wayne Wolf, Computer as Components Principle of Embedded Computing
System Design, A Harcourt Science and Technology Company, 2001.
[14] Kyoung Ho Bang, Nam Hun Jeong, Joon Seok Kim, Young Cheol Park, Dae Hee
Youn, “Design and VLSI implementation of a digital audio-specific DSP core for
MP3/AAC”, Proc. of International Conference on Consumer Electronics, Los
Angles, pp. 790-795, June 18-20, 2002.
[15] Keun-Sup Lee, Young Cheol Park, Dae Hee Youn, “Software optimization of the
MPEG-audio decoder using a 32-bit MCU RISC processor”, Proc. of
International Conference on Consumer Electronics, pp. 671-676, 18-20 June 2002.
[16] Peleg and U. Weiser, “MMX Technology Extension to the Intel Architecture”, IEEE
Micro, page(s): 42-50, July/Aug., 1996.
[17] M. Tremblay et al., “VIS Speeds New Media Processing”, IEEE Micro, pp. 10-20,
July/Aug., 1996.
[18] R. B. Lee, “Subword Parallelism with MAX-2”, IEEE Micro, pp. 51-59, July/Aug.,
1996.
[19] R. B. Lee, “Multimedia Extensions for General-Purpose Processors”, Proc. IEEE
Workshop on Signal Processing Systems, page(s): 9-23, Nov., 1997.
[20] DSP56654 Based Digital Signal Processor User’s Manual, Motorola Corp., 1999.
http://search.motorola.com/semiconductors/query.html?qt=DSP56654
[21] 黃文凱, 適用於低成本嵌入式應用之多媒體微控制器, 碩士論文, 國立中山
大學資訊工程學系, 2002.
[22] 賴國舜, AC-3音訊解碼器於ARM-based平台上之軟硬體共同設計, 碩士論文
國立中山大學資訊工程學系, 2003.
[23] 吳光明, SoC系統化階層式介面電路設計法則之研發-以MP3設計為例, 碩士
論文, 國立成功大學電機工程學系, 2000.
[24] K Salomonsen, S Søgaard, E P Larsen, Design and Implementation of an MPEG Audio Layer III Bitstream Processor, Department of Communication Technology at the Institute of Electronic Systems, Aalborg University.
http://www.mp3-tech.org/programmer/docs/bsp.zip
http://www.mp3-tech.org/programmer/frame_header.html
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:校內公開,校外永不公開 restricted
開放時間 Available:
校內 Campus: 已公開 available
校外 Off-campus:永不公開 not available

您的 IP(校外) 位址是 3.133.79.70
論文開放下載的時間是 校外不公開

Your IP address is 3.133.79.70
This thesis will be available to you on Indicate off-campus access is not available.

紙本論文 Printed copies
紙本論文的公開資訊在102學年度以後相對較為完整。如果需要查詢101學年度以前的紙本論文公開資訊,請聯繫圖資處紙本論文服務櫃台。如有不便之處敬請見諒。
開放時間 available 已公開 available

QR Code