# create macro cell list: input register stage and BRAM cells
set cells [get_cells -hier [list ireg0* ireg1* *SIMPLE_PRIM36.ram]] create_macro m0
update_macro m0 -absolute_grid [buildRLOCList $cells]
To see the dictionary list created by
buildRLOCList:
$ puts [buildRLOCList $cells]
{ireg0[6]} X2Y10 {ireg0[5]} X2Y11 {ireg0[4]} X2Y6 {ireg0[3]} X2Y7 . . .
When your design includes many macro cells or cells buried in hierarchy, specifying an explicit list of cell-RLOC pairs becomes complex and error-prone. Use Tcl automation to simplify creation and management of XDC macros.