Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16592 Discussions

[TCL] collections -> some questions

Altera_Forum
Honored Contributor II
1,183 Views

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
Altera_Forum
Honored Contributor II
396 Views

Any response? help?

0 Kudos
SJand1
Beginner
396 Views

​I guess you search for this:

foreach_in_collection

 

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

 

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
Reply