VHDL-Eval: A Framework for Evaluating Large Language Models in VHDL Code Generation

被引:0
|
作者
Vijayaraghavan, Prashanth [1 ]
Shi, Luyao [1 ]
Ambrogio, Stefano [1 ]
Mackin, Charles [1 ]
Nitsure, Apoorva [1 ]
Beymer, David [1 ]
Degan, Ehsan [1 ]
机构
[1] IBM Res, San Jose, CA 95120 USA
关键词
LLMs; large language models; VHDL Code generation; VHDL Evaluation; hardware design automation; Hardware Description Languages; HDL; PEFT; ICL;
D O I
10.1109/LAD62341.2024.10691836
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
With the unprecedented advancements in Large Language Models (LLMs), their application domains have expanded to include code generation tasks across various programming languages. While significant progress has been made in enhancing LLMs for popular programming languages, there exists a notable gap in comprehensive evaluation frameworks tailored for Hardware Description Languages (HDLs), particularly VHDL. This paper addresses this gap by introducing a comprehensive evaluation framework designed specifically for assessing LLM performance in VHDL code generation task. We construct a dataset for evaluating LLMs on VHDL code generation task. This dataset is constructed by translating a collection of Verilog evaluation problems to VHDL and aggregating publicly available VHDL problems, resulting in a total of 202 problems. To assess the functional correctness of the generated VHDL code, we utilize a curated set of self-verifying testbenches specifically designed for those aggregated VHDL problem set. We conduct an initial evaluation of different LLMs and their variants, including zero-shot code generation, in-context learning (ICL), and Parameter-efficient fine-tuning (P EFT) methods. Our findings underscore the considerable challenges faced by existing LLMs in VHDL code generation, revealing significant scope for improvement. This study emphasizes the necessity of supervised fine-tuning code generation models specifically for VHDL, offering potential benefits to V HDL designers seeking efficient code generation solutions.
引用
收藏
页数:6
相关论文
共 50 条
  • [1] Framework for evaluating code generation ability of large language models
    Yeo, Sangyeop
    Ma, Yu-Seung
    Kim, Sang Cheol
    Jun, Hyungkook
    Kim, Taeho
    ETRI JOURNAL, 2024, 46 (01) : 106 - 117
  • [2] Framework for executing VHDL code on FPGA
    Robinson, P
    Lee, TC
    Henne, E
    PDPTA '04: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, VOLS 1-3, 2004, : 1296 - 1299
  • [3] A Comprehensive Framework for Evaluating API-oriented Code Generation in Large Language Models
    Wu, Yixi
    He, Pengfei
    Wang, Zehao
    Wang, Shaowei
    Tian, Yuan
    Chen, Tse-Hsun
    arXiv,
  • [4] vMAGIC-Automatic Code Generation for VHDL
    Pohl, Christopher
    Paiz, Carlos
    Porrmann, Mario
    INTERNATIONAL JOURNAL OF RECONFIGURABLE COMPUTING, 2009, 2009
  • [5] Automatic generation of VHDL code for a railway interlocking system
    Menendez, Martin N.
    Germino, Santiago
    Larosa, Facundo S.
    Lutenberg, Ariel
    INTERNATIONAL JOURNAL OF EMBEDDED SYSTEMS, 2021, 14 (06) : 544 - 552
  • [6] Relational algebraic framework for VHDL models management
    Korea Maritime Univ, Pusan, Korea, Republic of
    Trans Soc Comput Simul, 2 (43-55):
  • [7] A relational algebraic framework for VHDL models management
    Park, HC
    Kim, TG
    TRANSACTIONS OF THE SOCIETY FOR COMPUTER SIMULATION INTERNATIONAL, 1998, 15 (02): : 43 - 55
  • [8] Implicit test generation for behavioral VHDL models
    Ferrandi, F
    Fummi, F
    Sciuto, D
    INTERNATIONAL TEST CONFERENCE 1998, PROCEEDINGS, 1998, : 587 - 596
  • [9] High level testbench generation for VHDL models
    Deniziak, S
    Sapiecha, K
    ECBS '99, IEEE CONFERENCE AND WORKSHOP ON ENGINEERING OF COMPUTER-BASED SYSTEMS, PROCEEDINGS, 1999, : 146 - 151
  • [10] FSM Based Functional Test Generation Framework for VHDL
    Jusas, Vacius
    Neverdauskas, Tomas
    INFORMATION AND SOFTWARE TECHNOLOGIES, 2012, 319 : 138 - 148