AN 918: Using the Intel® HLS Compiler Standard Edition with an IDE

ID 683203
Date 5/29/2020
Public

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

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

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

  1. Start a Visual Studio x64 Native Tools Command Prompt session.
    For example, C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat.
  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_standard\19.1\hls.

  3. Set additional environment variables and settings required:
    set "INCLUDE=%INSTALLROOT%include;%INCLUDE%"
    set "LIB=%INSTALLROOT%host\windows64\lib;%LIB%"
    set "CL=/MDd -D_ITERATOR_DEBUG_LEVEL=0"
    set "_LINK=hls_emul.lib"
    set "_IsNativeEnvironment=true"
  4. 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.

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



    2. Add a 64-bit configuration to your project:









    3. Add your sources:



You can now develop, run, and debug your HLS component using your Microsoft* 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.

With Intel® HLS Compiler Standard Edition, you cannot use Microsoft* Visual Studio* to debug executables created the i++ command.