87 lines
1.7 KiB
Plaintext
87 lines
1.7 KiB
Plaintext
watchall
|
|
set-qdi-channel-neutral "my_demux.in" 7
|
|
set my_demux.out1.a 0
|
|
set my_demux.out1.v 0
|
|
set my_demux.out2.a 0
|
|
set my_demux.out2.v 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" 7
|
|
assert-qdi-channel-neutral "my_demux.out2" 7
|
|
assert-qdi-channel-neutral "my_demux.in" 7
|
|
assert my_demux.cond.v 0
|
|
cycle
|
|
|
|
system "echo 'Output neutral checked'"
|
|
|
|
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" 7 127
|
|
cycle
|
|
assert my_demux.in.v 1
|
|
assert my_demux.in.a 0
|
|
assert my_demux.cond.v 1
|
|
|
|
assert-qdi-channel-valid "my_demux.out1" 7 127
|
|
assert-qdi-channel-neutral "my_demux.out2" 7
|
|
set my_demux.out1.v 1
|
|
cycle
|
|
assert my_demux.in.a 1
|
|
set-qdi-channel-neutral "my_demux.in" 7
|
|
cycle
|
|
set my_demux.out1.a 1
|
|
|
|
|
|
system "echo 'First Cond Checked'"
|
|
|
|
|
|
set Reset 0
|
|
cycle
|
|
system "echo 'System reset completed'"
|
|
status X
|
|
mode run
|
|
|
|
assert-qdi-channel-neutral "my_demux.out1" 7
|
|
assert-qdi-channel-neutral "my_demux.out2" 7
|
|
assert-qdi-channel-neutral "my_demux.in" 7
|
|
cycle
|
|
|
|
system "echo 'Output neutral checked'"
|
|
|
|
set my_demux.cond.d.d[0].t 0
|
|
set my_demux.cond.d.d[0].f 0
|
|
set my_demux.out1.a 0
|
|
set my_demux.out1.v 0
|
|
set my_demux.out2.a 0
|
|
set my_demux.out2.v 0
|
|
cycle
|
|
|
|
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" 7 100
|
|
cycle
|
|
assert my_demux.in.v 1
|
|
assert my_demux.in.a 0
|
|
assert my_demux.cond.v 1
|
|
|
|
assert-qdi-channel-valid "my_demux.out2" 7 100
|
|
set my_demux.out2.v 1
|
|
cycle
|
|
assert my_demux.in.a 1
|
|
set-qdi-channel-neutral "my_demux.in" 7
|
|
cycle
|
|
|
|
|
|
system "echo 'Second Cond Checked'"
|
|
|
|
|