Responsive image
博碩士論文 etd-0914101-145248 詳細資訊
Title page for etd-0914101-145248
論文名稱
Title
微處理器之仿真器的軟硬體設計方法
Analysis of Hardware and Software Approaches to Embedded In-Circuit Emulation of Microprocessor
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
86
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2001-07-10
繳交日期
Date of Submission
2001-09-14
關鍵字
Keywords
內嵌式電路模擬器、系統整合單一晶片
System-on-a-Chip, Embedded In-Circuit Emulator
統計
Statistics
本論文已被瀏覽 5745 次,被下載 3631
The thesis/dissertation has been browsed 5745 times, has been downloaded 3631 times.
中文摘要
隨著高性能微處理器的設計日趨複雜,和IC設計朝向單一系統晶片的設計,使得微處理器的發展系統中除錯機制的設計,變的越來越困難﹔過去設計概念是從晶片外部的接腳來即時控制或觀測系統的執行狀況,而今日從微處理器的設計觀點來看,由於管線數目增多和嵌入式快取記憶體的設計,使得在晶片外部,不可能可以很正確的即時觀察到系統的內部狀態,再加上今日的IC設計趨勢將多個微處理器或數位信號處理器,嵌入到單一晶片當中,使得除錯工作變的非常困難。
因此在單一晶片中除錯機制(on-chip debugging)的研究,變的非常熱門,許多除錯機制的研究和產品,在硬體和軟體上提供不同的解決方案,這些方法從不同角度來看,有各自的優缺點,和不同的考慮因素,本文的研究希望幫助IC製造者和系統開發者很容易的決定對自己最有利的方式。
Abstract
An in-circuit emulator (ICE) is an important tool for the development of microprocessor-based systems. External ICE boxes are complex and expensive piece of hardware so their use is usually limited to debugging phases of the microprocessor-based systems that involve hardware/software integration or investigation of real time I/O or bus events. On the other hand, a ROM monitor is inexpensive, but provides less observablity for the microprocessor’s operations. In either case, the design practice of the ICE devices is usually independent to the design task of the microprocessor itself. The performance and cost of the ICE devices are not relevant to the microprocessors since they are two different entities. The ICE’s are used only during the development/debugging of the microprocessor-based systems by substituting the original microprocessor on the socket with the ICE. The ICE is unplugged after debugging and the original microprocessor is placed back into the socket for normal operations of the microprocessor-based systems. Therefore, the performance and cost of the ICE’s do not impact these of the microprocessor-based systems because the ICE’s do not exist in them.
We then define three feasible solutions software, hardware and hybrid) and integrate them with a synthesizable ARM7 icroprocessor core. The microprocessors with the embedded ICE’s are synthesized and simulated to analyze and compare the corresponding hardware/software performance and cost and the debugging features of these approaches.
目次 Table of Contents
1. INSTRODUCTION 4
1.1. Motivation 4
1.2. The proposed approach 4
1.3. Research Contribution 5
1.4. Organization 5
2. BACKGROUND 6
2.1. The basic concept of in-circuit emulation 6
2.2. The types of in-circuit emulation [18] [19] 8
3. CLASSIFICATION OF IN-CIRCUIT EMULATION APPROACHES 10
3.1. The Classification Methodology 10
3.1.1 ForeGround Debug Mode (FGDM) 10
3.1.2 BackGround Debug Mode (BGDM) 10
3.1.3 General Mechanism 11
3.1.4 The classification of emulation approaches 12
3.2. Software Emulation 13
3.2.1 Intel x86 DEBUGGING [5] 14
3.2.2 THE BUFFALO MONITOR PROGRAM [4] 15
3.3. Hardware Emulation 18
3.3.1 Embedded In-Circuit Emulator for Microcontroller [2] 19
3.3.2 ARM7TDMI Debug Architecture [1] [21] 24
3.3.3 AMDebugTM Technology [25] 28
3.4. Hybrid Emulation 32
3.4.1 Intel x86 DEBUG REGISTER [5] 32
3.4.2 Motorola CPU32 Background Debug Mode (BDM) [7] [16] 35
4. A QUANTITATIVE CASE STUDY ON THE H/W AND S/W ICE APPROACHES 43
4.1. Software Emulation 43
4.1.1 Debug Mode Switching 44
4.1.2 FGDM 47
4.1.3 BGDM 50
4.2. Hardware Emulation 54
4.2.1 Operating Mode Changing 55
4.2.2 FGDM 59
4.2.3 BGDM 64
4.2.4 Debug Operation Procedure 67
4.3. Hybrid Emulation 70
4.3.1 The SFHB Emulation 70
4.3.2 The HFSB Emulation 74
4.3 Summary 77
5. EXPERIMENTAL RESULTS 78
5.1. Code Size / Gate Count 78
5.2. Operation time 79
5.2.1 Set Single Breakpoint 81
5.2.2 Single-Step 81
5.2.3 Memory Dump 81
5.2.4 Register Dump 82
5.2.5 Exit FGDM 83
5.2.6 Summary 83
5.3. System Resource 84
5.4. Design Complexity 84
5.5. Suitable Application Domain 84
5.6. Communication Device 84
5.7. Breakpoint Condition 85
6. CONCLUSION 86
7. FUTURE WORK 86
8. REFERENCE 87


