102 lines
1.7 KiB
Plaintext
102 lines
1.7 KiB
Plaintext
watchall
|
|
|
|
set e.out.a 0
|
|
set e.out.v 0
|
|
set-qdi-channel-neutral "e.in" 7
|
|
set Reset 1
|
|
|
|
set e.dly_cfg[0] 1
|
|
set e.dly_cfg[1] 1
|
|
set e.dly_cfg[2] 1
|
|
set e.dly_cfg[3] 1
|
|
set e.dly_cfg[4] 1
|
|
set e.dly_cfg[5] 1
|
|
|
|
cycle
|
|
|
|
# assert e.decoder.outx[0] 0
|
|
# assert e.neuron_grid.outx[0].r 0
|
|
|
|
|
|
# assert e.encoder.pd_x[0].inv.y 1
|
|
|
|
# assert e.encoder.pd_x[0].pull_downR.n1 1
|
|
# assert e.encoder.pd_x[0].pull_downR.n2 1
|
|
# assert e.encoder.pd_x[0].pull_downR.y 0
|
|
|
|
# assert e.neuron_grid.neurons[0].pu_x.p1 1
|
|
# assert e.neuron_grid.neurons[0].pu_x.p2 1
|
|
# assert e.neuron_grid.neurons[0].pu_x.p3 1
|
|
|
|
# assert e.encoder.Xarb.in[0].a 0
|
|
|
|
|
|
|
|
mode run
|
|
system "echo '[] Set reset 0'"
|
|
system "echo '[] Asserting decoder req 0 0'"
|
|
|
|
|
|
status X
|
|
set Reset 0
|
|
cycle
|
|
|
|
|
|
|
|
system "echo '[] Sending in a packet'"
|
|
set-qdi-channel-valid "e.in" 7 75
|
|
cycle
|
|
assert-qdi-channel-valid "e.out" 7 75
|
|
assert e.in.a 1
|
|
assert e.in.v 1
|
|
|
|
system "echo '[] Removing input'"
|
|
set-qdi-channel-neutral "e.in" 7
|
|
cycle
|
|
assert e.in.a 0
|
|
assert e.in.v 0
|
|
|
|
system "echo '[] Sending in another packet'"
|
|
set-qdi-channel-valid "e.in" 7 22
|
|
cycle
|
|
# Output is still the first packet
|
|
assert-qdi-channel-valid "e.out" 7 75
|
|
assert e.in.a 1
|
|
assert e.in.v 1
|
|
|
|
system "echo '[] Removing input'"
|
|
set-qdi-channel-neutral "e.in" 7
|
|
cycle
|
|
assert e.in.a 0
|
|
assert e.in.v 0
|
|
|
|
system "echo '[] Giving out ack'"
|
|
set e.out.a 1
|
|
set e.out.v 1
|
|
cycle
|
|
assert-qdi-channel-neutral "e.out" 7
|
|
|
|
system "echo '[] Removing ack'"
|
|
set e.out.a 0
|
|
set e.out.v 0
|
|
cycle
|
|
assert-qdi-channel-valid "e.out" 7 22
|
|
|
|
system "echo '[] Giving out ack'"
|
|
set e.out.a 1
|
|
set e.out.v 1
|
|
cycle
|
|
assert-qdi-channel-neutral "e.out" 7
|
|
|
|
system "echo '[] Removing ack'"
|
|
set e.out.a 0
|
|
set e.out.v 0
|
|
cycle
|
|
assert-qdi-channel-neutral "e.out" 7
|
|
|
|
|
|
|
|
|
|
|
|
|