Difference: TrbNetDatafields (1 vs. 23)

Revision 23
08 Oct 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 39 to 39
  The datatype is a four bit value called dtype that is sent in each header and termination to specify the kind of data that is transfered. The definition for each datatype varies from channel to channel, the free usable values can also be selected for each endpoint seperatly.
Changed:
<
<
Data Type TRG1 TRG2 IPU Data Slow Control
0 trigger type trigger type tbd user
1 " " tbd user
2 " " tbd user
3 " " tbd user
4 " " tbd user
5 " " tbd user
6 " " tbd user
7 " " tbd user
8 tbd tbd tbd register read access
9 tbd tbd tbd register write access
A tbd tbd tbd memory read access
B tbd tbd tbd memory write access
C tbd tbd tbd res.
D tbd tbd tbd res.
E tbd tbd tbd res.
F tbd tbd tbd network administration
>
>
Data Type TRG1 IPU Data Slow Control
0 trigger type tbd not used
1 " tbd not used
2 " tbd not used
3 " tbd not used
4 " tbd not used
5 " tbd not used
6 " tbd not used
7 " tbd not used
8 tbd tbd register read access
9 tbd tbd register write access
A tbd tbd memory read access
B tbd tbd memory write access
C tbd tbd res.
D tbd tbd res.
E tbd tbd res.
F tbd tbd network administration
 

The protocol for register and memory access on the slow control channel is defined in TrbNetRegIO. The network administration type is used for address assignment as described in TrbNetAddresses.
Line: 66 to 66
  The groups are selected by the BROADCAST_BITMASK generic in the top-level trbnet entity. Here, a negative logic is used, that means a '0' in the bitmask adds the board to the group given below.

Unset Bit Bitmask Broadcast Address Type
Changed:
<
<
- FF FFFF no group
>
>
- FF FFFF all boards
 
0 FE FFFE Hubs
1 FD FFFD MDC OEPB
2 FB FFFB RICH ADCM
Line: 166 to 166
 
30      
31      
Deleted:
<
<
-- JanMichel - 09 Jan 2009
Revision 22
28 Sep 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 116 to 116
 
19      
20 buffers half full data buffers are filled to more than one half APL
21 buffers almost full data buffers are almost full APL
Changed:
<
<
22      
>
>
22 not configured FEE has not been configured correctly APL
 
23      
24      
25      
Revision 21
21 Sep 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 110 to 110
 

LVL1 trigger channel Errorbits

Bit Short Name Description Set by entity
Changed:
<
<
16 trigger counter mismatch Trigger number received does not match internal counter value APL
17 timing trigger missing lvl1 trigger packet without timing trigger APL
>
>
16 trigger counter mismatch Trigger number received does not match internal counter value ENDP
17 timing trigger missing lvl1 trigger packet without timing trigger ENDP
 
18      
19      
20 buffers half full data buffers are filled to more than one half APL
Revision 20
17 Aug 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 111 to 111
 

LVL1 trigger channel Errorbits

Bit Short Name Description Set by entity
16 trigger counter mismatch Trigger number received does not match internal counter value APL
Changed:
<
<
17      
>
>
17 timing trigger missing lvl1 trigger packet without timing trigger APL
 
18      
19      
20 buffers half full data buffers are filled to more than one half APL
Revision 19
20 Jul 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 96 to 96
 
3 checksum error mismatch of given checksum with calculated one IBUF
4 dont understand addressed endpoint doesn't know how to treat received data APL
5 buffer mismatch received and internal buffer numbers do not match IBUF
Changed:
<
<
6      
>
>
6 answer missing One endpoint did not react Hub
 
7      
8      
9      
Revision 18
12 May 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 60 to 60
 

The protocol for register and memory access on the slow control channel is defined in TrbNetRegIO. The network administration type is used for address assignment as described in TrbNetAddresses.
Added:
>
>

Broadcast Addresses

The network uses 9 different broadcast address for groups of network nodes. These are all addresses in the range above 0xFF00. The groups are selected by the BROADCAST_BITMASK generic in the top-level trbnet entity. Here, a negative logic is used, that means a '0' in the bitmask adds the board to the group given below.

