Power and Thermal Analyzer User Guide

ID 865226
Date 9/29/2025
Public
Document Table of Contents

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.