askeco / src_info_hf /api.get_leafs_count.txt
gofeco's picture
Upload 100 files
b8d41f7 verified
raw
history blame
468 Bytes
<h3 id='___get_leafs_count'>get_leafs_count</h3>
<pre>Get all leaf cells name and count in the top level module, return an array
<b>Usage:</b> @leaf_count = get_leafs_count;
@leaf_count: Array of leaf name and count
( [leaf0, cnt0], [leaf1, cnt1], ...)
<b>Examples:</b>
@leaf_count = get_leafs_count;
foreach my $leaf_point (@leaf_count){
my $leaf_name = $leaf_point->[0];
my $count = $leaf_point->[1];
print "LEAF: $leaf_name has $count cells
";
}
</pre>