Created
February 4, 2016 05:53
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
package my_pkg1; | |
int unsigned a = 1; | |
endpackage : my_pkg1 | |
module top(); | |
// Not importing my_pkg1 here | |
int unsigned a = 2; | |
initial begin | |
$display ("a=%0d", a); | |
$display ("my_pkg1::a=%0d", my_pkg1::a); | |
end | |
endmodule : top | |
//Output: | |
// a=2 | |
// my_pkg1::a=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment