Skip to content

Commit

Permalink
making the -delays a half-period bigger (e.g., 4.5N) makes the test m…
Browse files Browse the repository at this point in the history
…ore immune to slightly different rounding because N+N+N+N is clearly below it and N+N+N+N+N is clearly above it
  • Loading branch information
jepler committed Dec 31, 2007
1 parent 4d12f4c commit 2414935
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/timedelay.0/test.hal
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ loadrt not
loadrt threads name1=thread period1=1953125

# Thread period is 1/512 second.
# on-delay is 1/128 second, or 4 periods.
# off-delay is 1/64 second, or 8 periods.
setp delay.0.on-delay 0.0078125
setp delay.0.off-delay 0.015625
# on-delay is 1/128 + 1/1024 second, or 4.5 periods.
# off-delay is 1/64 + 1/1024 second, or 8.5 periods.
setp delay.0.on-delay 0.0087890625
setp delay.0.off-delay 0.0166015625

net square not.0.out => delay.0.in sampler.0.pin.0
net delayed delay.0.out => not.0.in sampler.0.pin.1
Expand Down

0 comments on commit 2414935

Please sign in to comment.