mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 01:18:10 +02:00
package name resolution visits enum base types
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user