Hi all,
I need to write a script that is able to find particular primitives and provide the path to the parent cell.
Let's say I'm interested in finding all blocks that have a "u_rom" cell within them.
# This returns all roms in the design
set all_roms_in_design [get_cells -hierarchical -filter {name=~*u_rom*}]
This might return a bunch of paths that look something like this:
u_dut.u_block1.u_block1_2.u_rom
But I am interested in the cell u_dut.u_block1.u_block1_2
How can I go about getting the parent cell given the child cell?