User guide
E-31
PLI Access Routines
acc_getmda_bitstr()
You use the acc_getmda_bitstr access routine to read a bit
string, including x and z values, from a multidimensional array.
If you have a multidimensional array such as the following:
reg [7:0] my_mem[255:0][255:0][31:0];
And you call a routine, such as the following:
dim[]={5, 5, 10};
handle hN = acc_handle_by_name(my_mem);
acc_getmda_bitstr(hN, &bitStr, dim, 3, 3);
acc_getmda_bitstr()
Synopsis: Gets a bit string from a multidimensional array.
Syntax: acc_getmda_bitstr(mdaHandle, bitStr, dim, start, len)
Type Description
Returns: void
Type Name Description
Arguments: handle mdaHandle Handle to the multidimensional
array
char * bitStr Pointer to the bit string
int * dim Pointer to the dimension in the
multidimensional array
int * start Pointer to the start element in the
dimension
int * len Pointer to the length of the string
Related
routines:
tf_mdanodeinfo and tf_imdanodeinfo
acc_get_mda_range
acc_get_mda_word_range
acc_setmda_bitstr