Skip to content
Code Generation
Command

/gf-sim

Run sim

BOOST
From plugin
gateflow-plugin
11821 skills20 agents21 commands
Install
> /plugin marketplace add codejunkie99/gateflow-plugin
> /plugin install gateflow@gateflow

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/gf-sim

Context preview

What this command does when you run it.

Run sim

Command definition

gf-sim.md
name: gf-sim
description: Run sim
argument-hint: "<testbench> [dut-files...]"
allowed-tools:
  - Bash
  - Read
  - Glob

GateFlow Simulate Command

Compile and run a SystemVerilog simulation using Verilator.

> **Note:** The `/gf` orchestrator uses `skills/gf-sim` internally, which provides > structured output (GATEFLOW-RESULT blocks) for automated processing. This command > version is for direct user invocation and provides human-friendly output.

Instructions

1. **Identify files**:

  • Testbench file (usually `*_tb.sv`)
  • DUT files (modules being tested)
  • If not specified, auto-detect from testbench includes

2. **Compile with Verilator**:

   verilator --binary -Wall <dut-files> <testbench>

3. **Run simulation**:

   ./obj_dir/V<top_module>

4. **Check results**:

  • Look for $display output
  • Check for $error or $fatal calls
  • Verify $finish was reached

5. **Report outcome**:

  • PASS: Simulation completed without errors
  • FAIL: Errors detected, show relevant output

Common Issues

  • **Unresolved module**: Missing file in compilation
  • **Multiple tops**: Specify --top-module
Ships withgateflow-plugin

AI-powered hardware development platform — design, verify, synthesize, and deploy working RTL with natural language. Supports SystemVerilog, Verilog, and VHDL across the full open-source FPGA toolchain. Loving hardware doesn't have to be gatekept.

Get the whole plugin

Other commands on gateflow-plugin.