Forum Discussion

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

The basis about library

I am always confused by the usage and definition of library. Although currenly it looks like it did not affect my FPGA design and development, but I am eager to have a clear understanding about them. In this thread, I want to be clear about main two issues:

1. Library for simulation

2. Library for VHDL

(1) As I know, there is no concept of library in Verilog. For simulation, if we use Modelsim-Altera, we can see the list of precompiled libraries when we open Modelsim. If we use Modelsim SE or DE, we can firstly compile the libraries provided by Altera, Xilinx, then we can see the compiled libraries in Modelsim. These libraries usually are named by components, IPs, and have both VHDL and Verilog versions. So my first question is: what is inside of these libraries? Is the path where to get the relevant IP design files (HDL files) ?

(2) For libraries in VHDL, as I know, the library is used to tell the path, so if there is two modules with exact same name but they are in different libraries, then the world is still good. But I am curious when we use libraries in VHDL, we just write a command at the beginning of VHDL file. Where is the file of library? What is the extension of the VHDL library file?

Thanks very much.

21 Replies

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

    Thanks very much, both of you. I will post here if I have further questions.