artiq_sinara_tester: fix urukul eeprom_word type

This commit is contained in:
mwojcik 2022-04-27 17:31:19 +08:00
parent 614dfde33d
commit d6f1c5984a
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ class SinaraTester(EnvExperiment):
offset = channel_dev.sync_data.eeprom_offset
sync_delay_seed, io_update_delay = self.calibrate_urukul(channel_dev)
print("{}\t{} {}".format(channel_name, sync_delay_seed, io_update_delay))
eeprom_word = (sync_delay_seed << 24) | (io_update_delay << 16)
eeprom_word = int32((sync_delay_seed << 24) | (io_update_delay << 16))
eeprom.write_i32(offset, eeprom_word)
print("...done")