trace_cone
Trace combinational fanin or fanout logic reachability across hierarchy, stopping at flops, ports, and black boxes. Returns node counts and frontier details.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |