forked from M-Labs/artiq
1
0
Fork 0

drivers: use print_rpc

This commit is contained in:
pca006132 2022-03-09 11:08:46 +08:00
parent be3f05a4c0
commit 1378cebe2c
2 changed files with 6 additions and 6 deletions

View File

@ -208,7 +208,7 @@ class Phaser:
gw_rev = self.read8(PHASER_ADDR_GW_REV) gw_rev = self.read8(PHASER_ADDR_GW_REV)
if debug: if debug:
# NAC3TODO print("gw_rev:", gw_rev) print_rpc(("gw_rev:", gw_rev))
self.core.break_realtime() self.core.break_realtime()
self.core.delay(.1*ms) # slack self.core.delay(.1*ms) # slack
@ -288,7 +288,7 @@ class Phaser:
if self.tune_fifo_offset: if self.tune_fifo_offset:
fifo_offset = self.dac_tune_fifo_offset() fifo_offset = self.dac_tune_fifo_offset()
if debug: if debug:
# NAC3TODO print("fifo_offset:", fifo_offset) print_rpc(("fifo_offset:", fifo_offset))
self.core.break_realtime() self.core.break_realtime()
# self.dac_write(0x20, 0x0000) # stop fifo sync # self.dac_write(0x20, 0x0000) # stop fifo sync
@ -300,7 +300,7 @@ class Phaser:
self.core.delay(.1*ms) # slack self.core.delay(.1*ms) # slack
if alarms & ~0x0040 != 0: # ignore PLL alarms (see DS) if alarms & ~0x0040 != 0: # ignore PLL alarms (see DS)
if debug: if debug:
# NAC3TODO print("alarms:", alarms) print_rpc(("alarms:", alarms))
self.core.break_realtime() self.core.break_realtime()
# ignore alarms # ignore alarms
else: else:

View File

@ -257,7 +257,7 @@ class SinaraTester(EnvExperiment):
cpld.set_all_att_mu(test_word) cpld.set_all_att_mu(test_word)
readback_word = cpld.get_att_mu() readback_word = cpld.get_att_mu()
if readback_word != test_word: if readback_word != test_word:
# NAC3TODO print(readback_word, test_word) print_rpc((readback_word, test_word))
# NAC3TODO raise ValueError # NAC3TODO raise ValueError
pass pass
@ -389,7 +389,7 @@ class SinaraTester(EnvExperiment):
def almazny_set_attenuators(self, almazny: Almazny, ch: int32, atts: float): def almazny_set_attenuators(self, almazny: Almazny, ch: int32, atts: float):
self.core.break_realtime() self.core.break_realtime()
almazny.set_att(ch, atts) almazny.set_att(ch, atts)
@kernel @kernel
def almazny_toggle_output(self, almazny: Almazny, rf_on: bool): def almazny_toggle_output(self, almazny: Almazny, rf_on: bool):
self.core.break_realtime() self.core.break_realtime()
@ -654,7 +654,7 @@ class SinaraTester(EnvExperiment):
card_dev.input_mu(n) card_dev.input_mu(n)
self.core.break_realtime() self.core.break_realtime()
card_dev.gate_roi(0) card_dev.gate_roi(0)
# NAC3TODO print("ROI sums:", n) print_rpc(("ROI sums:", n))
def test_grabbers(self): def test_grabbers(self):
print("*** Testing Grabber Frame Grabbers.") print("*** Testing Grabber Frame Grabbers.")