Forum Discussion

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

Adding Library per file in QSYS component _hw.tcl file

Hi,

I am working on QSYS (Platform designer) and i need to add few of my IPs in .qsys project.

I created a _hw.tcl for my IP and specified all the required .vhd files in this _hw.tcl. (using "add_fileset_file" command)

But these .vhd files are present in different libraries (different folder path).

When I use QSYS(Platform designer) to integrate my IP, I see QSYS copies all files from my IP folder to one single directory.

The result is that the "Analysis & Synthesis" process in Quartus fails.

(Error (13785): VHDL Use Clause error at mytopdesignfile.vhd(33): design library "mylib1" does not contain primary unit "mySubDesign" file).

How to specify the library name in the _hw.tcl file ?

Is there any workaround for this issue ?

I am working on “Intel Quartus Pro Version 21.3”

Thanks

7 Replies

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

    Instead of manually editing the _hw.tcl file, did you try using the Component Editor tool in Platform Designer to point to your HDL files?

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

      Hi,

      My HDL files are from a different libraries. Where to specify the library name for the HDL files in the component editor window?

      Can you share the step in the component editor where we can specify the library name for the HDL file.

      Thanks

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

        On the Files tab in the Component Editor, just point to files and folders you need, just like you would add them to your main Quartus project.

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

    Hi,


    You can try to use Platform Designer Component Editor. in the Platform Designer main window click File > New Component. When you define a component with the Component Editor, Platform Designer writes the information to an _hw.tcl file. This file contains the component's description, interfaces, and HDL files. If the component need custom features, you can manually edit the file to complete the component definition.


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

    May I know if there is any update from previous suggestion?


  • SyafieqS's avatar
    SyafieqS
    Icon for Super Contributor rankSuper 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.


    p/s: If any answer from community or Intel support are helpful, please feel free to mark as solution, give Kudos and rate 10/10 survey


  • Ju-Ti's avatar
    Ju-Ti
    Icon for New Contributor rankNew Contributor

    The same problem here.. VGopa7's original question seems to concern naming an analysis labrary for VHDL files. When one of analyzed VHDL files defines a package, and rest of the files refer to that package using a library name, e.g.

    library mylib1;

    use mylib1.pkgname.xxx;

    compilation will fail if Platform Designer / Quartus has analyzed these files to some other compilation library than mylib1. In Component instantiation tab, under Compilation Info, there is a selection for HDL compilation library. However it did not have any effect when I tried it. Also there is an attribute HDL_COMPILATION_LIBRARY but how to use it, is it for this purpose?
    https://www.intel.com/content/www/us/en/docs/programmable/683609/22-1/instantiation-properties.html