forked from M-Labs/artiq
test/coredevice: minor fixes
This commit is contained in:
parent
3471ef80fd
commit
a615a3830a
|
@ -35,6 +35,8 @@ class Loopback(Experiment, AutoDB):
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def run(self):
|
def run(self):
|
||||||
|
self.loop_in.input()
|
||||||
|
delay(1*us)
|
||||||
with parallel:
|
with parallel:
|
||||||
self.loop_in.gate_rising(2*us)
|
self.loop_in.gate_rising(2*us)
|
||||||
with sequential:
|
with sequential:
|
||||||
|
@ -77,7 +79,7 @@ class CoredeviceTest(ExperimentCase):
|
||||||
rtt = self.execute(Loopback)["rtt"]
|
rtt = self.execute(Loopback)["rtt"]
|
||||||
print(rtt)
|
print(rtt)
|
||||||
self.assertGreater(rtt, 0*ns)
|
self.assertGreater(rtt, 0*ns)
|
||||||
self.assertLess(rtt, 40*ns)
|
self.assertLess(rtt, 50*ns)
|
||||||
|
|
||||||
def test_pulse_rate(self):
|
def test_pulse_rate(self):
|
||||||
rate = self.execute(PulseRate)["pulse_rate"]
|
rate = self.execute(PulseRate)["pulse_rate"]
|
||||||
|
|
Loading…
Reference in New Issue