actlib_dataflow_neuro/test/unit_tests/merge_t_7/test.prsim

37 lines
760 B
Plaintext

watchall
set-qdi-channel-neutral "my_merge.in1" 7
set-qdi-channel-neutral "my_merge.in2" 7
set my_merge.in1.v 0
set my_merge.in2.v 0
set my_merge.out.a 0
set my_merge.out.v 0
cycle
system "echo '[0] System initialized'"
set Reset 0
cycle
system "echo '[1] System reset completed'"
status X
mode run
assert-qdi-channel-neutral "my_merge.out" 7
cycle
system "echo '[2] Output neutral checked'"
set-qdi-channel-valid "my_merge.in1" 7 5
cycle
assert my_fork.in.v 1
assert my_fork.in.a 0
assert-qdi-channel-valid "my_fork.out1" 15 5
assert-qdi-channel-valid "my_fork.out2" 15 5
set my_fork.out1.v 1
set my_fork.out2.v 1
cycle
assert my_fork.in.a 1
set-qdi-channel-neutral "my_fork.in" 15
cycle
set my_fork.out1.a 1
set my_fork.out1.a 1
system "echo 'Finished'"