mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
Add test for subarray access on multidimensional arrays
Signed-off-by: Lukasz Dalek <ldalek@antmicro.com>
This commit is contained in:
parent
ba08c25133
commit
daee2d967f
12
tests/svtypes/multirange_subarray_access.ys
Normal file
12
tests/svtypes/multirange_subarray_access.ys
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
logger -expect error "Insufficient number of array indices for a." 1
|
||||||
|
read_verilog -sv <<EOT
|
||||||
|
module foo;
|
||||||
|
logic a [6:0][4:0][1:0];
|
||||||
|
logic b [1:0];
|
||||||
|
|
||||||
|
assign a[0][0][0] = 1'b0;
|
||||||
|
assign a[0][0][1] = 1'b1;
|
||||||
|
assign b = a[0][0];
|
||||||
|
|
||||||
|
endmodule
|
||||||
|
EOT
|
Loading…
Reference in a new issue