Get_collection_size, Usage, Options – Altera Quartus II Scripting User Manual

Page 305: Description, Example, Get_collection_size –175

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–175

misc

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_collection_size

Usage

get_collection_size <collection>

Options

<collection>: Collection

Description

Returns the size of a collection.

Unlike a Tcl list, a collection is a container specific to the Quartus®II software, whose elements can be
accessed by using the "foreach_in_collection" command.

Example

## Displays the number of global assignments
project_open chiptrip
set num_global_asgns [get_collection_size \
[get_all_global_assignments -name {*}]]
puts $num_global_asgns
project_close

Advertising