[sv-bc] Q: [N] array bounds legal for unpacked but not packed arrays?

From: Seligman, Erik <erik.seligman@intel.com>
Date: Tue Sep 30 2014 - 12:34:18 PDT
Recently I saw a vendor tool fail on a declaration like this:

    logic [N]   foo;

To make it work, I had to change it to

    logic [N-1:0] foo;

Looking at section 7.4.1-7.4.2 of the LRM, it seems like this option of a single number for the array bound declaration is described only for unpacked arrays.    It doesn't specifically say it's not allowed for packed arrays, so many tools accept it, but it doesn't directly allow it either.

Is this difference in syntax requirements between packed and unpacked array bounds an oversight, or is there an intentional reason for it?

Thanks!


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Sep 30 12:34:46 2014

This archive was generated by hypermail 2.1.8 : Tue Sep 30 2014 - 12:35:05 PDT