Add GBT word checks from decode.py
(don't add the bug for calibration runs
Some new checks from Decode.py that should be implemented:
decode_rdh()
:
- Check if trigger_type is any of the valid ones from bit [14:0]
running rdh checks:
- Orbit counter changes with each RDH
- Packet count increments (detect increment value and add to summary)
if page counter != 0
:
- orbit same as previous RDH
- trigger same as previous
- detected field same as previous
- feeid same as previous
TDH checks:
if continuation == 0
:
- bunch counter is increasing
- trigger_orbit == rdh.trigger_orbit
if continuation == 1
:
- bunch counter same as previous
- orbit as as previous
- trigger_type same as previous
if first TDH and rdh.page_counter == 0:
- if rdh.trigger_type has PHYISCS (PhT) set OR tdh.trigger_type is internal_trigger:
- tdh.bc == rdh.bc
- tdh.trigger_type == rdh.trigger_type
Data Word checks:
IB
- lane in active_lanes (from IHW)
- lane and chip header match
OB
- lane_in_connector <= 7
- lane in active_lanes (from IHW)
IB diagnostic data
No checks but logged as warning
OB diagnostic data
No checks but logged as warning
DDW0
No checks but logged as debug
CDW
if cdw.user_field != prev_cdw.user_field
- cdw.counter == 0
Edited by Marc Konig