create_macro - create_macro - 2026.1 English - UG903

Vivado Design Suite User Guide: Using Constraints (UG903)

Document ID
UG903
Release Date
2026-07-01
Version
2026.1 English

Use create_macro to create a new macro object. Macro names must be unique. If you attempt to create a macro with the same name as an existing macro, the tool generates an error.

create_macro Syntax

create_macro <name>

create_macro Example

create_macro m0

Creates a macro object named m0.

Tip: To ensure optimal LUT-FF alignment, specify the BEL location when creating your macro. Set the BEL location separately as a property on the cell objects.
set_property BEL AFF [get_cell u2/sr0]