Saved in:
Bibliographic Details
Main Authors: Wang, Yiting, Ye, Wanghao, Guo, Ping, He, Yexiao, Wang, Ziyao, Tian, Bowei, He, Shwai, Sun, Guoheng, Shen, Zheyu, Chen, Sihan, Srivastava, Ankur, Zhang, Qingfu, Qu, Gang, Li, Ang
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.10369
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915505378426880
author Wang, Yiting
Ye, Wanghao
Guo, Ping
He, Yexiao
Wang, Ziyao
Tian, Bowei
He, Shwai
Sun, Guoheng
Shen, Zheyu
Chen, Sihan
Srivastava, Ankur
Zhang, Qingfu
Qu, Gang
Li, Ang
author_facet Wang, Yiting
Ye, Wanghao
Guo, Ping
He, Yexiao
Wang, Ziyao
Tian, Bowei
He, Shwai
Sun, Guoheng
Shen, Zheyu
Chen, Sihan
Srivastava, Ankur
Zhang, Qingfu
Qu, Gang
Li, Ang
contents Optimizing Register Transfer Level (RTL) code is crucial for improving the power, performance, and area (PPA) of digital circuits in the early stages of synthesis. Manual rewriting, guided by synthesis feedback, can yield high-quality results but is time-consuming and error-prone. Most existing compiler-based approaches have difficulty handling complex design constraints. Large Language Model (LLM)-based methods have emerged as a promising alternative to address these challenges. However, LLM-based approaches often face difficulties in ensuring alignment between the generated code and the provided prompts. This paper presents SymRTLO, a novel neuron-symbolic RTL optimization framework that seamlessly integrates LLM-based code rewriting with symbolic reasoning techniques. Our method incorporates a retrieval-augmented generation (RAG) system of optimization rules and Abstract Syntax Tree (AST)-based templates, enabling LLM-based rewriting that maintains syntactic correctness while minimizing undesired circuit behaviors. A symbolic module is proposed for analyzing and optimizing finite state machine (FSM) logic, allowing fine-grained state merging and partial specification handling beyond the scope of pattern-based compilers. Furthermore, a fast verification pipeline, combining formal equivalence checks with test-driven validation, further reduces the complexity of verification. Experiments on the RTL-Rewriter benchmark with Synopsys Design Compiler and Yosys show that SymRTLO improves power, performance, and area (PPA) by up to 43.9%, 62.5%, and 51.1%, respectively, compared to the state-of-the-art methods.
format Preprint
id arxiv_https___arxiv_org_abs_2504_10369
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SymRTLO: Enhancing RTL Code Optimization with LLMs and Neuron-Inspired Symbolic Reasoning
Wang, Yiting
Ye, Wanghao
Guo, Ping
He, Yexiao
Wang, Ziyao
Tian, Bowei
He, Shwai
Sun, Guoheng
Shen, Zheyu
Chen, Sihan
Srivastava, Ankur
Zhang, Qingfu
Qu, Gang
Li, Ang
Hardware Architecture
Artificial Intelligence
Machine Learning
Programming Languages
Optimizing Register Transfer Level (RTL) code is crucial for improving the power, performance, and area (PPA) of digital circuits in the early stages of synthesis. Manual rewriting, guided by synthesis feedback, can yield high-quality results but is time-consuming and error-prone. Most existing compiler-based approaches have difficulty handling complex design constraints. Large Language Model (LLM)-based methods have emerged as a promising alternative to address these challenges. However, LLM-based approaches often face difficulties in ensuring alignment between the generated code and the provided prompts. This paper presents SymRTLO, a novel neuron-symbolic RTL optimization framework that seamlessly integrates LLM-based code rewriting with symbolic reasoning techniques. Our method incorporates a retrieval-augmented generation (RAG) system of optimization rules and Abstract Syntax Tree (AST)-based templates, enabling LLM-based rewriting that maintains syntactic correctness while minimizing undesired circuit behaviors. A symbolic module is proposed for analyzing and optimizing finite state machine (FSM) logic, allowing fine-grained state merging and partial specification handling beyond the scope of pattern-based compilers. Furthermore, a fast verification pipeline, combining formal equivalence checks with test-driven validation, further reduces the complexity of verification. Experiments on the RTL-Rewriter benchmark with Synopsys Design Compiler and Yosys show that SymRTLO improves power, performance, and area (PPA) by up to 43.9%, 62.5%, and 51.1%, respectively, compared to the state-of-the-art methods.
title SymRTLO: Enhancing RTL Code Optimization with LLMs and Neuron-Inspired Symbolic Reasoning
topic Hardware Architecture
Artificial Intelligence
Machine Learning
Programming Languages
url https://arxiv.org/abs/2504.10369