Agentic LLM RTL Generation With Progressive Error Feedback

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing agentic large language model (LLM) systems for hardware design, particularly in register-transfer level (RTL) code generation, face challenges such as limited scalability, lack of cohesive integration with RTL code development tools, reliance on human effort, and inefficiencies in handling iterative feedback and semantic feedback processing, leading to issues like hallucinations and difficulty in measuring progress.

Innovation Solution

An agentic framework that integrates specialized LLM agents with hardware simulation tools, utilizing self-correcting mechanisms for progressive error feedback to refine RTL code iteratively, incorporating agents that operate in a state-driven workflow to streamline RTL code generation, and minimize human intervention.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If agentic LLM systems are used for RTL code generation, then automation extent is improved, but reliability deteriorates due to hallucinations and lack of feedback mechanisms

Engineering Contradiction:
Improveautomation of RTL code generationVSAvoidcode generation accuracy
Core Design Contradiction:
Extent of automationVSReliability

Solution Approach 1:

The patent implements a feedback mechanism where generated RTL code is automatically compiled and tested, with results fed back to the LLM. The system captures compilation errors and test failures, reformulates them as feedback prompts, and uses these to iteratively refine subsequent code generation attempts, thereby improving reliability while maintaining automation.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs preliminary compilation and testing of generated RTL code before final acceptance. By proactively checking for syntax errors, semantic issues, and functional correctness in advance, the system prevents hallucinations from propagating and ensures code reliability before integration into the design flow.

Inventive Principle:
Principle #10Preliminary action

2Manufacturing precision

If iterative feedback processing is implemented, then code refinement is improved, but loss of time increases due to multiple LLM calls

Engineering Contradiction:
Improvecode refinement qualityVSAvoidtime for iterative feedback processing
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The system implements a maximum iteration counter that limits the number of feedback loops to a predetermined threshold. This prevents excessive iterative processing while still allowing sufficient iterations to achieve code refinement. When the threshold is reached, the system accepts the current best code or triggers a redesign prompt, balancing quality with time efficiency.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The system automatically manages the feedback loop process without requiring manual intervention. It self-regulates the iteration count, captures errors, reformulates feedback prompts, and executes subsequent generation attempts autonomously, reducing the time humans would spend manually managing the iterative refinement process.

Inventive Principle:
Principle #25Self-service

3Manufacturing precision

If comprehensive error feedback is provided to LLM, then code quality is improved, but device complexity increases due to feedback processing mechanisms

Engineering Contradiction:
Improvecode qualityVSAvoidfeedback processing system complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The feedback processing system is segmented into distinct functional modules: a compilation error capture module, a test result analysis module, a feedback prompt reformulation module, and a code generation module. Each module handles a specific aspect of feedback processing independently, making the overall complex system more manageable and maintainable while ensuring comprehensive error feedback is provided.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20260023539A1Agentic Large Language Model (LLM) Apparatus and Method for Synthesizable Register Transfer Level (RTL) Code Generation With Progressive Feedback
Publication Date: 2026.01.22 INTEL CORP
  • US20260023539A1 patent drawing
  • US20260023539A1 patent drawing
  • US20260023539A1 patent drawing

AI summary

An agentic LLM architecture is described for synthesizable register-transfer level (RTL) generation using progressive feedback. A method, for example, is performed by an agentic framework for automated RTL code generation, the method comprising: generating initial RTL code by a large language model (LLM) code generator agent based on a design prompt; executing the RTL code by a code executor agent in accordance with a test bench; generating a validation indication when the initial RTL code can be executed without errors or recording a first one or more detected errors generated during execution of the initial RTL code, evaluating the first one or more detected errors by the LLM code generator agent to generate refined RTL code; and providing the refined RTL code for execution by the code executor agent.