get_macros - 2024.1 English

Vivado Design Suite User Guide: Using Constraints (UG903)

Document ID
UG903
Release Date
2024-06-15
Version
2024.1 English

The get_macros command returns macro objects in a design.

get_macros Syntax

get_macros [pattern]

With no arguments, the get_macros command returns all macros in the design. When macro names are specified, the command returns the corresponding macro objects.

get_macros Examples

The get_macros command can be used with other object commands. Examples:

% create_macro m1
% update_macro m1 {u2/sr0 X0Y0 u2/sr1 X0Y1}
% get_cells -of [get_macros m1]
u2/sr0 u2/sr1
% get_macros -of [get_cells u2] 
m1

The following command returns all macros that are fully contained within the cells.

get_macros -of [get_cells $cells]

Using get_cells, other indirect combinations are possible such as:

get_macros -of [get_cells -of [get_pblocks pb0]]

This command returns the macros contained within Pblock pb0.