|
<< Click to Display Table of Contents >> 2.9 Source Code Libraries |
![]() ![]()
|
Verilog supports two methods for using libraries of HDL source code that is common between multiple designs: source code libraries and compiled code libraries. This section discusses the older, slower method using source code libraries, and the next section discusses how to create and use the faster compiled libraries.
When a Verilog simulator compiles the files listed in the compiler command line options and in the User Source Files List, it parses the files and gets a list of module names that are instantiated in the files. After the compiler finishes storing these files into the current 'destination library' (see 2.10 Compiled Libraries for more information about the working library), the elaborator looks for the definitions of these modules, starting it's search in the destination library. If the definition is not found there, then the simulator next looks in the source code libraries (specified using the library search directories) to find a source code file with the same name as the module being searched for.
If a matching file is found, then it will compile the file and display the matched file in the project window under the Source Code Library Files folder. This folder will appear under the Simulated Models folder, but it only appears if matching files are found. This folder is a good place to look if you need to find out which source code library models are actually being instantiated in a given design.
Set Source Code Library Paths:
|
|
|

|
|