V
Valentin Tihomirov
Guest
A Quotation:
The library clause defines the logical names of design libraries, which are
used by the design units. A library is a storage facility for previously
analysed design units. In practice, this relates mostly to packages.
....
User-specified packages are stored in the working library WORK.
Examples:
library IEEE;
use IEEE.Std_Logic_1164.all;
That is, I can use analyzed objects residing in ANY library while all my
objects can go only into WORK library. Is it true? How can I control
destination library in VHDL file for the objects being analyzed? I have many
reasons to ask this question. One of them is the following. I have an entity
and its configuration in ONE vhdl file. Simulator shows the following error
message:
"Error: COMP96_0208: txunit_tb.vhd : (136, 1): For a configuration of a
given design entity, both the configuration declaration and the
corresponding entity declaration must reside in the same library"
Seems that entity and its configuration is compiled into a library different
from WORK. You see, I have no ideas how could I do that. In fact, I use
Avtive-HDL. All objects are compiled into a library having a name of my
project. THERE IS NO WORK LIBRARY!! Until using configuration, I have no
problem with direct instantiations like this
uut: entity work.E_NAME(A_NAME) ...
The library clause defines the logical names of design libraries, which are
used by the design units. A library is a storage facility for previously
analysed design units. In practice, this relates mostly to packages.
....
User-specified packages are stored in the working library WORK.
Examples:
library IEEE;
use IEEE.Std_Logic_1164.all;
That is, I can use analyzed objects residing in ANY library while all my
objects can go only into WORK library. Is it true? How can I control
destination library in VHDL file for the objects being analyzed? I have many
reasons to ask this question. One of them is the following. I have an entity
and its configuration in ONE vhdl file. Simulator shows the following error
message:
"Error: COMP96_0208: txunit_tb.vhd : (136, 1): For a configuration of a
given design entity, both the configuration declaration and the
corresponding entity declaration must reside in the same library"
Seems that entity and its configuration is compiled into a library different
from WORK. You see, I have no ideas how could I do that. In fact, I use
Avtive-HDL. All objects are compiled into a library having a name of my
project. THERE IS NO WORK LIBRARY!! Until using configuration, I have no
problem with direct instantiations like this
uut: entity work.E_NAME(A_NAME) ...