參考文獻 References
[1] “The ARM7TDMI Debug Architecture,” Application Note 28, Dec. 1995.
[2] I. J. Huang, Tai-An Lu, ”ICEBERG: An Embedded In-circuit Emulator Synthesizer for Microcontrollers” Proc. of the 36’th Design Automation Conference, June 1998
[3] “IEEE Standard Test Access Port and Boundary-Scan Architecture”, IEEE Std. 1149.1-1990.
[4] Joseph D. Greenfield, William C. Wray, “USING MICROPROCESSORS AND MICROCOMPUTERS: THE MOTORLA FAMILY Second Edition”, Prentice Hall, 1988.
[5] ”Pentium Processor Family User’s Manual Volume 3: Architecture and Programming Manual”, Intel Corporation, 1994.
[6] Tom Williams: ”On-Chip Debug Support Gets to the Heart of Code” Embedded Systems Development, January 2000, the web sit: http://www.esdonline.com/2000/jan0500/18/jan2000-18.htm.
[7] “MF5407 User’s Manual”, Motorola, the web sit: http://e-www.motorola.com/collateral/MCF5407UM-DEBUG.pdf
[8] “Basics of Embedded Debugging - Essential Concepts of Embedded Systems Development”, Apply Microsystems, the web sit: http://www.amc.com/products/sware_hware_enhanced_debug_tools/debuggers/app_notes/basics.html
[9] NS Manju Nath, “On-chip debugging reaches a nexus”, EDN, May 11, 2000, page 95, http://www.ednmag.com/reg/2000/05112000/10tt.htm
[10] Chiaran MacNamee, Donal Heffernan “Emerging on-chip debugging techniques for real-time embedded systems”, COMPUTING &CONTROL ENGINEERING JOURNAL, IEEE, Dec. 2000, Page 295-303
[11] Henry Negass, ”Approaches to on-chip debugging”, Computer Design, Dec. 1998, Available at http://www.computer-design.com/Editorial/1998/12/ TDP/decdebug.html
[12] Craig A. Haller, “The ZEN of BDM”, Macraigor Systems Inc., 1996-97, www.metrowerks.com/pdf/zenofbdm.pdf
[13] Ray Turner, ”System-Level Verification – a Comparison of Approaches”, Rapid System Prototyping, IEEE International Workshop on, 1999, Page(s): 154 –159
[14] P. C. Ching, Y. H. Cheng, M. H. Ko, “An in-circuit emulator for TMS320C25“, IEEE Transactions on Education, Feb. 1994, Page(s): 51-56.
[15] M. Rafiquzzaman, “Microprocessors and Microcomputer Development Systems”, New York: John Wiley & Sons, 1984.
[16] Charles Melear, “Emulation Techniques For Microcontrollers”, WESCON/97, IEEE, Page(s): 532-541.
[17] Charles Melear, “Emulation Techniques For Microcontrollers With Internal Caches And Multiple Execution Units”, WESCON/97, IEEE, Page(s): 544-553.
[18] Warren Webb, “Squash your embedded debugging time”, EDN, Oct. 1999, Page(s): 113-122, Available at http://www.e-insite.net/ednmag/contents /images/46210.pdf .
[19] David Allen, “ROM Monitors Coupled with ICEs Create an Efficient Debug Operation”, Embedded System Development, Feb. 2000, Page(s): 38-42, Available athttp://www.esdonline.com/2000/feb0100/38/feb2000-38.htm.
[20] Steve Furber “ARM System Architecture” Addison Wesley Longman Inc, 1996.
[21] “ARM7TDMI Data Sheet”, ARM Ltd., 1995.
[22] “IEEE-ISTO 5001™-1999, the Nexus 5001 Forum™ Standard for a Global EmbeddedProcessor Debug Interface”, Available at www.ieee-isto.org /Nexus5001.
[23] Gary Miller (Motorola), Kevin Hall (Hewlett Packard), Wayne Willis (Hewlett Packard) and Wilfried Pless (Hewlett Packard), “The Evolution of Powertrain Microcontrollers and its impact on Development Processesand Tools”, Available at www.nexus-standard.org.
[24] Rick Grehan, “MetroTRK: Target Resident Debugging Kernel for Embedded Systems”, MetroTRK Inc., Available at http://www.metrowerks.com/pdf/ whitepapers/MetroTRK_whitepaper.PDF
[25] “Élan ™ SC520 Microcontroller User’s Manual”, Advanced Micro Devices Inc., 2001, Available at http://www.amd.com/products/epd/processors/4.32bitcont/14.lan5xxfam/24.lansc520/22004/22004b.pdf
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:校內校外完全公開 unrestricted
開放時間 Available:
校內 Campus: 已公開 available
校外 Off-campus: 已公開 available


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

QR Code