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

Page 407: Description, Example, Get_rtl_pin_info –277

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–277

rtl

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_rtl_pin_info

Usage

get_rtl_pin_info [-is_gnd] [-is_in_pin] [-is_inverted] [-is_out_pin] [-is_vcc] [-name]
[-parent_cell] [-type] <pin_object>

Options

-is_gnd: Return true if it is connected to GND, or false otherwise

-is_in_pin: Return true if it is an input pin, or false otherwise

-is_inverted: Return true if the pin is inverted, or false otherwise

-is_out_pin: Return true if it is an output pin, or false otherwise

-is_vcc: Return true if it is connected to VCC, or false otherwise

-name: Return the pin name

-parent_cell: Return the parent cell ID

-type: Return the pin type

<pin_object>: Pin object

Description

Gets information about the specified pin (referenced by pin ID). Pin ID's can be obtained by Tcl commands
such as get_pins.

The -type option returns "input" or "output" based on the pin type.

Options -name, -type, -parent_cell, -is_clock, -is_in_pin and -is_out_pin are mutually exclusive.

Example

project_open chiptrip
load_rtl_netlist
set pins [get_rtl_pins]
foreach_in_collection pin $pins {

set pin_name [get_rtl_pin_info $pin -name]
set parent_cell [get_rtl_pin_info $pin -parent_cell]
puts "Pin $pin_name belongs to cell \

[get_rtl_cell_info -name $parent_cell]"
}
unload_rtl_netlist
project_close

Advertising