User guide
18-68
DirectC Interface
void vc_putMemoryValue(vc_handle, U indx, char *)
This routine works like the vc_putValue routine except that is for
passing values to a memory element instead of to a reg or bit. You
enter an argument to specify the element (index) to which you want
the routine to pass the value. For example:
#include <stdio.h>
#include "DirectC.h"
void check_vc_putvalue(vc_handle h)
{
vc_putMemoryValue(h,0,"10xz");
}
void vc_putMemoryValueF(vc_handle, U indx, char,
char *)
This routine works like the vc_putValueF routine except that it is
for passing values to a memory element instead of to a reg or bit. You
enter an argument to specify the element (index) to which you want
the routine to pass the value. For example:
#include <stdio.h>
#include "DirectC.h"
void assigner (vc_handle h1, vc_handle h2, vc_handle h3,
vc_handle h4)
{
vc_putMemoryValueF(h1, 0, "10", ’b’);
vc_putMemoryValueF(h2, 0, "11", ’o’);
vc_putMemoryValueF(h3, 0, "10", ’d’);
vc_putMemoryValueF(h4, 0, "aff", ’x’);
}