RE: [sv-bc] New proposal for SV-103


Subject: RE: [sv-bc] New proposal for SV-103
From: Mark Hartoog (Mark.Hartoog@synopsys.com)
Date: Wed Nov 19 2003 - 09:16:49 PST


When no type or width is specified, the default type is int. When a width,
but no type, is specified, I think the default type should be bit.
The type int is 32 bits, and there is no way to specify a int of any
other size, so I believe bit is a better choice.

If we used a default type of bit for sized enums, we also need to decide
if it is signed or unsigned. I would vote for signed, because I don't
think specifying a size should change an enum from signed to unsigned.

> -----Original Message-----
> From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org]On Behalf Of
> Arturo Salz
> Sent: Wednesday, November 19, 2003 8:52 AM
> To: Dave Rich; Peter Flake
> Cc: sv-bc@eda.org
> Subject: Re: [sv-bc] New proposal for SV-103
>
>
> Peter,
>
> If the enum does not specify a type, it uses the default: int.
>
> "In the absence of a data type declaration, the default data type shall be int."
>
> Arturo
>
> ----- Original Message -----
> From: "Peter Flake" <Peter.Flake@synopsys.COM>
> To: "Dave Rich" <David.Rich@synopsys.COM>
> Cc: <sv-bc@eda.org>
> Sent: Wednesday, November 19, 2003 5:40 AM
> Subject: Re: [sv-bc] New proposal for SV-103
>
>
> Dave,
>
> This does not specify what happens if the constants are sized but no type
> or size is specified after the enum.
>
> Peter.
>
> At 23:24 18/11/2003 -0800, Dave Rich wrote:
> >Ass discussed at the 11/17 meeting this proposal replaces the existing one
> >for SV-BC-103
> >
> >--
> >--
> >David.Rich@Synopsys.com
> >Technical Marketing Consultant
> >http://www.SystemVerilog.org
> >tele: 650-584-4026
> >cell: 510-589-2625
> >
> >
> >
> >
>
>



This archive was generated by hypermail 2b28 : Wed Nov 19 2003 - 09:17:37 PST