Technical data
LibIndexStruct
4
-36
LibIndexStruct
Purpose
Returns an optional index for a structure field
Syntax
%<LibIndexStruct(width, ucv, lcv, idx)>
Arguments
width
Integer width of variable.
ucv
User control variable string.
lcv
Loop control variable string.
idx
Integer index.
Returns
An optional index for a structure field.
Description
LibIndexStruct
returns an optional index for a structure field. An index into
to the signal is returned for wide signals. Nothing is returned for scalar signals
(this scalar expands them).
""
Signal is scalar (width == 1).
[ucv]
Width > 1,
ucv
is specified.
[lcv]
Width > 1,
lcv
is specified.
[idx]
Otherwise.