UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Voyager
Voyager
13,843 Views
Registered: ‎06-24-2013

TCL commands to configure Metrics?

Jump to solution

The various metrics would be quite useful if they could be configured in advance e.g. via some TCL commands or a config file and not manually each time they are used.

 

For example, setting bins with 0-10,10-20,20-30,30-40,40-50, and 50-60 requires to add 6 bins and configure their color for each metric everytime the GUI starts up ...

 

Are there any commands to do this kind of configuration automatically?

 

Thanks in advance,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
22,205 Views
Registered: ‎11-28-2007

Re: TCL commands to configure Metrics?

Jump to solution

Hi Herbert,

 

while looking at the init.tcl, I noticed that there is a vivado.ini file in the 2013.4 sub-directory which contains the following data:

...
METRIC_ESTIMATED_SLICE_UTILIZATION_PER_PBLOCK=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true fc3f3f
METRIC_FF_UTILIZATION_PER_CLB=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true fc3f3f
METRIC_FF_UTILIZATION_PER_CLOCK_REGION=0f 33.333f false ffffff 33.333f 66.667f true ffff99 66.667f 100f true ff9900 100f Infinity true fc3f3f
METRIC_FF_UTILIZATION_PER_PBLOCK=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true fc3f3f
METRIC_HORIZONTAL_ROUTING_CONGESTION_PER_CLB=0f 66.667f true ffffff 66.667f 133.333f true febfbf 133.333f 200f true fd7f7f 200f Infinity true fc3f3f
METRIC_LUT_UTILIZATION_PER_CLB=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true ff0000
METRIC_LUT_UTILIZATION_PER_CLOCK_REGION=0f 33.333f false ffffff 33.333f 66.667f true ffff99 66.667f 100f true ff9900 100f Infinity true fc3f3f
METRIC_LUT_UTILIZATION_PER_PBLOCK=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true fc3f3f
METRIC_MIN_SLACK_PER_PBLOCK=-Infinity -2.5f true ff0000 -2.5f 0f true ff0000 0f 1f true ff9900 1f 2.5f true ffff99 2.5f Infinity false ffffff
METRIC_MIN_SLACK_PER_PLACED_BEL=-Infinity -2.5f true ff0000 -2.5f 0f true ff0000 0f 1f true ff9900 1f 2.5f true ffff99 2.5f Infinity false ffffff
METRIC_PBLOCK_BOUNDARY-CROSSING_NET_COUNT=0f 50f false ffffff 50f 100f true ffff99 100f 150f true ff9900 150f Infinity true fc3f3f
METRIC_TOTAL_NEGATIVE_SLACK_PER_PBLOCK=-Infinity -900f true ff0000 -900f -600f true ff0000 -600f -300f true ffcc00 -300f 0f true ffff99
METRIC_VERTICAL_ROUTING_CONGESTION_PER_CLB=0f 66.667f true ffffff 66.667f 133.333f true febfbf 133.333f 200f true fd7f7f 200f Infinity true fc3f3f
...

Interestingly, it seems to contain the ranges (0f 70f), enables (false) and color codes (ffffff)

 

This is definitely not officially Xilinx supported (please backup this file before hacking it)

but...hacking this file and adding bins and changing colors, could do what you are looking for.

 

You can lookup the color-codes here: http://www.colorcodehex.com/

 

 

Best regards,

Dries

 

 

--------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if the information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented by clicking the star next to the post.
Tags (1)
7 Replies
Xilinx Employee
Xilinx Employee
13,809 Views
Registered: ‎11-28-2007

Re: TCL commands to configure Metrics?

Jump to solution

Dear Herbert,

 

is the init.tcl what you are looking for?

from UG894:

The Vivado Design Suite offers several different ways to load and run a Tcl script during a
design session. You can have script files loaded automatically when the tool is launched,
source scripts from the Tcl command line, or add them to the menus in the Vivado IDE.

The Vivado Design Suite can automatically load Tcl scripts defined in an init.tcl file. This
approach is useful when you have written Tcl procedures that define new commands that
you want to make available in all your Vivado sessions.
When you start the Vivado tools, it looks for a Tcl initialization script in two different
locations:

1. In the software installation: <installdir>/Vivado/version/scripts/init.tcl
2. In the local user directory:
   a. For Windows 7: %APPDATA%/Roaming/Xilinx/Vivado/init.tcl
   b. For Linux: $HOME/.Xilinx/Vivado/init.tcl
Where <installdir> is the installation directory where the Vivado Design Suite is
installed.


If init.tcl exists in both of these locations, the Vivado tool sources the file from the
installation directory first, and then from your home directory.


The init.tcl file in the installation directory allows a company or design group to
support a common initialization script for all users. Anyone starting the Vivado tools from
that software installation sources the enterprise init.tcl script.

 

The init.tcl file in the home directory allows each user to specify additional commands,
or to override commands from the software installation to meet their specific design
requirements.

 

The init.tcl file is a standard Tcl script file that can contain any valid Tcl command
supported by the Vivado tools. You can even source another Tcl script file from within
init.tcl by adding the source command.

 

