mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 03:03:08 +02:00
By adding ivtest to the iverilog source tree, it is easier to keep the regression test synchronized with the source that is being tested. This should be especially helpful for PRs that add a new feature, and have a matching ivtest PR with the regression test for that feature.
17 lines
326 B
Verilog
17 lines
326 B
Verilog
module top;
|
|
int bound = 2;
|
|
int q_vec [$];
|
|
int q_vec1 [$:-1];
|
|
int q_vec2 [$:'X];
|
|
int 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
|