Unset Bit Bitmask Broadcast Address Type
- FF FFFF no group
0 FE FFFE Hubs
1 FD FFFD MDC OEPB
2 FB FFFB RICH ADCM
3 F7 FFF7 Shower AddOn
4 EF FFEF TRB using TDC
5 DF FFDF Ethernet-related
6 BF FFBF  
7 7F FF7F  

A Board can belong to more than one group by unsetting more than one bit in its configuration bitmask.
 

Error bits

The errorbits are 32 Bit data that are sent in each termination packet. For init transfers these are simply transported along with all other data. On the reply channel, the errorbits from all endpoints are merged using a or-logic.
Revision 17
04 Mar 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 120 to 120
 
22      
23      
24 not found sent trigger number does not match stored events APL
Changed:
<
<
25      
26      
27      
>
>
25 partially not found parts of the data are missing APL
26 severe problem serious sync problem detected - intervention needed APL
27 single broken event event data corrupted, next event most likely not affected APL
 
28      
29      
30      
Revision 16
09 Jan 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 114 to 114
 
16 trigger number mismatch Trigger number received does not match internal counter value Hub
17 trigger code / random mismatch Mismatch in second 16bit word of DHDR Hub
18 wrong length Length submitted in HDR does not match real length Hub
Changed:
<
<
19      
>
>
19 answer missing a board sent a short transfer instead of DHDR Hub
 
20      
21      
22      
23      
Changed:
<
<
24      
>
>
24 not found sent trigger number does not match stored events APL
 
25      
26      
27      
Line: 148 to 148
 
30      
31      
Changed:
<
<
-- JanMichel - 23 Dec 2008
>
>
-- JanMichel - 09 Jan 2009
 
Revision 15
08 Jan 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 21 to 21
 

Name Type Description H0 F0 F1 F2 F3
Changed:
<
<
DAT 0x0 Normal data word   Data
>
>
DAT 0x0 Normal data word   Data Data Data Data
 
HDR 0x1 Transfer start / source changed   Source adress Target adress   SEQNR / DTYPE
EOB 0x2 End of Buffer   Checksum   Data count Buffer number
Changed:
<
<
TRM 0x3 Transfer Terminated   Checksum Error pattern SEQNR / DTYPE
>
>
TRM 0x3 Transfer Terminated   Checksum Error pattern Error pattern SEQNR / DTYPE
 
EXT 0x4 Extended data word   special data word for error detection
ACK 0x5 Buffer acknowledge     Length of buffer   Buffer number
SIG 0x6 Signals   future option
Changed:
<
<
ILL 0x7 Illegal word - ignore   Data
>
>
ILL 0x7 Illegal word - ignore   invalid invalid invalid invalid
 

EXT and SIG are not implemented yet. EXT can for example be used for a CRC.
Revision 14
08 Jan 2009 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 23 to 23
 
Name Type Description H0 F0 F1 F2 F3
DAT 0x0 Normal data word   Data
HDR 0x1 Transfer start / source changed   Source adress Target adress   SEQNR / DTYPE
Changed:
<
<
EOB 0x2 End of Buffer   Checksum   Data count  
>
>
EOB 0x2 End of Buffer   Checksum   Data count Buffer number
 
TRM 0x3 Transfer Terminated   Checksum Error pattern SEQNR / DTYPE
EXT 0x4 Extended data word   special data word for error detection
Changed:
<
<
ACK 0x5 Buffer acknowledge     Length of buffer  
>
>
ACK 0x5 Buffer acknowledge     Length of buffer   Buffer number
 
SIG 0x6 Signals   future option
ILL 0x7 Illegal word - ignore   Data
Line: 74 to 74
 
Bit Short Name Description Set by entity
0 endpoint reached The addressed endpoint has be reached. API
1 collision detected A collision occured while sending the data. It is lost. HUB
Changed:
<
<
2 word missing mismatch between packet counter and received number of packets IOBUF
3 checksum error mismatch of given checksum with calculated one IOBUF
>
>
2 word missing mismatch between packet counter and received number of packets IBUF
3 checksum error mismatch of given checksum with calculated one IBUF
 
4 dont understand addressed endpoint doesn't know how to treat received data APL
Changed:
<
<
5      
>
>
5 buffer mismatch received and internal buffer numbers do not match IBUF
 
6      
7      
8      
Revision 13
23 Dec 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 69 to 69
 

The lower 16 bit are flags common to all channels, while the upper 16 bit are channel dependend.
Deleted:
<
<
Please feel free to edit this table!
 
