Files
iverilog/ivtest/ivltests/sv_queue_parray_fail.v
T
Lars-Peter Clausen 1a10abeae7 Add regression tests for queue of packed arrays
Check that queues of packed arrays are supported. These tests are identical
to the existing queue tests for other data type, just that the data type
is a packed array.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-03-12 14:07:06 +01:00

20 lines
370 B
Verilog

module top;
typedef reg [4:0] T1;
typedef T1 [7:0] T2;
int bound = 2;
T2 q_vec [$];
T2 q_vec1 [$:-1];
T2 q_vec2 [$:'X];
T2 q_vec3 [$:bound];
initial begin
$display(q_vec.size(1));
$display(q_vec.pop_front(1));
$display(q_vec.pop_back(1));
q_vec.push_front(1, 2);
q_vec.push_back(1, 2);
$display("FAILED");
end
endmodule : top