/vibe-soc:soc-integratefrom Vibe SoC
Extract RTL ports, generate instances/wrappers/top modules, check connections, and refresh named instances from current RTL with optional tracking.
Ships in Vibe SoC. 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; scripts run unread.
Agents must use the registered soc-integrate MCP server and must not invoke
the Python CLI as a fallback. CLI examples below are for development/testing only.
Tools:
soc_extract, soc_instantiate, soc_wrap, soc_csvsoc_integrate, soc_check, soc_extract_map, soc_update, soc_removesoc_snapshot, soc_diffsoc_integrate writes the top. Warnings and the Checks summary go to stderr;
stdout carries the primary result or output paths. For CLI integration, -n name
defaults to -o name.sv; -o path.sv derives the top name from the file stem.
Omitting both is an error. Both sidecars default
off: csv=True / --csv requests <top>.integrate.csv; track=True / --track
requests <top>.integrate.json, including a checks array. They are independent.
soc_csv remains an explicit module-port CSV export. Every text output ends in a
newline. Sidecars already present are not deleted or refreshed unless requested.
python3 scripts/soc_integrate.py integrate a.sv b.sv -n top -o top.sv --map ports.json
python3 scripts/soc_integrate.py update top.sv --files a.sv b.sv
python3 scripts/soc_integrate.py diff top.sv --files a.sv b.sv
python3 scripts/soc_integrate.py check top.sv --files a.sv b.sv --strict
python3 scripts/soc_integrate.py extract-map top.sv -o ports.json
Paths above are relative to this skill directory. soc_update(top_file=..., module_files=[...]) reads actual instance names, named parameter overrides and
named port expressions from the existing top. It preserves each surviving
connection expression verbatim, adds current ports using the shared/map rules,
removes deleted ports, and rebuilds top ports/wires. Surviving top ports keep their
existing header order; new top ports are appended. Existing connections take
precedence over a supplied map; maps provide defaults for newly added ports.
It reports [NEW], [DEL], and [MOD] per instance. A single deletion/addition
on the same module with equal direction and resolved bit count also reports
[REN?] old -> new and a suggested exact port-map entry retaining the former
connection. This is a suggestion; refresh does not rename connections automatically.
Review it before updating, or use --strict to stop before writing. A removed
child port that exposes its former internal net as a new top input/output reports
removed-port-exposes-net. Refresh/diff warn about stale exact port-map keys
(non-existent instances or ports); initial integration still rejects unknown
owners to catch typos. Non-existent ports on a known owner warn in all flows. Neither update, diff-from-top,
nor extract-map requires JSON. Update accepts the legacy config_file JSON form
as well. soc_remove accepts a tracked config or generated top. Its module_name may
name one instance or a module (removing all its instances). Unknown names fail
without writing. Matching exact map owners and templates used only by removed
endpoints are dropped; templates also used by surviving endpoints remain.
output, strict and port_map have the same meaning as on update.
Generated tops carry a // soc-integrate: metadata comment containing the prior
interface and original map rules. Version 2 stores each module interface once in
modules; instances reference the module name and store only parameter overrides.
Source paths are relative to the top file, so moving an identical source/top tree
produces identical metadata and supports implicit-source refresh from any working
directory. Original map/template precedence and source/instance order remain
stable. Legacy version 1 full-instance metadata (including absolute source paths)
is still readable and upgrades on refresh. This lets width/direction/type changes
and templates survive without a sidecar. Connections are always read from RTL, not
from that comment. Without prior metadata, additions/deletions are detectable;
old internal port directions/widths cannot generally be recovered. Provide
current RTL with --files (MCP module_files); generated source paths are an
optional convenience. Snapshot-based diff module.sv snapshot.json and spec
check module.sv spec.json remain available. Refresh owns generated declarations and named instances. Protect custom logic
with paired markers (multiple blocks are supported):
// soc-integrate:user begin
wire custom_enable;
assign custom_enable = test_mode;
// soc-integrate:user end
Blocks are preserved verbatim by update and by integrate -o when regenerating
an existing top. Connection checks recognize simple continuous/procedural
assignments to whole value nets or constant selections and their reads, including
user-declared nets and IRQ vectors. Declarations/comments alone do not establish
drivers or consumers. Partial writes retain coverage checks and overlapping
child/user drivers fail in chip mode. This is a connectivity heuristic: it does
not prove conditional assignment coverage or functional behavior. Functions,
tasks, generate scopes, member/concatenation lvalues and custom module pin roles
remain opaque and need separate lint/review. Nested or
unmatched markers fail before writing. Unrecognized body text outside protected regions is preserved verbatim in an
automatically created user region, including declarations, assign/always logic,
unknown module instances, generate/preprocessor blocks, comments and functions/tasks.
Diff/check/update report [preserved-unmanaged] with the original file:line.
The next update is idempotent. The same preservation applies when regenerating
an existing generated top with integrate -o. Regeneration drops removed
tool-managed instances rather than preserving them as user text. Existing
non-generated files are refused unless --force (MCP force=True) is given;
force replaces that file. Conditional owned instances stay verbatim with their
wrapping and connections, participate in the connection graph, and report
conditional-preserved. Their nets retain declarations and are never promoted
merely because of conditional wrapping. Refresh does not rewrite their pins;
review conditional source when a child interface changes. Generated declarations carry ownership
metadata so new user declarations are not mistaken for generated nets.
Positional/wildcard connections, module instance arrays and duplicate pins on
managed instances still fail explicitly. Opaque user code is preserved, not elaborated.
Legacy exact module keys still work: {"mappings":{"consumer.data_i":"q"}}.
The preferred keys use instance names, allowing repeated instances of a module.
For repeated instances supply an instances list as in this example:
{
"instances": [
{"module": "dma", "instance": "u_dma0"},
{"module": "dma", "instance": "u_dma1"}
],
"mappings": {
"u_dma1.irq_o": "special_irq",
"u_dma0.enable": "1'b0",
"u_dma0.status_o": null
},
"templates": [
{"regex": "u_dma(\\d+)\\.irq_o", "value": "dma_irq[$1]"},
{"glob": "u_*.reset_n", "value": "rst_$1_n"}
]
}
Each instances[] entry may supply parameters, keyed by the child's public
parameter name. JSON integers emit decimal literals, booleans emit 1'b1 / 1'b0,
and strings emit verbatim HDL expressions. For example:
{"instances": [{"module": "tlul_socket_1n", "instance": "u_socket",
"parameters": {"N": 2, "ExplicitErrs": true}}]}
{"N":"2"} and {"N":"(1+1)"} also select two devices. Unknown parameters,
localparam overrides and other JSON value types fail explicitly. Each configured
instance resolves its own parameter/localparam chains, packed bounds and unpacked
bounds; the shared default interface is unchanged. Integer arithmetic is folded
locally where supported. Named types and remaining expressions use Verilator
probes with -G overrides (locally evaluable expressions become literal -G
values). Verilator 5.032 only accepts literals with -G; expressions it cannot
consume produce an error identifying the instance, ports, expressions and compiler
diagnostic. Supply all referenced packages/dependencies. No child parameter or
localparam name is emitted in a generated top dimension after an override.
Whole unpacked value-array connections retain the child's packed type followed by
its concrete unpacked dimensions, e.g. tlul_pkg::tl_h2d_t dev_h2d [2].
dev_h2d[0] selects one unpacked element and is checked against that element's
packed width. Element connections never widen or replace the whole-array net's
declaration. This also applies when element instances precede the whole-array
instance in the map. Unpacked array slices are rejected explicitly.
Precedence is exact instance.port, then exact legacy module.port, then the
first matching template. Ordered patterns embedded in mappings precede the
templates list; JSON object/list order is preserved. Patterns match the entire
instance.port. Use regex: or glob: key prefixes; legacy keys containing
parentheses/backslashes infer regex and keys containing */? infer glob.
Regex follows Python re syntax. Glob captures each * (zero or more characters)
and ? (one character); other characters, including brackets, are literal.
$1, $2, etc. substitute captured groups. Values can be signal expressions or
objects such as {"signal":"data","clock":"clk_a","sync":true}. Objects containing only clock/sync annotations keep the default connection;
put annotations in annotations when they should apply independently of mappings.
Selections (sig[7:4], sig[3], sig[$1*8 +: 8],
sig[($1+1)*8-1 -: 8]) are explicit connections. After template substitution,
constant integer arithmetic determines the selected interval, parent bus size,
connection width and driver overlap. Symbolic selections retain unknown widths;
negative indices and nonpositive indexed widths fail explicitly. Constants (1'b0, '0, 8'hFF, '1)
are valid input tie-offs. Qualified package constants (pkg::Enabled) retain
their type spelling. With supplied packages and Verilator, an isolated constant
probe verifies constantness and width, including enum values; missing symbols
and package variables fail. Otherwise their widths remain unknown. General
package expressions/casts still need supplied adapter/user logic.
null and "" emit .port(): outputs report unused;
inputs warn as undriven and should instead receive a constant when tied off.
Generated empty connections are individually enclosed in Verilator
lint_off PINCONNECTEMPTY / lint_on PINCONNECTEMPTY comments. These comments
acknowledge the explicit mapping without suppressing the soc-integrate checks.
Constants on outputs/inouts are errors. No automatic truncation/extension or
implicit slicing is performed.
Inout pads never auto-share. Bus-like ports (tl_*, *_req/*_rsp including
_i/_o suffixes, names containing h2d/d2h, axi_/apb_/ahb_ prefixes)
and package/user/struct value types are also excluded from automatic sharing.
They receive separate instance-prefixed nets, with auto-share-blocked
messages when same-name candidates exist. To opt in, map each endpoint explicitly
to the same signal, e.g. {"mappings":{"u_a.tl_i":"host","u_b.tl_i":"host"}}.
Sharing multiple typed/bus inputs this way produces explicit-bus-share so the
protocol intent stays visible. Scalar clock/reset inputs retain auto-sharing.
Native interface/modport connections retain their existing interface rules.
Other unmapped same-name inputs share an external input only when their normalized
resolved widths, type text and unpacked dimensions match. One compatible output
plus inputs connects through an internal net. Normalization treats implicit
wires and wire/reg/logic storage as the same four-state value type; signedness
and named/package types remain distinct. Incompatible candidates are exposed
separately with an instance prefix and an auto-share-incompatible warning, so users
can map explicitly. Otherwise unique ports are exposed with an instance prefix.
Explicit maps can share otherwise different names. Inspect the generated wiring:
names alone do not establish protocol compatibility.
extract-map retains templates from the top's metadata and adds exact keys only
for unmapped/manual connections. --expand (MCP expand=True) explicitly
materializes all instance-port keys. Rules are never expanded by default.
integrate --chip (MCP chip=True) or port-map "chip": true disables
implicit exposure of unmatched child ports. pads (alias top_ports, used
when pads is absent) is a list of exact names or Python fnmatch globs,
matched against would-be top net names and instance.port names. An object
{"name":"uart_tx_o","from":"u_uart.cio_tx_o"} renames the whole connected
net, including its peers. A rename must select one net; conflicting names,
collisions, ties/opens and partial-net pad selections fail. Unmatched whitelist
entries are errors in chip mode (warnings otherwise). Pad selection/renaming
also works outside chip mode, without restricting other top ports.
Only whitelisted nets and clock/reset specs with "top": true become chip
top ports. Every other input needs an internal driver or an explicit constant
such as "1'b0", "'0", or "{N{1'b0}}" (instance parameters in replication
counts are resolved). Every other output needs a consumer or explicit null
(empty connection); inputs mapped to null remain errors. Sharing inputs alone
does not supply a driver. Connectivity errors list instance.port, direction,
and type and fail before writing the top or sidecars, even without --strict.
check/MCP soc_check uses actual top ports when identifying undriven inputs,
unconsumed outputs and overlapping drivers. Pass --chip, --map, --domains
(MCP chip, port_map, domains) to check an existing top against that intent;
generated tops retain the map automatically. User-region logic beyond the simple
assignment/read heuristic above still needs manual review. Explicitly opened
outputs retain the existing
unused-output warning; --strict rejects that warning as in other modes.
Unique/non-shareable auto-exposed nets now use the instance prefix in all
modes, e.g. u_uart_cio_tx_o, including a single instance or custom instance
name. Compatible automatically shared ports keep their common net name.
Explicit mapping names and surviving refresh connections remain unchanged.
Tests/docs migrate to this naming; there is no module-prefix compatibility flag.
Small chip-mode example (the two children have the listed ports):
{
"chip": true,
"instances": [{"module":"uart", "instance":"u_uart"},
{"module":"plic", "instance":"u_plic"}],
"pads": ["clk_main_i", "rst_main_ni", "u_uart.cio_rx_i", "u_plic.irq_o",
{"name":"uart_tx_o", "from":"u_uart.cio_tx_o"}],
"clocks": {"main":{"net":"clk_main_i", "ports":["u_*.clk_i"]}},
"resets": {"main":{"net":"rst_main_ni", "ports":["u_*.rst_ni"]}},
"mappings": {"u_uart.test_i":"1'b0", "u_uart.status_o":null},
"irq": {"target":"u_plic.intr_src_i", "sources":["u_uart.intr_*_o"],
"reserve_zero":true}
}
irq.target is an input instance.port or a simple net name. sources is an
ordered list of output endpoints or fnmatch globs. List order wins; each glob
expands in instances order, then child port declaration order. A repeated
source or an unmatched source pattern is an error. A multi-bit packed vector
expands in ascending declared numeric bit order, including nonzero lower bounds;
scalars have no bit suffix. Unpacked/multidimensional arrays and unresolved
widths need a supplied adapter and fail explicitly. Sources/target may have
explicit whole-net mappings; ties, opens and slices cannot serve as IRQ nets.
reserve_zero defaults false; true fixes vector index 0 to zero. width is an
optional positive integer capacity. The vector is zero-padded to the target
port width (or mapped target-net consumer width); excessive sources/capacity
fail. A standalone net target uses width or the required bit count and needs
a consumer or a whitelist entry in chip mode. SV declares the vector and
emits one explicit assign concatenation; no decoder or interrupt controller
logic is generated.
--irq-json FILE / --irq-header FILE (MCP irq_json, irq_header) independently
export IRQ assignments, default off. JSON contains top, target, width,
count, reserve_zero, and ordered irqs entries (index, source, instance,
module, port, bit). The guarded C header emits
#define <TOP>_IRQ_<INST>_<PORT>[_<bit>] <index> and <TOP>_IRQ_COUNT.
count is the number of allocated indices including reserved zero, excluding
high padding. Identifiers are uppercased; macro collisions fail. Export flags
require an IRQ section. CLI update/remove can also re-export with these flags.
clocks and resets are objects keyed by domain, each containing a simple
net, optional ports pattern list, and optional boolean top (default false).
If exactly one domain exists in a section, its default patterns also connect
input ports named clk, clk_i, clk_*_i or rst_n, rst_ni, rst_*_ni
respectively. For multiple domains supply unambiguous patterns. Exact/template
signal mappings and preserved RTL connections take precedence. Conflicting
applicable domain matches fail with the endpoint. Declared clock domains feed
the CDC graph even for nonstandard clock pin names; legacy domains annotations
and per-port clock/sync annotations remain supported. Multi-clock instances
still need per-port annotations where the sink domain is ambiguous.
--domains FILE (MCP domains) reads a JSON list and persists the equivalent
clocks/resets specs in the generated metadata, so refresh needs no manifest:
[{"name":"main", "clk":"clk_main_i", "rst":"rst_main_ni",
"ports":{"clk":["u_*.clk_i", "u_sram.clk"], "rst":["u_*.rst_ni"]}}]
ports may be omitted; clocks/resets are accepted aliases for clk/rst
inside ports. Optional "top": true declares both domain nets as top inputs;
otherwise whitelist them in chip mode or drive them from supplied modules.
Conflicting manifest/map specs and duplicate domain names fail. CLI
integrate/update/remove/check accept --domains; MCP integration/check expose
it directly, and MCP update/remove consume the persisted or replacement map.
The reader wires supplied nets only. It generates no reset synchronizers, reset
source trees, dividers, gates, address fabric, project filelists or testbenches.
Integration, update and top check report structured warnings for known width
mismatches, unknown widths, overlapping multiple drivers, unconnected inputs,
unused/unconnected outputs, and inferred CDC crossings. Exposed top inputs are
external drivers; exposed top outputs are external consumers, so neither is
reported as floating merely because there is no other child endpoint. CSV
Shared_With lists actual other instance.port endpoints on the same net,
including clocks, resets and internal nets; Checks lists associated warning
codes. The tracking JSON stores the full check results. --strict (MCP
strict=True) makes warnings fail with nonzero status before any output write.
Port-spec checks always fail for missing/extra/modified ports.
Clock inference recognizes clk, clk_*, *_clk, and *_clk_i/*_clk_o and
uses their connected signal names as domains. Override with per-port
annotations, mapping value objects, or domains keyed by instance (then
module). Multi-clock sinks need a per-port clock; ambiguous domains warn.
For example:
{
"annotations": {"u_dma.data_i": {"clock": "clk_a", "sync": true}},
"domains": {"u_cpu": "clk_a", "u_io": {"data_i": "clk_b"}},
"synchronizers": ["u_io.async_i", "u_sync"]
}
clock may name a child clock port (resolved to its connected net) or an
explicit domain label. sync:true, a sink endpoint, or a sink instance in
synchronizers declares an intentional synchronizer. These are heuristic
connectivity checks, not CDC/RDC, protocol, electrical or timing signoff. Review
clock/reset-domain and synchronizer intent with the relevant signoff tools.
Supports ANSI continuations, non-ANSI ordered headers plus body direction
statements, wire/reg/logic, signedness, multiple names, packed/unpacked dimensions,
output storage redeclarations, header/body parameters, parameters with unpacked dimensions, header package imports,
and body localparams.
Extraction preserves symbolic widths and defaults. Generated concrete dimensions
simplify constant integer arithmetic ([WIDTH-1:0] with WIDTH=8 becomes [7:0]);
symbolic dimensions remain symbolic. Wrappers forward public parameters;
localparams never become instance overrides. Package/user-defined type text is
preserved verbatim in declarations; package-qualified or _t value types may
omit the input direction. Provide package/typedef sources to the HDL
tool. Unknown type widths produce a check warning rather than a guessed width.
Native interface ports support bus_if.mp s, bus_if s, generic interface s /
interface.mp s, and unpacked arrays such as bus_if.mp s [N] or [0:N-1].
Parameterized types belong on the interface instance: bus_if #(.W(32)).mp s
is not legal port syntax and is rejected. Interface definitions can have parameter
and signal headers, e.g. interface bus_if #(parameter int W=8)(input logic clk).
Pass definition files alongside module files (interface-only files are dependencies,
not managed child modules), through includes, or in packages. Extract reports the
definitions under interfaces; instantiate connects complete expressions.
Configure concrete instances by the mapped signal's base name:
{
"mappings": {"u_source.s": "bus", "u_sink.s": "bus"},
"interfaces": {
"bus": {
"type": "bus_if",
"parameters": {"W": 32},
"ports": {"clk": "clk"},
"unpacked": "[0:1]"
}
}
}
This emits bus_if #(.W(32)) bus [0:1] (.clk(clk));. Omit unpacked for a scalar;
whole-array ports infer their resolved dimensions. type is inferred from typed
ports; generic ports need a concrete peer on the same net or an explicit type.
Omitted parameter overrides use definition defaults. Interface header signals
default to same-name top signals; ports remaps them or supplies constants.
Parameter overrides also resolve dimensions of these signals. Definitions absent
from the input still permit typed instances with explicit ports/parameters.
Interface inputs using expressions beyond a simple identifier or constant need
an existing declaration. There is no protocol or per-signal modport-direction signoff. Integration, check
and update warn about interface-array elements with no connected child port
(interface-element-unconnected), or no connected output/inout modport
(interface-element-undriven). Whole-array ports cover all elements; [N],
ascending and descending constant bounds are supported. Plain/generic interface
ports have unknown driver roles and do not establish an undriven finding. Opaque
user logic is not analyzed for interface drivers; review these warnings when
custom code drives an element. This is an element-coverage heuristic, not a check
that every individual signal inside a connected interface is driven.
For per-element connections, use scalar child ports and templates such as
{"regex":"u_sink(\\d+)\\.s","value":"bus[$1]"}. Constant indices infer a
zero-based interface instance array; explicit unpacked can specify its bounds.
Array child ports connect to the whole array. Update reads actual interface
parameter overrides, dimensions and header connections, and extract-map retains
these under interfaces. Definition source paths remain available for JSON-free
refresh. Verilator 5.032 rejects legal generic interface ports with UNSUPPORTED;
parser/generator/refresh tests still cover them, and generic lint tests explicitly
skip only when that compiler capability is absent. Concrete/modport ports and
arrays are linted with fatal warnings.
Inline aggregates, default-valued ports, positional/wildcard module connections
and module instance arrays/multiple instances per statement remain unsupported.
The parser is not a complete SystemVerilog elaborator. With package sources it
asks Verilator to elaborate an isolated public header using --json-only on
versions 5.032 and later (detected with --version). Compiler-folded $bits
localparam probes resolve typedef/packed struct/union sizes, and bound probes
resolve package constants in dimensions. These avoid incomplete pre-width JSON
dtype links. Older/unknown versions use legacy --xml-only. Unsupported JSON
options or AST schemas fall back to XML; unsupported XML options/schemas fall
back to the text parser's symbolic widths (width-unknown checks). If the isolated
header fails because declarations or constants need the module body, the tool retries the full real module, using disposable preprocessed source
with compiler probes. Full elaboration reads the AST's port names/directions and
folded bit/bound probes, while retaining the original type spelling; module-local
types use a concrete packed representation in parent declarations. Dependencies
come from repeatable -y DIR / --library-dir DIR (MCP library_dirs), the
module's sibling directory and remaining supplied source files passed as -v
libraries. Include directories, defines and packages are also forwarded. Full
elaboration uses --top-module <module> and -Wno-fatal for extraction only;
HDL errors fail with the module name and the first real Verilator error lines.
Original source locations, including included port declarations, accompany compiler diagnostics.
Original type spelling remains in metadata. Unqualified imported port types receive
package-qualified declarations in the parent; with multiple wildcard imports,
all supplied imported packages are searched for the typedef. Ambiguities identify
the module port and candidate package names. Explicit imports
retain precedence over wildcard imports. Extraction reports default-configuration
counts; integration re-evaluates overridden instances independently.
Supply all transitive package dependencies. --package / MCP packages accepts
any order: package declarations, imports and pkg::name references determine a
stable topological order, also used in generated lint filelists. Dependency
analysis uses active preprocessed text, ignoring comments/strings/inactive
branches. Missing packages and dependency cycles fail with real source file:line.
Files containing mutually interleaved package dependencies must be split if no
file order can satisfy them. This orders supplied files; use sibling
soc-build.soc_flist for project dependency discovery.
Without packages, named types remain symbolic and produce width-unknown checks.
Inline structs/aggregates, type parameters and default port values remain outside
the text parser's scope. Unsupported port declarations report a file, line and construct rather than dropping ports.
All RTL-reading MCP tools accept include_dirs, defines, packages and library_dirs.
CLI equivalents are repeated -I dir, -D NAME[=value], --package file.sv
(in any order), repeatable -y dir, plus +incdir+dir+dir / +define+NAME=value+NAME.
When Verilator is on PATH, extraction uses verilator -E --relative-includes
over all package and source files together, with those options. A preprocessing
pass establishes package dependencies before the ordered extraction pass.
Cross-file macro definitions persist in the ordered compilation unit; macros
that require a particular source-file order still need that order.
Root and include line directives split the output back by source file. Retained line directives map each port
and diagnostic to the original source file and absolute line, including includes.
Function-like macros in headers and bodies are handled by Verilator.
Without Verilator the built-in preprocessor supports includes, object macros, nested conditionals and undef. Function-like defines and body calls are skipped; a function-like macro in a port/parameter header fails with a source location and an instruction to install Verilator. Missing includes, undefined object macros, recursive expansion and malformed conditionals fail explicitly. The fallback cannot resolve package typedef widths or elaborate function-like header macros.
python3 scripts/soc_integrate.py extract peripheral.sv -I rtl/prim \
--package rtl/common_pkg.sv --package rtl/peripheral_reg_pkg.sv -D FEATURE=1
integrate / update / remove accept --lint-config (MCP lint_config=True).
This independently opts into <output-stem>.vlt and <output-stem>.lint.f next
to the output top. Pass -y dir / --library-dir dir (MCP library_dirs) for
library discovery. --vendor-dir dir (MCP vendor_dirs) explicitly opts a
directory into lint waivers without adding library discovery. Include directories
alone do not opt first-party RTL into waivers. Ordered packages, include directories, defines, interface
sources, library directories, module files and the top are included in the filelist.
python3 scripts/soc_integrate.py integrate vendor/ip.sv -n top -o top.sv \
--package vendor/pkg.sv -I vendor/include -y vendor/rtl --lint-config
verilator --lint-only -Wall --top-module top top.vlt -f top.lint.f
The config starts with `verilator_config and scopes lint_off -file to
absolute sources under a vendor/ path component and explicit library/vendor
directory globs. First-party module/package files outside those scopes keep
their warnings fatal, even when passed explicitly or through an include directory. It also
scopes UNOPTFLAT (performance), SYMRSVDWORD (C++ symbol portability) and
MULTIDRIVEN (including vendor array-element writes on Verilator 5.032)
explicitly, since those diagnostics are outside Verilator's default lint group (control-file syntax).
The generated top never receives a waiver, including when it is within an
explicit vendor/library directory: those directories are enumerated with the top excluded.
Warnings introduced in the generated top still fail -Wall; -Wno-fatal is not
needed. Syntax/elaboration errors remain errors. Review the dependency scopes
before using this option on mixed first-party/vendor trees. Paths are absolute;
regenerate collateral when moving the checkout or changing dependencies.
integrate -f filelist accepts source lines, +incdir+, +define+, -I, -D,
-y, comments (# and //) and nested -f lists. Paths resolve against each
filelist's directory. update/remove/top check/top diff also accept -f
for current module sources. Snapshot keeps its legacy -f format option.
Module selection -m is supported for module commands and validates the top
name on top check/diff. It is not accepted on integrate/update/remove/extract-map.
Consume sibling soc-build.soc_flist output as source/filelist input; this tool
does not replace project dependency discovery. Address-map inputs and decoder/
crossbar generation belong to gen-asic-memmap; register RTL and maps come from
yml2reg. Supply existing clock/reset RTL for integration. Use crg-design-gen
for clock/reset design tables, soc-build for project dependency filelists, and
the verification workflow for testbenches. Existing
opt-in .lint.f is only a manifest of explicitly supplied inputs for the tool's
scoped lint config; it does not discover or create a project filelist. DFT readiness and SGDC remain
with dft-gen and the DFT owner per rule 14. These parser/refresh tools
do not infer or generate address maps, CRG trees, reset policy or DFT circuitry.
The following ordered parameter names exactly match the registered tool schemas. Defaults/types are supplied by MCP; optional additions retain legacy call order.
soc_extract(verilog_file, module_name, include_dirs, defines, packages, library_dirs)
soc_instantiate(verilog_file, instance_name, module_name, include_dirs, defines, packages, library_dirs)
soc_wrap(verilog_file, module_name, wrapper_name, output, include_dirs, defines, packages, library_dirs)
soc_csv(verilog_file, module_name, output, include_dirs, defines, packages, library_dirs)
soc_integrate(module_files, top_name, output_file, port_map, csv, track, strict, include_dirs, defines, packages, lint_config, library_dirs, vendor_dirs, force, chip, domains, irq_json, irq_header)
soc_update(config_file, output, port_map, top_name, module_files, top_file, csv, track, strict, include_dirs, defines, packages, lint_config, library_dirs, vendor_dirs)
soc_extract_map(top_file, output, verify_modules, expand, include_dirs, defines, packages, library_dirs)
soc_check(verilog_file, spec_file, module_name, module_files, strict, include_dirs, defines, packages, library_dirs, chip, domains, port_map)
soc_snapshot(verilog_file, module_name, output, format_type, version, changelog, include_dirs, defines, packages, library_dirs)
soc_diff(verilog_file, snapshot_file, module_name, module_files, include_dirs, defines, packages, strict, library_dirs)
soc_remove(config_file, module_name, module_files, include_dirs, defines, packages, lint_config, library_dirs, output, strict, port_map, vendor_dirs)
LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)examples/gpio.v (opens in a new tab)examples/port_map.json (opens in a new tab)examples/uart.v (opens in a new tab)mcp_server.py (opens in a new tab)scripts/soc_integrate.py (opens in a new tab)tests/fixtures/batch_a/array_leaf.sv (opens in a new tab)tests/fixtures/batch_a/array_pkg.sv (opens in a new tab)tests/fixtures/batch_a/array_socket.sv (opens in a new tab)tests/fixtures/batch_a/body_types.sv (opens in a new tab)tests/fixtures/batch_a/lib/body_helper.sv (opens in a new tab)tests/fixtures/batch_a/real_sources.json (opens in a new tab)tests/fixtures/batch_b/domain_sink.sv (opens in a new tab)tests/fixtures/batch_b/domain_source.sv (opens in a new tab)tests/fixtures/batch_b/irq_sink.sv (opens in a new tab)tests/fixtures/batch_b/irq_source.sv (opens in a new tab)tests/fixtures/batch_b/pad_unit.sv (opens in a new tab)tests/fixtures/batch_c/control_pkg.sv (opens in a new tab)tests/fixtures/batch_c/control_sink.sv (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub siliconpeasant/vibe_soc --plugin vibe-soc13 skills in this plugin
/crg-design-genCRG frontend design flow: requirement table → clock/reset design tables + PLL report, and/or reviewed design tables → Draw.io/Excalidraw topology diagrams. Merges former crg-req-to-design and cr-tree-diag-gen.
/dft-genCheck DFT frontend readiness (test_mode/scan/test_rst hooks), generate DFT collateral under de/dft/, and package inputs for soc_dft (VC SpyGlass TestMAX). Exclusive skill of soc-dft-engineer.
/excel-yml-genGenerate YAML and Verilog register-file artifacts from a structured Excel register workbook. Use when the approved register source is an Excel sheet./gen-asic-memmap从 Excel memory map 生成芯片地址映射 YAML 与 C/SV sysmap header。Use when building SoC address map from a memmap workbook./gen-memwrapExcel 存储器表 → **统一 SoC 端口 wrap** + **开源宏 .lib/.lef**(catalog 匹配或在线生成)。/get-startedChoose a Vibe SoC skill, scaffold a new project with soc_init, or find the local MCP and EDA setup needed for a task.Other plugins' skills for the same job