TTVXS Data Format

Hardware TTVXS

TTVXS payload data is encapsulated in M-Stream 2.2 protocol using Data Subtype 0.

M-Stream Header

word #

byte offset

bits

description

0

0

31:24

Device ID

23:18

Flags

17:16

Subtype

15:0

Fragment length, 4*(N-2)

1

4

31:16

Fragment ID bits [15:0]

15:0

Fragment offset code

M-Stream Subtype 0, first fragment

2

8

31:0

Device Serial

3

12

31:24

reserved

23:0

Event number

M-Stream Payload in MPD rawdata

4

16

31:0

Event timestamp, TAI seconds

5

20

31:2

Event timestamp, TAI nanoseconds

1:0

Event timestamp, TAI flags

6

24

31:0

Event Data

...

N-1

4*(N-1)

31:0

M-Stream Subtype 0, next fragments

2

8

31:0

Event Data

...

N-1

4*(N-1)

31:0


Event Data format

word #

byte offset

bits

description

0

0

31:0

Data Block #1 (S1 bytes)

...

S1/4-1

S1-4

31:0

S1/4

S1

31:0

Data Block #2 (S2 bytes)

...

(S1+S2)/4-1

S1+S2-4

31:0

...

Till the last data block

...


Data Block format

word #

byte offset

bits

description

0

0

31:28

Data Type

27:16

Data Block specific bits

15:0

Data Payload length (4*(N-1) bytes)

1

4

31:0

Data Payload

...

N-1

4*(N-1)

31:0

Supported data blocks:

Statistic data blocks is optional.


Trigger Data Block

Trigger Data Block specific bits:

Trigger data block payload starts with Trigger word, followed by a set of auxiliary counters (optional, could be disabled).

Trigger data block payload

word #

byte offset

description

0

0

Trigger word

1

4

Auxiliary counters (optional)

...

N-1

4*(N-1)

Trigger word

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

reserved

Trigger type

Trigger source

Trigger source:

Trigger type:

Auxiliary counters list and format - TBD.


Statistic Data Block

Statistic Data Block specific bits:

Statistic Data Payload

Consist of variable set of module registers.

Format of statistics data word

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

RegIO Address

RegIO Read Data

Default set of registers included in statistics data:

See also TTVXS Registers



RawData

TTVXS_DataFormat (last edited 2019-12-21 15:13:02 by sav)