mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-31 17:54:22 +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
|
||||
@@ -0,0 +1,8 @@
|
||||
module top;
|
||||
initial begin
|
||||
$display(1'b0);
|
||||
$display(1'b0);
|
||||
$display(1'b1);
|
||||
$display(1'b0);
|
||||
end
|
||||
endmodule
|
||||
Reference in New Issue
Block a user