Power and Thermal Analyzer User Guide

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

5.2. Running Scripts with the Power and Thermal Analyzer

The Power and Thermal Analyzer (PTA) supports Tcl scripting to facilitate automation of nearly all available analysis functions. For more information on the available Tcl commands, refer to the Tcl Command Reference , in this document.

To invoke the Power and Thermal Analyzer and run a script, type the following command:

quartus_pta -t <script.tcl>

where script.tcl is the name of the Tcl script file to run.

Example

The script below selects a device, adds a RAM resource type, and sets the parameters for the A and B read ports:

set_device {A5ED065BB32AE5S}
add -instance {|} -resource {ram}
edit -target {|ram[0]} -property {ramuserinput_num_blocks} {10}
edit -target {|ram[0]} -property {ramuserinput_port_a_clock_freq} {500}
edit -target {|ram[0]} -property {ramuserinput_port_a_enable} {100}
edit -target {|ram[0]} -property {ramuserinput_port_b_clock_freq} {350}
edit -target {|ram[0]} -property {ramuserinput_port_b_enable} {100}
edit -target {|ram[0]} -property {ramuserinput_port_b_rden} {100}