[sv-bc] Possible errata in LRM 3.1a sections 2.8 and 7.13, array literals

From: Stuart Sutherland <stuart@sutherland-hdl.com>
Date: Mon Aug 30 2004 - 06:03:58 PDT

Section 2.8 says:
  Array literals can also use their index or type as a key, and a default
key value (see Section 7.13).
  b = {1:1, default:0}; // indexes 2 and 3 assigned 0

1) What is b? It is not declared in this example or the examples
immediately preceding it.

2) If the array is multidimensional, what is the syntax to initialize one
element or one slice of the array? The syntax of index is not covered in
either 2.8 or 7.13.

3) I could not find a syntax definition for array literals in the BNF. Is
it defined?

 
Stu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart Sutherland Sutherland HDL Inc.
stuart@sutherland-hdl.com 22805 SW 92nd Place
phone: 503-692-0898 Tualatin, OR 97062

Sutherland HDL, Inc. -- Training Engineers to be Verilog, SystemVerilog
and VHDL Wizards! http://www.sutherland-hdl.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Mon Aug 30 06:04:41 2004

This archive was generated by hypermail 2.1.8 : Mon Aug 30 2004 - 06:05:13 PDT