User guide
E-32
PLI Access Routines
It yields the following string from my_mem[5][5][10][3:5].
acc_setmda_bitstr()
You use the acc_setmda_bitstr access routine to write a bit
string, including x and z values, into 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};
bitstr="111";
acc_setmda_bitstr()
Synopsis: Sets a bit string in a multidimensional array.
Syntax: acc_setmda_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_getmda_bitstr