Skip to content

module pynq_vector_add


class Pynq_vector_add

A Pynq vector add model vAccel resource.

Attributes:

  • __op__: The genop operation type
  • def_arg_write (bytes): The result of the operation

classmethod pynq_vector_add

pynq_vector_add(len_a: int, len_b: int)

Executes Pynq vector add operation using vAccel over genop.

Args:

  • len_a: An integer giving the length of the array a
  • len_b: An integer giving the length of the array b

Returns:

  • a: A float for the array a
  • b: A float for the array b
  • c: A float for the result of the addition