[sv-ec] Queries related to array manipulation method

From: Trainee19 (Moumita Das) <traine19_at_.....>
Date: Thu Jul 20 2006 - 23:43:45 PDT
Hi,
I have some queries related to array manipulation method (specially for
array ordering method)

SV LRM (Clause 5.15.2) says, "Array ordering methods can reorder the
elements of
one-dimensional arrays or queues."

Problem 1:
===========
 module mod;
 integer i[3:0][3:0];
initial
begin
 i.reverse;
end
endmodule

problem 2:
-------
module mod;
logic [2:0] i[2:0];
initial
begin
i.reverse;
end
endmodule

Problem 3
------
module mod;
logic i[2:0];
initial
begin
i[1].reverse;
end
endmodule

Problem 4
------
module mod;
logic i[2:0][2:0];
initial
begin
i[1][1].reverse;
end
endmodule

Could you please suggest me whether the above testcases are valid or
not.

Thanks and regards.
Moumita
Received on Thu Jul 20 23:44:01 2006

This archive was generated by hypermail 2.1.8 : Thu Jul 20 2006 - 23:44:16 PDT