2022-03-04 21:13:10 +01:00
|
|
|
watchall
|
|
|
|
system "echo '[0] start test'"
|
2022-03-05 20:28:50 +01:00
|
|
|
|
|
|
|
set-qdi-channel-neutral "t.in" 5
|
2022-03-30 15:01:50 +02:00
|
|
|
|
2022-03-05 20:28:50 +01:00
|
|
|
set t.data[0].d[0] 0
|
|
|
|
set t.data[0].d[1] 0
|
|
|
|
set t.data[1].d[0] 0
|
|
|
|
set t.data[1].d[1] 0
|
2022-03-30 15:01:50 +02:00
|
|
|
|
2022-03-09 13:05:08 +01:00
|
|
|
set t.registers._in_write.a 0
|
|
|
|
set t.registers._in_read.a 0
|
|
|
|
set t.registers._in_write.v 0
|
|
|
|
set t.registers._in_read.v 0
|
|
|
|
|
2022-03-07 16:36:01 +01:00
|
|
|
set Reset 0
|
2022-03-04 21:13:10 +01:00
|
|
|
cycle
|
|
|
|
status X
|
|
|
|
mode run
|
2022-03-05 20:28:50 +01:00
|
|
|
assert-qdi-channel-neutral "t.in" 5
|
|
|
|
assert t.data[0].d[0] 0
|
|
|
|
assert t.data[0].d[1] 0
|
|
|
|
assert t.data[1].d[0] 0
|
|
|
|
assert t.data[1].d[1] 0
|
|
|
|
cycle
|
2022-03-04 21:13:10 +01:00
|
|
|
system "echo '[1] reset completed'"
|
2022-03-05 20:28:50 +01:00
|
|
|
# Set delay config lines
|
|
|
|
set t.dly_cfg[0] 1
|
|
|
|
set t.dly_cfg[1] 1
|
|
|
|
cycle
|
|
|
|
assert-qdi-channel-neutral "t.in" 5
|
|
|
|
system "echo '[2] delay line set'"
|
2022-03-09 13:05:08 +01:00
|
|
|
set-qdi-channel-valid "t.in" 5 19
|
2022-03-05 20:28:50 +01:00
|
|
|
cycle
|
2022-03-09 13:05:08 +01:00
|
|
|
assert-qdi-channel-valid "t.registers._in_write" 4 3
|
2022-03-07 16:36:01 +01:00
|
|
|
assert t.registers._clock 0
|
2022-03-05 20:28:50 +01:00
|
|
|
assert t.registers._out_encoder[0] 1
|
|
|
|
assert t.registers._out_encoder[1] 0
|
2022-03-05 20:33:38 +01:00
|
|
|
assert t.registers._out_encoder[2] 0
|
|
|
|
assert t.registers._out_encoder[3] 0
|
2022-03-07 16:36:01 +01:00
|
|
|
cycle
|
2022-03-05 20:28:50 +01:00
|
|
|
set-qdi-channel-neutral "t.in" 5
|
|
|
|
cycle
|
2022-03-07 16:36:01 +01:00
|
|
|
assert t.registers._clock 1
|
2022-03-07 07:15:53 +01:00
|
|
|
assert t.registers.ff[0].q 1
|
|
|
|
assert t.registers.ff[1].q 1
|
2022-03-05 20:28:50 +01:00
|
|
|
system "echo '[3] clock checked'"
|
|
|
|
|
|
|
|
|