mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-05 09:46:36 +08:00
16 lines
411 B
Python
16 lines
411 B
Python
# RUN: %python -m artiq.compiler.testbench.signature %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
# CHECK-L: f: (a:int(width=64), b:int(width=64))->NoneType delay(max(a, b) mu)
|
|
def f(a, b):
|
|
with parallel:
|
|
delay_mu(a)
|
|
delay_mu(b)
|
|
|
|
# CHECK-L: g: (a:int(width=64))->NoneType delay(max(a, 200) mu)
|
|
def g(a):
|
|
with parallel:
|
|
delay_mu(100)
|
|
delay_mu(200)
|
|
delay_mu(a)
|