Automated C/C++ Program Repair for High-Level Synthesis via Large Language Models
Not on the map. Why?
Abstract (arXiv)
In High-Level Synthesis (HLS), converting a regular C/C++ program into its HLS-compatible counterpart (HLS-C) still requires tremendous manual effort. Various program scripts have been introduced to automate this process. But the resulting codes usually contain many issues that should be manually repaired by developers. Since Large Language Models (LLMs) have the ability to automate code generation, they can also be used for automated program repair in HLS. However, due to the limited training of LLMs considering hardware and software simultaneously, hallucinations may occur during program repair using LLMs, leading to compilation failures. Besides, using LLMs for iterative repair also incurs a high cost. To address these challenges, we propose an LLM-driven program repair framework that takes regular C/C++ code as input and automatically generates its corresponding HLS-C code for synthesis while minimizing human repair effort. To mitigate the hallucinations in LLMs and enhance the prompt quality, a Retrieval-Augmented Generation (RAG) paradigm is introduced to guide the LLMs toward correct repair. In addition, we use LLMs to create a static bit width optimization program to identify the optimized bit widths for variables. Moreover, LLM-driven HLS optimization strategies are introduced to add/tune pragmas in HLS-C programs for circuit optimization. Experimental results demonstrate that the proposed LLM-driven automated framework can achieve much higher repair pass rates in 24 real-world applications compared with the traditional scripts and the direct application of LLMs for program repair.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Jul 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 1; 2025: 8; 2026: 9.
18 papers.
Sort:
By area:
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agentscited by 25
- 2025VeriMoA: A Mixture-of-Agents Framework for Spec-to-HDL Generationcited by 15
- 2025Can Reasoning Models Reason about Hardware? An Agentic HLS Perspectivecited by 9
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuningcited by 8
- 2025LLM-DSE: Searching Accelerator Parameters with LLM Agentscited by 7
- 2025iDSE: Navigating Design Space Exploration in High-Level Synthesis Using LLMscited by 6
- 2025Large Language Models (LLMs) for Electronic Design Automation (EDA)cited by 3
- 2026CktEvo: Repository-Level RTL Code Benchmark for Design Evolutioncited by 3
- 2026Bench4HLS: End-to-End Evaluation of LLMs in High-Level Synthesis Code Generationcited by 2
- 2025Customizing a Large Language Model for VHDL Design of High-Performance Microprocessorscited by 1
- 2025Iceberg: Enhancing HLS Modeling with Synthetic Datacited by 1
- 2026Agent Factories for High Level Synthesis: How Far Can General-Purpose Coding Agents Go in Hardware Optimization?cited by 1
6 more
- 2026Evidence-Driven LLM Agent for C-to-Synthesizable-C Conversion and Verificationcited by 1
- 2026From Pragmas to Partners: A Symbiotic Evolution of Agentic High-Level Synthesiscited by 0
- 2026TOPCELL: Topology Optimization of Standard Cell via LLMscited by 0
- 2026A3D: Agentic AI flow for autonomous Accelerator Designcited by 0
- 2026Agentic Electronic Design Automation: A Handoff Perspectivecited by 0
- 2026LLM for EDA in Front-End Design: Challenges and Opportunitiescited by 0
- 2026LLM for EDA in Front-End Design: Challenges and Opportunities10 Jul 2026
- 2026Evidence-Driven LLM Agent for C-to-Synthesizable-C Conversion and Verification25 Jun 2026
- 2026Agentic Electronic Design Automation: A Handoff Perspective18 Jun 2026
- 2026A3D: Agentic AI flow for autonomous Accelerator Design14 May 2026
- 2026TOPCELL: Topology Optimization of Standard Cell via LLMs15 Apr 2026
- 2026Agent Factories for High Level Synthesis: How Far Can General-Purpose Coding Agents Go in Hardware Optimization?26 Mar 2026
- 2026CktEvo: Repository-Level RTL Code Benchmark for Design Evolution10 Feb 2026
- 2026From Pragmas to Partners: A Symbiotic Evolution of Agentic High-Level Synthesis1 Feb 2026
- 2026Bench4HLS: End-to-End Evaluation of LLMs in High-Level Synthesis Code Generation16 Jan 2026
- 2025VeriMoA: A Mixture-of-Agents Framework for Spec-to-HDL Generation31 Oct 2025
- 2025Large Language Models (LLMs) for Electronic Design Automation (EDA)27 Aug 2025
- 2025Iceberg: Enhancing HLS Modeling with Synthetic Data14 Jul 2025
6 more
- 2025iDSE: Navigating Design Space Exploration in High-Level Synthesis Using LLMs28 May 2025
- 2025LLM-DSE: Searching Accelerator Parameters with LLM Agents18 May 2025
- 2025Customizing a Large Language Model for VHDL Design of High-Performance Microprocessors14 May 2025
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuning29 Apr 2025
- 2025Can Reasoning Models Reason about Hardware? An Agentic HLS Perspective17 Mar 2025
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents18 Oct 2024
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agentscited by 25
- 2025VeriMoA: A Mixture-of-Agents Framework for Spec-to-HDL Generationcited by 15
- 2025LLM-DSE: Searching Accelerator Parameters with LLM Agentscited by 7
- 2026Agent Factories for High Level Synthesis: How Far Can General-Purpose Coding Agents Go in Hardware Optimization?cited by 1
- 2026Evidence-Driven LLM Agent for C-to-Synthesizable-C Conversion and Verificationcited by 1
- 2026From Pragmas to Partners: A Symbiotic Evolution of Agentic High-Level Synthesiscited by 0
- 2026A3D: Agentic AI flow for autonomous Accelerator Designcited by 0
- 2026Agentic Electronic Design Automation: A Handoff Perspectivecited by 0
- 2026LLM for EDA in Front-End Design: Challenges and Opportunitiescited by 0
- 2026LLM for EDA in Front-End Design: Challenges and Opportunities10 Jul 2026
- 2026Evidence-Driven LLM Agent for C-to-Synthesizable-C Conversion and Verification25 Jun 2026
- 2026Agentic Electronic Design Automation: A Handoff Perspective18 Jun 2026
- 2026A3D: Agentic AI flow for autonomous Accelerator Design14 May 2026
- 2026Agent Factories for High Level Synthesis: How Far Can General-Purpose Coding Agents Go in Hardware Optimization?26 Mar 2026
- 2026From Pragmas to Partners: A Symbiotic Evolution of Agentic High-Level Synthesis1 Feb 2026
- 2025VeriMoA: A Mixture-of-Agents Framework for Spec-to-HDL Generation31 Oct 2025
- 2025LLM-DSE: Searching Accelerator Parameters with LLM Agents18 May 2025
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents18 Oct 2024
- 2025Iceberg: Enhancing HLS Modeling with Synthetic Datacited by 1
- 2025Iceberg: Enhancing HLS Modeling with Synthetic Data14 Jul 2025
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuningcited by 8
- 2025iDSE: Navigating Design Space Exploration in High-Level Synthesis Using LLMscited by 6
- 2025Large Language Models (LLMs) for Electronic Design Automation (EDA)cited by 3
- 2026CktEvo: Repository-Level RTL Code Benchmark for Design Evolutioncited by 3
- 2026Bench4HLS: End-to-End Evaluation of LLMs in High-Level Synthesis Code Generationcited by 2
- 2025Customizing a Large Language Model for VHDL Design of High-Performance Microprocessorscited by 1
- 2026TOPCELL: Topology Optimization of Standard Cell via LLMscited by 0
- 2026TOPCELL: Topology Optimization of Standard Cell via LLMs15 Apr 2026
- 2026CktEvo: Repository-Level RTL Code Benchmark for Design Evolution10 Feb 2026
- 2026Bench4HLS: End-to-End Evaluation of LLMs in High-Level Synthesis Code Generation16 Jan 2026
- 2025Large Language Models (LLMs) for Electronic Design Automation (EDA)27 Aug 2025
- 2025iDSE: Navigating Design Space Exploration in High-Level Synthesis Using LLMs28 May 2025
- 2025Customizing a Large Language Model for VHDL Design of High-Performance Microprocessors14 May 2025
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuning29 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025Exploring Code Language Models for Automated HLS-based Hardware Generation: Benchmark, Infrastructure and Analysis
- 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinement
- 2025Automated Repair of C Programs Using Large Language Models
- 2026Tool-Guided Retrieval-Augmented Repair for Securing LLM-Generated C Code
- 2025LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study
- 2024Optimizing High-Level Synthesis Designs with Retrieval-Augmented Large Language Models
- 2025SAGE-HLS: Syntax-Aware AST-Guided LLM for High-Level Synthesis Code Generation
- 2025Self-Bootstrapping Automated Program Repair: Using LLMs to Generate and Evaluate Synthetic Training Data for Bug Repair