get_rtl_pin_info (::quartus::rtl)

The following table displays information for the get_rtl_pin_info Tcl command:

Tcl Package and Version

Belongs to ::quartus::rtl 1.0

Syntax get_rtl_pin_info [-h | -help] [-long_help] [-full_name] [-is_gnd] [-is_in_pin] [-is_inverted] [-is_out_pin] [-is_vcc] [-name] [-parent_cell] [-type]
 
<pin_object>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-full_name Return the pin name
-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 -name option returns the name of the pin. The pin names are displayed in the following format: <cell name>|<pin name>.

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 Usage
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]
	set parent_name [get_rtl_cell_info -name $parent_cell]
    puts "Pin $pin_name belongs to cell $parent_name"
}
unload_rtl_netlist
project_close
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: Can't read compiler database. Run the Analysis and Synthesis (quartus_map) successfully before using this command.
TCL_ERROR 1 ERROR: You must open a project before you can use this command.
TCL_ERROR 1 ERROR: sgate netlist does not exist. Use load_rtl_netlist to create the sgate netlist.
TCL_ERROR 1 ERROR: Cannot find object of ID <string>. Specify an existing object ID.