| 1 | |
| 2 | == Data Formats == |
| 3 | |
| 4 | On pages 4, 5 of the [http://ohm.bu.edu/~hazen/DUNE/COLDATA/Draft%20COLDATA%20Specification_v4.pdf COLDATA spec] (v4) |
| 5 | there is a 56-word (16-bit words) format described for transmission in two links at "~1.2Gb/s". One frame is sent each 500ns exactly in response to a "convert" command from the timing system. There are no details (yet) specified on how the data is divided between the two links. |
| 6 | |
| 7 | 56 words with 8b10b encoding is 1120 bits. Half per link is 560 bits which takes 467ns to send at 1.2Gb/s. |
| 8 | |
| 9 | At 1.2Gb/s one can send 30 words of 16 bits (8b10b encoded). |
| 10 | For four channels (half the data) there are 24+1 words of ADC data and header bits. This leaves |
| 11 | only 5 words for header etc. |
| 12 | |
| 13 | Currently the protocol consists of the following (16-bit words): |
| 14 | |
| 15 | || 1 || Start of Frame || |
| 16 | || 2 || Checksum || |
| 17 | || 3 || Timestamp || |
| 18 | || 4 || Errors || |
| 19 | || 5 || Spare 1 || |
| 20 | || 6 || Spare 2 || |
| 21 | || 7 || ADC header S1-S4 || |
| 22 | || 8 || ADC header S5-S8 || |
| 23 | || 9..32 || ADC data S1-S4 || |
| 24 | || 33..56 || ADC data S5-S8 || |
| 25 | |
| 26 | Constructing two independent blocks to transmit on the two 1.2Gb/s links is challenging. |