This paper presents RTLFixer, a novel framework enabling automatic syntax errors fixing for Verilog code with Large Language Models (LLMs). Despite LLM's promising capabilities, our analysis indicates that approximately 55% of errors in LLM-generated Verilog are syntax-related, leading to compilation failures. To tackle this issue, we introduce a novel debugging framework that employs Retrieval-Augmented Generation (RAG) and ReAct prompting, enabling LLMs to act as autonomous agents in interactively debugging the code with feedback. This framework demonstrates exceptional proficiency in resolving syntax errors, successfully correcting about 98.5% of compilation errors in our debugging dataset, comprising 212 erroneous implementations derived from the VerilogEval benchmark. Our method leads to 32.3% and 10.1% increase in pass@1 success rates in the VerilogEval-Machine and VerilogEval-Human benchmarks, respectively.
School of Technology Management and Engineering, NMIMS(NMIMS技术管理与工程学院);Indian Institute of Technology, Roorkee(鲁尔基印度理工学院);Birla Institute of Technology and Science, Pilani (BITS Pilani)(皮拉尼贝拉理工学院(BITS Pilani))
ChiseLLM: Unleashing the Power of Reasoning LLMs for Chisel Agile Hardware Development
Computer Department National University of Defense Technology(国防科技大学计算机系);School of Computer & Communication Engineering University of Science and Technology Beijing(北京科技大学计算机与通信工程学院);Intelligent Microelectronics Center Qiyuan Lab(智能微电子中心启元实验室);College of Computer Science and Technology National University of Defense Technology(国防科技大学计算机科学与技术学院);Defense Innovation Institute Academy of Military Science(军事科学创新院)
QiMeng-SALV: Signal-Aware Learning for Verilog Code Generation
State Key Lab of Processors, Institute of Computing Technology, CAS(处理器国家重点实验室,计算技术研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学);University of Science and Technology of China(中国科学技术大学)