Description
Get summary object by name.
Syntax
get_summary(<name>)
Returns
PdmSummary object.
Parameters
| Name | Description |
|---|---|
| <name> | Summary name. |
Examples
# Get a summary object from a block
proj = open_project('my_design.pdm')
io_block = proj.get_block('io')
# io_block.summary_names == ['power', 'summary', 'utilization', 'io_banks']
# Get power summary and read its values
io_power = io_block.get_summary('power')
values = io_power.get_values()
# Iterate over all block summaries
for name in io_block.summary_names:
summary = io_block.get_summary(name)
# do something with summary, e.g. summary.get_values()