No slash command · from rtl-agent-team
Provides project conventions for SystemC/TLM-2.0 code including naming, bit-exactness rules, and execution policies for Reference Model and BFM components.
Ships in rtl-agent-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Language standard pins:
-std=c11), pure C, standalone — compilable without SystemC-std=c++17); C++20 features (concepts, ranges, coroutines, modules) forbidden
<Use_When>
<Do_Not_Use_When>
systemverilog skill; Python cocotb → rtl-p5s-func-verify skill; non-SystemC C/C++ utilities
</Do_Not_Use_When><Execution_Policy>
nb_transport_fw/bw() with
PEQ (peq_with_cb_and_phase) and payload pooling (tlm_mm_interface + acquire()/release()).
LT (b_transport()) only for simple register access (APB/AXI-Lite) or when explicitly requestedtemplates/tlm2-module-template.cppexamples/bfm-at-pattern.cppexamples/bfm-pattern.cpp
</Execution_Policy>| Type | Pattern | Example |
|---|---|---|
| Reference Model | ref_{module}.c / .h | ref_cabac.c |
| BFM | bfm_{module}.cpp / .h | bfm_axi_master.cpp |
| TLM Adapter | tlm_{module}_adapter.cpp | tlm_cabac_adapter.cpp |
| Memory Manager | memory_manager.h | memory_manager.h |
| DPI-C Interface | dpi_{module}.cpp / .h | dpi_interface.cpp |
| Testbench Top | tb_{module}_top.cpp | tb_cabac_top.cpp |
| Package (shared types) | {module}_types.h | cabac_types.h |
| Target | Rule | Example |
|---|---|---|
| SC_MODULE | snake_case | cabac_encoder_bfm |
| Reference Model class | {module}_ref_model | cabac_ref_model |
| BFM class | {module}_bfm | axi_master_bfm |
| TLM Socket | {role}_{protocol}_socket | init_axi_socket, targ_mem_socket |
| Member variables | m_ prefix | m_state, m_ctx_table |
| Constants | UPPER_SNAKE_CASE | MAX_CTX_ENTRIES |
SystemC ports use the same names as their RTL counterparts:
sc_in<sc_uint<8>> i_data{"i_data"};
sc_out<bool> o_valid{"o_valid"};
sc_in<bool> sys_clk{"sys_clk"}; // clock: no i_/o_ prefix
sc_in<bool> sys_rst_n{"sys_rst_n"}; // reset: no i_/o_ prefix
Core principles:
Fixed-point rules:
int16_t, uint32_t); no int (platform-dependent width), no float/double// CORRECT: bit-exact fixed-point multiply
int32_t fixed_mul(int16_t a, int16_t b) {
return static_cast<int32_t>(a) * static_cast<int32_t>(b);
}
// WRONG: 'int result = a * b;' — implicit promotion may differ from RTL
timing_constraints.json — no magic wait(2.0, SC_NS) numberssc_main testbench; always call set_response_status() before returning# Reference Model (standalone C, no SystemC)
gcc -std=c11 -O2 -Wall -Wextra -Werror -shared -fPIC -o ref_cabac.so ref_cabac.c
# BFM (SystemC required)
g++ -std=c++17 -O2 -Wall -Wextra \
-I${SYSTEMC_HOME}/include -L${SYSTEMC_HOME}/lib-linux64 -lsystemc \
-o tb_cabac tb_cabac_top.cpp bfm_cabac.cpp
# cocotb integration (shared library, C ref model)
gcc -std=c11 -shared -fPIC -o ref_cabac.so ref_cabac.c
cocotb integration:
import ctypes
lib = ctypes.CDLL("./ref_cabac.so")
lib.encode_bin.restype = ctypes.c_uint32
lib.encode_bin.argtypes = [ctypes.c_uint16, ctypes.c_bool]
expected = lib.encode_bin(ctx_addr, bin_val)
Mandatory:
<cstdint>), RAII, const, header guardtlm_mm_interface, p->reset() in free()) + PEQProhibited:
float/double in bit-exact models; platform-dependent intmalloc/free (use RAII); using namespace std; in headersb_transport in performance BFMs (use AT); missing AT phase transitions (implement all 4 phases with PEQ)<Tool_Usage> This skill is not executed directly. It is referenced by agents that generate SystemC code (e.g., bfm-dev, ref-model-dev). Agents should follow the conventions defined here. </Tool_Usage>
AT non-blocking BFM (MemoryManager, PEQ, AXI extension, 4-phase): `examples/bfm-at-pattern.cpp`. LT register-access BFM: `examples/bfm-pattern.cpp`.<Escalation_And_Stop_Conditions>
<Final_Checklist>
ref_ / bfm_ / tlm_ / dpi_ prefixint32_t etc., no int/float)i_data, o_valid, sys_clk)m_ prefix for member variablesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
56 skills in this plugin
/arch-reviewRead-only architecture review of RTL vs uArch spec with area/timing/power tradeoffs. Use for post-RTL architecture sign-off or suspected spec mismatch./bfm-developBuilds Phase 3 SystemC TLM-2.0 bus functional models with AMBA (AXI/AHB/APB) support. Use for 'develop BFM', 'SystemC TLM model', 'bus functional model'./codec-conformance-evalEvaluate C ref-model decoder against JVET/JCTVC conformance bitstreams (bitexact/MD5) — 'decoder conformance'; C-level, not RTL (rtl-conformance-test)./codec-rd-evalEncoder RD evaluation of C ref model: BD-PSNR/BD-rate (VCEG-M33) across sequences/QPs — 'RD eval', 'BD-rate', codec algorithm quality comparison./codex-cross-reviewOne independent Codex review of completed phase artifacts when requested or enabled for the project./cross-phase-contract-validatorValidate spec contracts across phase boundaries (P3 uarch to P4 RTL to P5 verify): port widths, memory class, REQ traceability. Use at P4/P5 entry.npx claudepluginhub babyworm/rtl-agent-team --plugin rtl-agent-teamOther plugins' skills for the same job