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


Subject: [sv-bc] System-Verilog 3.1 import function DPI
From: Jacobi, Dan (dan.jacobi@intel.com)
Date: Mon Jul 28 2003 - 22:53:55 PDT


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 : Mon Jul 28 2003 - 22:55:23 PDT