ハードウェア記述言語におけるコードクローンの調査

恭平 上村 · Institutional Repositories DataBase (IRDB) · 2016

The purpose of this study is to investigate existence of code clone and affectabillity to its quality for Hardware Description Language (HDL).Code clone is a set of duplicated code fragments in the source code.It is considered that the source code containing code clones has a negative impact on its quality.Because HDL is similar to programming languages, code clones in HDL code may cause bugs.This thesis proposes a code clone detection technique for Verilog HDL, which is one of the most commonly used HDLs.Basic idea of the technique is converting Verilog HDL codes to Pseudo-C++ codes so that CCFinderX can accept and parse them.In addition, the author conducted a case study to investigate the characteristics of the code clones in three open source hardware projects.As a result, 364 clone sets are detected from 19 kLoC Verilog HDL code.The author confirmed 74% of detected clones contained if-statement.This results suggest that code clones in Verilog HDL code may affect the efficiency of circuit developments adversely.The possibility of application of software development support techniques for hardware developments was also investigated and the result shows that those techniques may work to a certain extent for the hardware developments.

Cited by 0 works. Open-access PDF

Authors