Re: [sv-bc] System-Verilog 3.1 import function DPI


Subject: Re: [sv-bc] System-Verilog 3.1 import function DPI
From: Francoise Martinolle (fm@cadence.com)
Date: Fri Aug 01 2003 - 14:44:28 PDT


Stephen, Dan,

I think that before draft 4, the named_function_proto INCLUDED the keyword
function.
It looks like when the function keyword was dropped, the consistency was
not maintained
across all the productions which referred it. In all but DPI production,
the keyword "function"
was added before named_function_proto...

Francoise
        '

At 08:53 AM 7/29/2003 +0300, Jacobi, Dan wrote:
>Hello All,
>
>Last meeting (July the 21st ) I was asked about the
>keyword 'function' in the import DPI function declaration
>
>Looking back in the System-Verilog 3.1 drafts
>I saw the DPI functions were first introduced in
>draft 4 of the System-Verilog 3.1 LRM (around May 2003).
>In this draft the keyword 'function 'wasn't present as well.
>
>Attached is the E-mail Stefen sent me regarding this issue.
>
>Dan Jacobi
>Intel Corp
>
> > -----Original Message-----
> > From: Stefen Boyd [mailto:stefen@boyd.com]
> > Sent: Monday, July 28, 2003 6:00 PM
> > To: Jacobi, Dan
> > Subject: Re: A BNF question regarding the Ssytem-Verilog 3.1 import
> function DPI
> >
> > Dan,
> >
> > Going back to when I first was instructed by the CC, I see the
> > following:
> >
> >> At 03:09 PM 3/19/2003 -0500, Joao Geada wrote:
> >>As regards the BNF, I think the following items from sv-cc should be
> present:
> >>
> >>- import/export declarations
> >> import "DPI" [context|pure] [<cname>=] named_function_proto
> >> export "DPI" [<cname>=] function <fname>
> >
> >Looks like it has lacked the "function" for imports since it first
> >came to me.
> >
> >Regards,
> > Stefen
> >
> >At 08:38 PM 7/21/2003 +0300, Jacobi, Dan wrote:
> >>Stefen,
> >
> >We the SV-BC committee were asked by the SV-CC committee if / why we
> >removed the keyword "function" for the dpi import function declaration in
> >the following BNF rule, under A.2.6.
> >dpi_import_export ::=
> >import "DPI" [ dpi_import_property ] [ c_identifier = ] dpi_function_proto
> >| export "DPI" [ c_identifier = ] function function_identifier
> >
> >This disables parsing such declarations as
> >import "DPI" function dpi_foo ... (We are aware the word function is
> >redundant in this case)
> >
> >After looking back in the BNF drafts I found no indication that this was
> >ever legal in the BNF, do you have any idea if the keyword function was
> >taken out ? Do you know why ?
> >
> >Thanks
> >
> >Dan Jacobi



This archive was generated by hypermail 2b28 : Fri Aug 01 2003 - 14:46:40 PDT