陳少傑臺灣大學:電機工程學研究所劉志昀Liu, Chih-YunChih-YunLiu2007-11-262018-07-062007-11-262018-07-062006http://ntur.lib.ntu.edu.tw//handle/246246/53141此論文提出一個針對嵌入式系統應用層的軟體模擬系統。此模擬系統是使用目前最流行於電子系統級(ESL)的硬體模型建構語言SystemC來設計。 本文中我們設計的軟體模擬系統提供一個泛用的作業系統模型。這模型支援一般嵌入式即時系統常用的各種元件如執行緒(Thread),中斷處理常式(ISR) , 號誌(Semaphore),事件旗號(Event)和訊息序列(Message)。 整個系統採用物件導向技術來設計,使用者可以很容易加以擴張其功能。 使用者可以很容易利用此系統的應用程式介面來建立自己想要模擬的軟體系統。另外這系統可以很容易的與SystemC建構的硬體模型來連結。透過軟硬體模型的共同模擬,很容易透過觀察整個系統的內部行為來對系統進行驗證分析。In this Thesis, we propose the design of a Real-Time Operating System (RTOS) centric simulator for embedded systems. This design is based on the SystemC language, which is the most popular system and hardware modeling language used in the Electronic System Level (ESL) design. This methodology facilitates integrating our simulator with other SystemC-based hardware models. The proposed simulator provides an abstract layer of generic RTOS model, which supports functions such as threads, ISR (Interrupt Service Routine), semaphores, event flags, and message queues. The whole design is implemented using an object-oriented design methodology such that users can extend the functions of this simulator in an easy way. The application layer of software can be integrated with this simulator using the supported general RTOS service APIs. The embedded system developers can easily build a simulation model containing software and hardware components. The behavior of software can be investigated and verified from the co-simulation of hardware and software.ABSTRACT i LIST OF FIGURES v LIST OF TABLES vii 1. INTRODUCTION 1 1.1 Motivation 1 1.2 Contribution 2 1.3 Thesis Organization 3 2. RELATED WORK 5 2.1 SystemC Introduction 5 2.1.1 SystemC Language Features 5 2.1.2 SystemC Simulation Kernel 7 2.1.3 Problem for Software Simulation in SystemC 7 2.2 Software Simulation 8 2.2.1 ISS Based Simulation 8 2.2.2 Native Simulation 9 2.2.3 RTOS Based Simulation 10 2.3 Summary 12 2.3.1 Issues in Previous Work 12 2.3.2 Direction of our Work 13 3. GOS: AN RTOS CENTRIC SIMULATOR 15 3.1 Design Specification of the Simulator 15 3.2 Simulation Model 17 3.2.1 Thread Modeling 17 3.2.2 Modeling of Preemption and Synchronization 19 3.3 Architecture of the GOS Simulator 21 3.4 Design of the GOS Simulator 23 3.4.1 The Base Class of GOS Objects 24 3.4.2 Task and ISR 25 3.4.3 Synchronization and IPC Components 28 3.4.4 GOS Kernel Design 30 3.4.5 Resource Management and Bus Functional Model 35 3.5 Simulation API 36 3.5.1 Implementation of GOS Service API 37 3.5.2 Timing Annotation 38 3.6 Debugging and Signal Tracing 39 4. EVALUATION OF THE GOS SIMULATOR 43 4.1 Implementation of GOS Applications 43 4.2 Functional Verification 44 4.3 Design Example 46 5. CONCLUSION 49 REFERENCE 511349274 bytesapplication/pdfen-US嵌入式模擬器作業系統Embedded SystemSystemCSimulator以SystemC為基礎的嵌入式作業系統模擬器An RTOS-Centric Simulator in SystemC for Embedded Systemthesishttp://ntur.lib.ntu.edu.tw/bitstream/246246/53141/1/ntu-95-P93921002-1.pdf