FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6491 Discussions

hls installation and getting started

Konrad
Beginner
2,534 Views

Hi, I am trying to get started with the hls compiler,

when I run the init_hls.bat I get the output below:-

I understand it can't find my Visual Studio, but should the i++ compiler stil work?

I can't seem to get any examples to compile,

regards

Konrad

 

C:\intelFPGA_lite\19.1\hls>init_hls.bat
Assuming current directory (C:\intelFPGA_lite\19.1\hls\) is root of i++

Will use C:\intelFPGA_lite\19.1\hls\..\quartus to find Quartus
for internal i++ use
INFO: Could not find files for the given pattern(s).
Will be using Modelsim at D:\Altera\intelFPGA_lite\17.1\modelsim_ase\win32aloem\
Will be using Modelsim at C:\intelFPGA_lite\19.1\modelsim_ase\win32aloem\

VisualStudio's link.exe is not on the path. Guessing its location.
Cannot find VisualStudio installation by looking at the environment.
If VisualStudio is installed, use VisualStudio Command Prompt to set all
required environment variables then rerun this script.

C:\intelFPGA_lite\19.1\hls>

0 Kudos
17 Replies
Konrad
Beginner
2,530 Views

btw, D:\Altera\ is where an older copy of Quartus is installed, being a hard drive.

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community is where Visual Studio is

0 Kudos
BoonBengT_Intel
Moderator
2,508 Views

Hi @Konrad,

 

Thank you for posting in Intel community forum and hope all is well.
Assuming you are having a windows environment, with visual studio already installed as mention.

 

Suspecting there might be some environment initialization problem, please do review the steps here.
Also can you please run the init_hls.bat and provide a screenshot of the output so that we can better understand the error.

 

Best Wishes
BB

0 Kudos
Konrad
Beginner
2,493 Views
0 Kudos
Konrad
Beginner
2,493 Views

I get the following when trying an example, this is my home computer where I have full administor rights, Windows 10

Konrad_1-1629027211406.png

 

0 Kudos
Konrad
Beginner
2,493 Views

ooops...administrator rights.

I am trying to learn this at home.  At work I have a 4 year old project I did in Altium that needs updating.  This is mostly VHDL with some Altera IP FIR filters, but uses the Altium c to hardware compiler to do floating point math.  The math is just float multiply/divides for a fast ARC2TAN.  This worked great with Altium, but they no longer support FPGA development.

regards

Konrad

0 Kudos
BoonBengT_Intel
Moderator
2,462 Views

Hi @Konrad,

 

Great, good to know that it is working now.
Please do let us know if there is any further clarification/doubts that we can help with.

 

Best Wishes
BB

0 Kudos
Konrad
Beginner
2,439 Views

But as you can see from the second screen shot it is not working, the compiler comes up with permission errors.

Something is not set up correctly,

regards

Konrad

0 Kudos
BoonBengT_Intel
Moderator
2,430 Views

Hi @Konrad,

 

Apologies for the confusion here, the screenshot cmd was not running with adminstrator permission.
So are you saying that you are still getting the permission error after you have launch the cmd with admin rights?

 

Where is the HLS project location?
Can you also try to move the project to a more general directory (e.g. Documents) for compilation?
Hope that clarify.

 

Best Wishes
BB

0 Kudos
BoonBengT_Intel
Moderator
2,413 Views

Hi @Konrad,

 

By any chances did you managed to look into the previous clarification?

 

Best Wished

BB

0 Kudos
Konrad
Beginner
2,380 Views

The installation had left all folders as read-only and I reset them to full access read/write.

I now have a compile error:-

Konrad_0-1630051126320.png

Regards

Konrad

0 Kudos
BoonBengT_Intel
Moderator
2,269 Views

Hi @Konrad,

 

Suspecting that the hls component are not able to detect the Visual studio installed.
Can you please try to running the init_hls.bat file in admin privileges command prompt and check/share on the output.
If the visual studio are not detected, would advise to reinstall in C drive if possible.
Please do let us know if that helps to clarify.

 

Best Wishes
BB

0 Kudos
Konrad
Beginner
2,259 Views

Konrad_0-1631733682863.png

I do not know how to set the Visual Studio environment.

Visual studio is on my C:\ drive as a standard install (comunity free version)

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community

Regards

Konrad

0 Kudos
BoonBengT_Intel
Moderator
2,210 Views

Hi @Konrad,

 

Based on the output from init_hls.bat, VS are not found.
And I notice that you are using HLS 19.1, for that it requires VS 2010. (as noted here)
Can you please try installing the VS 2010 pro and rerun the command, and I believe it should work.
Hope that clarify.

 

Best Wishes
BB

0 Kudos
Konrad
Beginner
2,144 Views

Hi,

I have VS 2010 Pro available at work  but not at home.  I have installed HLS 21.2 PRO.

Does this need a license or is it OK with Quartus Lite?

From what I have read it seems the HLS Pro is OK without Quartus Pro.

Anyway, when I run the tools they are still pointing to the HLS 19.1 compiler.  The init_ .bat ran OK.

 

Konrad_0-1632557466251.png

regards

Konrad

 

0 Kudos
Konrad
Beginner
2,144 Views

 

Konrad_1-1632558079413.png

Screen shot of the init_hls.bat

ps. I also have quartus 19.1 installed on my C:\ drive in the standard location...I opened and closed it prior to running to ensure it was the last version run, but the init_hls.bat seems to still pick up on the older version,

Regards

Konrad

0 Kudos
Konrad
Beginner
2,144 Views

OK it is working.  What works for me is...

Run the DOS prompt as administrator

Run the init.hls.bat

Compile the file from the SAME DOS prompt...i.e. don't close the DOS prompt.

Re-run the init_hls.bat every time.

 

Regards

Konrad

 

0 Kudos
BoonBengT_Intel
Moderator
2,069 Views

Hi @Konrad,

 

Awesome! Thanks for sharing and good to know it is working now, with no further doubts, it will be transitioned to community support for further help on doubts in this thread, where we will no longer monitor this thread.
Thank you for the questions and as always pleasure having you here.

 

Best Wishes
BB

0 Kudos
Reply