Agent skill

Rtl Equivalence Checker

by ArabelaTso in ArabelaTso/Skills-4-SE

Hardware verification tool for checking functional equivalence between two RTL designs (Verilog).

Apache-2.0Auto-check passedDevelopment

Install Rtl Equivalence Checker

skills CLI
$ npx skills add ArabelaTso/Skills-4-SE --skill rtl-equivalence-checker -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ArabelaTso/Skills-4-SE rtl-equivalence-checker --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/rtl-equivalence-checker .claude/skills/rtl-equivalence-checker && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rtl-equivalence-checker
GitHub stars
253
Token cost
~2.5k tokens
SKILL.md length
762 words
Files
7 (incl. scripts, references)
Skills in repo
170
Repo updated
First seen
Licence
Apache-2.0

At a glance

Hardware verification tool for checking functional equivalence between two RTL designs (Verilog).

  • Works in 4 steps: Basic Equivalence Check → With Assumptions → Save Results → …
  • Verify if two RTL versions are functionally equivalent
  • SKILL.md covers Overview, Workflow, Analysis Process and Output Format, plus 8 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Rtl Equivalence Checker is an agent skill from ArabelaTso/Skills-4-SE. Hardware verification tool for checking functional equivalence between two RTL designs (Verilog). Use when users need to: (1) Verify if two RTL versions are functionally equivalent, (2) Compare original vs. refactored RTL code, (3) Validate design changes or optimizations, (4) Identify semantic vs. cosmetic differences, (5) Generate counterexamples for non-equivalent designs. Analyzes interface alignment, state variables, logic differences, and produces detailed equivalence verdicts with plain language…

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `references/equivalence_patterns.md`, `references/formal_tools.md` and `scripts/check_equivalence.py`).

It sits in Development, covering Code review, Plain language and style rules and QA and bug reports. The repository describes itself as: A curated list of 180+ useful Claude Skills for Software Engineering and resources for customizing AI for SE workflows. The licence is Apache-2.0.

When your agent uses it

  • Verify if two RTL versions are functionally equivalent
  • Compare original vs

Example prompts

  • “/rtl-equivalence-checker”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Basic Equivalence Check
  2. With Assumptions
  3. Save Results
  4. Ignore Signal Names

What it can do on your machine

Read from SKILL.md and the folder at commit 4f38503. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rtl Equivalence Checker loads about 2.5k tokens when it runs, and up to ~5.6k if it reads all its reference files. Until then it costs about 163 tokens; SKILL.md has 762 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~163
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from ArabelaTso/Skills-4-SE at commit 4f38503, republished under its Apache-2.0 licence (© ArabelaTso). 762 words, ~2,494 tokens.

Download SKILL.mdSave it as .claude/skills/rtl-equivalence-checker/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
rtl-equivalence-checker
description
Hardware verification tool for checking functional equivalence between two RTL designs (Verilog). Use when users need to: (1) Verify if two RTL versions are functionally equivalent, (2) Compare original vs. refactored RTL code, (3) Validate design changes or optimizations, (4) Identify semantic vs. cosmetic differences, (5) Generate counterexamples for non-equivalent designs. Analyzes interface alignment, state variables, logic differences, and produces detailed equivalence verdicts with plain language explanations. Particularly effective for design verification, code reviews, and regression testing of RTL modifications.

RTL Equivalence Checker

Verify functional equivalence between two RTL designs with detailed analysis and counterexample generation.

Overview

This skill compares two Verilog RTL designs to determine if they are functionally equivalent. It aligns interfaces and state variables, distinguishes semantic differences from cosmetic refactoring, and generates minimal counterexample traces when designs differ.

Workflow

1. Basic Equivalence Check

Compare two RTL designs:

bash
python3 scripts/check_equivalence.py design_a.v design_b.v

Output includes:

  • Equivalence verdict (EQUIVALENT or NOT EQUIVALENT)
  • Explanation of differences
  • Counterexample trace (if not equivalent)
2. With Assumptions

Specify clock and reset behavior:

bash
python3 scripts/check_equivalence.py design_a.v design_b.v \
  --clock clk \
  --reset rst_n \
  --reset-active low
3. Save Results

Write results to file:

bash
python3 scripts/check_equivalence.py design_a.v design_b.v -o results.txt
4. Ignore Signal Names

Focus on functional behavior, ignore naming differences:

bash
python3 scripts/check_equivalence.py design_a.v design_b.v --ignore-names

