actlib_dataflow_neuro/test/unit_tests/arbtree_5/test.prsim

127 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2022-03-03 10:47:37 +01:00
watchall
2022-04-04 17:35:34 +02:00
system "echo '[] setting channels neutral'"
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
set t.in[0].r 0
set t.in[1].r 0
set t.in[2].r 0
set t.in[3].r 0
set t.in[4].r 0
set t.out.a 0
2022-03-03 10:47:37 +01:00
cycle
mode run
2022-04-04 17:35:34 +02:00
assert t.out.r 0
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
assert t.in[0].a 0
assert t.in[1].a 0
assert t.in[2].a 0
assert t.in[3].a 0
assert t.in[4].a 0
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
system "echo '[] setting some reqs high'"
set t.in[0].r 1
set t.in[1].r 1
set t.in[2].r 1
2022-03-03 10:47:37 +01:00
cycle
2022-04-04 17:35:34 +02:00
assert t.out.r 1
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
system "echo '[] receiving ack'"
set t.out.a 1
cycle
assert t.in.a 1
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
system "echo '[] removing first req (guess)'"
set t.in[0].r 0
2022-03-03 10:47:37 +01:00
cycle
2022-04-04 17:35:34 +02:00
assert t.out.r
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
# set t.in[0] 0
# set t.in[1] 0
# set t.in[2] 0
# set t.in[3] 0
# set t.in[4] 0
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
# system "echo '1'"
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
# cycle
# mode run
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
# # assert t.out 0
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
# system "echo '[] setting all low'"
# set t.in[0] 0
# set t.in[1] 0
# set t.in[2] 0
# set t.in[3] 0
# set t.in[4] 0
# cycle
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
# system "echo '[] setting bit 0 high'"
# set t.in[0] 1
# cycle
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
# system "echo '[] setting all low'"
# set t.in[0] 0
# set t.in[1] 0
# set t.in[2] 0
# set t.in[3] 0
# set t.in[4] 0
# cycle
# system "echo '[] setting bit 1 high'"
# set t.in[0] 0
# set t.in[1] 1
# cycle
# system "echo '[] setting all low'"
# set t.in[0] 0
# set t.in[1] 0
# set t.in[2] 0
# set t.in[3] 0
# set t.in[4] 0
# cycle
# system "echo '[] setting bit 2 high'"
# set t.in[1] 0
# set t.in[2] 1
# cycle
# system "echo '[] setting all low'"
# set t.in[0] 0
# set t.in[1] 0
# set t.in[2] 0
# set t.in[3] 0
# set t.in[4] 0
# cycle
# system "echo '[] setting bit 3 high'"
# set t.in[2] 0
# set t.in[3] 1
# cycle
# system "echo '[] setting all low'"
# set t.in[0] 0
# set t.in[1] 0
# set t.in[2] 0
# set t.in[3] 0
# set t.in[4] 0
# cycle
2022-03-03 10:47:37 +01:00
2022-04-04 17:35:34 +02:00
# system "echo '[] setting bit 4 high'"
# set t.in[3] 0
# set t.in[4] 1
# cycle