fix premature elaboration of single element patterns

This commit is contained in:
Zachary Snow
2020-12-07 16:23:29 -07:00
parent ad18c583ab
commit d137fd3d68
3 changed files with 21 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
module top;
typedef struct packed {
logic a, b;
} T;
typedef struct packed {
logic x;
T y;
} S;
localparam WIDTH = 1;
S [WIDTH] s = '{
'{x: 1, y: '{a: 1, b: 0}}
};
initial #1 $display("%b", s);
endmodule