cms-gem-daq-project / ctp7_modules

0 stars 13 forks source link

Add Reed--Muller decoding function for VFAT3 ChipID #95

Closed jsturdy closed 5 years ago

jsturdy commented 5 years ago

Description

Adds function uint16_t decodeChipID(uint32_t encChipID) to decode Reed--Muller encoded chip IDs

Types of changes

Motivation and Context

Necessary to decode the Reed--Muller encoded VFAT3 chip IDs

How Has This Been Tested?

jsturdy commented 5 years ago

not sure whether it can/should be accomplished in this method...

This method will throw if 4 bit flips have occurred, fewer than that, and it simply corrects, more than that and it may throw or not, the algorithm is not guaranteed for more than 4. It can not alert that fewer than 4 bit flips have occurred, and we probably don't care.

Again, it is expected that the function actually calling this decoder will handle the errors and emit them as desired.

jsturdy commented 5 years ago

Rebased and ready for sign-off @bdorney @mexanick