Skip to content

Commit

Permalink
addresses cms-gem-daq-project#297, bits [31:16] of HW_CHIP_ID are set…
Browse files Browse the repository at this point in the history
… to zero if rawID is False
  • Loading branch information
Brian Dorney committed Jul 10, 2019
1 parent c69f04a commit f0a8ddd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gempython/tools/vfat_user_functions_xhal.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ def getAllChipIDs(self, mask=0x0, rawID=False):
if rpcResp != 0:
raise Exception("RPC response was non-zero, failed to get chipID data for OH{0}".format(self.parentOH.link))

# Suppress any potential bit flips in chipID (e.g. in non-reed muller encoded chips)
if rawID == False:
for vfat in len(chipIDData):
chipIDData[vfat] = chipIDData[vfat] & 0xffff

return chipIDData

def getAllChannelRegisters(self, mask=0x0):
Expand Down

0 comments on commit f0a8ddd

Please sign in to comment.