Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16916 Discussions

Adding Library per file in QSYS component _hw.tcl file

VGopa7
Beginner
1,826 Views

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

0 Kudos
7 Replies
sstrell
Honored Contributor III
1,805 Views

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?

0 Kudos
VGopa7
Beginner
1,794 Views

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

 

0 Kudos
sstrell
Honored Contributor III
1,786 Views

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.

0 Kudos
SyafieqS
Employee
1,800 Views

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. 


0 Kudos
SyafieqS
Employee
1,769 Views

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


0 Kudos
SyafieqS
Employee
1,726 Views

 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


0 Kudos
Ju-Ti
Beginner
1,519 Views

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

0 Kudos
Reply