RE: [sv-bc] question from sv-cc on the funtion_prototype

From: Rich, Dave <Dave_Rich@mentorg.com>
Date: Thu Oct 14 2004 - 11:38:23 PDT

I have to take back what I said earlier. The implicit default return type for a function is a 1-bit reg.

However, I still think it is useful for a prototype to require an explicit return type.

-----Original Message-----
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Rich, Dave
Sent: Wednesday, October 13, 2004 2:48 PM
To: sv-bc@eda.org
Subject: RE: [sv-bc] question from sv-cc on the funtion_prototype

 
Françoise,

It might have helped to provide a link to the original SV-CC issue http://www.eda.org/svdb/bug_view_page.php?bug_id=0000049

I think the question is "Can section 27.4.5 be modified to explicitly require that all functions specify a return data type, there is no implicit return type?"

I believe the answer is yes, all functions (and full prototypes) require an explicit return type.

Dave

-----Original Message-----
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Steven Sharp
Sent: Wednesday, October 13, 2004 1:28 PM
To: sv-bc@eda.org; fm@cadence.com
Subject: Re: [sv-bc] question from sv-cc on the funtion_prototype

Perhaps I am missing something, but I don't see how SystemVerilog could do anything with the return value of the imported DPI function if it didn't know what type of value was being returned.

Steven Sharp
sharp@cadence.com
Received on Thu Oct 14 11:39:04 2004

This archive was generated by hypermail 2.1.8 : Thu Oct 14 2004 - 11:39:33 PDT