Code Generation
Command
/gf-gen
Generate scaffolds
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-gen
Context preview
What this command does when you run it.
Generate scaffolds
Command definition
gf-gen.mdname: gf-gen description: Generate scaffolds argument-hint: "<type> <name> [options]" allowed-tools: - Bash - Read - Write - Glob
GateFlow Generate Command
Generate SystemVerilog code artifacts: modules, testbenches, or packages.
Instructions
Parse the arguments to determine generation type:
- `gf-gen module <name>` - Generate a new module
- `gf-gen testbench <name>` - Generate a testbench for a module
- `gf-gen package <name>` - Generate a package
Module Generation
Create a synthesizable module with:
- Standard header comment with filename and description
- Parameter declarations (if needed)
- Port list with proper directions and types
- Internal signal declarations
- Basic combinational/sequential logic structure
- Proper `always_ff` and `always_comb` blocks
Testbench Generation
Create a testbench that:
- Instantiates the DUT (Device Under Test)
- Generates clock and reset signals
- Includes initial block with `$dumpfile` and `$dumpvars`
- Has placeholder for test stimulus
- Uses `$finish` to end simulation
- Follows UVM-lite or simple directed test style
Package Generation
Create a package with:
- Type definitions (enums, structs)
- Parameter constants
- Function declarations
- Proper export statements
Output
Write the generated file to `<name>.sv` or `<name>_tb.sv` for testbenches.
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.
Command
Command
Command
Command
gf-demo
One-command demo - generates, lints, and simulates a working project
Command
Command

