Responsive image
博碩士論文 etd-1015112-234055 詳細資訊
Title page for etd-1015112-234055
論文名稱
Title
具效能分析之CPU/Cache/MMU/DRAM/Component模組異質整合於 QEMU-SystemC模擬:以三維圖形系統單晶片為例
Heterogeneous QEMU-SystemC Integration for Timed CPU/Cache/MMU/DRAM/Component Simulation: A case study in 3D Graphics SoC
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
82
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2012-08-30
繳交日期
Date of Submission
2012-10-15
關鍵字
Keywords
作業系統模擬器、硬體模擬、三維繪圖晶片、軟硬體共同驗證、效能評估
HW/SW co-verification, QEMU, SystemC, 3D graphic SoC, Performance Estimation
統計
Statistics
本論文已被瀏覽 5696 次,被下載 1678
The thesis/dissertation has been browsed 5696 times, has been downloaded 1678 times.
中文摘要
現今嵌入式系統的軟硬體設計已經太過複雜,軟硬體共同驗證(HW/SW co-verification)變得相當困難,以至於新的設計階層-電子系統層級(ESL)逐漸興起。現今的電子系統層級的驗證已經可以做到整個系統晶片的模擬,包含處理器(Processor)、匯流排(Bus)、記憶體(Memory)等硬體,也可以在此系統上執行簡單的程式,但是因為模擬速度的限制使得比較大型的軟體-如作業系統的驗證很難實現。目前已經有人提出作業系統模擬器與硬體模擬語言的共同模擬平台(QEMU-SystemC),可大幅的加速CPU的模擬速度,但是由於更抽象的CPU行為模擬,所以很難探討整個系統的執行時間與效能。因此本論文提出方法:分別建立CPU、Cache、TLB、SDRAM的Timing Model;把與需要的硬體連接上TLM (Transaction-level modeling)的Bus模組做共同模擬,便可以估算整個系統的執行時間來做效能分析,而且不會導致過大的模擬時間。另外本論文提出了分析程式,可以同時顯示每個程式區塊的執行時間,幫助設計者快速定位軟硬體的效能瓶頸。三維繪圖晶片是本論文的實驗範例,根據本論文提供的效能資訊我們找到了效能的瓶頸。
Abstract
Nowadays the designs of HW/SW are extremely complex. HW/SW co-verification is really difficult, consequently the new design layer, Electronic-System Level (ESL), is proposed to replace the original design flow. Today’s ESL can verify the whole system simulation include the Processor, Bus, Memory… such as the HWs. It also can run a small program on the system. But it is hard to verify the larger program - such as the operation system because the limitations of the simulation speed. Currently some people proposed the QEMU-SystemC virtual platform. It can greatly speed up the CPU simulation speed. But the abstract simulated CPU has no timing information. It is infeasible to explore the system execution time and performance. We proposed the method: CPU, Cache, TLB and SDRAM with timing model; connect the CPU and the designed HW in TLM bus module in the HW/SW co-simulation. We can analyze the performance in the estimated timing information, and it will not take many simulation times. In addition, we developed the analysis program to show the execution time in each program block. It can help designer to locate the performance bottleneck quickly in the complex HW/SW. A case study is the 3D graphic SoC. We find the performance bottleneck in HW/SW design according the performance information purposed by our work.
目次 Table of Contents
Chapter 1. Introduction 1
1.1 Motivation 1
1.2 Background 1
Chapter 2. Related Works 5
2.1 Preliminary Knowledge 5
2.1.1 ESL 5
2.1.2 QEMU 6
2.1.3 SystemC 7
2.1.4 TLM 7
2.1.5 QEMU-SystemC Co-Simulation 7
2.2 Software Performance Analysis 9
2.2.1 Data Analysis Base 9
2.2.2 Simulation Base 9
2.2.3 Physical Platform Base 10
2.3 QEMU timing model 11
Chapter 3. Performance Analysis in QEMU 12
3.1 CPU clock in QEMU 12
3.2 Embedding SystemC in QEMU 13
3.3 CPU Model 16
3.4 Bus model 16
3.5 Cache model 18
3.5.1 Instruction Cache 19
3.5.2 Data Cache 20
3.6 TLB Model 20
3.7 SDRAM Model 22
3.8 Program identification 24
3.9 HW timing model in SystemC 25
3.10 HW clock in SystemC 26
Chapter 4. Analysis Event Trace 27
4.1 Analysis Trace Flow 27
4.2 Analysis Trace Report 29
4.3 Analysis Example 33
Chapter 5. NSYSU 3D Graphic 36
5.1 3D model in OpenGL 36
5.2 3D Rendering Flow 38
5.3 GLSL (OpenGL Shading Language) 41
5.4 NSYSU 3D HW/SW Architecture 42
5.5 NSYSU 3D Execution Flow 43
Chapter 6. Experiment Result 49
6.1 Timing Model Verification 49
6.2 NSYSU 3D Performance Analysis 54
Chapter 7. Conclusion 59
Chapter 8. Future Work 60
References 61
Appendix A. QEMU-SystemC with CoWare 63
參考文獻 References
[1] SystemC - The Language for System-Level Modeling, Design and Verification, http://www.accellera.org/downloads/standards/systemc/about_systemc/
[2] QEMU, http://wiki.qemu.org/Index.html
[3] BusyBox, http://www.busybox.net
[4] TLM, http://www.accellera.org/downloads/standards/systemc/tlm
[5] M. Mont′on, A. Portero, M. Moreno, B. Mart′ınez, and J. Carrabina, “Mixed SW/SystemC SoC emulation framework,” in Proceedings of IEEE International Symposium on Industrial Electronics, June 2007, pp. 2338–2341.
[6] Jing-Wun Lin, Chen-Chieh Wang, Chin-Yao Chang, Chung-Ho Chen, Kuen-Jong Lee, Yuan-Hua, Chu, Jen-Chieh Yeh, and Ying-Chuan Hsiao, “Full System Simulation and Verification Framework,” Information Assurance and Security, 2009, vol. 1, pp. 165 – 168.
[7] Chi-Tsai Yeh, Chun Hao Wang and Ing-Jer Huang, “A VM-based HW/SW codesign platform with multiple teams for the development of 3D graphics application,” Consumer Electronics (ISCE), 2011, pp. 615 – 620.
[8] Synopsys Platform Architect (CoWare), http://www.synopsys.com/Systems/ArchitectureDesign/pages/PlatformArchitect.aspx
[9] Bontempi, G.; Kruijtzer, W., “A Data Analysis Method for Software Performance Prediction,” Design, Automation and Test in Europe Conference and Exhibition, 2002. pp. 971 – 976.
[10] Ueda, K., Sakanushi, K., Takeuchi, Y., Imai, M., “Architecture-level performance estimation method based on system-level,” Computers and Digital Techniques, IEE Proceedings 2005, vol. 152, pp. 12 – 19.
[11] Lajolo, M., Lazarescu, M., Sangiovanni-Vincentelli, “A Compilation-based Software Estimation Scheme for Hardware/Software CO-Simulation,” Hardware/Software Codesign, 1999. (CODES '99) Proceedings of the Seventh International Workshop on, pp. 85 – 89.
[12] Giusto, P., Martin, G., Harcourt, E., “Reliable Estimation of Execution Time of Embedded Software,” Design, Automation and Test in Europe, 2001. Conference and Exhibition 2001, pp. 150 - 155
[13] Susan L. Graham, Peter B. Kessler, Marshall K. McKusick, “gprof: a Call Graph Execution Profiler”. ACM/SIGPLAN Conference on Programming Languages Design and Implementation” ACM SIGPLAN, 2003
[14] Frank Ch. Eigler, “Problem Solving With Systemtap”, Ottawa Linux Symposium, 2005
[15] V Prasad, W Cohen, FC Eigler, M Hunt, “Locating System Problems Using Dynamic Instrumentation”, Linux Symposium, 2005
[16] Yi-Hao Chang, “A Performance Monitoring Tool Suite for Software and SoC on-chip Bus: Using 3D Graphics SoC as an example,” Department of Computer Science & Engineering National Sun Yat-Sen University Master Thesis, 2011
[17] Tse-Chen Yeh and Ming-Chao Chiang, “Bus performance exploration at CCA and CA levels on QEMU and SystemC-based virtual platform,” SoC Design Conference (ISOCC), 2010, pp. 376 – 379.
[18] Wen-Chang Hsu, Shih-Hao Hung and Chia-Heng Tu, “A Virtual Timing Device for Program Performance Analysis,” Computer and Information Technology (CIT), 2010, pp. 2255 – 2260
[19] ARM7TDMI Technical Manual, http://infocenter.arm.com/help/topic/com.arm.doc.ddi0210c/DDI0210B.pdf
[20] Ming-Chao Chiang, Tse-Chen Yeh and Guo-Fu Tseng, “A QEMU and SystemC-Based Cycle-Accurate ISS for Performance Estimation on SoC Development,” Computer-Aided Design of Integrated Circuits and Systems, 2011, vol. 30, no. 4, pp. 593 – 606.
[21] David A. Patterson and John L. Hennessy, “Computer Organization and Design: The Hardware/Software Interface”, ISBN 1558606041
[22] Alessandro Cimatti,Marco Bernardo, “Formal Methods for Hardware Verification”, 6th International School on Formal Methods for the Design of Computer, Communication, and Software Systems, SFM 2006, Bertinoro, Italy, May 22-27, 2006
[23] Hung-Yu Chen, “Memory Allocation of 3D Graphics Data for a 3D Hardware Accelerator,” Department of Computer Science & Engineering National Sun Yat-Sen University Master Thesis, 2008
[24] MiBench, http://www.eecs.umich.edu/mibench
[25] David Thach, Yutaka Tamiya, Shin’ya Kuwamura and Atsushi Ike, “Fast cycle estimation methodology for instruction-level emulator,” Design, Automation & Test in Europe Conference & Exhibition (DATE), 2012
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:自定論文開放時間 user define
開放時間 Available:
校內 Campus: 已公開 available
校外 Off-campus: 已公開 available


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

QR Code