Create a new pin.
Syntax
create_bd_pin [‑from <arg>] [‑to <arg>] ‑dir <arg> [‑type <arg>] [‑quiet]
[‑verbose] <name>
Returns
The newly created pin object, "" if failed.
Usage
Name | Description |
---|---|
[-from]
|
Begin index Default: Unspecified |
[-to]
|
End index Default: Unspecified |
-dir
|
Pin direction |
[-type]
|
Pin type |
[-quiet]
|
Ignore command errors |
[-verbose]
|
Suspend message limits during command execution |
<name>
|
Name of pin to create |
Categories
Description
Create a new pin to add to an IP integrator hierarchical module.
This command returns the name of the newly created pin object, or returns an error message if it failed.
Arguments
-from
<arg> - (Optional) The starting index of a standard bus pin. This is unspecified for single bit pins.
-to
<arg> - (Optional) The ending index of a standard bus pin. This is unspecified for single bit pins.
-dir [ I | O | IO ]
- (Required) The direction of the pin. Valid values are I for input, O for output, and IO for bidirectional pins.
-type
<arg> - (Optional) Defines the type of the pin as a clock pin (CLK), a reset pin (RST), a clock enable pin (CE), an interrupt pin (INTR), or as a data pin (DATA). If you do not define the pin type, it will be undefined (UNDEF).
-quiet
- (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
-verbose
- (Optional) Temporarily override any message limits and return all messages from this command.
set_msg_config
command.<name> - (Required) The name of the subsystem pin to create. The name is referenced from the hierarchical module that the pin is being added to: /modName/pinname
.
Examples
create_bd_pin -dir I -type rst /newMod1/rst
/newMod1/rst