摘要
C语言是系统设计中一种主要的系统描述语言,在系统级软硬件协同验证及随后的软硬件划分、接口综合和行为综合等中都需要把C语言的系统描述转化为控制数据流图。本文介绍了一种层次化控制数据流图 HCDFG II模型,以及从C语言生成该模型的方法。HCDFG II的层次化模型分为函数/进程级、语句级和操作级,根据需要可以生成不同级别的模型。本文讨论了C语言中各种控制结构及数组、指针、联合和结构等复杂数据类型生成HCDFG II的方法。
C is the main language for the system description in system design. In the software/hardware co-verification at the system level and the following software/hardware partition, interface integration and behavior integration, it is necessary to convert the C language to control/data flow graph. In this paper, the model for control/data flow graph and the method to generate this model from C are proposed. There are three levels in this hierarchical model for HCDFG-II: function/process level, statement level and operation level, corresponding to different level models based on different requirements. The method to generate HCDFG-II is also discussed for the various control structures and array, pointer, unite, structure and so on.
出处
《计算机工程与科学》
CSCD
2005年第4期80-83,共4页
Computer Engineering & Science
基金
国家973重点基础研究发展规划(G1998030403)
国家自然科学基金资助项目(90207017)
国家 863 计划资助项目(2003AA115110)