forked from M-Labs/artiq
1
0
Fork 0

examples/pdq2: add break_realtime() b/c compiler, upload, pdq2 config

This commit is contained in:
Robert Jördens 2016-02-25 10:44:05 +01:00
parent 18274a09a1
commit 51e831cec5
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class PDQ2Simple(EnvExperiment):
@kernel @kernel
def one(self): def one(self):
self.core.break_realtime()
delay(1*ms)
self.load.advance() self.load.advance()
delay(1*ms) delay(1*ms)
self.detect.advance() self.detect.advance()

View File

@ -72,6 +72,7 @@ class Transport(EnvExperiment):
@kernel @kernel
def repeat(self): def repeat(self):
self.core.break_realtime()
hist = [0 for _ in range(self.bins)] hist = [0 for _ in range(self.bins)]
for i in range(self.repeats): for i in range(self.repeats):
n = self.one() n = self.one()