Workflows vs Agents for Code Translation
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Translating algorithms from high-level languages like MATLAB to hardware description languages (HDLs) is a resource-intensive but necessary step for deployment on FPGAs and ASICs. While large language models (LLMs) offer a path to automation, their limited training on HDL code makes end-to-end transpilation brittle and prone to syntax errors. We compare two LLM-driven methods for syntax repair in a MATLAB-to-HDL pipeline: a structured, expert-designed flow that follows a fixed sequence of operations, and a more autonomous agentic approach that uses the Model Context Protocol (MCP) citeanthropic2024mcp to dynamically select its own tools. We study 42 MATLAB signal-processing functions and isolate the syntax-repair stage. Across three model scales, the agentic approach is more effective at resolving initial syntax errors, unblocking a greater number of candidates to proceed through the pipeline. This upstream improvement yields measurable downstream improvements, most notably on mid-sized models, where it increases the simulation reach rate by over 20 percentage points. We hypothesize the gains come from short prompts, aggressive context management, and conditional tool use. Conditional retrieval helps at 8B and 30B; at 235B final-success gains are small and a naive RAG variant attains the highest final success. Our findings suggest that these agentic frameworks, when properly designed, are most effective at compensating for the capacity limits of small and mid-sized models.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 5 of its 11 references that are in the map. First posted on arXiv 15 Dec 2025.
Builds on
5 of 11 references.
References · 5
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 200
- 2024VHDL-Eval: A Framework for Evaluating Large Language Models in VHDL Code Generationcited by 15
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Enabling New HDLs with Agents
- 2026Exploring the Agentic Frontier of Verilog Code Generation
- 2026Self-Healing Agentic Orchestrators for Reliable Tool-Augmented Large Language Model Systems
- 2024AFlow: Automating Agentic Workflow Generation
- 2025Exploring Code Language Models for Automated HLS-based Hardware Generation: Benchmark, Infrastructure and Analysis
- 2025BabelCoder: Agentic Code Translation with Specification Alignment
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignment
- 2026AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance