节点文献

基于媒体处理器的实时操作系统设计研究

【作者】 王锦

【导师】 姚庆栋; 刘鹏;

【作者基本信息】 浙江大学 , 通信与信息系统, 2004, 硕士

【摘要】 作为当今一个应用的热点,多媒体应用强劲的推动着芯片业的发展,有强大处理能力的可编程媒体信号处理器芯片发挥着越来越重要的作用。由于实时操作系统不仅能提高媒体处理器芯片的性能和可靠性,而且能在芯片验证时发挥作用,因此它日益成为芯片系统中不可分割的一部分。本文以可编程媒体信号处理器MediaDSP3200(简称MD32)为处理器原型,设计并实现了一个基于媒体信号处理器的实时操作系统Iota。 设计的实时操作系统内核,包括任务管理、任务间通信、存储管理、时钟管理和异常处理系统调用等部分。实时内核支持16个任务,它采用抢占调度机制来提高实时性能;任务间同步使用信号量来实现;实时内核采用了互斥信号量避免优先级反转;实时内核采用了分页不交换的虚拟存储机制,实现了一种简单的存储保护和共享机制;存储管理静态管理任务的存储空间,同时给任务提供了动态内存管理的服务函数;存储共享实现了进程间的零开销通信;时钟管理给任务提供了定时功能,并可以设置和读取系统时间;异常处理的实现提高了系统错误处理能力;系统调用给应用进入内核调用服务提供了接口。 实时操作系统Iota设计了文件系统,它把设备当作文件进行管理和操作,屏蔽了硬件特性,易于多平台移植和验证。媒体处理的数据流很大,为了提高平台验证时下载速度,Iota设计了网络协议栈,来提高数据传输速度,从而缩短验证时间。 作者同时实现了一种基于RTOS软硬件仿真验证平台。RTOS和软件不仅可以在这个仿真验证平台调试验证,而且可以验证硬件的正确性。RTOS通过修改硬件抽象层,把文件输出重定向到新的显示终端,就实现了异构平台上的仿真。基于RTOS的软硬件仿真验证平台,减少仿真验证的工作量,加快了软件开发的进程。

【Abstract】 As an application hotspot, multimedia application also greatly improves the development of IC industry. With the powerful processing ability, programmable media signal processor has been more and more important in the application. The real time operating system (RTOS) can not only improve the performance and reliability of the media processor SOC, but also simplify the development and debugging of media processor SOC. There is a growing consensus that RTOS has become an indispensable part of SOC. We designed and realized a real-time operating system, named Iota, for media processor. MediaDSP3200 (MD32) is the prototype media processor.The real-time microkernel we designed includes the following parts: task management, synchronization and communication, memory management, time management, interrupt handling and system call. The real-time microkernel supports 16 tasks. The preemptive scheduling mechanism is adopted for the real-time tasks. Iota utilizes semaphore to synchronize the access of shared resource and execution order of processes. Mutex exclusion semaphore is implemented for avoiding the priority inversion. According to the characteristics of processor MMU, a simple memory protection and sharing mechanical is designed. Iota also supplies a dynamic memory management mechanism to meet dynamic memory allocation need for some programs. Time management offers time function for tasks, and the system can read and set the time. Interrupt handling is implemented for the system to find and repair system or user program errors. System call is implemented for tasks to enter kernel space and execute system service.A simple file management is completed in Iota. A device can be operated and managed as a file. Because of the existence of file management, Iota can ignore the characteristics of the hardware platform and regard the hardware devices as the files, so it can be easy to be migrated for the other hardware platform. Because the data of media processing is large, a simple network protocol is also implemented to speedup the data transmission between the host machine to the target platform when we simulate the media processing program.We present a methodology for software/hardware co-verification based on RTOS according to the characteristic of our media processor chip. A co-verification platform based on RTOS is the basic and vital elements in this methodology and could be migrated easily. In the phase of chip designing, we establish a software verification platform whose hardware is close to our chip. We verify the correctness of software in this co-verification platform, then use this correct software to verify the correctness of chip in the hardware verification platform. Adopting this methodology, it could not only verify the correctness of the chip and reduce the possibility of the errors in the chip, but also shorten the co-verification time.

  • 【网络出版投稿人】 浙江大学
  • 【网络出版年期】2004年 03期
  • 【分类号】TP316
  • 【下载频次】124
节点文献中: 

本文链接的文献网络图示:

本文的引文网络