Forum Discussion

rishivanthishankaran's avatar
rishivanthishankaran
Icon for New Contributor rankNew Contributor
3 years ago

error while generating hdl in platform designer.

Greetings all!

I'm trying to do a project using nios 2 processor. I have already created a qsys file in that i have included my CSR hdl file using component editor. I'm getting the following error while generating the testbench and hdl files. I can't figure out how to solve it.

Error: CSR_0: CSR does not support generation for Verilog Simulation. Generation is available for: Quartus Synthesis.
Error: Generation stopped, 11 or more modules remaining
Error: qsys-generate failed with exit code 1: 2 Errors, 0 Warnings

After that I created the application make files using nios 2 sbt while running the simulation in modelsim I'm getting the following errors.

Instantiation of 'nios_CSR_0' failed. The design unit was not found.

Instantiation of 'altera_avalon_i2c' failed. The design unit was not found.

Instantiation of 'nios_NIOS_CONSOLE_UART' failed. The design unit was not found.

Does anybody have any suggestions? I really appreciate the help.

Thank you.

Platform Designer: Component Editor

7 Replies

  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    When you created your component in Component Editor, on the Files tab, did you put files in the Verilog simulation section? It can be the same files as in the synthesis section (there's even a button to copy them over), but if you want to simulate your custom component through a testbench system, you need to indicate which design files to use for simulation separate from synthesis.

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

      Yes, I have put those testbench files in the simulation section though I'm getting the same error again.

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,


    Let me know if you have any further concern.


    Best Regards,

    Sheng

    p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer.


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

      Hi,

      could you please tell me how to include the CSR hdl file in nios 2 processor . I have included it using component editor though I'm getting error.

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,


    Check the links below:

    https://www.intel.com/content/www/us/en/docs/programmable/683609/22-4/specify-files-for-simulation-in-the.html

    https://www.intel.com/content/www/us/en/docs/programmable/683364/18-1/specify-files-for-simulation-in-the.html

    Note: The order that you add files to the fileset determines the order of compilation. For VHDL filesets with VHDL files, you must add the files bottom-up, adding the top-level file last.


    Best Regards,

    Sheng

    p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer.


  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    Can you show screen shots of your Component Editor settings? It sounds like something is not configured correctly.

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,

    Let me know if you have any further concern or update. Does your problem being resolved?

    Thanks,

    Best Regards,

    Sheng