Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Quartus Prime 17.1 with Intel HLS Compiler issues

Hi, I have installed MS Visual Studio 2010 and Quartus Prime 17.1 with Modelsim Intel FPGA Starter Edition 10.5b to my Windows 10 computer. I am trying to run counter example in hls. Here, the output when I run build.bat -test-fpga:

C:\intelFPGA\17.1\hls\examples\counter>build.bat test-fpga
i++  -march=StratixV counter.cpp -o test-fpga.exe
test-fpga.exe : warning LNK4088: image being generated due to /FORCE option; image may not run
Run test-fpga.exe to execute the test.

Then, I try to simulate running test-fpga.exe it just prints "PASSED" nothing happens. What should be the problem?

Thanks.

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi,

    Counter.cpp have only two printf statement for the pass and fail condition, count values are not displayed.

    To see the count values introduce printf statement for seeing the count values at console.

    Example:
     for(unsigned int i=0; i < SIZE; ++i) {
        if (result != i) {
          printf("ERROR: Expected %u, found %u\n", i, result);
    	pass = false;}
    	  else{
    	  printf("Expected %u, found %u\n", i, result);
        }
      }

    You can also run test-x86-64.exe to see the result after compilation using command build.bat test-x86-64

    https://alteraforum.com/forum/showthread.php?t=57668

    Let me know if this has helped resolve the issue you are facing or if you need any further assistance.

    Best Regards,

    Anand Raj Shankar

    (This message was posted on behalf of Intel Corporation)

    --- Quote End ---

    Hi,

    I want to make this counter on the 7 segment display of DE1 SoC board, my question is: How can I do this with intel HLS ??

    Thank you

    Best Regards,

    Sarah
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi,

    how to make counter on 7 segment display de1 soc with c++ program for intel hls??

    thanks for replying,

    best regards