Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
797 Views

[TCL] collections -> some questions

Hi All, 

 

In order to get a collection of the pins, I've run the following command:  

 

%> get_names -filter * -node_type pin 

%> _collection3 

 

Now how can I "echo" the collection? How can I see what elements does it include? 

 

Thank you!
0 Kudos
2 Replies
Highlighted
Honored Contributor I
10 Views

Any response? help?

0 Kudos
Highlighted
Beginner
10 Views

​I guess you search for this:

foreach_in_collection

 

documented here: https://www.intel.com/content/www/us/en/programmable/documentation/sbv1513989262284.html#hcl15481731...

 

example:

 

set accel_name_id [get_names -filter accel -node_type pin -observable_type post_fitter]

 

foreach_in_collection name_id $accel_name_id {

  # Get the full path name of the node

  set target [get_name_info -info full_path $name_id]

  # Set multicycle assignment

  set_multicycle_assignment -to $target 2

  # Set location assignment

  set_location_assignment -to $target Pin_E22

 }

0 Kudos