/ tests / timedelay.0 / test.hal
test.hal
 1  loadrt sampler cfg=bb depth=100
 2  loadrt timedelay
 3  loadrt not
 4  loadrt threads name1=thread period1=1953125
 5  
 6  # Thread period is 1/512 second.
 7  # on-delay is 1/128 + 1/1024 second, or 4.5 periods.
 8  # off-delay is 1/64 + 1/1024 second, or 8.5 periods.
 9  setp timedelay.0.on-delay 0.0087890625
10  setp timedelay.0.off-delay 0.0166015625
11  
12  net square not.0.out => timedelay.0.in sampler.0.pin.0
13  net delayed timedelay.0.out => not.0.in sampler.0.pin.1
14  
15  addf not.0 thread
16  addf timedelay.0 thread
17  addf sampler.0 thread
18  
19  start
20  loadusr -w halsampler -t -n 64