RE: [sv-bc] questions about structure literals


Subject: RE: [sv-bc] questions about structure literals
From: Mark Hartoog (Mark.Hartoog@synopsys.com)
Date: Wed Oct 22 2003 - 15:29:16 PDT


Greg Jaxon:
>
> I all of sections 2.7 and 2.8, there is just one example of a "packed"
> aggregate literal: It says -
>
> > If the type is not given by the context, it must be specified with a cast.
> > typedef int [1:3] triple; // 3 integers packed together
> > b = triple’{0,1,2};
>

Furthermore, this example is illegal. Section 4.2, pg 25 says:

Packed arrays can only be made of the single bit types (bit, logic, reg, wire,
and the other net types) and recursively other packed arrays and packed structures.

Integer types with predefined widths cannot have packed array dimensions declared.
These types are: byte, shortint, int, longint, and integer.

This example needs to be replaced with a legal example.

Mark Hartoog
700 E. Middlefield Road
Mountain View, CA 94043
650 584-5404
markh@synopsys.com



This archive was generated by hypermail 2b28 : Wed Oct 22 2003 - 15:32:29 PDT