1. Overview of the Power and Thermal Analyzer
2. Estimating Power Consumption with the Power and Thermal Analyzer
3. Power and Thermal Analyzer (PTA) Graphical User Interface
4. Power and Thermal Analyzer Resource Types
5. Command Line Options and Scripting
6. Factors Affecting the Accuracy of the Power and Thermal Analyzer
7. Document Revision History for the Power and Thermal Analyzer User Guide
A. Measuring Static Power
B. Tcl Command Reference
3.1. PTA - Device Selector Dialog Box
3.2. PTA - Primary GUI Components
3.3. PTA - Hierarchical Design Editor
3.4. PTA - Using Design Hierarchies in the Power and Thermal Analyzer
3.5. PTA - Entering Hierarchy Information Into the PTA
3.6. PTA - Current Drawn per Supply Tab
3.7. PTA - Temperature and Cooling Tab
3.8. PTA - Resource Utilization Panel
3.9. PTA - Register Dynamic Power in Agilex Devices
3.10. PTA - Input Fields
3.11. PTA - Data Entry Error Messages
3.12. PTA - Search Features
3.13. PTA - Filtered Searches
3.14. PTA - Using the Tcl Console to Perform Searches
4.1. PTA - Power Summary
4.2. PTA - Root Entry
4.3. PTA - Instance
4.4. PTA - Logic Resource Type
4.5. PTA - RAM Resource Type
4.6. PTA - DSP Resource Type
4.7. PTA - Clock Resource Type
4.8. PTA - PLL Resource Type
4.9. PTA - I/O Resource Type
4.10. PTA - Transceiver Resource Type
4.11. PTA - Crypto Resource Type
4.12. PTA - NOC Resource Type
4.13. PTA - HBM Resource Type
B.1. add
B.2. copy
B.3. delete
B.4. edit
B.5. export_design_file
B.6. find_instances
B.7. get_available_ips
B.8. get_available_resource_types
B.9. get_available_values
B.10. get_first_error
B.11. get_properties
B.12. get_report
B.13. get_report_names
B.14. get_results
B.15. get_value
B.16. import_design_file
B.17. move
B.18. open_design_file
B.19. pta::get_active_design
B.20. pta::get_defaults
B.21. pta::get_designs
B.22. pta::locate
B.23. pta::set_active_design
B.24. pta::set_family
B.25. recalculate_power
B.26. redo
B.27. save
B.28. set_device
B.29. set_view
B.30. undo
B.1. add
Usage
add [-h] [-help] [-long_help] [-count <Number of elements to create>] [-ip <IP type>] [-name <New name for target>] [-parent <Destination instance path>] [-property <new property-setting pair>] [-resource <Block type>]
- Arguments
- -h: Quick usage.
- -help: Short help.
- -long_help: Long help with examples and possible return values.
- -count <Number of elements to create>: If more than 1 element is required, this is used to create multiple elements.
- -ip <IP type>: IP type to add beneath instance path specified by instance argument.
- -name <New name for target>: The new name for the target to add.
- parent <Destination instance path>: Instance path to add under, also ensures this path exists.
- -instance <instance path>: Instance path to add, if neither resource nor ip is specified then this will always add a new instance, otherwise it will just guarantee the provided instance exists.
- -property <new property-setting pair>: The key value pairs (space delimited) to apply to the target. Property keys must be lowercase.
- -resource <Block type>: Block type to add beneath instance path specified by instance argument.
Tcl Package and Version
Belongs to ::quartus::pta 1.0 .
Description
This command adds objects to design hierarchy. If the 'resource' argument is provided, the object added will be a power block of the specified type. If the 'ip' argument is provided, the object added is an instance representing a configured IP that holds power blocks belonging to that IP. Otherwise, this command adds a new instance. This command returns the added object's instance path.
Example Usage
# Adds the |foo|bar instance if it does not already exist. add -parent {|foo} -name {bar} # returns: {|foo[0]|bar[0]} # Ensures |foo|logic exists and adds a logic block at # |foo|logic|logic. add -parent {|foo|logic} -resource {logic} # returns: {|foo[0]|logic[0]|logic[0]} # Ensures |foo|logic exists and adds a logic block at # |foo|logic|logic with logicuserinput_num_ff set to 5. add -parent {|foo|logic} -resource {logic} -property {logicuserinput_num_ff} {5} # returns: {|foo[0]|logic[0]|logic[0]} # Ensures |foo|ips exists and adds a DDR4 IP at # |foo|ips|ddr4. add -parent {|foo|ips} -ip {ddr4} # returns: {|foo[0]|ips[0]|ddr4[0]}
Return Value
Code Name | Code | String Return |
---|---|---|
TCL_OK | 0 | INFO: Operation successful |
TCL_OK | 0 | WARNING: Creating IP '<string>' generated warnings. Please review '<string>' for details. |
TCL_ERROR | 1 | ERROR: The requested operation expects that properties are provided as key-value pairs. Ensure that each argument has both a key and a value. |
TCL_ERROR | 1 | ERROR: 'name' argument cannot be empty. |