Analysis Process

The checker performs five steps:

[1/5] Parsing RTL designs

  • Extracts module structure
  • Identifies ports, signals, and state elements
  • Parses always blocks and assignments

[2/5] Aligning interfaces and state variables

  • Matches ports by name and type
  • Aligns state elements (registers)
  • Reports unmatched signals

[3/5] Analyzing behavioral differences

  • Identifies cosmetic differences (naming, formatting)
  • Identifies semantic differences (logic changes)
  • Categorizes difference types

[4/5] Determining equivalence

  • Verdict: EQUIVALENT or NOT EQUIVALENT
  • Based on semantic differences only
  • Cosmetic differences don't affect equivalence

[5/5] Generating counterexample (if not equivalent)

  • Creates minimal test sequence
  • Shows input values that expose difference
  • Traces outputs from both designs

Output Format

Equivalent Designs
======================================================================
EQUIVALENCE CHECKING RESULTS
======================================================================

Verdict: EQUIVALENT

Explanation:
----------------------------------------------------------------------
The two RTL designs are functionally equivalent. All differences are
cosmetic (naming, formatting, or structurally equivalent refactoring).

Cosmetic Differences (non-functional):
----------------------------------------------------------------------
  - module_name: Module names differ: 'counter_v1' vs 'counter_v2'
  - signal_name: Signal 'cnt' renamed to 'count_value'

======================================================================
Non-Equivalent Designs
======================================================================
EQUIVALENCE CHECKING RESULTS
======================================================================

Verdict: NOT EQUIVALENT

Explanation:
----------------------------------------------------------------------
The logic in always block 0 differs between the two designs, which
will result in different behavior. The sensitivity list for always
block 0 differs, which may cause the block to trigger at different
times.

Semantic Differences (functional):
----------------------------------------------------------------------
  - sensitivity_list: Block 0: Different sensitivity: 'posedge clk
    or posedge rst' vs 'posedge clk'
    Location: always block 0
  - logic_difference: Block 0: Logic differs
    Location: always block 0

Counterexample Trace:
----------------------------------------------------------------------
Length: 3 cycles

Cycle 0:
  Inputs: {'clk': 0, 'rst': 1, 'enable': 0}
  Output A: output_a_01
  Output B: output_b_02
  MISMATCH: Outputs differ: A=output_a_01, B=output_b_02

======================================================================

Common Use Cases

Design Refactoring

Scenario: Refactored RTL for readability, need to verify functionality unchanged.

Approach:

  1. Run equivalence check on original vs. refactored
  2. Review cosmetic differences (expected)
  3. Verify no semantic differences
  4. Confirm EQUIVALENT verdict

Example:

bash
python3 scripts/check_equivalence.py original.v refactored.v
Optimization Verification

Scenario: Optimized design for area/timing, need to verify correctness.

Approach:

  1. Compare original vs. optimized design
  2. Check for semantic differences
  3. If not equivalent, review counterexample
  4. Determine if difference is acceptable (e.g., latency change)
Bug Fix Validation

Scenario: Fixed a bug, want to understand impact on behavior.

Approach:

  1. Compare buggy vs. fixed version
  2. Identify semantic differences
  3. Review counterexample showing bug
  4. Confirm fix addresses the issue
Code Review

Scenario: Reviewing RTL changes in pull request.

Approach:

  1. Run equivalence check on before/after
  2. Distinguish intentional changes from unintended
  3. Flag unexpected semantic differences
  4. Approve if changes match intent

Difference Types

Cosmetic (Non-Functional)

These don't affect behavior:

  • Module name changes
  • Signal renaming
  • Code formatting
  • Comment changes
  • Expression reordering (commutative operations)
  • Structural refactoring (combining/splitting blocks)
Semantic (Functional)

These change behavior:

  • Different reset behavior (async vs. sync)
  • Different logic expressions
  • Different sensitivity lists
  • Missing or extra logic
  • Different state encodings
  • Different pipeline depths
  • Different bit widths

See: equivalence_patterns.md for detailed examples

Interpreting Results

Verdict: EQUIVALENT

Designs are functionally equivalent. Safe to:

  • Replace one with the other
  • Merge refactoring changes
  • Proceed with optimized version
Verdict: NOT EQUIVALENT

Designs differ functionally. Actions:

  1. Review semantic differences - Understand what changed
  2. Examine counterexample - See concrete example of difference
  3. Determine if intentional - Bug fix vs. unintended change
  4. Fix or accept - Correct issue or document difference