Added:
>
>

Common Error bits

 
Bit Short Name Description Set by entity
0 endpoint reached The addressed endpoint has be reached. API
1 collision detected A collision occured while sending the data. It is lost. HUB
2 word missing mismatch between packet counter and received number of packets IOBUF
3 checksum error mismatch of given checksum with calculated one IOBUF
4 dont understand addressed endpoint doesn't know how to treat received data APL
Changed:
<
<
5    
6    
7    
8    
9    
10    
11    
12    
13    
14    
15    

Bit lvl1 ipu data lvl2 slow control
16 trigger1_counter_mismatch trigger2_counter_mismatch   Register address doesn't exist
17       Request timed out
18        
19        
20 buffers half full      
21 buffers almost full      
22        
23        
24 board in %detector1% is inactive     urgent_error_message_waiting
25 board in %detector2% is inactive     error_message_waiting
26 board in %detector3% is inactive     warning_message_waiting
27 board in %detector4% is inactive     info message waiting
28 board in %detector5% is inactive      
29 board in %detector6% is inactive      
30 board in %detector7% is inactive      
31 board in %detector8% is inactive      
>
>
5      
6      
7      
8      
9      
10      
11      
12      
13      
14      
15      
 

Added:
>
>

LVL1 trigger channel Errorbits

Bit Short Name Description Set by entity
16 trigger counter mismatch Trigger number received does not match internal counter value APL
17      
18      
19      
20 buffers half full data buffers are filled to more than one half APL
21 buffers almost full data buffers are almost full APL
22      
23      
24      
25      
26      
27      
28      
29      
30      
31      
 
Added:
>
>

Data readout / IPU channel Errorbits

Bit Short Name Description Set by entity
16 trigger number mismatch Trigger number received does not match internal counter value Hub
17 trigger code / random mismatch Mismatch in second 16bit word of DHDR Hub
18 wrong length Length submitted in HDR does not match real length Hub
19      
20      
21      
22      
23      
24      
25      
26      
27      
28      
29      
30      
31      

Slow control channel Errorbits

Bit Short Name Description Set by entity
16 unknown address No register / action is assigned to this address RegIO
17 timeout Application didn't react within given time limit RegIO
18 nomoredata Transfer was stopped with no more data signal RegIO
19      
20      
21      
22      
23      
24      
25      
26      
27      
28      
29      
30      
31      
 
Changed:
<
<
-- JanMichel - 06 Jul 2008
>
>
-- JanMichel - 23 Dec 2008
 
Revision 12
15 Dec 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 92 to 92
 

Bit lvl1 ipu data lvl2 slow control
Changed:
<
<
16 trigger1_counter_mismatch trigger2_counter_mismatch    
17        
>
>
16 trigger1_counter_mismatch trigger2_counter_mismatch   Register address doesn't exist
17       Request timed out
 
18        
19        
20 buffers half full      
Revision 11
08 Dec 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 23 to 23
 
Name Type Description H0 F0 F1 F2 F3
DAT 0x0 Normal data word   Data
HDR 0x1 Transfer start / source changed   Source adress Target adress   SEQNR / DTYPE
Changed:
<
<
EOB 0x2 End of Buffer     Data count Checksum
TRM 0x3 Transfer Terminated     Error pattern SEQNR / DTYPE
>
>
EOB 0x2 End of Buffer   Checksum   Data count  
TRM 0x3 Transfer Terminated   Checksum Error pattern SEQNR / DTYPE
 
EXT 0x4 Extended data word   special data word for error detection
Changed:
<
<
ACK 0x5 Buffer acknowledge   res. Length of buffer res.
>
>
ACK 0x5 Buffer acknowledge     Length of buffer  
 
SIG 0x6 Signals   future option
ILL 0x7 Illegal word - ignore   Data
Revision 10
05 Dec 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 20 to 20
  The packet size is going to be changed to 80 bit for better compatibility with 32 bit data words.
