Highlight objects in different colors
Syntax
highlight_objects [‑color_index <arg>] [‑rgb <args>] [‑color <arg>]
[‑leaf_cells] [‑quiet] [‑verbose] <objects>
Usage
Name | Description |
---|---|
[-color_index]
|
Color index |
[-rgb]
|
RGB color index list |
[-color]
|
Valid values are red green blue magenta yellow cyan and orange |
[-leaf_cells]
|
Leaf cells |
[-quiet]
|
Ignore command errors |
[-verbose]
|
Suspend message limits during command execution |
<objects>
|
Objects to highlight |
Categories
Description
Highlights the specified or selected object or objects in a color as determined by one of the available color options.
-rgb
, -color_index
, and -color
.Selected objects are automatically unselected in order to display the objects in the specified highlight color. Objects can be unhighlighted with the unhighlight_objects
command.
Arguments
-color_index <arg>
- (Optional) Valid values are integers from 1 to 20. Specifies the color index to use for highlighting the selected object or objects. The color indexes are displayed, and can be configured from the . Refer to the Vivado Design Suite User Guide: Using the IDE (UG893) for more information on setting colors.
-rgb
<args> - (Optional) The color to use in the form of an RGB code specified as {R G B}. For instance, {255 255 0} specifies the color yellow.
-color <arg>
- (Optional) The color to use for highlighting the specified object or objects. Supported highlight colors are: red, green, blue, magenta, yellow, cyan, and orange.
select_objects
command.
-leaf_cells <arg>
- (Optional) Specifies one or more cell names or objects to highlight with the specified color.
-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.
<objects>
- (Required) Specifies one or more objects to be highlighted.
Examples
The following example highlights the currently selected objects in the color red:
highlight_objects -color red [get_selected_objects]
This example highlights the specified cells in green:
highlight_objects -color green -leaf_cells [get_cells cpuEngine/*]