variable initialization at declaration

From: Stuart Sutherland (stuart@sutherland-hdl.com)
Date: Fri Aug 17 2001 - 11:15:38 PDT


All,

I believe Cliff is out of town, so I'll forward this to the rest of the
BTF. No doubt I'm just blind, but I can't even find in the draft 6 BNF
where it is legal to initialize reg variables as part of the declaration,
let alone the other variable types.

Stu

>Date: Fri, 17 Aug 2001 08:45:24 -0700
>From: Nish Parikh <nish@synopsys.com>
>Organization: Verification Technology Group
>X-Mailer: Mozilla 4.7 [en] (WinNT; I)
>X-Accept-Language: en
>To: "Clifford E. Cummings" <cliffc@sunburst-design.com>,
> Stuart Sutherland <stuart@sutherland-hdl.com>
>CC: ASIM NASEEM <anaseem@cupertino.synopsys.com>,
> mark warren <mwarren@cupertino.synopsys.com>,
> Sridhar Seshadri <sri@synopsys.com>, pmcgee@synopsys.com
>Subject: Question on V2K
>
>Cliff/Stu,
> Attached is a question form one the VCS team members. I would greatly
> appreciate it, if you
>could shed some light on it. Please reply all to this email.
>
>Thanks,
>Nish
>
>Nish and Sridhar,
> > >
> > > It looks like our VCS 6.1 V2K plans are to enable users to initialize
> a reg
> > > in its declaration, for example:
> > >
> > > reg r1 = 1;
> > >
> > > We are not planning to enable initialization for the other types of
> > > variables. The following declarations lead to compiler errors:
> > >
> > > real real_1 = 3.1416;
> > > integer int_1 = 3;
> > > time time_1 = 8;
> > > realtime rt1 = 45.36;
> > >
> > > I found this surprising and I'll bet the users will too.
> > >
> > > Maybe this is what the IEEE V2K committee really wants to do, just allow
> > > initializing a reg. Stranger things have come from committees like this
> > > (for example VHDL) but I think we should have someone check with the
> > > committee.
> > >
> > > Phil
>
>--
>Nish Parikh Tel: (503) 748-2208
>R&D Mgr. VCS, Verif. Tech. Group Cell: (503) 706-3704
>Synopsys Inc. Fax: (503) 748-6906

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



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:54:44 PDT and
sponsored by Boyd Technology, Inc.