trace_cone
Trace transitive combinational fanin or fanout from a net or term, crossing hierarchy and stopping at flops, ports, and black boxes; returns node counts and frontier endpoints for logic reachability.
Instructions
Trace the combinational fanin/fanout cone of a term/net via naja's
LogicCone. Use this for transitive logic reachability; use get_drivers or
get_loads for only immediate endpoints. direction: fanin|fanout. The cone
crosses hierarchy and
combinatorial arcs and always stops at flops, top ports, and opaque
black-box cells. Returns node_count, counts_by_kind, counts_by_model, and a
frontier of {flops, ports, blackboxes} with exact counts and lists capped
at max_frontier (<=200) with a truncation marker.
cross_hierarchy groups the flop frontier by top-level submodule and, under
outside_root_subtree, names the frontier registers that live OUTSIDE the
cone root's own subtree (the cross-hierarchy answer) — read it directly.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"direction": "<direction>"
},
"name": "trace_cone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bit | No | Bus bit index, separate from the literal name; omit for the whole object. | |
| path | Yes | Exact hierarchical path to the cone's root term or net. | |
| direction | Yes | Traverse upstream fanin or downstream fanout logic. | |
| max_frontier | No | Maximum listed endpoints per frontier kind; clamped to 1..200. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |