Responsive image
博碩士論文 etd-0730107-165312 詳細資訊
Title page for etd-0730107-165312
論文名稱
Title
八位元微控器之軟體開發環境及其擴充
An 8-bit Microcontroller S/W Development Environment and Its Extension
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
202
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2005-07-25
繳交日期
Date of Submission
2007-07-30
關鍵字
Keywords
軟體開發環境、電路模擬器、微控器、除錯
Software Development Environment, In-Circuit Emulator, Debug, Microcontroller
統計
Statistics
本論文已被瀏覽 5662 次,被下載 0
The thesis/dissertation has been browsed 5662 times, has been downloaded 0 times.
中文摘要
本論文第一部分主要探討8位元微控器軟體開發環境實作之方法,包含Compiler、Assembler、Debugging mechanism等四大部分。其中Debugging mechanism的設計以電路擬真器(ICE)為基礎。
電路擬真器(ICE)是微處理器常見的除錯技術,在論文中所設計之ICE包括硬體實作和搭配除錯使用的軟體。 ICE硬體主要是IEEE 1149.1 std. TAP Controller組成之控制電路,控制著串連在data bus上的scan cell;除錯軟體透過IEEE 1149.1 std. JTAG port從PC端輸入除錯指令給ICE硬體。
本論文第二部分針對ICE(in-circuit emulator)硬體電路整合軟體端除錯器的過程,提出自行設計版本與商業套裝除錯軟體支援兩種方式。實作範例除了整合實驗室32bit微處理器與ICE硬體外,對於控制ICE電路之軟體除錯器之驗證,將以可程式邏輯電路-FPGA證明兩種整合方法皆可行。
Abstract
In this thesis, the first section will talk about how to implement the software development environment for 8bit microprocessor, including Compiler, Assembler, and Debugging mechanism etc. The design of Debugging mechanism is based on in-circuit emulator.
In-circuit emulator is a common debugging technique for microprocessor. The designed ICE contains hardware implement and debugging software for it in this thesis. ICE hardware is a control circuit from TAP Controller, IEEE 1149.1 std. and it control the scan cells on the data bus. The Debugging software uses JTAG port, IEEE 1149.1 std., to insert debug instruction from PC to ICE hardware.
In this thesis, the second section will focus on the process of integrating ICE hardware circuit and software debugger issued by two ways, our own design version and business suit debugging software support. The examples are not only integrating our LAB’s 32bit microprocessor and ICE hardware, but also verifying software debugger to control ICE circuit by FPGA to prove above two methods are work.
目次 Table of Contents
Chapter 1 . 論文簡介 1
1.1研究背景 1
1.2 研究動機 3
1.3 研究方法 3
1.4 主要貢獻 3
1.5 論文大綱 4
Chapter 2 相關研究 5
2.1 常見的整合型程式開發環境工具 5
2.2 組譯器 8
2.3 指令集模擬器(ISS) 9
2.4 軟體除錯器 10
Chapter 3 . 八位元微控器軟體開發環境設計之概念 13
3.1 八位元微控器之組譯器開發 13
3.2 八位元微控器之指令集模擬器開發 16
3.3 八位元微控器之除錯器開發 17
Chapter 4 . SYS8MI微控器之軟體開發環境 22
4.1 SYS8MI微控器軟體開發環境介紹 22
4.2 SYS8MI微控器之組譯器設計 24
4.3 SYS8MI微控器之指令集模擬器設計 28
4.4 軟硬體協同驗證功能支援 34
4.5 SYS8MI微控器之JTAG介面軟體除錯器設計 38
Chapter 5 . 實作驗證 52
5.1 SYS8MI微控器 應用程式開發範例說明 54
泡沫排序法、Fanbonacci數列 – 常見數學運算函式 54
5.2 SYS8MI微控器 設計驗證平台說明 57
Chapter 6 . 結論與展望 58
附錄一. 實作範例 : 32位元微處理器與電路擬真器整合 59
1.1 JTAG介面之電路擬真器(ICE)硬體架構介紹 59
1.2 32位元微處理器之電路擬真器硬體架構與功能 60
1.3 對應32位元微處理器之電路擬真器之軟體除錯器設計 64
1.4 FPGA驗證 80
附錄二. Example : How to modify the ICE to support a commercial debug tool 85
1. Introduction 85
1.1 Motivation 85
1.2 Implementation flow 85
1.3 The Difference between our Developed 32bit Microprocessor’s ICE Debugging Tool and Commercial Debug Tool Support 87
2. Background 100
2.1 ARM ICE hardware (ARM7TDMI) 100
2.2 ARM RealView Debugger 101
2.3 Multi-ICE protocol Converter 102
3. The function analysis of RealView Debugger 105
3.1 Target detection 105
3.2 Free-Run 111
3.3 External Stop 112
3.4 CPU Registers 113
3.5 Memory 114
3.6 Breakpoint / Watchpoint 116
3.7 Single Step 121
3.8 Load Image 124
4. Integration Environment for the 32bit microprocessor’s ICE and the commercial debug tool 126
4.1 Prototyping Board SetUp 126
4.2 Connection between prototyping board and the commercial debug tool 132
4.2.1 JTAG Interface Connection 133
4.2.2 Reset Circuit 134
4.2.3 Connection Troubleshooting 135
4.2.4 Using Logic Analyzer 139
4.2.5 RTL Simulation Model 141
5. Modification of the 32bit microprocessor’s ICE for the commercial debug tool 146
5.1 CPU 146
5.2 ICE 150
6. Verification Plan and Results 163
6.1 Verification Flow 163
6.1.1 Coding style checking 163
6.1.2 Code coverage 165
6.2 Experiment of FPGA 32bit microprocessor’s ICE for a commercial debug tool 165
7. Conclusion 177
8. IP Deliverables 178
參考文獻 (References) 179
參考文獻 References
[1] MENTOR GRAPHICS INC. Seamless ASAP [online]. Available : http://www.mentor.com/products/fv/hwsw_coverification/seamless/index.cfm
[2] ARM Developer Suite [online]. Available : http://www.arm.com/products/DevTools/ADS.html
[3] E-letter July 2004 [online]. Available : http://www.mentorg.com.cn/eletter/0407/tech_txt.htm
[4] 陳獻文, CIC所提供的NOVAS原廠編寫教材 Jun 2004 [online]. Available : http://www2.cic.org.tw/training/train_download/debussy0407.pdf
[5] MICROTIME COMPUTER INC. [online]. Available:
http://www.microtime.com.tw/product/product.htm
[6] Jianwen Zhu and Daniel D. Gajski, "An Ultra-Fast Instruction Set Simulator", IEEE Trans. on Very Large Scale Integration Systems, 2002.
[7] V. Zivojnvic, S. Tjiang and H. Meyr, "Compiled simulation of programmable DSP architectures", in Proc. of IEEE Workshop VLSI Signal, Sakai, Japen, 1995.
[8] R.F. Cmelik and D. Keppel, "Shade: A fast instruction-set simulator for execution profiling", ACM SIGMETRICS Conf. Measurement Modeling Comput. System, 1994.
[9] L. Verma., H.J. Pottinger, and D.G. Beetner, "A software debugger interface for an 8051 hardware model", in Proc. of IEEE Microelectronic Systems Education, 2003
[10] Ing-Jer Huang, Hsin-Ming Chen, and Chung-Fu Kao, “Reusable embedded in-circuit emulator”, Design Automation Conference, 2001, pp. 33-34,
[11] Whetsel L., “An IEEE 1149.1 Based Test Access Architecture for ICs with Embedded Cores”, in Proc. of International Test Conference, 1997, pp. 69-78
[12] FORTUNE INC. [online]. Available : http://www.fsc.com.tw
[13] MICROCHIP TECHNOLOGY INC. [online]. Available : http://www.microchip.com
[14] GPUTILS-GNU PIC UTILITIES [online]. Available : http://gputils.sourceforge.net
[15] Leland L. Beck, System Software An Introduction to Systems Programming, Third Edition, Addison Wesley Longman, Inc.
[16] 陳錦輝, 計算機概論 探索未來, 金禾出版社, 2004.
[17] ARM INC. ARM 7TDMI Data Sheet, page 9-4.
[18] Zhengjje Deng and Zhanglong Chen, “Designing Source-level Debug – for Embedded System Platform”, in Proc. of the 8th International Conference on Computer Supported Cooperative Work in Design, 2003.
[19] IAR INC. [online]. Available : http://www.iar.com
[20] ALTERA INC. NIOS FPGA. [online]. Available :
http:// www.altera.com/literature/manual/mnl_nios_board_cyclone_1c20.pdf
[21] 陳柏舟, 應用於嵌入式電路擬真器之可參數化的軟硬體控制模組, 國立中山大學資訊工程研究所碩士論文, 2005
[22] Xilinx INC. Xilinx Prototype Platform User Guide for Virtex and Virtex-E Series FPGAs. [online]. Available : http://www.xilinx.com/xlnx/xebiz/designResources/ip_product_details.jsp?key=HW-AFX-BG560-100&iLanguageID=1
[23] ARM INC. ARM 7TDMI-S Data Sheet, page 5-3.
[24] ARM INC. ARM RealView MULTI-ICE USER GUIDE VERSION 2.2, page1-7.
[25] ARM INC. ARM Multi-ICE Server Application Version 2.5.
[26] ARM INC. ARM RealView MULTI-ICE USER GUIDE VERSION 2.2, page2-8.
[27] ARM INC. ARM RVDEBUG V1.8 Application.
[28] ARM INC. ARM7TDMI-S Data Sheet, page5-11.
[29] ARM INC. ARM RealView MULTI-ICE USER GUIDE VERSION 2.2, pageF-2.
[30] ARM INC. ARM RealView MULTI-ICE USER GUIDE VERSION 2.2, pageF-3.
[31] ARM INC. ARM7TDMI Data Sheet, Chapter 8 & 9.
[32] ARM INC. ARM RealView Debugger version 1.8 User Guide.
[33] ARM INC. ARM Multi-ICE User Guide.
[34] Xilinx INC. [online]. Available : http://china.xilinx.com/xlnx/xebiz/designResources/ip_product_details.jsp?iLanguageID=3&sGlobalNavPick=&sSecondaryNavPick=&category=-1210286&key=HW-AFX-FF1152-300
[35] ARM INC. ARM 7TDMI-S Data Sheet.
[36] Xilinx INC. Xinlinx ISE Software Manual.
[37] 林騏宏, 用於嵌入式系統之匯流排資料追蹤器, 國立中山大學資訊工程研究所碩士論文, 2006
[38] ARM INC. Web Site of FAQ. [online]. Available : http://www.arm.com/support/faqdev/4170.html
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:校內校外均不公開 not available
開放時間 Available:
校內 Campus:永不公開 not available
校外 Off-campus:永不公開 not available

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

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

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

QR Code