* The original content was created in Japanese, so some information, images, and links may still be in Japanese. We’re updating gradually and appreciate your patience.
Introduction
This content introduces how to build an environment for using the Intel® HLS compiler on Windows® 10.
When using the Intel® HLS compiler on Windows® 10 OS, Microsoft Visual Studio must be installed as the GCC environment. The Microsoft Visual Studio version to be used depends on the version of the Intel® HLS compiler to be used, so please check here in advance .
Target tools and versions for this content
- Intel® HLS Compiler ver. 19.3
- Intel® Quartus® Prime Development Software Pro Edition ver. 19.3
This content is designed for ver. 19.3, but can be applied to ver. 19.4 as well.
Tools required for Windows® environment
The following tools are required to use the Intel® HLS Compiler
- Intel® Quartus® Prime Development Software Pro Edition ver. 19.3
- Intel® HLS Compiler
-
Logic simulator (one of the following)
- ModelSim® - Intel® FPGA Edition (including Starter Edition)
- ModelSim® DE / PE / SE (Mentor Graphics product)
- Questa® Sim (Mentor Graphics product)
-
C++ compiler (any of the following)
- Microsoft Visual Studio 2017 Professional (paid)
- Microsoft Visual Studio 2017 Community (free)
How to install each tool
Installing Intel® Quartus® Prime Development Software ver. 19.3 and Intel® HLS Compiler
See here.
ModelSim ® - Intel® FPGA Edition Install
Please refer to here.
Installing Microsoft Visual Studio 2017
The next chapter will show you how to do this. This content uses the free version Community.
How to install Microsoft Visual Studio 2017 Community
Follow the steps below to download and install the software.
Download the Visual Studio installer
Access the following website
https://visualstudio.microsoft.com/ja/free-developer-offers/
Click " Join Now " in the Visual Studio Dev Essentials section. (You will need to create a Microsoft account.)
Once logged in and the Welcome to Visual Studio Dev Essentials screen appears, open the Downloads tab at the top of the screen and enter " Visual Studio 2017 Community " in the Search downloads field to search.
Download Visual Studio Community 2017 (version 15.9).
The vs_community__1946871446.1562765771.exe file will be downloaded.
2. Run the installer
Run vs_community__1946871446.1562765771.exe.
The following installation window will be launched, and check the tools to be installed. To use the Intel® HLS Compiler, "Desktop Development with C++" is required at a minimum.
From the pull-down menu in the lower right corner, select either " Install while downloading" or " Install after downloading everything " and click " Install ".
The download and installation will proceed, and when completed, you will be asked to restart the system. If the Visual Studio tools are launched after the installation is complete, close them.
3. Visual Studio Setup
Launch the command prompt and perform the setup. First, go to the directory where Visual Studio is installed.
(Example command) >cd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"
Execute vcvars64.bat.
Command Example)>vcvars64.bat
The settings in this batch file become invalid when the command prompt is closed, so you must run it each time you start the command prompt to use the HLS compiler.
Setting up the HLS compiler
Continue working at the command prompt. Navigate to the Intel HLS compiler installation directory.
Command Example)>cd C:\intelFPGA_pro\19.3\hls
Run the init_hls.bat file.
Command example)>init_hls.bat
If it runs without error as shown below, the setup is complete. Do not close this command prompt, as you will continue to use it when compiling the sample in the next chapter.
The settings in this batch file become invalid when the command prompt is closed, so you must execute it each time you start the command prompt to use the HLS compiler.
Compiling the sample program
Follow the steps below to test compilation using the sample programs in the installation directory.
1. copy the sample program
Copy the counter folder in the installation directory (e.g. C:\intelFPGA_pro\19.3\hls\examples) to the working directory.
2. Execute compilation
At the command prompt where you just executed init_hls.bat, move to the working directory where you copied the counter folder.
Command example)>cd C:\work\v19.3_pro\counter
Execute build.bat.
Example of command)>build.bat
If it completes without error, execute the generated test-x86_64.exe.
Command example: >test-x86-64.exe
If PASSED is displayed as shown below, it means that the compilation test has been completed without any problems.
You can now use the Intel® HLS compiler in a Windows® environment!