APP下载

FPGA软件开发过程中编码规范的作用

2016-05-19骆传慧

电脑知识与技术 2016年7期

骆传慧

摘要:硬件描述语言使FPGA(现场可编程门阵列)芯片开发具备软件特征,编码规范是软件质量的保证,能有效地提高软件开发效率。从命名、排版格式、语句完整性、注释、代码结构、代码优化则等几个方面介绍了FPGA软件编码规范内容,从提高工作效率、提高测试性、提高重用性、降低维护成本角度总结了开发过程中FPGA软件编码规范作用。

关键词:FPGA;软件开发;编码规范;硬件描述语言

中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2016)06-0070-02

The FPGA Coding Standards in the Process of Software Development

LUO Chuan-hui1,2,3

(1.No. 38 Research Institute, China Electronic Technology Group Corporation, Hefei 230088, China;2.Key Laboratory of Aperture Array and Space Application, Hefei 230088, China;3.Key Laboratory of Intelligent Information Processing, Hefei 230088, China)

Abstract:Hardware description language to make the FPGA (field programmable gate array) chip development with characteristics software, coding standards is software quality assurance, can effectively improve the efficiency of software development. From naming, typesetting format, statement integrity, annotation, the structure of the code, code optimization are introduced several aspects, such as the FPGA software coding standard content, improve the work efficiency, improve the testability, improve the reusability, lower maintenance cost Angle the FPGA software coding standard role in the development process are summarized.

Key words: FPGA; software development; coding standards; hardware description language

1 背景

FPGA (现场可编程门阵列)芯片的出现,大大压缩了电子产品研发的周期和成本,它所具有的高密度、低功耗、高速、高可靠性等优点,使其在航空、航天、通信、工业控制等方面得到了广泛的应用。随着芯片规模加大,承担任务的加重,开发周期缩短,如何高效、高质量开展设计,成为FPGA芯片开发工作的重点。FPGA芯片的多样化要求代码具有超强的可移植能力。

硬件描述语言是当前FPGA芯片开发过程中使用的最主要输入方式,通过行为描述实现逻辑电路和系统的设计,使FPGA芯片开发具有了软件设计的特征。为了实现FPGA设计需求,软件开发单位需要制定相应的编码规范,对程序员的编程行为进行约束,包括命名规则、排版格式、注释、代码结构、代码优化等编码过程中需要注意的编程细节。

FPGA编码规范是行业中约定俗成的,是长期经验的总结和集体智慧的结晶,能够指导设计工程师正确编写代码,提高代码的整洁度,便于跟踪、分析、调试,便于整理文档,便于交流合作。……

登录APP查看全文