mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
sinara_tester/mirny: remove hw_rev checking fixup code
Signed-off-by: Etienne Wodey <wodey@iqo.uni-hannover.de>
This commit is contained in:
parent
6f8e788620
commit
78e1b9f8e5
@ -291,18 +291,7 @@ class SinaraTester(EnvExperiment):
|
||||
@kernel
|
||||
def init_mirny(self, cpld):
|
||||
self.core.break_realtime()
|
||||
# Taken from Mirny.init(), to accomodate Mirny v1.1 without blinding
|
||||
reg0 = cpld.read_reg(0)
|
||||
if reg0 & 0b11 != 0b10: # Modified part
|
||||
raise ValueError("Mirny HW_REV mismatch")
|
||||
if (reg0 >> 2) & 0b11 != 0b00:
|
||||
raise ValueError("Mirny PROTO_REV mismatch")
|
||||
delay(100 * us) # slack
|
||||
|
||||
# select clock source
|
||||
cpld.write_reg(1, (cpld.clk_sel << 4))
|
||||
delay(1000 * us)
|
||||
# End of modified Mirny.init()
|
||||
cpld.init()
|
||||
|
||||
@kernel
|
||||
def setup_mirny(self, channel, frequency):
|
||||
|
Loading…
Reference in New Issue
Block a user