From gateflow
Generates Python-based Cocotb testbenches as alternatives to SystemVerilog for hardware verification. Useful for Python-native engineers creating tests for RTL like FIFOs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gateflow:gf-cocotbThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate Cocotb testbenches as an alternative to SystemVerilog TBs.
Generate Cocotb testbenches as an alternative to SystemVerilog TBs.
python3 -c "import cocotb" 2>/dev/null
If not found, return GATEFLOW-RESULT ERROR with: pip install cocotb
import cocotb
from cocotb.clock import Clock
from cocotb.triggers import RisingEdge
@cocotb.test()
async def test_reset(dut):
clock = Clock(dut.clk, 10, units="ns")
cocotb.start_soon(clock.start())
dut.rst_n.value = 0
for _ in range(3):
await RisingEdge(dut.clk)
dut.rst_n.value = 1
await RisingEdge(dut.clk)
assert dut.count.value == 0
| Cocotb | SV Testbench |
|---|---|
| Python (lower barrier) | SystemVerilog |
| Complex stimulus (Python libs) | Protocol + coverage |
| Slower (co-simulation) | Faster (native) |
npx claudepluginhub codejunkie99/gateflow-plugin --plugin gateflowGuides Python testing with pytest, TDD, fixtures, mocking, parametrization, and coverage. Useful when writing Python code or reviewing test suites.
Provides Python testing strategies using pytest: TDD cycle, fixtures, mocking, parametrization, assertions, exception handling, and coverage measurement.
Guides Python testing with pytest: fixtures, mocking, parameterization, TDD, and test isolation. Use for unit/integration tests, async testing, and CI/CD setup.