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

Page 547: Description, Example, Get_register_info –417

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–417

sta

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_register_info

Usage

get_register_info [-asynch_edges] [-clock_edges] [-fanout_edges] [-is_latch] [-name]
[-synch_edges] [-tch] [-tcl] [-tco] [-th] [-tmin] [-tsu] [-type] <reg_object>

Options

-asynch_edges: Return a list of asynchronous edge IDs

-clock_edges: Return a list of clock edge IDs

-fanout_edges: Return a list of fanout edge IDs

-is_latch: Return "1" if this is a latch node, or "0" otherwise

-name: Return the object name

-synch_edges: Return a list of synchronous edge IDs

-tch: Return the Tch value

-tcl: Return the Tcl value

-tco: Return the Tco value

-th: Return the Th value

-tmin: Return the Tmin value

-tsu: Return the Tsu value

-type: Return the object type

<reg_object>: Register object

Description

Gets information about the specified register (referenced by register ID). Register IDs can be obtained by
Tcl commands such as get_registers.

The -type option returns "reg". The -name, -type, -tco, -tsu, -th, -tch, -tcl, -tmin, -clock_edges, -synch_edges,
-asynch_edges, -fanout_edges and -is_latch options are mutually exclusive.

Example

project_open chiptrip
create_timing_netlist
set registers [get_registers]
foreach_in_collection reg $registers {

set name [get_register_info $reg -name]
set tco [get_register_info $reg -tco]

puts "Tco of $name is $tco"
}
delete_timing_netlist
project_close

Advertising