Forum Discussion

Mopplikus's avatar
Mopplikus
Icon for New Contributor rankNew Contributor
2 years ago

Intel HLS - simulating the design with ModelSim

Hello,

I have generated a design using Intel HLS, and now I'd like to look at the corresponding wave graphs in ModelSim / QuestaSim. Since for the co-simulation a test-bench has already been generated, I normally shouldn't need to create a new one, so how do I go about 'hijacking' the existing test-bench to get to the wave graph?

By the way, I'm using version 21.4.0 of the HLS.

Thanks in advance!

-Mopplikus

5 Replies

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

    Hi,


    I am working on this issue. please give me time.


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

    Hello,


    I found the solution to my issue. For instance, I needed to add the -ghdl flag to the i++ command, which then generates a .wlf file in the verification folder, which I can then open with ModelSim. For future reference, to get the wave graph, you have to choose the instance of your top level component, and then in the Objects tab you can add the waves for the signals you need.

    I'm encountering another issue now however; for instance, no matter the target frequency I specify, in the wave graph it is always set to 1000MHz, even if I override it with the --clock flag when compiling or for the individual components with hls_scheduler_target_fmax_mhz(). How could I fix this?

    -Mopplikus

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

    can you please update the status of issue?


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

    As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.