How to specify the library for files in the Component Editor? - How to specify the library for files in the Component Editor?
I am making a custom IP component in Quartus Prime 26.1. Most files are simply part of the "work" library, however there is at least one file which needs to be compiled under a specific library name. I have created my own _hw.tcl file, which is working fine. The problem is, that when I include all my files, I do not know how to specify the library each file should be compiled into. This results in an error message when synthesising: VHDL Use Clause at MyFile.vhd(29): design library "mylib" does not contain primary unit "mylibcomponents". It would seem natural that there'd be an attribute or something you can apply to a file or fileset, which would specify the library; however, I've been unable to find anything. Many thanks in advance for any guidance!
Replies:
Re: How to specify the library for files in the Component Editor?
Inside IP, you can only use work. Or move that file out of the IP to use mylib
Replies:
Re: How to specify the library for files in the Component Editor?
So in other words, ditch the library and just use "work" ? This is what I was trying to avoid, but if it is simply not possible in Quartus, then I'll have no other option.
Replies:
Re: How to specify the library for files in the Component Editor?
change library "mylib" to "work" ?
Replies:
Re: How to specify the library for files in the Component Editor?
Thank you, however my custom component, when instantiated in Platform Designer, is an IP core. So, I think I am unable to change the library for individual files within an IP core (but I can change the library which the entire IP core is compiled into). So I might have to think of some kind of workaround.
Replies:
Re: How to specify the library for files in the Component Editor?
Under Project Navigator Files section, right-click -> Properties -> Specify library - 2026-05-20
external_document