Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Making new library

Hi, I have vhdl file containing package declaration. Right now, I am calling that file (package) from work lib. But I want to create a new lib in which that package is included? How can I make new lib in Quartus II?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can use either GUI or commands specific to Quartus (or ModelSim) and you either create library or map to existing one.

    The simplest Quartus example is this:

    qsf:

    set_global_assignment -name VHDL_FILE C:/project1/my_package.vhd -library my_lib

    (alternatively use add files to project => properties => library then see the commands added in qsf)

    Then in vhdl:

    library my_lib;

    use my_lib.my_package.all;