AN 834: Using the Intel® HLS Compiler Pro Edition with an IDE

ID 683131
Date 5/29/2020
Public

3. Using Intel® HLS Compiler Pro Edition with Microsoft* Visual Studio* on Windows Operating Systems

Before you use the Intel® HLS Compiler Pro Edition Version 20.1 with Microsoft* Visual Studio*, ensure that you have complete the following tasks:

To use the Intel® HLS Compiler Pro Edition with a Visual Studio* IDE:

  1. Start a Windows Command Prompt session.
  2. In your command prompt session, run the following command:
    <hls_installdir>\init_hls.bat

    Where <hls_installdir> is the path to your Intel® HLS Compiler installation. For example, C:\intelFPGA_pro\20.1\hls.

  3. Start your Visual Studio* IDE:
    devenv /useenv

    If you have an HLS project that you have compiled before, you are ready to run and debug your HLS component, and you can skip the next step.

  4. Create and configure a Visual Studio* project for your HLS component:
    1. Create a new project:



    2. Add your sources:



    3. Disable debug symbols for the C++ runtime library:
      1. Right-click your project and click Properties.
      2. In the Property Pages dialog box, go to Configuration Properties > C/C++ > Code Generation and change the Runtime Library to Multi-threaded DLL (/MD):

        Ensure that you have x64 selected in the Platform field.



      3. In the Property Pages dialog box, go to Configuration Properties > C/C++ > Language and change the c++ Language Standard to ISO C++17 Standard (/std:c++17):

        Ensure that you have x64 selected in the Platform field.



      4. Click OK.

You can now develop, run, and debug your HLS component using your Visual Studio* IDE.

To run your component in Visual Studio*, choose the 64-bit target:


After you have confirmed the functional correctness of your component, you can start to optimize your HLS component by using the information in the Intel® HLS Compiler High-Level Design Reports. These reports are generated when you compile your component with the i++ command.