Forum Discussion

dreamqin68's avatar
dreamqin68
Icon for New Contributor rankNew Contributor
4 years ago

HLS Main Optimizer FAILED. How can I debug it?

Hi,

command :

i++ design.cc -v -march=5CSEBA6U23I7 --debug-log --simulator none --quartus-compile -o test-fpga

Error:

HLS Main Optimizer FAILED.

make: *** [test-fpga] Error 1

It’s just that the feedback failed in the end, but it didn’t give me any other tips. How can I debug it?

Other information:

  • OS version: Redhat 6
  • HLS Compiler version: 18.1
  • Logfile: Only provide the command

Thanks in Advance!

5 Replies

  • AnilErinch_A_Intel's avatar
    AnilErinch_A_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi ,

    If you cannot share the code , you can provide a pseudo code with giving the HLS specific calls and number of iterations of loops etc.

    If you have Iterations you can try reducing the number and see the results. Also

    Please make sure that you follow the instructions related to Quartus requirements while targeting Cyclone® V with HLS compiler.

    1.3. Installing the Intel HLS Compiler Pro Edition for Cyclone® V Device Support

    https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/hls/ug-hls-getting-started.pdf

    Thanks and Regards

    Anil


  • VenkateshSathar's avatar
    VenkateshSathar
    Icon for Occasional Contributor rankOccasional Contributor

    can u attach debug.log generated after running the command??

    if u want to compile quartus project, u can use quartus gui software to open and synthesize ur generated proj. From the GUI, it can provide more information.

    • dreamqin68's avatar
      dreamqin68
      Icon for New Contributor rankNew Contributor

      Thanks for your advice.

      There is only one line of command in debug.log, and then there is no other information.

      I only know using Quartus HLS compiler to do high level synthesis. How to use Quartus GUI to do HLS?

      I use Quartus Prime Lite 18.1 to connect IP and design system, but I don't know it can synthesis IP.

      Are there any related tutorials or guide documents?

      Thanks!

      • VenkateshSathar's avatar
        VenkateshSathar
        Icon for Occasional Contributor rankOccasional Contributor

        I am also trying hls but 19.1 version since 2wk ago. at first, i tried with linux but thing did not go well. so im running it on window now. It can run smoother. after having right experience, i ll move back to linux later. i suggest u to try a non-lite version on a virtual machine, get 30 day trial license to get it through, go through intel hls examples first, read the manual carefully.

        Here something u can try now.
        - check if hls support CycloneV or not
        - try hls with Arria10 (all hls versions support arria10)
        - run the following command

        # --debug-log -v -ghdl --> turn on all logging feature
        i++ hello.cc -v  -march=Arria10 --debug-log -v -ghdl --simulator none -o test-fpga
        # should see a new folder test-fpga.proj. inside it, there are subfolders: components, quartus, reports, verification
        # synthesize component with quartus
        i++ hello.cc -v  -march=Arria10 --debug-log -v -ghdl --quartus-compile
        # or u can use quartus to open project <ur project folder>\test-fpga.proj\quartus\quartus_compile.qsf