簡易檢索 / 詳目顯示

研究生: 施文立
Wen-Li Shih
論文名稱: 支援平行核心數位訊號處理器之GDB除錯器
GDB for PAC DSP: A Debugger for DSP Processors
指導教授: 李政崑
Jenq-Kuen Lee
口試委員:
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 資訊工程學系
Computer Science
論文出版年: 2006
畢業學年度: 94
語文別: 英文
論文頁數: 42
中文關鍵詞: 除錯器整合發展環境雙核心除錯器數位訊號處理器
外文關鍵詞: debugger, integrated development environment (IDE), dual-core debugger, digital signal processor (DSP)
相關次數: 點閱:3下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 隨著行動運算裝置的市場需求量逐漸增大,以串流資料為處理對象的應用程式重要性亦隨之提升。為了追求高效能與低耗能的串流資料處理環境,許多嵌入式系統廠商引入數位訊號處理器以追求效能與耗能之間的平衡點,並提供高發展性與成本低廉的發展環境。為了使應用程式的開發者能在這樣的架構下,方便的發展越趨複雜的多媒體程式,友善而穩定的發展平台亦成為一個重要的研究課題。除錯器乃是一個提供程式與發展者交互作用的工具,並且已經被廣泛使用於程式流程的追查與發現錯誤的使用上。在本論文中,我們建構了一個適用於平行架構核心數位訊號處理器的偵錯環境。利用GDB、Eclipse與模擬器的整合,提供程式發展者一個友善而便利的除錯環境。透過更改過的遠端串列通訊協定,我們的系統同時能適用於硬體模擬器。我們並提出一個雙核心偵錯器的架構,能夠處理多個獨立異質的處理單元著偵錯動作。本系統目前為平行架構核心數位訊號處理器初版的偵錯環境。


    In nowadays, streaming data application has become more and more important since the portable devices such as PDA, and Smart Phone grew their market. To pursue the optimized balance between high performance and low power consumption for streaming data applications, many embedded systems employ programmable Digital Signal Processor (DSP) as their core component to construct a high-performance, low-power, high-flexibility, and low-cost platform. For such a platform, a developer of applications requires a convenient, friendly, and stable developing environment to deal with more and more complex applications. Debugger, a tool providing interaction between developers and applications, is widely used for tracing codes and hunting bugs in complex applications. In this work, we built a debugging environment on Parallel Architecture Core (PAC) DSP processors. By integrating GNU Debugger (GDB) and PAC DSP Instruction Set Simulator (ISS) with Eclipse Integrated Development Environment (IDE) platform, a convenient and friendly debugging environment for application developers can be provided. Our system also works with hardware ICE environment by following our proposed settings and protocols. We also proposed a dual-core debugging environment platform, which would be an important tool to debug abnormal interaction between independent heterogeneous processing units. Our system is now the initial distribution software framework for PAC DSP debugging environment.

    Abstract i Contents iii List of Figures v 1 Introduction 1 2 Background 4 2.1 PAC DSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.1.1 PAC DSP Overview . . . . . . . . . . . . . . . . . . . . . . . 4 2.1.2 PAC DSP features . . . . . . . . . . . . . . . . . . . . . . . 5 2.1.3 Architecture Overview . . . . . . . . . . . . . . . . . . . . 5 2.1.4 Ping-Pong Register . . . . . . . . . . . . . . . . . . . . . . 6 2.2 PACC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3 Assembler/Linker . . . . . . . . . . . . . . . . . . . . . . . . 7 3 GDB for PAC DSP 9 3.1 GDB Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 DWARF 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.3 GDB for PAC DSP plan . . . . . . . . . . . . . . . . . . . . . . 11 4 GDB for ISS 13 4.1 GDB RSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2 Reduced GDB RSP . . . . . . . . . . . . . . . . . . . . . . . . 14 4.3 Target Description Porting in GDB . . . . . . . . . . . . . . . 15 4.4 Disassemble machine code . . . . . . . . . . . . . . . . . . . . 16 4.5 Verification of GDB RSP for PACDSP . . . . . . . . . . . . . . . 18 4.6 Basic Debug Command list . . . . . . . . . . . . . . . . . . . . 21 5 GDB for ICE 22 5.1 GDB for PAC DSP ICE Setup . . . . . . . . . . . . . . . . . . . 22 5.1.1 JTAG Overview . . . . . . . . . . . . . . . . . . . . . . . . 23 5.1.2 Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.2 Reduced GDB RSP for ICE . . . . . . . . . . . . . . . . . . . . 25 6 Integrated Development Environment for PAC DSP 26 6.1 Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.2 Integrating GDB and Eclipse . . . . . . . . . . . . . . . . . . 27 7 A Dual-Core Debugger Framework 30 7.1 Dual-core Debugger Setup . . . . . . . . . . . . . . . . . . . . 30 7.2 Cross Trigger . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.3 Cross Trigger for Simulators . . . . . . . . . . . . . . . . . . 34 8 Conclusion 37 8.1 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 8.2 Future work . . . . . . . . . . . . . . . . . . . . . . . . . . 38

    [1] STC/M310, PACDSP 2.0 Instruction Set Menu, ITRI, 2000.
    [2] R. Stallman, R. Pesch, S. Shebs, and et al., Debugging with GDB: The gnu Source-Level Debugger, Free Software Foundation, Inc., 2006. [Online]. Available: http://www.gnu.org/software/gdb/documentation/
    [3] J. Gilmore and S. Shebs, GDB Internals: A guide to the internals of the GNU debugger, Free Software Foundation, Inc., 2006. [Online]. Available: http://www.gnu.org/software/gdb/documentation/
    [4] Eclipse Platform Technical Overview, International Business Machines Corp., 2001. [Online]. Available: http://www.eclipse.org/articles/Whitepaper-
    Platform-3.1/eclipse-platform-whitepaper.pdf
    [5] G. Delagi. (2001, May) Executive comment: Programmable dsps benefit ias. Online Issue by CMP Media LLC. [Online]. Available: http://www.ebnonline.com/story/OEG20010517S0047
    [6] ——. (2001, July) Executive comment: Dsp vendors look beyond silicon. Online Issue by CMP Media LLC. [Online]. Available: http://www.ebnews.com/story/OEG20010705S006239
    [7] ——. (2002, March) Opinion: Dsp vendors’ focus shifting to software. Online Issue by CMP Media LLC. [Online]. Available: http://www.ebnonline.com/semiconductor/opinion/story/OEG20020318S0051
    [8] P. Marino. (2001, April) Optimizing dsps for wireless world. eMedia Asia Ltd. Online Issue by eMedia Asia Ltd. [Online]. Available: http://www.eetasia.com/ART 8800083994 499505,499512.HTM
    [9] (2004, March) Omap5912 multimedia processor device overview
    and architecture reference guide. SPRU748A. [Online]. Available: http://focus.ti.com/lit/ug/spru742/spru742.pdf
    [10] (2003, July) Innovator development kit for the omap platform user’s guide. SPRU667. [Online]. Available: http://focus.ti.com/lit/ug/spru667/spru667.pdf
    [11] TMS320C62x/C67x Programmer’s Guide, SPRU198C, TI Inc., May 1999. [Online]. Available: http://wwws.ti.com/sc/psheets/spru198c/spru198c.pdf
    [12] TMS320C62x/C67x CPU and Instruction Set, SPRU189F, TI Inc., Oct. 1998. [Online]. Available: http://www.ti.com/sc/psheets/spru189d/spru189d.pdf
    [13] Y.-C. Lin, Y.-P. You, C.-J. Wu, B.-S. Hsu, C.-L. Tang, S.-Y. Chen, and Y.-C. Mo, “Pac dsp software development suite,” SoC Technical Journal, vol. 2, pp. 22–35, May 2005.
    [14] D. C.-W. Chang, C.-W. Jen, I.-T. Liao, J.-K. Lee, W.-F. Chen, and S.-Y. Tseng, Pac dsp core and application processors,” in Proceedings of International Conference on Multimedia and Expo (ICME), July 2006.
    [15] C. Lee, J. K. Lee, T. Hwang, and S.-C. Tsai, “Compiler optimization on instruction scheduling for low power,” in Proceedings of the 13th International
    Symposium on System Synthesis, September 2000, pp. 55–60.
    [16] Y.-C. Lin, Y.-P. You, and J. K. Lee, “Register allocation for vliw dsp processors with irregular register files,” in Proceedings of Compilers for Parallel Computers (CPC’06), Janurary 2006.
    [17] Y.-C. Lin, C.-L. Tang, C.-J. Wu, M.-Y. Hung, Y.-P. You, Y.-C. Moo, S.-Y. Chen, , and J. K. Lee, “Compiler supports and optimizations for pac vliw dsp
    processors,” in Proceedings of the 18th International Workshop on Languages and Compilers for Parallel Computing (LCPC’05), October 20-22 2005.
    [18] Tool Interface Standard (TIS) Executable and Linking Format (ELF) Specification, TIS Committee, 1995. [Online]. Available: http://www.x86.org/ftp/manuals/tools/elf.pdf
    [19] 64-bit ELF Object File Specification, MIPS Technologies / Silicon Graphics Computer Systems, 2003. [Online]. Available: http://techpubs.sgi.com/library/manuals/4000/007-4658-001/pdf/007-4658-001.pdf
    [20] DWARF Debugging Information Format, UNIX International Waterview Corporate Center / Programming Languages SIG, 1993. [Online]. Available: http://www.eagercon.com/dwarf/dwarf-2.0.0.pdf
    [21] B. Gatliff, “Embedding with gnu: Gnu debugger,” Embedded System Programming, pp. 80–94, September 1999.
    [22] ——, “Embedding with gnu: the gdb remote serial protocol,” Embedded System Programming, pp. 108–113, November 1999.
    [23] Description of Boundary-Scan, National Semiconductor. [Online]. Available: www.national.com/ms/DE/DESCRIPTION OF SCAN-MISC.pdf
    [24] IEEE Std 1149.1 (JTAG) Testability, SSYA002C, Semiconductor Group / Texas Instuments Incorporated, 1997. [Online]. Available: http://focus.ti.com/lit/an/ssya002c/ssya002c.pdf
    [25] JTAG Boundary Scan Basics, Sun Microsystems, January 1997. [Online]. Available: http://www.engr.udayton.edu/faculty/jloomis/ece446/notes/jtag/wpr-0018-01.pdf
    [26] C/C++ Development Toolkit User Guide, IBM Coporation, 2004.
    [27] J.-M. Chen, C.-H. Chang, S.-Y. Tseng, J.-K. Lee, and W.-K. Shih, “Power aware h.264/avc video player on pac dual-core soc platform,” in Proceedings of 2006 IFIP International Conference on Embedded and Ubiquitous Computing (EUC-06), August 2006.
    [28] M. Bryan, RealView ARM Tools by ARM Leading Solutions for Multi-Core Development, ARM Inc., 2004.
    [29] Y.-P. You, C.-R. Lee, and J.-K. Lee, “Compilers for leakage power reductions,”ACM Transactions on Design Automation of Electronic Systems, vol. 11, pp. 147–166, 2006.
    [30] Y.-P. You, C.-R. Lee, J.-K. Lee, and W.-K. Shih, “Real-time task scheduling for dynamically variable voltage processors,” in Proceedings of IEEE Workshop on Power Management for Real-Time and Embedded Systems, May 2001.

    無法下載圖示 全文公開日期 本全文未授權公開 (校內網路)
    全文公開日期 本全文未授權公開 (校外網路)
    全文公開日期 本全文未授權公開 (國家圖書館:臺灣博碩士論文系統)
    QR CODE