摘要
提出了一种基于组件技术的计算机组成原理虚拟实验室(PCOVL)的设计模型和实现方法。该系统采用Java语言实现,具有良好的平台无关性。以Java Bean组件技术开发元器件,并利用Java反射技术实现了系统动态调整组件属性和行为的功能;结合数据驱动原理,多线程技术的wait、notify机制,以及锁的同步控制技术,提出一种基于数据驱动的触发式调度机制,有效的解决了具有复杂关系的组件之间的数据传递和调度运行的问题。PCOVL实现了可视化的定制实验流程、运行期间随机改变组件状态、以及实验结果的动态实时显示等功能,为开发计算机硬件类课程虚拟实验室提供了有力的技术支持和理论基础。
A design model and implementing method of PCOVL (Principles of Computer Organization virtual lab) was proposed based on component techniques ,This system was implemented with Java language, which could make the virtual lab system be independent of operating system. In the PCOVL, chip instruments were developed with JavaBean component techniques, and the attribution and behavior of component could be adjusted dynamically by using Java Reflection. A trigger- dispatching mechanism based on data-driven was presented to effectively solve problems of data transfer and component-dispatch between components with complex relationship, which was implemented by data-driven principle, wait-notify of Java multithreading schemes, and the Lock technique to control multithreading's synchronization. In the PCOVL, functions of designing process of experiment visually, changing the status of component randomly at run time, displaying results of experiment dynamic and real-time were realized. PCOVL provides powerful tech support and theory foundation for developing virtual lab of computer hardware courses.
出处
《系统仿真学报》
EI
CAS
CSCD
北大核心
2008年第9期2469-2474,共6页
Journal of System Simulation
基金
国家自然科学基金(60673164)
湖南省杰出青年基金(06JJ10009)
新世纪优秀人才支持计划(NCET-05-0683)
长江学者和创新团队发展计划(IRT0661)