计算机工程与应用 ›› 2010, Vol. 46 ›› Issue (30): 71-74.DOI: 10.3778/j.issn.1002-8331.2010.30.021

• 研发、设计、测试 • 上一篇    下一篇

将C算法转换为Verilog实现的一种方法

贺敬凯,王瑞春,万学元,潘晓宁,郑芙蓉,李晓堂   

  1. 深圳信息职业技术学院 电子通信技术系,广东 深圳 518029
  • 收稿日期:2010-03-23 修回日期:2010-05-17 出版日期:2010-10-21 发布日期:2010-10-21
  • 通讯作者: 贺敬凯

One method of transforming C arithmetic to Verilog implementation

HE Jing-kai,WANG Rui-chun,WAN Xue-yuan,PAN Xiao-ning,ZHENG Fu-rong,LI Xiao-tang   

  1. Department of Electronics and Communications Technology,Shenzhen Institute of Information Technology,Shenzhen,Guangdong 518029,China
  • Received:2010-03-23 Revised:2010-05-17 Online:2010-10-21 Published:2010-10-21
  • Contact: HE Jing-kai

摘要: 硬件设计借鉴软件设计的经验意义重大。首先简要介绍了状态机理论,并给出了用硬件来实现程序算法的步骤以及状态图的化简原则,然后列举了一个求最大公因数的例子来详细阐述这种方法以及实现步骤。给出的方法,通用性强,方便借鉴成熟的软件设计技术,可以大大提升数字系统的设计效率。

关键词: 有限状态机, C算法, 电子设计自动化, 硬件描述语言

Abstract: Hardware design can use the technology of software design,its significance is great.In this article,firstly,the state machine theory is simply introduced,the steps of implementing arithmetic using hardware and the principle of simplifying the state chart are given,then one example of GCD is used for explaining this transition method and the steps.The method in this article has strong performance for general use,conveniently using the mature software design technology,and can advance the efficiency of digital system design greatly.

Key words: finite state machine, C based arithmetic, Electronic Design Automation(EDA), Hardware Description Language(HDL)

中图分类号: