forked from M-Labs/artiq
1
0
Fork 0

test/rtio: wait for counter >= now before checking for async errors

This commit is contained in:
Sebastien Bourdeauducq 2017-09-16 17:52:39 +08:00
parent 0824e0aeae
commit 53860868f4
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,8 @@ class Collision(EnvExperiment):
for i in range(16): for i in range(16):
self.ttl_out_serdes.pulse_mu(1) self.ttl_out_serdes.pulse_mu(1)
delay_mu(1) delay_mu(1)
while self.core.get_rtio_counter_mu() < now_mu():
pass
class AddressCollision(EnvExperiment): class AddressCollision(EnvExperiment):
@ -288,6 +290,8 @@ class AddressCollision(EnvExperiment):
self.core.reset() self.core.reset()
self.loop_in.input() self.loop_in.input()
self.loop_in.pulse(10*us) self.loop_in.pulse(10*us)
while self.core.get_rtio_counter_mu() < now_mu():
pass
class TimeKeepsRunning(EnvExperiment): class TimeKeepsRunning(EnvExperiment):