22.3.6 Offset Attributes

The following attributes are defined for offset values.

size

Gives an offset with the storage occupied by the offset. Examples:

(poke) 10#B'size
0x20UL#b
(poke) 10N#B'size
0x4UL#b
magnitude

Gives the magnitude part of the offset. Examples:

(poke) 10#B'magnitude
10
(poke) 2H#b'magnitude
2H
unit

Gives a number with the unit of the offset, expressed in bits. Examples:

(poke) 10#B'unit
8UL
(poke) 2H#b'unit
1UL
mapped

Always 0 for offsets. (see Mapping).

length

Always 1UL for offsets.

ref ([IOS])

If the value is a referring offset, then the application of the 'ref attribute implies the mapping of the referred value.

The attribute gets an optional argument which is the IO space to use when mapping the referred value. If this argument is not provided then the current IO space is assumed. The application of this attribute may result in a E_no_ios exception.