Back to blog
Oct 29, 2026
2 min read

RTL-Define

基础概念理解

RTL-SE

LLM for RTL Verification

LLM、Agent、RAG、代码生成

★★★★★

自动生成 Testbench / Assertion

测试生成、程序合成

★★★★★

RTL Bug Detection / Localization

缺陷检测、故障定位

★★★★★

Coverage-Driven Verification

搜索、测试优化、Fuzzing

★★★★ ★

Hardware Fuzzing

Software Fuzzing

★★★★★

Verification Agent

Agent、工具调用、规划

★★★★★

RTL Code Intelligence

Code LLM、静态分析

★★★★ ★
  • DUT(.sv/被测模块):
module adder (
    input  logic [7:0] a,
    input  logic [7:0] b,
    output logic [8:0] sum
);

assign sum = a + b;

endmodule
  • Testbench(.sv/测试平台):
module tb_adder;

logic [7:0] a, b;
logic [8:0] sum;

adder dut (
    .a(a),
    .b(b),
    .sum(sum)
);

initial begin
    a = 1;
    b = 2;

    #10;

    if (sum == 3)
        $display("PASS");
    else
        $display("FAIL");
end

endmodule
输入条件 + 时序条件 + 期望输出

Agent for Chip Verification

Traditional Verification
Specification
↓
RTL Design
↓
Testbench
↓
Simulation
↓
Bug / Coverage
↓
人工分析
↓
修改 RTL / Test
Agent Verification
Specification
↓
Verification Agent
↓
TB / Assertion / Test Generation
↓
Simulator / Formal Tools
↓
Coverage + Logs
↓
Agent Analysis
↓
Bug Localization / Repair

Hardware Fuzzing

Hardware Fuzzing Loop
Coverage-guided feedback loop
RTL / CPU

被验证的硬件设计,例如 CPU Core、RTL Module。

↓
Hardware Fuzzer

根据反馈自动生成新的测试输入。

↓
Instruction / Transaction Generation

生成指令、总线事务或输入序列。

↓
Simulation

运行 RTL Simulation 执行测试。

↓
Coverage / Assertion Failure

利用 Coverage 和 Assertion Failure 形成反馈。

↑ Feedback drives the next generation

Assertion 自动生成

Natural Language → SystemVerilog Assertion

LLM-assisted formal property generation

Natural Language Specification

当 req 有效后,下一个周期必须出现 ack。

↓
LLM

理解自然语言约束并转换成形式化属性。

↓
Formal Property / SVA
@(posedge clk) req |=> ack;
↓
Formal Verification

Formal Tool 检查该性质是否对所有合法状态成立。

↓
Counterexample

如果 Property 失败,则返回违反性质的执行轨迹。

↓
Property Repair

LLM 根据 Counterexample 修正 Property 或 Specification。

RTL Bug Localization / Repair

RTL Bug Localization & Repair
Multi-source debugging pipeline
RTL

待分析的 SystemVerilog / Verilog 源代码。

Waveform

Simulation 中的 Signal Trace,例如 VCD / FST。

Simulation Log

Simulator 输出、错误信息和 Test Failure。

Assertions

失败的 Assertion 以及对应 Property。

↓
Multimodal / Verification Agent
↓
Bug Localization
↓
Patch Generation
↓
Regression Verification

体系

AI for Chip Verification

From AI-assisted verification to autonomous verification

LLM / Agent

Verification Agent

规划验证任务并调用 Simulator、Formal Tool 等工具。

RTL Debug & Repair

分析代码、Log、Waveform,并定位与修复 RTL Bug。

Testing

Hardware Fuzzing

通过 Coverage Feedback 自动探索新的硬件状态。

Coverage Guidance

利用 Coverage Metric 引导测试生成。

Formal

Assertion Generation

从 Specification 自动生成 SVA / Formal Property。

Formal Tool Interaction

Agent 自动调用 Formal Tool 并解析 Counterexample。

↓
Autonomous Verification