作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2000, Vol. 26 ›› Issue (12): 28-30.

• 论文 • 上一篇    下一篇

利用YAY最终解决VHDL中歧义文法问题的方案

曹炜,周一新,林争辉   

  1. 上海交通大学大规模集成电路研究所 上海 200030,上海交通大学大规模集成电路研究所 上海 200030,上海交通大学大规模集成电路研究所 上海 200030
  • 发布日期:2000-12-25

Solution to Ambiguities Elimination of VHDL by YAY

CAO Wei, ZHOU Yixin, LIN Zhenghui   

  1. (LSI Research Institute , Shanghai Jiaotong University,Shanghai 200030)
  • Published:2000-12-25

摘要: 提出了一种使用新的编译器产生工具YAY来编写VHDL语法分析器的方法,实践证明,用这种方法设计的语法分析器完全解决了VHDL中歧义文法的问题而且其对应的代码效率较高,可读性较好。

关键词: VHDL语言, 语法分析器, YAY, 歧义文法

Abstract: A synthesis system based on VHDL usually consists of parser, optimizer and inferencer. The parsers of some existing VHDL synthesis systems are commonly generated by YACC. However, VHDL definitions have many ambiguities, the codes of grammar description of VHDL with YACC are low efficient because many measures must be adopted to avoid conflicts in parsing. In this paper, a new technique to generate a VHDL parser by YAY, another kind of compiler generator, is introduced. When using YAY, programmers can solve the problem of ambiguity elimination easily.

中图分类号: