2022-04-15 12:48:50 +02:00
|
|
|
watchall
|
|
|
|
|
2023-11-21 15:41:57 +01:00
|
|
|
set b.in.r 0
|
|
|
|
|
|
|
|
set b.outx.a 0
|
|
|
|
set b.outy.a 0
|
2022-04-15 12:48:50 +02:00
|
|
|
|
|
|
|
system "echo '[] set Reset 1'"
|
|
|
|
set Reset 1
|
|
|
|
cycle
|
|
|
|
status X
|
|
|
|
|
|
|
|
system "echo '[] set Reset 0'"
|
|
|
|
set Reset 0
|
|
|
|
mode run
|
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
status X
|
2022-04-15 12:48:50 +02:00
|
|
|
|
2023-11-21 15:41:57 +01:00
|
|
|
# spike
|
|
|
|
set b.in.r 1
|
2022-04-15 12:48:50 +02:00
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
assert b.outx.r 0
|
|
|
|
assert b.outy.r 1
|
|
|
|
assert b.in.a 1
|
2022-04-15 12:48:50 +02:00
|
|
|
|
2023-11-21 15:41:57 +01:00
|
|
|
set b.in.r 0
|
|
|
|
set b.outy.a 1
|
2022-04-15 12:48:50 +02:00
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
assert b.outx.r 1
|
|
|
|
assert b.in.a 0
|
|
|
|
|
|
|
|
# send in another spike while its still dealing with previous
|
|
|
|
set b.in.r 1
|
2022-04-15 12:48:50 +02:00
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
assert b.outx.r 1
|
|
|
|
assert b.outy.r 0
|
|
|
|
assert b.in.a 0
|
|
|
|
|
|
|
|
set b.outx.a 1
|
2022-04-15 12:48:50 +02:00
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
assert b.outx.r 0
|
|
|
|
assert b.outy.r 0
|
|
|
|
assert b.in.a 0
|
|
|
|
|
|
|
|
set b.outx.a 0
|
|
|
|
set b.outy.a 0
|
2022-04-15 12:48:50 +02:00
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
assert b.outy.r 1
|
|
|
|
assert b.outx.r 0
|
|
|
|
assert b.in.a 1
|
|
|
|
|
|
|
|
set b.in.r 0
|
|
|
|
set b.outy.a 1
|
2022-04-15 12:48:50 +02:00
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
assert b.outx.r 1
|
|
|
|
assert b.outy.r 0
|
|
|
|
assert b.in.a 0
|
|
|
|
|
|
|
|
set b.outx.a 1
|
2022-04-15 12:48:50 +02:00
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
assert b.outx.r 0
|
|
|
|
assert b.outy.r 0
|
|
|
|
|
|
|
|
set b.outx.a 0
|
|
|
|
set b.outy.a 0
|
2022-04-15 12:48:50 +02:00
|
|
|
cycle
|
2023-11-21 15:41:57 +01:00
|
|
|
assert b.outx.r 0
|
|
|
|
assert b.outy.r 0
|
|
|
|
assert b.in.a 0
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-15 12:48:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|