get_tb_subtree
Drill into a testbench hierarchy branch after build_tb_hierarchy, returning a depth-limited component slice from a specified root to inspect modules without loading the entire tree.
Instructions
Return a slice of the component_tree starting at root (dotted instance path) with up to depth levels. Use after build_tb_hierarchy to drill into a branch without pulling the whole tree into context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | dotted instance path (e.g. 'top.u_cpu'); empty = top module | |
| depth | No | -1 = unbounded; otherwise number of levels to include | |
| handle | Yes | hierarchy_handle from build_tb_hierarchy | |
| max_nodes | No | hard cap on emitted nodes |