bit
[9:0] foo6;
foo5 foo6 = foo1[2]; // a 10 bit
quantity.
A dynamic array is one-dimension
one dimension of an unpacked array whose size can be set or changed at runtime. The space for a dynamic
array doesn’t exist until the array is explicitly created at runtime.
declares a task that accepts one argument, a dynamic array of 4 strings. This task can accept any
one-dimensional array of strings or any dynamic array of strings.
An import DPI function that accepts a one-dimensional array can be
passed a dynamic array of a compatible type and of any size if formal is unsized, and of the same size if formal is sized. However, a dynamic array cannot be passed as an argument if
formal is an unsized output.
— unique() unique() returns all elements with unique values or whose expression is
unique
qs = SA.unique SA.unique;
—
and() and() returns the bit-wise AND ( & ) of all the array elements, or
if a with clause is
specified, returns the bit-wise AND of the values yielded by evaluating the expression
for each array element
—
or() or() returns the bit-wise OR ( | ) of all the array elements, or if a with clause is specified, returns the bitwise
OR of the values yielded by evaluating the expression for each array element
—
xor() xor() returns the logical XOR ( ^ ) of all the array elements, or if a with clause is specified, returns the XOR of
the values yielded by evaluating the expression for each array element
y = b.xor b.xor
with ( item + 4 ); // y becomes 12 => 5 ^ 6 ^ 7 ^ 8