Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

Commit eecd97c

Browse files
committed
phaser: debug and comments
1 parent c453c24 commit eecd97c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

artiq/coredevice/phaser.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,8 @@ def init(self, debug=False):
203203
att0_rstn=0, att1_rstn=0)
204204
delay(.1*ms) # slack
205205

206-
# TODO: crossing dac_clk (125 MHz) edges with sync_dly (2ns long,
207-
# 0-14 ns delay in steps of 2ns) should change the optimal
208-
# fifo_offset by 4
206+
# crossing dac_clk (reference) edges with sync_dly
207+
# changes the optimal fifo_offset by 4
209208
self.set_sync_dly(self.sync_dly)
210209

211210
# 4 wire SPI, sif4_enable
@@ -253,7 +252,10 @@ def init(self, debug=False):
253252
raise ValueError("DAC PLL lock failed, check clocking")
254253

255254
if self.tune_fifo_offset:
256-
self.dac_tune_fifo_offset()
255+
fifo_offset = self.dac_tune_fifo_offset()
256+
if debug:
257+
print(fifo_offset)
258+
self.core.break_realtime()
257259

258260
# self.dac_write(0x20, 0x0000) # stop fifo sync
259261
# alarm = self.get_sta() & 1

0 commit comments

Comments
 (0)