mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 16:29:25 +02:00
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]>
20 lines
370 B
Verilog
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
|