Research on Fpga-based Hardware Mutex Technology of Real-Time Operating System
- Author
- WangGuangHui
- Advisor
- CaiMing
- School
- Zhejiang University
- Major
- Applied Computer Technology
- Classification
- TP316.2 Real-time operating system
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 4
- Citations
- 0
Abstract
With the popularity of applications on embedded systems, it has become inevitable of choosing real-time operating system (RTOS) as the infrastructure software platform. However, due to the strong real-time constraints, RTOS can not provide comprehensive safety protection in high-complexity operations such as resources competition etc. With the embedded systems being more networked, parallelized and intelligent, traditional way of reliability guarantee which relies on the application itself has become insufficient.Using synergy of hardware and software, RTOS functional modules can be remo-deled and realized in hardware, which is an effective way to guarantee real-time con-straints as well as reliability of RTOS. Thus, part RTOS implementation in hardware has become a hotspot of RTOS research.Based on the analysis of mutex module security defects in several existing RTOS, in this paper, we took FPGA as the hardware platform and did research on several key technologies in hardware mutex implementation.Then we designed and implemented a prototype system called HM-RTOS, which highly improved the reliability of the RTOS resources competition in complex scenarios.The main research work and contribution of this paper are as follows:Firstly, based on the experiment of VxWorks5.4, Rtems4.10.0, μC/OS-Ⅱ2.86, μC/OS-111, ThreadX3.0and RT-Thread0.3.0, we verified and analized defects in these implementations of priority inheritance protocol.Secondly, aiming to improving the reliability of mutex function module in RTOS, we carried out research on several key technologies in the hardware implementation of mutex module, including:the priority inheritance tree model, hardware and software interconnection morphology, hardware mutex structure design etc.Finally, we designed and implemented a prototype system named HM-RTOS which contains FPGA-based MutexMU. Its effectiveness had been verified in functional and performance tests.
Table of contents
Summary 4-5
Abstract 5-6
directory 6-9
LIST 9-10
Table directory 10-11
Chapter 1 Introduction 11-19
1.1 background and Significance 11-12
1.2 research status 12-17
1.2.1 study abroad ; 1.2.2 domestic research nbsp 12-14
14-15
1.2.3 classification and analysis main contents of 15-17
1.3 article organizational structure 17
1.4 article 17-18
1.5 Summary 18-19
Chapter 2 describes related work 19-35
2.1 RTOS to achieve mutually exclusive 19
2.2 priority inversion Profile 19-21
2.3 to avoid priority inversion common agreement 21-24
2.3.1 priority inheritance protocol 21-22
2.3.2 priority ceiling protocol 22-23
2.3.3 stack resource protocol 23-24
2.4 common RTOS avoid priority inversion method 24-30
2.4.1 VxWorks 24-27
2.4.2 Rtems 27-28
2.4.3 μC / OS 28-29
2.4.4 ThreadX 29-30
2.4.5 RT-Thread 30
2.4.6 summarizes 30
2.5 priority inheritance protocol improved method 30-34
2.5.1 priority inheritance chain 30-31
2.5.2 preemption threshold based on the priority inheritance protocol 31-33
2.5. 3 down tasks based on priority resource chain 33
2.5.4 mutex priority-based queue management fall 33-34
2.5.5 comparison and analysis of improvement 34
2.6 Summary 34-35
Chapter 3 mutex module hardware structure design 35-51
3.1 HM-RTOS software hardware collaborative process 35-39
3.1.1 hardware unit call flow 35-37
3.1.2 TAKE operation processing 37-38
3.1.3 GIVE operation processing 38-39
3.2 hardware interconnect structure 39-42
3.2.1 dedicated register -based interconnects 40 <br / > 3.2.2 interconnect bus-based 40-41
3.2.3 based on shared memory interconnect 41-42
3.2.4 hardware interconnection scheme selection 42
3.3 HM-RTOS mutex hardware structure 42-50
3.3.1 design of Framework 42-45
3.3.2 API module 45-47
3.3.3 MCB module structure 47-49
3.3.4 PTU module structure 49-50
3.4 Summary 50-51
Chapter 4 priority inheritance tree model and hardware algorithm 51-60
4.1 priority inheritance tree model 51-55
4.1 .1 basic nature and inferences 51-53
4.1.2 priority inheritance chain analysis of algorithms 53-54
4.1.3 dynamic priority task synchronization timing optimization 54-55
4.1.4 deadlock Detection 55
4.2 priority inheritance protocol hardware algorithm 55-59
4.2.1 MCBCell unit 55-56
4.2.2 priority inheritance chain hardware algorithm 56-58
4.2.3 hardware fell priority selection algorithm 58-59
4.3 Summary 59-60
Chapter 5 System with experimental results 60-72
5.1 HM-RTOS overall architecture 60-61
5.2 development tools and hardware environment introduces 61-62
5.3 functional simulation and experimental results 62-64
5.3.1 functional Test 62-63 <br / > 5.3.2 mutex application 63
5.3.3 release mutex 63-64
5.4 performance test scenarios designed 64-65 <br / > 5.4.1 testing purposes 64
5.4.2 test content 64-65
5.4.3 test Method 65
5.4.4 preparations 65
5.5 performance Test Results 65-67
5.5.1 simple scenario performance test results 66
5.5.2 performance Test Results nbsp complex scenes ; 66-67
5.6 Comparative Analysis of test results 67-71
5.6.1 simple scenario test comparison 67-70
5.6.2 testing of complex scenes contrast 70-71
5.7 summary 71-72
Chapter 6 summary and Outlook 72-74
6.1 summary 72-73
6.2 job Outlook 73-74
References 74-77
Thanks 77
Related dissertations
- RFRTOS - based on the Linux QoS of real - time operating system
- Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
- Digital Electrical Impedance Tomography Hardware System Design Based on FPGA
- Study on Magnetic Flux Leakage Testing System of Rail Based on FPGA
- Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus
- Research of Dual Chanel High Speed Data Acquisition Card
- Design and Implementation of FPGA-Based Six-Channel Non-Crosstalk Sonar System
- The Realization of Quality Detection System of Cataplasm Coating Based on FPGA
- Design of Remote Strain Measurement System Based on FGPA
- The Design of Digital Ultrasonic Nondestructive Testing System
- Design and Implementation of High Speed Data Recorder Based on FPGA
- Design of the High-speed Data Acquisition System Based on USB Interface
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Design and Application of Linear Array Image Acquisition System Based on Compressed Sensing
- The Design and Research of PCI Data Acquisition Card Based on FPGA
- Usb Without Invasive Data Collection Technology Research
- Research on On-line Diameter Measurement System Based on FPGA
- Design of High Speed Data Acqusition and Storage System Based on FPGA