Skip to content

Commit

Permalink
phaser: tweak slacks
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Sep 26, 2020
1 parent 6c8bddc commit c453c24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions artiq/coredevice/phaser.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ def init(self, debug=False):
board_id = self.read8(PHASER_ADDR_BOARD_ID)
if board_id != PHASER_BOARD_ID:
raise ValueError("invalid board id")
delay(20*us) # slack
delay(.1*ms) # slack

hw_rev = self.read8(PHASER_ADDR_HW_REV)
delay(20*us) # slack
delay(.1*ms) # slack
is_baseband = hw_rev & PHASER_HW_REV_VARIANT

gw_rev = self.read8(PHASER_ADDR_GW_REV)
delay(20*us) # slack
delay(.1*ms) # slack

# allow a few errors during startup and alignment since boot
if self.get_crc_err() > 20:
Expand Down Expand Up @@ -218,13 +218,13 @@ def init(self, debug=False):
delay(.1*ms)

t = self.get_dac_temperature()
delay(.5*ms)
delay(.1*ms)
if t < 10 or t > 90:
raise ValueError("DAC temperature out of bounds")

for data in self.dac_mmap:
self.dac_write(data >> 16, data)
delay(20*us)
delay(40*us)

# pll_ndivsync_ena disable
config18 = self.dac_read(0x18)
Expand Down

0 comments on commit c453c24

Please sign in to comment.