Resolve "Add checks from decode.py"
Closes #13 (closed) Closes #11 (closed)
running rdh checks:
-
Orbit counter changes with each HBF (pages_counter == 0) -
Packet count increments
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 <= 6 -
lane in active_lanes (from IHW)
CDW
if cdw.user_field != prev_cdw.user_field
-
cdw.counter == 0
Edited by Marc Konig