Subject: RE: SV_CC meeting minutes for 15 Jan, 2003
From: Warmke, Doug (doug_warmke@mentorg.com)
Date: Wed Jan 15 2003 - 11:06:20 PST
Andrzej,
One more suggestion for clarity in the svc_bin.h file.
>
> Now Andrzej discusses restrictions...
>
> Sized arrays have direct access issues when mapping to/from
> C. Unsized array do not have this issue because they have
> abstract access methods.
>
I saw in your text that you intended these "put" and "get"
functions to work on the entire array, not just one chunk at a time.
(Sorry I got confused about that on my last mail, but my concerns
about the "pointerness" of the output arguments are still present)
Your examples (esp ex 2) aren't quite in line with that.
Perhaps what you mean is that these functions work on one
entire unpacked dimension at a time (i.e. an entire packed part
of an array, no matter how many packed dimensions) I will assume
that in the comments I add here. If I am wrong, please clarify
for us and then change my proposed comments. (Thanks!)
/* Functions for translation between simulator's representation
* and canonical representation of packed arrays.
*
* These functions are not intended for use with unpacked arrays.
* However, they can work on any packed dimensions of an unpacked array.
*/
/* s=source, d=destination, w=width */
/* actual <-- canonical */
void svPutBitVec32 (svBitPackedArr* d, const svBitVec32* s, int w);
void svPutLogicVec32 (svLogicPackedArr* d, const svLogicVec32* s, int w);
/* canonical <-- actual */
void svGetBitVec32 (svBitVec32* d, const svBitPackedArr s, int w);
void svGetLogicVec32 (svLogicVec32* d, const svLogicPackedArr s, int w);
Thanks and regards,
Doug
This archive was generated by hypermail 2b28 : Wed Jan 15 2003 - 11:07:37 PST