02-12-2020 08:04 PM
We are trying to get module hierarchy from DCP, but realize that the DCP actually has been flattened. We are not using explicit flatten_hierarchy commands that we know of. Do you know how to keep the module hierarchy when generating a DCP so that the DCP can be later analyzed and the module hierarchy recovered?
02-12-2020 09:00 PM
02-13-2020 12:19 AM
If you used the -flatten_hierarchy default option "rebuilt", your RTL design is first flattened to do some optimization and then rebuilt the hierarchy during Synthesis.
You might see some hierarchies not matching your RTL. This is because some hierarchies might not be able to rebuilt perfectly as the RTL due to the cross boundary optimization. However, most hierarchies should match the RTL.
If you'd like to keep the exact hierarchies in the RTL, use -flatten_hierarchy = none.