User guide

E-11
PLI Access Routines
acc_setmem_hexstr
You use the acc_setmem_hexstr access routine for writing the
corresponding binary representation of a hexadecimal string to a
Verilog memory.
This routine takes a value argument which is a hexadecimal string of
any size and puts its corresponding binary representation into the
memory word indexed by row, starting at the bit number start.
acc_setmem_hexstr
Synopsis: Writes a hexadecimal string to a word in a Verilog memory.
Syntax: acc_setmem_hexstr (memhand, hexStrValue, row, start)
Type Description
Returns: void
Type Name Description
Arguments: handle memhand Handle to memory
char * hexStrValue Hexadecimal string
int row The memory array index
int start Bit number of the left-most bit in the memory
word where this routine starts writing the
string.
Related
routines:
acc_setmem_int
acc_getmem_int
acc_getmem_hexstr
acc_setmem_bitstr
acc_getmem_bitstr
acc_clearmem_int
acc_handle_mem_by_fullname
acc_readmem
acc_getmem_range
acc_getmem_size
acc_getmem_word_int
acc_getmem_word_range