Best regards

Dries

--------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if the information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented by clicking the star next to the post.
0 Kudos
Voyager
Voyager
13,805 Views
Registered: ‎06-24-2013

Re: TCL commands to configure Metrics?

Jump to solution

Dear Dries,

 

Unfortunately no.

I know the init.tcl, I also use my own TCL scripts, what I do not know is a command to configure the metric colorization from TCL and without that, the init.tcl is of no help.

 

Thanks,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Xilinx Employee
Xilinx Employee
13,802 Views
Registered: ‎11-28-2007

Re: TCL commands to configure Metrics?

Jump to solution

Hi Herbert,

 

apologies for reading your question too quickly.

 

Unfortunately, I don't think we support configuration of the metrics (adding bins) via TCL.

 

 

Best regards,

Dries

--------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if the information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented by clicking the star next to the post.
0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
22,206 Views
Registered: ‎11-28-2007

Re: TCL commands to configure Metrics?

Jump to solution

Hi Herbert,

 

while looking at the init.tcl, I noticed that there is a vivado.ini file in the 2013.4 sub-directory which contains the following data&colon;

...
METRIC_ESTIMATED_SLICE_UTILIZATION_PER_PBLOCK=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true fc3f3f
METRIC_FF_UTILIZATION_PER_CLB=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true fc3f3f
METRIC_FF_UTILIZATION_PER_CLOCK_REGION=0f 33.333f false ffffff 33.333f 66.667f true ffff99 66.667f 100f true ff9900 100f Infinity true fc3f3f
METRIC_FF_UTILIZATION_PER_PBLOCK=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true fc3f3f
METRIC_HORIZONTAL_ROUTING_CONGESTION_PER_CLB=0f 66.667f true ffffff 66.667f 133.333f true febfbf 133.333f 200f true fd7f7f 200f Infinity true fc3f3f
METRIC_LUT_UTILIZATION_PER_CLB=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true ff0000
METRIC_LUT_UTILIZATION_PER_CLOCK_REGION=0f 33.333f false ffffff 33.333f 66.667f true ffff99 66.667f 100f true ff9900 100f Infinity true fc3f3f
METRIC_LUT_UTILIZATION_PER_PBLOCK=0f 70f false ffffff 70f 85f true ffff99 85f 100f true ff9900 100f Infinity true fc3f3f
METRIC_MIN_SLACK_PER_PBLOCK=-Infinity -2.5f true ff0000 -2.5f 0f true ff0000 0f 1f true ff9900 1f 2.5f true ffff99 2.5f Infinity false ffffff
METRIC_MIN_SLACK_PER_PLACED_BEL=-Infinity -2.5f true ff0000 -2.5f 0f true ff0000 0f 1f true ff9900 1f 2.5f true ffff99 2.5f Infinity false ffffff
METRIC_PBLOCK_BOUNDARY-CROSSING_NET_COUNT=0f 50f false ffffff 50f 100f true ffff99 100f 150f true ff9900 150f Infinity true fc3f3f
METRIC_TOTAL_NEGATIVE_SLACK_PER_PBLOCK=-Infinity -900f true ff0000 -900f -600f true ff0000 -600f -300f true ffcc00 -300f 0f true ffff99
METRIC_VERTICAL_ROUTING_CONGESTION_PER_CLB=0f 66.667f true ffffff 66.667f 133.333f true febfbf 133.333f 200f true fd7f7f 200f Infinity true fc3f3f
...

Interestingly, it seems to contain the ranges (0f 70f), enables (false) and color codes (ffffff)

 

This is definitely not officially Xilinx supported (please backup this file before hacking it)

but...hacking this file and adding bins and changing colors, could do what you are looking for.

 

You can lookup the color-codes here: http://www.colorcodehex.com/

 

 

Best regards,

Dries

 

 

--------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if the information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented by clicking the star next to the post.
Tags (1)
Voyager
Voyager
13,781 Views
Registered: ‎06-24-2013

Re: TCL commands to configure Metrics?

Jump to solution
Thank you very much, appreciated!

best,
Herbert
-------------- Yes, I do this for fun!
0 Kudos
Xilinx Employee
Xilinx Employee
13,690 Views
Registered: ‎11-28-2007

Re: TCL commands to configure Metrics?

Jump to solution

Hi Herbert,

 

After discussion, we decided not to have TCL commands to configure Metrics.

However, I do have some good news for you: I filed a CR to preserve settings of the Metrics and it has been fixed in the latest internal 2014.1 beta build.

If you add bins, the settings is saved and if you modify the color of bins.

 

 

Best regards,

Dries

--------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if the information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented by clicking the star next to the post.
0 Kudos
Voyager
Voyager
13,684 Views
Registered: ‎06-24-2013

Re: TCL commands to configure Metrics?

Jump to solution

Sounds good!

But modifying the vivado.init worked like a charm, and creating a heat map like setup is way simpler on the commandline than by adjusting those metrics by hand via the GUI.

 

Anyway, thanks,

Herbert

-------------- Yes, I do this for fun!
0 Kudos