2022-03-03 12:00:49 +01:00
|
|
|
|
|
|
|
watchall
|
|
|
|
set Reset 1
|
|
|
|
set my_tree.in[0].r 0
|
|
|
|
set my_tree.in[1].r 0
|
|
|
|
set my_tree.in[2].r 0
|
|
|
|
set my_tree.in[3].r 0
|
|
|
|
set my_tree.in[4].r 0
|
|
|
|
set my_tree.out.a 0
|
|
|
|
|
|
|
|
cycle
|
|
|
|
|
|
|
|
assert my_tree.in[0].a 0
|
|
|
|
assert my_tree.in[1].a 0
|
|
|
|
assert my_tree.in[2].a 0
|
|
|
|
assert my_tree.in[3].a 0
|
|
|
|
assert my_tree.in[4].a 0
|
|
|
|
assert my_tree.out.r 0
|
|
|
|
|
|
|
|
system "echo '-------------------------------------------------'"
|
|
|
|
system "echo '[0] System initialized'"
|
|
|
|
|
|
|
|
set Reset 0
|
|
|
|
cycle
|
|
|
|
system "echo '-------------------------------------------------'"
|
|
|
|
system "echo '[1] System reset completed'"
|
|
|
|
|
2022-03-03 12:39:10 +01:00
|
|
|
set my_tree.in[0].r 1
|
|
|
|
set my_tree.in[2].r 1
|
|
|
|
set my_tree.in[4].r 1
|
2022-03-03 12:00:49 +01:00
|
|
|
|
|
|
|
cycle
|
|
|
|
|
2022-03-03 12:39:10 +01:00
|
|
|
assert my_tree.out.r 1
|
|
|
|
set my_tree.out.a 1
|
2022-03-03 12:00:49 +01:00
|
|
|
cycle
|
|
|
|
|
2022-03-03 12:39:10 +01:00
|
|
|
assert my_tree.out.r 0
|
|
|
|
set my_tree.out.a 0
|
2022-03-03 12:00:49 +01:00
|
|
|
|
|
|
|
cycle
|
|
|
|
|
2022-03-03 12:39:10 +01:00
|
|
|
assert my_tree.out.r 1
|
|
|
|
set my_tree.out.a 1
|
2022-03-03 12:00:49 +01:00
|
|
|
cycle
|
|
|
|
|
2022-03-03 12:39:10 +01:00
|
|
|
assert my_tree.out.r 0
|
|
|
|
set my_tree.out.a 0
|
2022-03-03 12:00:49 +01:00
|
|
|
|
|
|
|
cycle
|
|
|
|
|
2022-03-03 12:39:10 +01:00
|
|
|
assert my_tree.out.r 1
|
|
|
|
set my_tree.out.a 1
|
2022-03-03 12:00:49 +01:00
|
|
|
cycle
|
|
|
|
|
2022-03-03 12:39:10 +01:00
|
|
|
assert my_tree.out.r 0
|
|
|
|
set my_tree.out.a 0
|
2022-03-03 12:00:49 +01:00
|
|
|
|
|
|
|
cycle
|
|
|
|
|
|
|
|
|
|
|
|
system "echo '-------------------------------------------------'"
|
|
|
|
system "echo '[3] Sent three inputs, received 3 outputs'"
|
|
|
|
|