[sv-bc] Built-in types are not packed arrays

From: Brad Pierce <Brad.Pierce@synopsys.com>
Date: Fri Sep 24 2004 - 11:32:27 PDT

Erratum 51 http://www.eda.org/svdb/bug_view_page.php?bug_id=51
asks whether built-in integer types are a form of packed array.

In my opinion, they are not. For example, if J were declared
as int, then I think

    $dimensions(J)

should yield 0, and $left(J) should yield an error. And an
unpacked array of bytes

    byte A[16];

would have one dimension, not two.

Erratum 101 http://www.eda.org/svdb/bug_view_page.php?bug_id=101
asks whether $dimensions() really returns a 0 for all singular
objects. I think it does not. Instead it should return 0 only
for objects that are *not arrays*, because as Paul points out
a packed array is a singular object.

-- Brad
Received on Fri Sep 24 11:32:29 2004

This archive was generated by hypermail 2.1.8 : Fri Sep 24 2004 - 11:33:27 PDT