Skip to content

Instantly share code, notes, and snippets.

@sagar5258
Created February 4, 2016 05:53
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