物理进程具有内在的并发及实时特性,因此发展信息—物理融合系统(CPS)需要计算进程能表达这类特性.而传统的计算模式为了方便用户逻辑描述,随着抽象程度的提高逐步丢弃了对时间特性的精确描述.在嵌入式Java处理器JPOR-32基础上面向CPS应用增加了时钟寄存器和时钟计数器,并根据程序员对时间特性的需求,结合异常机制扩展了四条时间指令,使得用户可根据不同需求对时间进行精确控制.最后通过采用时间指令后图像处理程序在该CPS处理器上的运行结果验证了该时间控制机制的可行性、正确性及精确性.%The physical processes is inherently concurrent and real-time, so to express these characteristics is required when developing Cyber-Physical Systems (CPS). While the traditional computing model for the convenience of the user logic description, along with the abstract degree rise, description on the time characteristic was gradually discarded. On the basis of the embedded Java processor JPOR-32, a clock register and a clock counter were added for the CPS applications in this paper, and combined with the exception mechanisms, four time instructions were extended to face different requirements of the temporal characteristics, which enabled the user to control the time accurately according to different demands. Finally, the feasibility, validity and accuracy of this time control mechanism have been verified by analyzing the running results of the image processing program that uses time instructions in the CPS.
展开▼