tnt07/29/2020, 7:51 PM
Ahmed Ghazy07/30/2020, 1:47 PM
add_macro_placement <cell_instance_name> <x> <y>
knowing that you probably have access to most variables needed like SITE_HEIGHT, SITE_WIDTH, CORE_MARGIN, PDN pitches, etc.. For even lower-level access, you can use the very powerful OpenDB, which has a tcl and python interfaces. We have some scripts that make use of it that you can check out (e.g., https://github.com/efabless/openlane/blob/master/scripts/contextualize.py). You can read both designs and move the cells from the submacro to the one that contains it while maintaining their relative positions. You can then mark those cells as FIXED/FIRM so that the placer doesn't touch them.
tnt07/30/2020, 1:48 PM