# Function return array

**URL:** <https://verificationacademy.com/forums/t/function-return-array/34559>\
**Category:** UVM\
**Tags:** UVM, function-return-array\
**Created:** [June 11, 2018, 12:36pm UTC](https://verificationacademy.com/forums/t/function-return-array/34559 "2018-06-11T12:36:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [June 12, 2018, 4:20am UTC](https://verificationacademy.com/forums/t/function-return-array/34559/3 "2018-06-12T04:20:16Z")

</div>

_In reply to [lalithjithan](https://verificationacademy.com/forums/t/function-return-array/34559/2):_

The syntax for function declarations does permit anything other than simple types and type names. So you must use a typedef name fore the return type.

```verilog
typedef bit [7:0] byte_da_t[];
function byte_da_t payl(int length,int data_size,int data[]);

```

---

_[View the full topic](https://verificationacademy.com/forums/t/function-return-array/34559)._
