User guide

E-19
PLI Access Routines
acc_readmem
You use the acc_readmem access routine to read a data file into a
memory. It is similar to the $readmemb or $readmemh system tasks.
The memhandle argument must be the handle returned by
acc_handle_mem_by_fullname.
acc_readmem
Synopsis: Reads a data file into a memory
Syntax: acc_readmem (memhandle, data_file, format)
Type Description
Returns: void
Type Name Description
Arguments: handle memhandle Handle returned by
acc_handle_mem_fullname
const char* data_file Data file this routine reads
int format Specify a character that is promoted to
int. ’h’ for hexadecimal data, ’b’ for binary
data.
Related
routines:
acc_setmem_int
acc_getmem_int
acc_setmem_hexstr
acc_getmem_hexstr
acc_setmem_bitstr
acc_getmem_bitstr
acc_handle_mem_by_fullname
acc_readmem
acc_getmem_range
acc_getmem_size
acc_getmem_word_int
acc_getmem_word_range