Xpersona
V

Verilog Design Flow

CLAWHUB · Unverified

Design, implement, and verify Verilog/SystemVerilog modules with spec-driven development, self-checking testbenches, and automated simulation workflows. Supp... Skill: Verilog Design Flow Owner: billchen1020 Summary: Design, implement, and verify Verilog/SystemVerilog modules with spec-driven development, self-checking testbenches, and automated simulation workflows. Supp... Tags: latest:1.2.0 Version history: v1.2.0 | 2026-04-04T14:05:45.997Z | auto **Added static syntax checking with slang to enhance design reliability.** - Introduced a new phase for static syntax checking

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s170h4mxdf1ydf98n4d2fh4szn83w60p:verilog-design
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-billchen1020-verilog-design/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

41,046 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: Verilog Design Flow
description: Design, implement, and verify Verilog/SystemVerilog modules with spec-driven development, self-checking testbenches, and automated simulation workflows. Supports Synopsys VCS, Cadence Xrun, Icarus Verilog simulators, and slang static syntax checker. Use when the user needs to write Verilog modules, design digital circuits, create counters/FSMs/interfaces, simulate and verify designs, or analyze VCD waveforms.
---

## Core Rules

### Phase 1: Understand Requirements
1. Ask clarifying questions if the design spec is incomplete
2. Identify: clock/reset strategy, interface signals, functionality, timing constraints
3. Confirm the target: synthesis (FPGA/ASIC) or simulation only

### Phase 2: Write Design Spec
1. Create a markdown spec document with:
   - Module name and purpose
   - Port list (direction, width, description)
   - Functional description
   - Timing diagram (if applicable)
   - Test scenarios checklist
2. Store spec in memory or as a file for reference

### Phase 3: Implement Verilog
1. **One-always-one-signal coding style**: Each signal should be assigned in exactly one always block
   - Separate sequential (posedge clk) and combinational (@*) logic
   - Declare intermediate signals for complex logic
   - Avoid mixing blocking (=) and non-blocking (<=) assignments in the same always block
2. Follow synthesizable coding guidelines:
   - Use `always @(posedge clk)` for sequential logic
   - Use `assign` or `always @(*)` for combinational logic
   - Avoid latches (ensure all branches assign in combinational blocks)
   - Explicit reset strategy (sync/async)
3. Include header comments with author, date, and revision (see Version Tracking below)
4. Use descriptive signal names, avoid single-letter variables

### Phase 3b: Static Syntax Check with Slang
Before simulation, run static syntax checking using slang:

```bash
# Check Verilog/SystemVerilog syntax
slang <module_name>.v

# Or for SystemVerilog files
slang <module_name>.sv
```

**What slang checks:**
- Syntax errors and parsing issues
- Type mismatches
- Undefined references
- Port connection errors
- SystemVerilog compliance

**If slang reports errors:**
1. Fix all syntax errors before proceeding to simulation
2. Pay attention to warnings about potential issues
3. Re-run slang until "Build succeeded: 0 errors"

### Phase 3c: Design Review Checklist
Before simulation, verify:
- [ ] Slang syntax check passes (0 errors)
- [ ] All sequential signals have explicit reset values
- [ ] No combinational logic loops (synthesis will error)
- [ ] No unintentional latches (all `if`/`case` branches assign in combinational blocks)
- [ ] State machines have `default` case branch
- [ ] Clock domain crossing signals are properly synchronized
- [ ] Vector widths match between assignment source and destination
- [ ] Array indices are within declared bounds
- [ ] No blocking assignments (`=`) in sequential always blocks
- [ ] No non-blocking assignments (`<=`) in

_meta.json

{
  "ownerId": "kn76mx41f7tbmrk0f2z5cs8akd83wnsz",
  "slug": "verilog-design",
  "version": "1.2.0",
  "publishedAt": 1775311545997
}

references/vcd-analysis.md

# VCD Waveform Analysis with Python

Use Python `vcdvcd` library or custom parser to analyze simulation waveforms programmatically.

## Installation

```bash
pip install vcdvcd
```

## Quick Start

Use the provided script: `<skill_dir>/scripts/check_vcd.py`

### Check Counter Verification

```bash
python3 <skill_dir>/scripts/check_vcd.py counter.vcd
```

### Check Specific Signal Values

```bash
python3 <skill_dir>/scripts/check_vcd.py counter.vcd "counter_tb.dut.count" 0:0 10:1 20:2 100:10
```

## Python API Examples

### Parse VCD and Check Signals

```python
from vcdvcd import VCDVCD

def check_vcd(vcd_file, signal_path, expected_values):
    """
    Check if signal matches expected values at specific times.
    expected_values: list of (time, value) tuples
    """
    vcd = VCDVCD(vcd_file)
    signal = vcd[signal_path]
    
    for time, expected in expected_values:
        actual = signal[time]
        if actual != expected:
            print(f"FAIL at t={time}: expected {expected}, got {actual}")
            return False
    
    print("PASS: All signal checks passed")
    return True

# Usage example
check_vcd(
    "counter.vcd",
    "counter_tb.dut.count",
    [(0, "0"), (10, "1"), (20, "2"), (100, "10")]
)
```

### Extract Signal Transitions

```python
from vcdvcd import VCDVCD

def get_transitions(vcd_file, signal_path):
    """Get all transitions for a signal."""
    vcd = VCDVCD(vcd_file)
    signal = vcd[signal_path]
    return signal.tv  # List of (time, value) tuples

# Usage
transitions = get_transitions("counter.vcd", "counter_tb.dut.count")
for time, value in transitions:
    print(f"t={time}: count={value}")
```

## Integration with Testbench

Call Python VCD checker from testbench:

```verilog
initial begin
    // ... simulation ...
    $finish();
end

// Post-simulation check
final begin
    $display("Running VCD verification...");
    $system("python3 check_vcd.py counter.vcd");
end
```

Or run separately after simulation completes.

skill-card.md

## Description:

Designs, implements, and verifies Verilog/SystemVerilog modules using spec-driven development, self-checking testbenches, static slang checks, simulator workflows, and VCD waveform analysis.

This skill is ready for commercial/non-commercial use.

## Publisher:

[billchen1020](https://clawhub.ai/user/billchen1020)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and hardware engineers use this skill to create Verilog/SystemVerilog modules, write design specs and testbenches, run available local simulators, and analyze VCD waveforms during verification.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Local simulator commands can execute installed EDA tools and create design, testbench, log, and waveform files in the workspace.

Mitigation: Run verification in an isolated project workspace and review generated files and simulator commands before execution.

Risk: The VCD analysis helper depends on the third-party Python package vcdvcd.

Mitigation: Install dependencies in a virtual environment and pin or review vcdvcd before using the skill in CI or sensitive workspaces.

Risk: The waveform analysis scripts are built for VCD and do not support FSDB waveform files.

Mitigation: Configure testbenches to emit VCD with $dumpfile and $dumpvars before using the analysis workflow.

## Reference(s):

- [VCD Waveform Analysis with Python](references/vcd-analysis.md)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with Verilog/SystemVerilog code and shell command blocks]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create design specs, Verilog/SystemVerilog source files, self-checking testbenches, simulation logs, VVP files, and VCD waveforms in the user's workspace.]

## Skill Version(s):

1.2.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Verilog Design Flow and adjacent AI workflows.