Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

time quest iterating over collections

I have generated a collection thus:

set clkcoll [get_clocks *]

foreach_in_collection clk $clkcoll {

puts [ get_object_name $clk ]

}

How do I translate the collection iterator

into a name string? Synopsys has the "get_object_name"

function to return the object name as a string.

This does not work in Time Quest.

What is the Time Quest method?

Solution found: get_object_info $item -name

set clkcoll [get_clocks *]

foreach_in_collection item $clkcoll {

set clk [get_object_info $item -name]

puts $clk

}
No RepliesBe the first to reply