Forum Discussion

ldm_as's avatar
ldm_as
Icon for Occasional Contributor rankOccasional Contributor
6 years ago
Solved

How to manage Verilog include files in Quartus?

Hi All,

How to manage Verilog include files in Quartus? I mean Verilog files, which include `define and parameters. Actually they don't need to be compiled separately. So, should they still be added as the source files to the Quartus Project? Should these file have some special attributes?

Thank you!

5 Replies

  • AnandRaj_S_Intel's avatar
    AnandRaj_S_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi Dmitry,

    Use the `include directive to include all your header files within the module body.

    When synthesizing header files in the Quartus II software, do not add the header file to the list of files in the Quartus II project.

    or

    We can include the Verilog macro files into the file list.

    please check the similar thread.

    https://forums.intel.com/s/question/0D50P00004MgL0PSAV/is-there-a-way-to-include-file-with-macros-and-small-modules-without-having-to-use-include-in-every-file

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

    Regards

    Anand

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

      No, this doesn't solve the problem ... How should I define the directories where Quartus should search for the `include files? Actually there are several places where they might be located. How to add these search paths to the project?

  • AnandRaj_S_Intel's avatar
    AnandRaj_S_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi Airspan,

    You can include design files libraries in your project. Specify libraries for a single project, or for all Quartus II projects.

    1. The.qsf stores project library information.
    2. The quartus2.ini file stores global library information.

    Click Assignment > Settings. Click Libraries and specify the Project Library name or Global Library name.

    Alternatively, you can specify project libraries with SEARCH_PATH in the .qsf, and global libraries in the quartus2.ini file.

    Regards

    Anand

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

      1) What's the syntax of usage of the SEARCH_PATH?

      2) How to manage files, which have the same name (module name), but different functionality and belong to the different units (sub-modules) in the same project?