system verilog queue using methods example code
system verilog queue using methods example code:-
first we know methods:
push
pop
push front
push back
pop front
pop back
insert
delete
code:-
/*module test;
int k, q[$] ='{1,2,3,4,5,6};
initial
begin
foreach(q[i])
begin
k=q.pop_back();
$display("%d",k);
end
$display("%p",q);
end
endmodule :test*/
Comments
Post a Comment