Intel® High Level Synthesis Compiler Standard Edition: Reference Manual

ID 683310
Date 12/18/2019
Document Table of Contents

2.2. Using Libraries in Your Component

Use libraries to reuse functions created by you or others without needing to know the function implementation details.

To use the functions in a library, you must have the C-header files (.h) for the library available.

To include a library in your component:

  1. Review the header files corresponding to the library that you want to include in your component.

    The header file shows you the functions available to call in the library and how to call the functions.

  2. Include the header files in your component code.

    For example, #include "primitives.h"

  3. Compile your component with the Intel® HLS Compiler as usual:

    For example, i++ -march=arria10 MyComponent.cpp