Changed:
<
<
Name Type Description F0 F1 F2 F3
DAT 0x0 Normal data word Data
HDR 0x1 Transfer start / source changed Source adress Target adress SEQNR / DTYPE
EOB 0x2 End of Buffer   Data count Checksum
TRM 0x3 Transfer Terminated Error pattern SEQNR / DTYPE
EXT 0x4 Extended data word special data word for error detection
ACK 0x5 Buffer acknowledge res. Length of buffer res.
SIG 0x6 Signals future option
ILL 0x7 Illegal word - ignore Data
>
>
Name Type Description H0 F0 F1 F2 F3
DAT 0x0 Normal data word   Data
HDR 0x1 Transfer start / source changed   Source adress Target adress   SEQNR / DTYPE
EOB 0x2 End of Buffer     Data count Checksum
TRM 0x3 Transfer Terminated     Error pattern SEQNR / DTYPE
EXT 0x4 Extended data word   special data word for error detection
ACK 0x5 Buffer acknowledge   res. Length of buffer res.
SIG 0x6 Signals   future option
ILL 0x7 Illegal word - ignore   Data
 

EXT and SIG are not implemented yet. EXT can for example be used for a CRC.
Added:
>
>
H0 is the packet start word: Bit 2-0: Packet type, Bit 3: init/reply channel, Bit 5-4: channel.
 

Data types

The datatype is a four bit value called dtype that is sent in each header and termination to specify the kind of data that is transfered. The definition for each datatype varies from channel to channel, the free usable values can also be selected for each endpoint seperatly.
Revision 9
13 Oct 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 16 to 16
 
SIG 0x6 Signals future option
ILL 0x7 Illegal word - ignore Data
Added:
>
>
-- Oct 2008: The packet size is going to be changed to 80 bit for better compatibility with 32 bit data words.

Name Type Description F0 F1 F2 F3
DAT 0x0 Normal data word Data
HDR 0x1 Transfer start / source changed Source adress Target adress SEQNR / DTYPE
EOB 0x2 End of Buffer   Data count Checksum
TRM 0x3 Transfer Terminated Error pattern SEQNR / DTYPE
EXT 0x4 Extended data word special data word for error detection
ACK 0x5 Buffer acknowledge res. Length of buffer res.
SIG 0x6 Signals future option
ILL 0x7 Illegal word - ignore Data
  EXT and SIG are not implemented yet. EXT can for example be used for a CRC.

Data types

Revision 8
06 Jul 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 55 to 55
  Please feel free to edit this table!
Changed:
<
<
Bit Short Name Description
0 endpoint reached The addressed endpoint has be reached.
1 collision detected A collision occured while sending the data. It is lost.
2 word missing mismatch between packet counter and received number of packets
3 checksum error mismatch of given checksum with calculated one
4 dont understand addressed endpoint doesn't know how to treat received data
>
>
Bit Short Name Description Set by entity
0 endpoint reached The addressed endpoint has be reached. API
1 collision detected A collision occured while sending the data. It is lost. HUB
2 word missing mismatch between packet counter and received number of packets IOBUF
3 checksum error mismatch of given checksum with calculated one IOBUF
4 dont understand addressed endpoint doesn't know how to treat received data APL
 
5    
6    
7    
Line: 74 to 74
 
15    
Changed:
<
<
Bit lvl1 lvl2 ipu data slow control
>
>
Bit lvl1 ipu data lvl2 slow control
 
16 trigger1_counter_mismatch trigger2_counter_mismatch    
17        
18        
Line: 94 to 94
 

Changed:
<
<
-- JanMichel - 24 Jan 2008
>
>
-- JanMichel - 06 Jul 2008
 
Revision 7
04 Jul 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Common definitions for the use of TRBNets datafields

Line: 9 to 9
 
Name Type Description F1 F2 F3
DAT 0x0 Normal data word Data
HDR 0x1 Transfer start / source changed Source adress Target adress SEQNR / DTYPE
Changed:
<
<
EOB 0x2 End of Buffer   Data count  
>
>
EOB 0x2 End of Buffer   Data count Checksum
 
TRM 0x3 Transfer Terminated Error pattern SEQNR / DTYPE
EXT 0x4 Extended data word special data word for error detection
ACK 0x5 Buffer acknowledge res. Length of buffer res.
Line: 74 to 74
 
15    
Changed:
<
<
Bit lvl1 lvl2 data slow control
>
>
Bit lvl1 lvl2 ipu data slow control
 
16 trigger1_counter_mismatch trigger2_counter_mismatch    
17        
18        
19        
Changed:
<
<
20        
21        
>
>
20 buffers half full      
21 buffers almost full      
 
