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

Page 461: Description, Example, Get_partitions –331

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–331

sdc_ext

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_partitions

Usage

get_partitions [-cell] [-hierarchical] [-nocase] <filter>

Options

-cell: Returns a cell collection inside the partitions matching the <filter>

-hierarchical: Specifies if hierarchical searching method should be used

-nocase: Specifies the matching of node names to be case-insensitive

<filter>: Valid partitions (string patterns are matched using Tcl string matching)

Description

Returns a collection of partitions matching the filter by default. All partition names in the collection match
the specified pattern. Wildcards can be used to select multiple partitions at once.

The -cell option creates and returns the collection of cells found inside the partitions matching the <filter>
instead of returning a partition collection.

There are three Tcl string matching schemes available with this command: default, -hierarchical, and
-no_case.

When using the default matching scheme, pipe characters separate one hierarchy level from the next. They
are treated as special characters and are taken into account when string matching with wildcards is
performed. The default matching scheme does not force the search to proceed recursively down the
hierarchy.

When using the hierarchical matching scheme, pipe characters are treated as special characters and are
taken into account when string matching with wildcards is performed. This matching scheme forces the
search to proceed recursively down the hierarchy.

The -nocase matching scheme uses case-insensitive matching behavior.

The filter for the collection is a Tcl list of wildcards, and must follow standard Tcl or TimeQuest-extension
substitution rules. See the help for use_timequest_style_escaping for details.

Example

#Get the partitions matching the filter
get_partitions *

#Get the collection of cells inside partitions matching the filter
get_partitions * -cell

Advertising