Forum Discussion

wa_itd's avatar
wa_itd
Icon for New Contributor rankNew Contributor
1 day ago
Solved

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!

  • Inside IP, you can only use work. Or move that file out of the IP to use mylib

5 Replies

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

    Under Project Navigator Files section, right-click -> Properties -> Specify library

     

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

      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.