Show full SKILL.md (287 more words)Show less
Understanding Counterexamples

Counterexample shows:

  • Input sequence - Test vectors that expose difference
  • Cycle-by-cycle trace - State progression
  • Output mismatch - Where designs diverge
  • Plain language description - What the difference means

Advanced Options

Custom Clock/Reset

Specify non-standard signal names:

bash
python3 scripts/check_equivalence.py design_a.v design_b.v \
  --clock sys_clk \
  --reset async_rst \
  --reset-active high
Counterexample Depth

Control trace length:

bash
python3 scripts/check_equivalence.py design_a.v design_b.v \
  --max-depth 50

Integration with Formal Tools

This skill provides pre-analysis before running formal verification tools.

Workflow:

  1. Run this checker for quick analysis
  2. Identify differences and assumptions needed
  3. Run formal tool (Formality, Conformal) with appropriate constraints
  4. Compare results

See: formal_tools.md for formal tool integration

Limitations

This skill provides heuristic analysis. For rigorous proof:

  1. Use formal tools - Synopsys Formality, Cadence Conformal
  2. Simulation - Comprehensive testbench verification
  3. Manual review - Expert analysis of complex cases

Limitations:

  • Simplified parsing (not full Verilog parser)
  • Heuristic difference detection
  • Symbolic simulation (not actual execution)
  • May miss subtle timing differences

Best for:

  • Quick pre-analysis
  • Identifying obvious differences
  • Guiding formal verification
  • Code review assistance

Tips

  • Start with this checker - Fast feedback on differences
  • Review cosmetic differences - Ensure they're expected
  • Investigate semantic differences - Understand each one
  • Use counterexamples - Concrete examples aid understanding
  • Follow up with formal tools - For rigorous proof
  • Document assumptions - Clock, reset, state encoding
  • Test incrementally - Verify small changes frequently

Common Issues

Interface mismatch: Ports don't align between designs.

  • Solution: Check port names, directions, widths match

Too many differences: Hard to understand results.

  • Solution: Compare smaller modules, verify incrementally

No counterexample: Semantic difference found but no trace.

  • Solution: Increase max-depth, or manually construct test case

False positive: Reports difference but designs seem equivalent.

  • Solution: May be timing/encoding difference, use formal tools

References

Scripts

  • check_equivalence.py: Main equivalence checking script
  • rtl_parser.py: Verilog RTL parser
  • equivalence_analyzer.py: Equivalence analysis engine
  • counterexample_generator.py: Counterexample trace generator

© ArabelaTso, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in skills/rtl-equivalence-checker of ArabelaTso/Skills-4-SE.

  • SKILL.md
  • references/equivalence_patterns.md
  • references/formal_tools.md
  • scripts/check_equivalence.py
  • scripts/counterexample_generator.py
  • scripts/equivalence_analyzer.py
  • scripts/rtl_parser.py

Open the folder on GitHubat commit 4f38503

Compare with similar skills

Rtl Equivalence Checker next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rtl Equivalence Checker compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rtl Equivalence Checker this skillArabelaTso/Skills-4-SE253—~2.5kAutomated safety check: PassApache-2.0
ReviewSethGammon/Citadel924—~2.1kAutomated safety check: PassMIT
Memstack Development Mentorcwinvestments/memstack423—~1.6kAutomated safety check: PassMIT
Parallel Code Reviewspencerpauly/awesome-cursor-skills844—~781Automated safety check: PassCC0-1.0
Cyclomatic Complexitysaurabhkumar8112/cyclomatic-complexity-skill405—~761Automated safety check: PassApache-2.0
Software Design Philosophyluoling8192/software-design-philosophy-skill346—~3.4kAutomated safety check: PassMIT

