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

From: Andy Tsay <andytsay@yahoo.com>
Date: Tue Sep 21 2004 - 19:05:23 PDT

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);
Received on Tue Sep 21 19:05:26 2004

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