Subject: Re: [sv-cc] another directC question - defaults for args, passing by name
From: Francoise Martinolle (fm@cadence.com)
Date: Thu Feb 13 2003 - 10:05:56 PST
Andrzej and others:
Supporting the equivalent of a var qualifier in a call to C would create a
technical
problem:
we need to ensure that if the C code modifies a var argument, the new
value of the modified object
is immediately visible to C or Verilog (fanout needs to be propagated).
The new value can no longer
be updated after the function returns.
We have a few alternatives:
a) create a new C library function which modifies the var argument and
propagate the value; this function
is to be used to update a var argument
b) do not allow directC function which take arguments passed by
reference which have simulation semantics
What do you think?
Francoise
'
This archive was generated by hypermail 2b28 : Thu Feb 13 2003 - 10:06:28 PST