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. Algorithms are an example of code that you might want to reach a specific level of performance because of the nature of their calculations and the amount of data they are likely processing.
To indicate to the compiler that you want to optimize the code within an FPGA VI to meet performance and resource directives, select the library that contains the FPGA VI in SystemDesigner and enable the Optimized FPGA Library checkbox on the Item tab. You can only designate libraries for directed optimization.
The optimizations the compiler can make are directly affected by the code you want to optimize. Keep the following considerations in mind when creating Optimized FPGA VIs: