Table Of Contents

Designating a VI for Directed Optimization

Last Modified: March 30, 2016

Directed optimization of FPGA VIs allows you to notify the compiler that you want specific code to meet certain performance and resource criteria, also known as directives. The compiler then makes optimizations to try to meet the performance and resource directives you set. Before you can specify performance and resource directives for code, you must explicitly designate a VI for directed optimization. This designation enables configuration options in the editor that you use to specify the directives, and it indicates to the compiler that the directives apply to only the code in the designated VI.

To complete this task, you'll need an existing VI on either the host or an FPGA target in SystemDesigner, or you'll need to create a new VI by selecting Add Software»VI on the host or an FPGA target.


While you can develop a VI intended for directed optimization on either the host or an FPGA target in SystemDesigner, the recommended workflow is to develop the VI on the host, test it, and then transfer it to the FPGA target.

Complete the following steps to designate a VI for directed optimization:

  1. Select the VI in SystemDesigner.
  2. On the Item tab, select Optimized FPGA VI from the Build Output pull-down menu.

    This setting indicates to the editor, and later the compiler, that the code in this VI needs optimization.

When you open the Optimized FPGA VI from SystemDesigner, the editor displays nodes intended for use when creating algorithms, tools you can use for estimating FPGA performance and resource usage, and errors and warnings specific to developing code in Optimized FPGA VIs.

Recently Viewed Topics