# Get a contiguous & aligned allocated array

**URL:** <https://discuss.pynq.io/t/get-a-contiguous-aligned-allocated-array/391>\
**Category:** Support\
**Created:** [August 15, 2019, 10:11am UTC](https://discuss.pynq.io/t/get-a-contiguous-aligned-allocated-array/391 "2019-08-15T10:11:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reza](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@reza](https://discuss.pynq.io/u/reza)\
**Post date:** [August 15, 2019, 10:11am UTC](https://discuss.pynq.io/t/get-a-contiguous-aligned-allocated-array/391/1 "2019-08-15T10:11:32Z")

</div>

Hi all,

I want to define a physically continuous memory buffer to be used with a DMA engine. While the xlnk library provides this using Xlnk.cma\_array, I do not have any control over the buffer address alignment. Specifically, I want the physical address to be aligned with data transfer width of 128 since I have configured the DMA axi bus data-width to 128.  
Do you have an idea how to achieve this?

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [September 21, 2022, 7:13am UTC](https://discuss.pynq.io/t/get-a-contiguous-aligned-allocated-array/391/2 "2022-09-21T07:13:12Z")

</div>

A post was split to a new topic: [Xlnk not supported](https://discuss.pynq.io/t/xlnk-not-supported/4685)
