vpi.Array

class vpi.Array(capacity: int, type: vpi.Type) vpi.Array

Create an empty array instance.

Parameters
  • capacity (int) – The capacity (maximum number of elements) of the array.

  • type (vpi.Type) – The type of the array.

Returns

The array.

Return type

vpi.Array

Hint

The contents of an array instance can be accessed via container methods.

Attributes

capacity

Capacity (maximum number of elements) of the array.

id

Index (sequential number) of the instance.

size

Size (current number of elements) of the array.

type

Type of the array (see array types).