Skip to content

pynq_array_copy 🔗

Pynq_array_copy 🔗

A Pynq array copy model vAccel resource.

pynq_arr_copy classmethod 🔗

pynq_arr_copy(a: int)

Executes Pynq array copy operation using vAccel over genop.

Parameters:

Name Type Description Default

a 🔗

int

An integer for the initial array

required

Returns:

Name Type Description
b

An integer for the copy of the array

c

An integer giving the length of the array

Source code in vaccel/pynq_array_copy.py
@classmethod
def pynq_arr_copy(cls, a:int):
    """Executes Pynq array copy operation using vAccel over genop.

    Args:
        a: An integer for the initial array

    Returns:
        b: An integer for the copy of the array
        c: An integer giving the length of the array
    """

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