-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use clause with .all suffix should not make package name visible
- Loading branch information
Showing
8 changed files
with
89 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-- work library is mylib | ||
package mylib is | ||
constant C_CONSTANT : integer := 2; | ||
end package; | ||
|
||
entity cntr is | ||
port ( x : in integer ); | ||
end entity; | ||
|
||
library mylib; | ||
use mylib.mylib.all; | ||
|
||
entity e1 is | ||
end entity; | ||
|
||
architecture a1 of e1 is | ||
begin | ||
u: entity mylib.cntr port map ( C_CONSTANT); -- OK | ||
end architecture; | ||
|
||
library mylib; | ||
use mylib.mylib; | ||
|
||
entity e2 is | ||
end entity; | ||
|
||
architecture a2 of e2 is | ||
begin | ||
u: entity mylib.cntr port map ( mylib.C_CONSTANT); -- Error | ||
end architecture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters