Power and Thermal Analyzer User Guide

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

B.17. move

Usage

move [-h] [-help] [-long_help] [-name <New name for target>] [-parent <Destination instance path>] -source <Source instance path>
Arguments
-h: Quick usage.
-help: Short help.
-long_help: Long help with examples and possible return values.
-name <New name for target>: The new name for the moved object.
-parent <Destination instance path>: Instance path to move object under.
-source <source instance path>: Instance path to move.

Tcl Package and Version

Belongs to ::quartus::pta 1.0 .

Description

This command moves the resource, IP, or instance at the source path to the destination instance path. The source is moved under the provided parent instance path. The command returns the moved object's new instance path.

Example Usage

# ----------------------------------------------------
    # Consider an example hierarchy that is initially
    # laid out as follows:
    #
    # Agilex 7 : AGFA012R24B
    #   |
    #   |foo
    #   |foo|bar
    #   |foo|bar|logic[0]
    #   |foo|bar|dsp[0]
    #   |foo|baz
    #   |foo|baz|clock[0]
    # ----------------------------------------------------
    # Move bar to a new baz instance.
    move -source {|foo|bar} -parent {|foo} -name {baz}
    # returns: {|foo[0]|baz[1]}
    # The resulting hierarchy is as follows:
    #
    # Agilex 7 : AGFA012R24B
    #   |
    #   |foo
    #   |foo|baz[0]
    #   |foo|baz[0]|clock[0]
    #   |foo|baz[1]
    #   |foo|baz[1]|logic[0]
    #   |foo|baz[1]|dsp[0]
    # Move DSP block from under bar to existing baz instance.
    move -source {|foo|bar|dsp[0]} -parent {|foo|baz}
    # returns: {|foo[0]|baz[0]|dsp[0]}
    # The resulting hierarchy is as follows:
    #
    # Agilex 7 : AGFA012R24B
    #   |
    #   |foo
    #   |foo|bar
    #   |foo|bar|logic[0]
    #   |foo|baz
    #   |foo|baz|clock[0]
    #   |foo|baz|dsp[0]

Return Value

Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: Cannot apply <string> operation where source "<string>" contains target "<string>".