User guide
18-72
DirectC Interface
void vc_FillWithScalar(vc_handle, scalar)
This routine fills all the bits or a reg, bit, or memory with all 1, 0, x, or
z values (you can choose only one of these four values).
You specify the value with the scalar argument, which can be a
variable of the scalar type. The scalar type is defined in the DirectC.h
file as:
typedef unsigned char scalar;
You can also specify the value with integer arguments as follows:
If you declare a scalar type variable, enter it as the argument, and
assign only the 0, 1, 2, or 3 integer values to it, they specify filling the
Verilog reg, bit, or memory with the 0, 1, z, or x values
You can use the following definitions from the DirectC.h file to specify
these values:
#define scalar_0 0
#define scalar_1 1
#define scalar_z 2
#define scalar_x 3
0 Specifies 0 values
1 Specifies 1 values
2 Specifies z values
3 Specifies x values