Comprehensive Verilog Design Problems (CVDP)
收藏资源简介:
CVDP是一个全新的基准数据集,旨在推进硬件设计和验证中大型语言模型(LLM)和代理的研究。它包括由经验丰富的硬件工程师编写的783个问题,涵盖13个任务类别,包括RTL生成、验证、调试、规范对齐和技术问答。问题以非代理和代理格式提供,旨在提供比先前工作更真实和更具挑战性的场景。该基准使用开源工具和模型评分基础设施,并揭示了当前模型能力中的巨大差距,突出了对持续研究以实现稳健、真实的硬件设计自动化的需求。
CVDP is a novel benchmark dataset designed to advance research on large language models (LLMs) and AI Agents in hardware design and verification. It comprises 783 questions written by seasoned hardware engineers, spanning 13 task categories including RTL generation, verification, debugging, specification alignment, and technical question answering. The questions are provided in both non-agent and agent formats to deliver more realistic and challenging scenarios than prior works. This benchmark leverages open-source tooling and model scoring infrastructure, revealing significant gaps in current model capabilities and highlighting the urgent need for continuous research to achieve robust, real-world hardware design automation.
CVDP Benchmark 数据集概述
数据集基本信息
- 名称: CVDP Benchmark
- 用途: 用于评估LLM和智能体解决方案在硬件验证挑战上的性能
- 数据集地址: Hugging Face - nvidia/cvdp-benchmark-dataset
- 论文: Comprehensive Verilog Design Problems: A Next-Generation Benchmark Dataset for Evaluating Large Language Models and Agents on RTL Design and Verification
- 数据集说明: 公开版本中省略了20个数据点,原因是测试工具链问题和许可限制
数据集特点
- 评估框架: 支持两种工作流评估
- 非智能体工作流(基于LLM API调用)
- 智能体工作流(基于Docker容器)
- 评估方式: 支持单次运行和多样本pass@k指标分析
- 问题类型: 硬件验证任务,涵盖RTL设计和验证
快速开始
非智能体工作流
bash python run_benchmark.py -f dataset.jsonl -l -m gpt-4o-mini
智能体工作流
bash python run_benchmark.py -f dataset.jsonl -l -g your-agent-image
多样本评估
bash python run_samples.py -f dataset.jsonl -l -m gpt-4 -n 5 -k 1
安装要求
- Python: 推荐3.12版本
- Docker CE: 必须安装最新版本
- 高级验证工具: 可选(如Cadence Xcelium等商业验证工具)
核心功能
- 灵活的评估方式(LLM和Docker智能体)
- 统计分析(多样本pass@k评估)
- 并行执行
- 自定义扩展(模型和智能体插件系统)
- 综合报告(详细分析和分类)
数据集转换
- 支持智能体和非智能体数据集格式间的自动转换
- 保留核心问题定义不变
- 自动适应文件结构和提示格式
配置选项
- 环境变量: 通过
.env文件配置API密钥、默认模型等 - Docker配置: 包括超时设置和资源限制
- EDA工具配置: 可选商业EDA工具支持
结果分析
- 输出文件:
report.json: 主要结果raw_result.json: 详细测试信息composite_report.json: 多样本聚合结果
- 分析工具: 提供单次运行和多样本分析脚本
文档索引
- 非智能体工作流指南:
README_NON_AGENTIC.md - 智能体工作流指南:
README_AGENTIC.md - 开发者文档:
README_DEVELOPER.md - 示例文档:
examples/README.md - 测试文档:
tests/README.md




