# Readout with more than 12 links

**URL:** <https://alice-talk.web.cern.ch/t/readout-with-more-than-12-links/148>\
**Category:** O² CRU\
**Created:** [October 18, 2018, 11:57am UTC](https://alice-talk.web.cern.ch/t/readout-with-more-than-12-links/148 "2018-10-18T11:57:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![talt](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@talt](https://alice-talk.web.cern.ch/u/talt)\
**Post date:** [October 18, 2018, 11:57am UTC](https://alice-talk.web.cern.ch/t/readout-with-more-than-12-links/148/1 "2018-10-18T11:57:47Z")

</div>

Hello,

according to Pippo, in order to start a readout with more than 12 links one needs to use both DMA endpoints. Are there some instructions on how to do this? I would assume the following:

- start the roc-bench-dma for each end-point
- adapt the tpc-readout-test.py script

For the later point, can i specify simply the link =[0,1,2,3,4,5,6,7,8,9,10,11,12,13]? Or do i need to copy the following part and adapt it for the second endpoint:

```auto
#enable selected links
links=[0,1,2,3,4,5,6,7,8,9,10,11]
#links=[1]
for l in links:
        cru.dwrapper.linkEnableBit(l)
        cru.dwrapper.setGbtDatapathLink(wrap=0,link=l,is_GBT_pkt=0,RAWBYLEN=1,RAWBYID=0,RAWMAXLEN=0x1EA)

cru.dwrapper.packetmuxPadLen(arbmode=0)
cru.dwrapper.setFlowControl(wrap=0,allowReject=0,forceReject=0)

```

The code looks like one needs to do this for each data path wrapper.

Cheers,  
Torsten

---

<div class="post-metadata">

**Author:** ![bourrion](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/b/22d042/32.png) [@bourrion](https://alice-talk.web.cern.ch/u/bourrion)\
**Post date:** [October 19, 2018, 6:38pm UTC](https://alice-talk.web.cern.ch/t/readout-with-more-than-12-links/148/2 "2018-10-19T18:38:26Z")

</div>

Hello,

Yes you are correct. This is the way it is written for now. Initially, it was possible to use only one dwrapper and more than 12 links per dwrapper (we want to keep some compatibility with TRD for instance).

We could probably update the linkEnable function to do the necessary by itself, but then we would need the dwrapper to report its configuration (not implemented yet).

Cheers

---

<div class="post-metadata">

**Author:** ![talt](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@talt](https://alice-talk.web.cern.ch/u/talt)\
**Post date:** [October 19, 2018, 7:05pm UTC](https://alice-talk.web.cern.ch/t/readout-with-more-than-12-links/148/3 "2018-10-19T19:05:51Z")

</div>

Hello Olivier,

thanks for the info. No need to change anything, just wanted to know how to do it. Copying a few lines and adapting them works for me. I assume with the “wrap=N” N=[0,1] i specify the correct wrapper?

Cheers,  
Torsten

---

<div class="post-metadata">

**Author:** ![bourrion](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/b/22d042/32.png) [@bourrion](https://alice-talk.web.cern.ch/u/bourrion)\
**Post date:** [October 24, 2018, 6:18am UTC](https://alice-talk.web.cern.ch/t/readout-with-more-than-12-links/148/4 "2018-10-24T06:18:17Z")

</div>

Hello,

Yes it is:

- w =0 and link 0 to 11
- w =1 and link 0 to 11 for remaining links (corresponds to 12-23)

Cheers

Olivier B.

---

<div class="post-metadata">

**Author:** ![costaf](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/c/c0e974/32.png) [@costaf](https://alice-talk.web.cern.ch/u/costaf)\
**Post date:** [October 25, 2018, 11:35am UTC](https://alice-talk.web.cern.ch/t/readout-with-more-than-12-links/148/5 "2018-10-25T11:35:13Z")

</div>

I think there is a bug in the 2.4.0 that doesn’t allow to do that.  
Most of these problem have been fixed in the next release of the software.
