mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 17:31:40 +02:00
fix struct array pattern conversion (resolves #60)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
module top;
|
||||
typedef struct packed {
|
||||
bit a, b;
|
||||
} T;
|
||||
|
||||
localparam T FOO [4] = '{
|
||||
'{ 0, 0 },
|
||||
'{ 0, 1 },
|
||||
'{ 1, 0 },
|
||||
'{ 1, 1 }
|
||||
};
|
||||
|
||||
initial begin
|
||||
$display(FOO[0].a);
|
||||
$display(FOO[0].b);
|
||||
$display(FOO[2].a);
|
||||
$display(FOO[2].b);
|
||||
end
|
||||
endmodule
|
||||
Reference in New Issue
Block a user