91 lines
1.5 KiB
Plaintext
91 lines
1.5 KiB
Plaintext
|
watchall
|
||
|
set-qdi-channel-neutral "my_demux.in" 2
|
||
|
set my_demux.out1.a 0
|
||
|
set my_demux.out1.v 0
|
||
|
set my_demux.token.a 0
|
||
|
set my_demux.token.r 0
|
||
|
set my_demux.cond.d.d[0].t 0
|
||
|
set my_demux.cond.d.d[0].f 0
|
||
|
cycle
|
||
|
system "echo 'System initialized'"
|
||
|
|
||
|
set Reset 0
|
||
|
cycle
|
||
|
system "echo 'System reset completed'"
|
||
|
status X
|
||
|
mode run
|
||
|
|
||
|
assert-qdi-channel-neutral "my_demux.out1" 2
|
||
|
assert-qdi-channel-neutral "my_demux.in" 2
|
||
|
cycle
|
||
|
|
||
|
system "echo 'Output neutral checked'"
|
||
|
|
||
|
set my_demux.cond.d.d[0].t 1
|
||
|
set my_demux.cond.d.d[0].f 0
|
||
|
set-qdi-channel-valid "my_demux.in" 2 3
|
||
|
cycle
|
||
|
assert my_demux.in.v 1
|
||
|
assert my_demux.in.a 0
|
||
|
|
||
|
assert-qdi-channel-valid "my_demux.out1" 2 3
|
||
|
assert my_demux.token.a 0
|
||
|
set my_demux.out1.v 1
|
||
|
cycle
|
||
|
|
||
|
assert my_demux.in.a 1
|
||
|
set-qdi-channel-neutral "my_demux.in" 2
|
||
|
cycle
|
||
|
|
||
|
set my_demux.out1.a 1
|
||
|
cycle
|
||
|
|
||
|
set my_demux.out1.v 0
|
||
|
|
||
|
assert my_demux.in.a 1
|
||
|
set-qdi-channel-neutral "my_demux.in" 2
|
||
|
|
||
|
|
||
|
system "echo 'First Cond Checked'"
|
||
|
|
||
|
set my_demux.out1.a 0
|
||
|
set my_demux.out1.v 0
|
||
|
set my_demux.token.a 0
|
||
|
set my_demux.token.r 0
|
||
|
set my_demux.cond.d.d[0].t 0
|
||
|
set my_demux.cond.d.d[0].f 0
|
||
|
cycle
|
||
|
|
||
|
system "echo 'System initialized'"
|
||
|
|
||
|
set my_demux.cond.d.d[0].t 0
|
||
|
set my_demux.cond.d.d[0].f 1
|
||
|
set-qdi-channel-valid "my_demux.in" 2 3
|
||
|
cycle
|
||
|
assert my_demux.in.v 1
|
||
|
assert my_demux.in.a 1
|
||
|
assert my_demux.token.r 1
|
||
|
|
||
|
set my_demux.token.a 1
|
||
|
cycle
|
||
|
|
||
|
assert my_demux.token.r 0
|
||
|
|
||
|
set my_demux.token.a 0
|
||
|
set-qdi-channel-neutral "my_demux.in" 2
|
||
|
cycle
|
||
|
|
||
|
assert my_demux.in.v 0
|
||
|
|
||
|
set my_demux.cond.d.d[0].t 0
|
||
|
set my_demux.cond.d.d[0].f 0
|
||
|
cycle
|
||
|
|
||
|
assert my_demux.in.a 0
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|