Table Of Contents

Designating a VI for Directed Optimization

Last Modified: January 2, 2018

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 need to add a library to either the host or an FPGA target in SystemDesigner, or you need to create a new library by selecting Add Software»Library on the host or an FPGA target.

spd-note-note
Note  

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 library in SystemDesigner.
  2. On the Item tab, enable the Optimized FPGA Library checkbox.

    This setting indicates to the editor, and later the compiler, that the VIs inside of the library need optimization.

When you open an Optimized FPGA VI, 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