首页 | 官方网站   微博 | 高级检索  
     

Petri网到VHDL的翻译器设计与实现
引用本文:陆继远,景亮.Petri网到VHDL的翻译器设计与实现[J].计算机测量与控制,2011,19(9).
作者姓名:陆继远  景亮
作者单位:江苏大学电气信息工程学院,江苏镇江,212013
摘    要:研究了如何用CONPAR语言对Petri网图形进行描述,来获得Petri网模型对应的等效文本文件;然后设计了由Petri网文本文件到VHDL转换的文法规则及对应的语义动作源文件,并由编译工具YACC自动生成Petri网到VHDL转换的语法分析器;语法分析生成的中间代码是一棵抽象语法树,可以自顶向下遍历此抽象语法树,并按照相应的语义规则,通过比较Petri网文本描述和VHDL代码的差别生成VHDL目标代码;由此实现了Petri网到VHDL的翻译器,为基于Petri网的并行控制器的自动硬件实现提供了一种快速有效的方法。

关 键 词:Petri网  条件/事件系统  语法分析  翻译器  硬件描述语言  抽象语法树  

Design and Implementation of Petri Net to VHDL Translator
Lu Jiyuan,Jing Liang.Design and Implementation of Petri Net to VHDL Translator[J].Computer Measurement & Control,2011,19(9).
Authors:Lu Jiyuan  Jing Liang
Affiliation:Lu Jiyuan,Jing Liang(College of Electrical and Information Engineering,Jiangsu University,Zhenjiang 212013,China)
Abstract:The authors study how to describe Petri Net graphics in CONPAR language to get the equivalent textual file of Petri Net model.Then we design the grammar rule and its corresponding semantic action source file of Petri Net textual file to VHDL conversion.The syntactic analyzer of Petri Net to VHDL conversion is generated by compiler tool YACC automatically.The middle codes which generated by syntactic analysis are an Abstract syntax tree.We can traverse the Abstract syntax tree top-down.According to the corre...
Keywords:
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号