package name resolution visits enum base types

This commit is contained in:
Zachary Snow
2021-04-09 14:07:34 -04:00
parent dce7f14909
commit d0d897b4e4
3 changed files with 20 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
package P;
localparam int W = 4;
typedef logic [W - 1:0] T;
typedef enum T {
A = 4'b1010,
B = 4'b0101
} E;
endpackage
module top;
initial $display("%d %d %d %b %b", $bits(P::A), $bits(P::T), $bits(P::E), P::A, P::B);
endmodule
+6
View File
@@ -0,0 +1,6 @@
module top;
localparam W = 4;
localparam A = 4'b1010;
localparam B = 4'b0101;
initial $display("%d %d %d %b %b", W, W, W, A, B);
endmodule