Skip to content

pynq_parallel 🔗

Pynq_parallel 🔗

A Pynq parallel model vAccel resource.

pynq_parellel classmethod 🔗

pynq_parellel(a: float, len_a: int)

Executes Pynq parallel operation using vAccel over genop.

Parameters:

Name Type Description Default

a 🔗

float

A float for the array a

required

len_a 🔗

int

An integer giving the length of the array

required

Returns:

Name Type Description
b

A float for the array b

add_out

A float for the addition

mult_out

A float for the multiplication

Source code in vaccel/pynq_parallel.py
@classmethod
def pynq_parellel(cls, a:float,len_a:int):
    """Executes Pynq parallel operation using vAccel over genop.

    Args:
        a: A float for the array a
        len_a: An integer giving the length of the array

    Returns:
        b: A float for the array b
        add_out: A float for the addition
        mult_out: A float for the multiplication
    """

    arg_read = [VaccelArg(data=int(cls.__op__)),
                VaccelArg(data=a),VaccelArg(data=len_a)]
    arg_write = [VaccelArg(data=cls.def_arg_write),VaccelArg(data=cls.def_arg_write)]
    return cls.__genop__(arg_read=arg_read, arg_write=arg_write, index=0)