22        
23        
24 board in %detector1% is inactive     urgent_error_message_waiting
Revision 6
31 Mar 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"
Added:
>
>

Common definitions for the use of TRBNets datafields

 

Packet types

The packet type is sent with each 64 bit packet
Line: 49 to 52
 

The lower 16 bit are flags common to all channels, while the upper 16 bit are channel dependend.
Added:
>
>
Please feel free to edit this table!
 
Bit Short Name Description
0 endpoint reached The addressed endpoint has be reached.
1 collision detected A collision occured while sending the data. It is lost.
Revision 5
28 Mar 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Packet types

The packet type is sent with each 64 bit packet
Line: 54 to 54
 
1 collision detected A collision occured while sending the data. It is lost.
2 word missing mismatch between packet counter and received number of packets
3 checksum error mismatch of given checksum with calculated one
Changed:
<
<
4    
>
>
4 dont understand addressed endpoint doesn't know how to treat received data
 
5    
6    
7    
Line: 80 to 80
 
24 board in %detector1% is inactive     urgent_error_message_waiting
25 board in %detector2% is inactive     error_message_waiting
26 board in %detector3% is inactive     warning_message_waiting
Changed:
<
<
27 board in %detector4% is inactive      
>
>
27 board in %detector4% is inactive     info message waiting
 
28 board in %detector5% is inactive      
29 board in %detector6% is inactive      
30 board in %detector7% is inactive      
Revision 4
18 Mar 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Packet types

The packet type is sent with each 64 bit packet
Line: 50 to 50
  The lower 16 bit are flags common to all channels, while the upper 16 bit are channel dependend.

Bit Short Name Description
Changed:
<
<
0 endpoint_reached The addressed endpoint has be reached.
1 collision_detected A collision occured while sending the data. It is lost.
2    
3    
>
>
0 endpoint reached The addressed endpoint has be reached.
1 collision detected A collision occured while sending the data. It is lost.
2 word missing mismatch between packet counter and received number of packets
3 checksum error mismatch of given checksum with calculated one
 
4    
5    
6    
Revision 3
14 Mar 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"

Packet types

The packet type is sent with each 64 bit packet
Line: 47 to 47
 

The values for init transfers should not be hardcoded in any endpoint but constants defined in Trb_net_std should be used.
Added:
>
>
The lower 16 bit are flags common to all channels, while the upper 16 bit are channel dependend.

Bit Short Name Description
0 endpoint_reached The addressed endpoint has be reached.
1 collision_detected A collision occured while sending the data. It is lost.
2    
3    
4    
5    
6    
7    
8    
9    
10    
11    
12    
13    
14    
15    

Bit lvl1 lvl2 data slow control
16 trigger1_counter_mismatch trigger2_counter_mismatch    
17        
18        
19        
20        
21        
22        
23        
24 board in %detector1% is inactive     urgent_error_message_waiting
25 board in %detector2% is inactive     error_message_waiting
26 board in %detector3% is inactive     warning_message_waiting
27 board in %detector4% is inactive      
28 board in %detector5% is inactive      
29 board in %detector6% is inactive      
30 board in %detector7% is inactive      
31 board in %detector8% is inactive      

 

-- JanMichel - 24 Jan 2008
Revision 2
24 Jan 2008 - Main.JanMichel
Line: 1 to 1
 
META TOPICPARENT name="TrbNetUsersGuide"
Deleted:
<
<
 

Packet types

The packet type is sent with each 64 bit packet
Line: 7 to 6
 
Name Type Description F1 F2 F3
DAT 0x0 Normal data word Data
HDR 0x1 Transfer start / source changed Source adress Target adress SEQNR / DTYPE
Changed:
<
<
EOB 0x2 End of Buffer Data
>
>
EOB 0x2 End of Buffer   Data count  
 
TRM 0x3 Transfer Terminated Error pattern SEQNR / DTYPE
EXT 0x4 Extended data word special data word for error detection
ACK 0x5 Buffer acknowledge res. Length of buffer res.
Line: 49 to 48
  The values for init transfers should not be hardcoded in any endpoint but constants defined in Trb_net_std should be used.
Changed:
<
<
-- JanMichel - 28 Dec 2007
>
>
-- JanMichel - 24 Jan 2008
 
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Hades Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)