2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-01-10 11:03:34 +08:00
artiq/artiq/test/lit/iodelay/interleave.py

16 lines
409 B
Python

# RUN: %python -m artiq.compiler.testbench.signature %s >%t
# RUN: OutputCheck %s --file-to-check=%t
# CHECK-L: f: (a:numpy.int64, b:numpy.int64)->NoneType delay(max(a, b) mu)
def f(a, b):
with interleave:
delay_mu(a)
delay_mu(b)
# CHECK-L: g: (a:numpy.int64)->NoneType delay(max(a, 200) mu)
def g(a):
with interleave:
delay_mu(100)
delay_mu(200)
delay_mu(a)