Re: [sv-ec] Queries related to array manipulation method

From: Neil Korpusik <Neil.Korpusik_at_.....>
Date: Tue Aug 15 2006 - 14:58:05 PDT
Moumita,

We have been in the process of updating section 5.15.2 with mantis item 978.
Mantis 978 has not yet been approved by the committee. I have commented on
each of your examples given my current understanding of where we will end
up after we complete mantis item 978. This is my current best guess of
where we will end up.


Neil



Trainee19 (Moumita Das) wrote On 07/20/06 23:43,:
> 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

[Neil] This testcase is valid.
       Only the leftmost "dimension" will be reversed.

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

[Neil] This testcase is valid.

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

[Neil] This testcase is invalid since i[1] refers to a single element and
not to an array of elements.

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

[Neil] This testcase is invalid since i[1][1] refers to a single element and
not to an array of elements.


> 
> Could you please suggest me whether the above testcases are valid or
> not.
> 
> Thanks and regards.
> Moumita
> 
> 
> 

-- 
---------------------------------------------------------------------
Neil Korpusik                                     Tel: 408-720-4852
Senior Staff Engineer                             Fax: 408-720-4850
Frontend Technologies - ASICs & Processors (FTAP)
Sun Microsystems
email: neil.korpusik@sun.com
---------------------------------------------------------------------
Received on Tue Aug 15 14:58:14 2006

This archive was generated by hypermail 2.1.8 : Tue Aug 15 2006 - 14:58:33 PDT