User guide

E-33
PLI Access Routines
handle hN = acc_handle_by_name(my_mem);
acc_setmda_bitstr(hN, &bitStr, dim, 3, 3);
It writes 111 in my_mem[5][5][10][3:5].
Access Routines for Probabilistic Distribution
VCS comes with the following API routines that duplicate the behavior
of the Verilog system functions for probabilistic distribution:
vcs_random
Returns a random number and takes no argument. See
"vcs_random" on page E-34 for details.
vcs_random_const_seed
Returns a random number and takes an integer argument. See
"vcs_random_const_seed" on page E-35 for details.
vcs_random_seed
Returns a random number and takes a pointer to integer
argument. See "vcs_random_seed" on page E-35 for details.
vcs_dist_uniform
Returns random numbers uniformly distributed between
parameters. See "vcs_dist_uniform" on page E-36 for details.
vcs_dist_normal
Returns random numbers with a specified mean and standard
deviation. See "vcs_dist_normal" on page E-37 for details.
vcs_dist_exponential
Returns random numbers where the distribution function is
exponential. See "vcs_dist_exponential" on page E-38 for details.