|
发表于 2022-4-5 13:36:03
|
显示全部楼层
all_fanout returns a collection, not list.
If you only care about the name of the objects in the collection, you can convert all_fanout output into a list first.
Once you have a list, it's easy to use lreverse to change the order of the list.
Example:
set myList [get_object_name [all_fanout -from u_digcore/u_registers/rg_config0_r_reg_0_cn/Q -endpoints_only]]
puts $myList
puts [lreverse $myList]
If you want to reverse the order of the objects in a collection, it takes a few more lines.
|
|