[sv-bc] import using a function prototype - why must data type be explicit?

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Jun 26 2006 - 02:05:16 PDT
  

20.6 describes using a function prototype in a modport.

When you go into the syntax, you find:

function_prototype ::= function function_data_type function_identifier (
[ tf_port_list ] )

function_data_type ::= data_type | void

function_data_type_or_implicit ::=
  function_data_type
| [ signing ] { packed_dimension }

 

As far as I can see, this means that the data type of the function
return value needs to be explicitly specified, whereas in a simple
function declaration, it can be left off and then it will be implicitly
logic.

Why is this? Was it deliberate?

 

Thanks,

Shalom

 

 

 

 

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033

I don't represent Intel 

 



image001.gif
Received on Mon Jun 26 02:07:04 2006

This archive was generated by hypermail 2.1.8 : Mon Jun 26 2006 - 02:07:33 PDT