Byte order swapped in the chipid readout
While investigating the question by @solodkov in https://lpgbt-support.web.cern.ch/t/burning-e-fuses/950 I noticed a inconsistency in the way how the chipid is being handled (RAM vs FUSES):
In [1]: tester.lpgbt.set_bootcnf_pins(Lpgbt.BootConfig.LOAD_FUSES_NO_CRC)
In [2]: tester.lpgbt.generate_reset_pulse()
In [3]: "%08x"%tester.lpgbt.fuses_read_bank(0)
Out[3]: '2428d47d'
In [4]: tester.lpgbt.read_regs(0,4)
Out[4]: [125, 212, 40, 36]
In [5]: tester.lpgbt.get_chipid_fuses()
Out[5]:
{'chipid': '2428D47D',
'chipid_raw': '2428D47D',
'hamming_errors': 0,
'redundancy_detected': True,
'voting_errors': {}}
In [6]: tester.lpgbt.get_chipid_ram() <- PROBLEM
Out[6]:
{'chipid': '39146CE4',
'chipid_raw': '39146CE4',
'hamming_errors': 0,
'redundancy_detected': True,
'voting_errors': {4: {'voted': 0, 'bits': [0, 1, 0, 0, 1]},
5: {'voted': 1, 'bits': [1, 0, 1, 1, 0]},
6: {'voted': 1, 'bits': [0, 1, 0, 1, 1]},
7: {'voted': 1, 'bits': [0, 1, 0, 1, 1]},
8: {'voted': 0, 'bits': [0, 0, 1, 0, 1]},
10: {'voted': 1, 'bits': [0, 1, 1, 0, 1]},
12: {'voted': 0, 'bits': [0, 1, 0, 0, 1]},
14: {'voted': 1, 'bits': [0, 1, 0, 1, 1]},
20: {'voted': 1, 'bits': [1, 0, 1, 1, 0]},
21: {'voted': 0, 'bits': [0, 1, 0, 0, 1]},
22: {'voted': 0, 'bits': [1, 0, 1, 0, 0]},
23: {'voted': 0, 'bits': [1, 0, 1, 0, 0]},
24: {'voted': 1, 'bits': [1, 1, 0, 1, 0]},
26: {'voted': 0, 'bits': [1, 0, 0, 1, 0]},
28: {'voted': 1, 'bits': [1, 0, 1, 1, 0]},
30: {'voted': 0, 'bits': [1, 0, 1, 0, 0]}}}