.. highlight:: c .. _pragma_interface_memory_variable: Configure Global as Memory Interface ------------------------------------ **Syntax** ``#pragma LEGUP interface variable() type(memory) depth()`` **Description** This pragma specifies the memory interface type for a shared array/struct global variable. 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 | +==============+============+==========+=========+==========================+ | ``variable`` | String | No | | Variable name | +--------------+------------+----------+---------+--------------------------+ | ``type`` | ``memory`` | No | | Interface type | +--------------+------------+----------+---------+--------------------------+ | ``depth`` | Integer | Yes | | Overrides the array size | +--------------+------------+----------+---------+--------------------------+ **Position** Before the global variable declaration. **Examples** .. code-block:: c #pragma LEGUP interface variable(b) type(memory) depth(100) int *b; int fun(int a[]) { #pragma LEGUP interface argument(a) type(memory) ... } --------------------------------------------------------------------------------