.. highlight:: c .. _pragma_interface_memory_argument: Configure Argument as Memory Interface -------------------------------------- **Syntax** ``#pragma LEGUP interface argument() type(memory) depth()`` **Description** This pragma specifies the memory interface type for an array/struct argument. The array size can be specified or overridden (over the declared size in C++) by specifying the ``depth`` option. More details in :ref:`rtl_interface` section. **Parameters** +--------------+------------+----------+---------+--------------------------+ | Parameter | Type | Optional | Default | Description | +==============+============+==========+=========+==========================+ | ``argument`` | String | No | | Argument name | +--------------+------------+----------+---------+--------------------------+ | ``type`` | ``memory`` | No | | Interface type | +--------------+------------+----------+---------+--------------------------+ | ``depth`` | Integer | Yes | | Overrides the array size | +--------------+------------+----------+---------+--------------------------+ **Position** At the beginning of the function definition block. **Examples** .. code-block:: c int fun(int a[], int b[]) { #pragma LEGUP interface argument(a) type(memory) depth(100) #pragma LEGUP interface argument(b) type(memory) ... } --------------------------------------------------------------------------------