actlib_dataflow_neuro/test/unit_tests/registerA_w/test.prsim

43 lines
692 B
Plaintext
Raw Normal View History

2022-04-01 20:46:45 +02:00
watchall
set-qdi-channel-neutral "b.in" 8
cycle
mode run
system "echo '[] Set reset 0'"
status X
set Reset 0
cycle
assert b.in.a 0
assert b.in.v 0
system "echo '[] Sending in 127'"
set-qdi-channel-valid "b.in" 8 255
cycle
assert b.in.a 1
assert b.in.v 1
assert-var-int "b.out" 7 127
system "echo '[] Removing input'"
set-qdi-channel-neutral "b.in" 8
cycle
assert b.in.a 0
assert b.in.v 0
assert-var-int "b.out" 7 127
system "echo '[] Sending in 35'"
set-qdi-channel-valid "b.in" 8 163
cycle
assert b.in.a 1
assert b.in.v 1
assert-var-int "b.out" 7 35
system "echo '[] Removing input'"
set-qdi-channel-neutral "b.in" 8
cycle
assert b.in.a 0
assert b.in.v 0
assert-var-int "b.out" 7 35