Re: [sv-bc] $length() and $size() for array types and objects

From: Dave Rich <David.Rich@synopsys.com>
Date: Tue Sep 21 2004 - 19:18:49 PDT

This is SV-EC errata 22

http://www.eda.org/svdb/bug_view_page.php?bug_id=0000022

Andy Tsay wrote:

>Hi,
>
>Please help to clarify if $length() and $size() are identical for the array
>query.
>Does $size() and "int svLength()" map to each other?
>Should it be named as $size() and "int svSize()"?
>
>Thanks,
>Andy Tsay
>P.S. Some related LRM texts are extracted below.
>
>SV3.1a LRM, section 23.7 (Array querying system functions) contains
>the following list:
>¡X $left
>¡X $right
>¡X $low
>¡X $high
>¡X $increment
>¡X $size
>¡X $dimensions
>
>E.11.2 Array querying functions
>These functions are modelled upon the SystemVerilog array querying functions
>and use the same semantics
>(see Section 23.7).
>/* h= handle to open array, d=dimension */
>int svLeft(const svOpenArrayHandle h, int d);
>int svRight(const svOpenArrayHandle h, int d);
>int svLow(const svOpenArrayHandle h, int d);
>int svHigh(const svOpenArrayHandle h, int d);
>int svIncrement(const svOpenArrayHandle h, int d);
>int svLength(const svOpenArrayHandle h, int d);
>int svDimensions(const svOpenArrayHandle h);
>
>
>
>

-- 
--
David.Rich@Synopsys.com
Technical Marketing Consultant and/or
Principal Product Engineer
http://www.SystemVerilog.org
tele:  650-584-4026
cell:  510-589-2625
Received on Tue Sep 21 19:18:58 2004

This archive was generated by hypermail 2.1.8 : Tue Sep 21 2004 - 19:19:01 PDT