Similar skills

  • Review

    SethGammon/Citadel

    5-pass structured code review — correctness, security, performance, readability, consistency

    924 GitHub stars~2.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Memstack Development Mentor

    cwinvestments/memstack

    A skill your agent uses when the user says 'teach me', 'explain as you go', 'mentor mode', 'walk me through', 'help me learn', 'explain why', 'learning mode', or wants real-time plain language…

    423 GitHub stars~1.6k tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Parallel Code Review

    spencerpauly/awesome-cursor-skills

    Run four parallel read-only subagents that each review the same diff from a different lens — security, performance, correctness, and readability — then merge findings into one report.

    844 GitHub stars~781 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Cyclomatic Complexity

    saurabhkumar8112/cyclomatic-complexity-skill

    Refactor code to reduce cyclomatic complexity so it stays readable, maintainable, and aligned with the long-term vision of the codebase, not just optimized for AI comprehension.

    405 GitHub stars~761 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Software Design Philosophy

    luoling8192/software-design-philosophy-skill

    Software design philosophy guide based on John Ousterhout's "A Philosophy of Software Design." Use this skill during: code reviews, architecture discussions, API design, module decomposition…

    346 GitHub stars~3.4k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Pre-Merge Check

    jsmastery-pro/skills

    A gate before merge: verify runs the real app against the spec, and review has a different model do a senior code review, without editing code.

    1.5k GitHub stars~1.1k tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes

More from ArabelaTso/Skills-4-SE

All 170 skills in this repo
  • Framework Migration Assistant

    ArabelaTso/Skills-4-SE

    Automatically migrate Python web applications between frameworks (Flask → FastAPI, Django → FastAPI).

    253 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Metamorphic Test Generator

    ArabelaTso/Skills-4-SE

    Generate test cases using metamorphic testing by applying transformations based on metamorphic properties.

    253 GitHub stars~798 tokensUpdated 1 mo ago
    Auto-check passed
  • Reproduction Trace Instrumenter

    ArabelaTso/Skills-4-SE

    Instruments programs to capture execution traces specifically for reproducing reported bugs, enabling consistent replay and diagnosis of failures.

    253 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Spring Mvc To Boot Migrator

    ArabelaTso/Skills-4-SE

    Automatically migrate Spring MVC applications to Spring Boot.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • State Snapshot Instrumenter

    ArabelaTso/Skills-4-SE

    Instrument programs (Python, C/C++, Java) to capture snapshots of key program states at runtime, including variables, memory, and call stacks.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Rtl Equivalence Checker

What does Rtl Equivalence Checker do?

Hardware verification tool for checking functional equivalence between two RTL designs (Verilog). Rtl Equivalence Checker is an agent skill from ArabelaTso/Skills-4-SE. Hardware verification tool for checking functional equivalence between two RTL designs (Verilog).

When should I use Rtl Equivalence Checker?

Rtl Equivalence Checker fits situations like: verify if two RTL versions are functionally equivalent; compare original vs.

How do I install Rtl Equivalence Checker in Claude Code?

Run `npx skills add ArabelaTso/Skills-4-SE --skill rtl-equivalence-checker -a claude-code`. Or copy the skill folder (skills/rtl-equivalence-checker in ArabelaTso/Skills-4-SE) into .claude/skills/rtl-equivalence-checker in your project. Claude Code loads it when a task matches its description.

How do I install Rtl Equivalence Checker in Codex?

Run `npx skills add ArabelaTso/Skills-4-SE --skill rtl-equivalence-checker -a codex`. Or copy the skill folder (skills/rtl-equivalence-checker in ArabelaTso/Skills-4-SE) into .agents/skills/rtl-equivalence-checker in your project. Codex loads it when a task matches its description.

Can I use Rtl Equivalence Checker in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ArabelaTso/Skills-4-SE --skill rtl-equivalence-checker -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rtl-equivalence-checker, .gemini/skills/rtl-equivalence-checker, .github/skills/rtl-equivalence-checker and .opencode/skills/rtl-equivalence-checker in your project.

What does Rtl Equivalence Checker need to run?

Going by SKILL.md and its folder, Rtl Equivalence Checker needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Rtl Equivalence Checker access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Rtl Equivalence Checker safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Rtl Equivalence Checker use?

Rtl Equivalence Checker is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rtl Equivalence Checker use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.1k tokens, read only when the agent opens those files.

What are the alternatives to Rtl Equivalence Checker?

Skills that share tags, products or a category with Rtl Equivalence Checker: Review (SethGammon/Citadel, 924 stars), Memstack Development Mentor (cwinvestments/memstack, 423 stars), Parallel Code Review (spencerpauly/awesome-cursor-skills, 844 stars) and Cyclomatic Complexity (saurabhkumar8112/cyclomatic-complexity-skill, 405 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rtl Equivalence Checker?

ArabelaTso (a GitHub user) maintains it in ArabelaTso/Skills-4-SE, which has 253 GitHub stars. The repository holds 170 skills in this directory. The repository was last updated on August 21, 2026.

Source: ArabelaTso/Skills-4-SE on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.