mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 01:18:10 +02:00
fix premature elaboration of single element patterns
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user