Skip to main content
QUICK REVIEW

[논문 리뷰] LocalV: Exploiting Information Locality for IP-level Verilog Generation

Hanqi Lyu, Di Huang|arXiv (Cornell University)|2026. 01. 31.
Embedded Systems Design TechniquesComputer Science인용 수 0
한 줄 요약

LocalV는 IP-레벨 Verilog 생성을 위한 다중 에이전트의 지역성 인식 접근법으로, 긴 문서를 짧은 작업으로 분해하고 RealBench(45.0% 대 21.6%) 및 CVDP(cid003)에서 SOTA보다 높은 합격률을 달성합니다.

ABSTRACT

The generation of Register-Transfer Level (RTL) code is a crucial yet labor-intensive step in digital hardware design, traditionally requiring engineers to manually translate complex specifications into thousands of lines of synthesizable Hardware Description Language (HDL) code. While Large Language Models (LLMs) have shown promise in automating this process, existing approaches-including fine-tuned domain-specific models and advanced agent-based systems-struggle to scale to industrial IP-level design tasks. We identify three key challenges: (1) handling long, highly detailed documents, where critical interface constraints become buried in unrelated submodule descriptions; (2) generating long RTL code, where both syntactic and semantic correctness degrade sharply with increasing output length; and (3) navigating the complex debugging cycles required for functional verification through simulation and waveform analysis. To overcome these challenges, we propose LocalV, a multi-agent framework that leverages information locality in modular hardware design. LocalV decomposes the long-document to long-code generation problem into a set of short-document, short-code tasks, enabling scalable generation and debugging. Specifically, LocalV integrates hierarchical document partitioning, task planning, localized code generation, interface-consistent merging, and AST-guided locality-aware debugging. Experiments on RealBench, an IP-level Verilog generation benchmark, demonstrate that LocalV substantially outperforms state-of-the-art (SOTA) LLMs and agents, achieving a pass rate of 45.0% compared to 21.6%.

연구 동기 및 목표

  • IP-레벨 RTL/Verilog 자동화의 동기를 부여하여 수작업 엔지니어링 노력을 줄인다.
  • 하드웨어 명세가 짧은 문서에서 짧은 코드 생성을 가능케 하는 정보 로컬리티를 보이는지 조사한다.
  • 문서를 분할하고, 작업을 계획하고, 코드 조각을 생성하고, 인터페이스 일관성으로 병합하는 다중 에이전트 프레임워크를 개발한다.
  • 지역성 주도 디버깅을 가능하게 하여 최소한의 명세 조각으로 오류를 추적한다.

제안 방법

  • 긴 자연어 문서에서 모듈식 Verilog 모듈을 생성하는 IP-레벨 Verilog 생성을 정의한다.
  • 각 코드 단위에 대한 문서-코드 관련성 분포의 엔트로피로 정보 로컬리티를 정량화한다.
  • 계층적 문서 전처리, 조각 기반 작업 계획, 하위 작업에 의한 제약 RTL 생성, 인터페이스 점검으로 조각 병합, AST 가이드 로컬리티 인 디버깅을 포함한 LocalV를 개발한다.
  • 계획, 생성, 디버깅 중 각 하위 작업에 대해 지역화된 문서 조각을 검색하는 Retriever Agent를 활용한다.
  • 특정 문서 조각으로 워브폼/AST 오류를 트레이스하고 대상 편집 작업을 출력하는 로컬리티 인 디버깅 루프를 적용한다.
  • RealBench와 CVDP(cid003)에서 LocalV를 SOTA LLM 및 에이전트 기반 시스템과 비교 평가한다.
(a) Pass@k vs. I/O signal count
(a) Pass@k vs. I/O signal count

실험 결과

연구 질문

  • RQ1IP-레벨 Verilog 생성을 정보 손실 없이 짧은 문서-짧은 코드 작업으로 효과적으로 분해할 수 있는가?
  • RQ2로컬리티 인 프리프로세싱, 플래닝, 디버깅이 긴 컨텍스트 HDL 생성의 구문 및 기능적 정확성을 향상시키는가?
  • RQ3RealBench와 CVDP에서 LocalV의 성능은 최첨단 모놀리식 및 에이전트 기반 베이스라인과 어떻게 비교되는가?
  • RQ4색인화, 계획 및 디버깅 구성요소가 전반적 성능과 효율성에 미치는 영향은 무엇인가?

주요 결과

  • LocalV는 RealBench에서 SOTA 베이스라인보다 더 높은 기능적 합격률을 달성한다(45.0% 대 21.6%).
  • Claude 기반 백본을 가진 LocalV는 표 3의 모든 작업에서 75.0% 구문적 및 45.0% 기능적 합격률에 도달하며 다수의 베이스라인을 능가한다.
  • 색인화, 계획 및 디버깅은 중요하다; 색인화를 제거하면 전체 성능이 약 10퍼센트 포인트 감소하고, 디버깅과 색인화를 제거하면 기능적 합격률이 약 20%로 감소한다.
  • AES IP에 대한 검색 품질은 LocalV 변형에서 정밀도와 재현율이 모두 0.93으로 신뢰할 수 있는 조각 위치지정을 시사한다.
  • PPA 분석에서 LocalV가 생성한 모듈은 Golden RTL 대비 면적, 지연, 전력을 각각 2.37%, 4.34%, 4.63% 향상시킨다.
  • 정보 로컬리티는 RTL, Merger, Debugger 에이전트에 필요한 컨텍스트를 상당한 비율로 감소시킨다(예: 70.8%, 54.8%, 61.6%).
(b) Pass@k vs. code length
(b) Pass@k vs. code length

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.