Get_fitter_resource_usage, Usage, Options – Altera Quartus II Scripting User Manual

Page 383: Description, Example, Get_fitter_resource_usage –253

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–253

report

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_fitter_resource_usage

Usage

get_fitter_resource_usage [-alm] [-alut] [-available] [-io_pin] [-lab] [-le] [-mem_bit]
[-percentage] [-reg] [-used] [-utilization]

Options

-alm: Get total adaptive logic modules

-alut: Get total Combinational ALUTs

-available: Get available resource summary

-io_pin: Get total I/O pins

-lab: Get total logic array blocks

-le: Get total logic elements

-mem_bit: Get total memory bits

-percentage: Get used resource summary in percentage

-reg: Get total registers

-used: Get used resource summary

-utilization: Get total logic utilization

Description

Gets the Fitter resource usage results.

You must use one of the following options: "-alut", "-reg", "-le", "-alm", "-lab", "-io_pin", "-mem_bit" or
"-resource".

If the above option is not "-resource", you may also optionally use one of the following options: "-used",
"-available" or "-percentage".

Option "-resource" takes resource name as parameter, which supports wildcards.

Example

load_package report
project_open chiptrip
load_report

# Shortcut of get_fitter_resource_usage command
set cmd get_fitter_resource_usage

# Get total registers, logic elements, and DSP block 9-bit elements.
set registers [$cmd -reg]
set les [$cmd -le -used]
set io_pin [$cmd -io_pin -available]
set mem_bit [$cmd -mem_bit -percentage]
set dsp [$cmd -resource "DSP block 9*"]
puts "Registers usage: $registers"
puts "Total used logic elements: $les"
puts "Total available I/O pins: $io_pin"
puts "Total used memory bits in percentage: ${mem_bit}%"
puts "DSP block 9-bit elements: $dsp"

unload_report
project_close

Advertising