Re: [sv-cc] Perspectives from a "user" of the SV DPI C-layer


Subject: Re: [sv-cc] Perspectives from a "user" of the SV DPI C-layer
From: Andrzej Litwiniuk (Andrzej.Litwiniuk@synopsys.com)
Date: Tue Apr 01 2003 - 16:15:50 PST


> > The proof of pudding is in eating. If there was a gap in your
> > understanding,
> > or if you got confused, there is only one explanation of it: our LRM in not
> > clear enough. Sigh.
>
> johnS:
> [...] I think A.7.7 is stated clearly enough. At least for inputs.
>
> Outputs - a different matter ...

John (and team),

How about the following explanations added to 7.7, 7.8:

7.7. input arguments
`Small' values of formal input arguments are passed by value.
The following data types are considered small:
[...]
bit (i.e., 2-state) packed arrays up to 32-bit (canonical representation shall be used, like for a function result; thus a small packed bit array shall be represented as const svBitVec32.)

7.8. inout and output arguments
inout and output arguments, with the exception of open arrays, are always passed
by reference. Specifically, packed arrays are passed, accordingly, as
svBitPackedArrRef or svLogicPackedArrRef.

It was already clear for function result:

7.9. Function result
If the function result type is a packed bit array, the returned value shall be
represented using the canonical representation svBitVec32

Regards,
Andrzej



This archive was generated by hypermail 2b28 : Tue Apr 01 2003 - 16:16:31 PST