riscv-testbench-compile

Community

Generate and compile RV32I Verilator testbenches.

Authoretewe333
Version1.0.0
Installs0

System Documentation

What problem does it solve?

RV32I RTL verification requires a robust testbench and an efficient build flow. This skill automates the generation of a Verilator-based C++ testbench and the compilation of the simulation executable, consolidating two essential steps into a single workflow for RV32I designs.

Core Features & Use Cases

  • Testbench generation: produce a compliant Verilator C++ testbench, verify the generated header (V<module>.h) port definitions, ensure the presence of required functions such as double sc_time_stamp() { return 0; }, and generate test cases with programmatic expected-value calculation and standardized logging.
  • Simulation compilation: invoke verilator --cc to compile Verilog sources, link the C++ testbench, and produce an executable simulator while using a proper temporary directory to avoid permission issues.
  • Verification strategy: align with the RV32I two's complement wrap-around rules and include edge-case scenarios to validate arithmetic wrap-around, signed comparisons, and zero flag behavior.

Quick Start

生成 Verilator C++ testbench 并编译 RV32I 模块的仿真可执行文件。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: riscv-testbench-compile
Download link: https://github.com/etewe333/eda_first/archive/main.zip#riscv-testbench-compile

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.