actlib_dataflow_neuro/test/unit_tests/chip_nomap/test.prsim

119 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-04-04 19:32:30 +02:00
watchall
set c.bd_dly_cfg[0] 1
set c.bd_dly_cfg[1] 1
set c.bd_dly_cfg[2] 1
set c.bd_dly_cfg[3] 1
2022-04-05 18:21:36 +02:00
set c.bd_dly_cfg2[0] 1
set c.bd_dly_cfg2[1] 1
2022-04-04 19:32:30 +02:00
set-bd-channel-neutral "c.in" 14
2022-04-04 20:23:56 +02:00
set c.out.a 0
2022-04-04 19:32:30 +02:00
set c.loopback_en 1
set Reset 1
cycle
mode run
2022-04-04 20:23:56 +02:00
status X
2022-04-04 19:32:30 +02:00
system "echo '[] Set reset 0'"
status X
set Reset 0
cycle
2022-04-05 18:21:36 +02:00
# Reading address 0
set c.in.d[0] 0
set c.in.d[1] 0
set c.in.d[2] 0
set c.in.d[3] 0
set c.in.d[4] 0
set c.in.d[5] 0
set c.in.d[6] 0
set c.in.d[7] 0
set c.in.d[8] 0
set c.in.d[9] 0
set c.in.d[10] 0
set c.in.d[11] 0
set c.in.d[12] 0
set c.in.d[13] 1
cycle
set c.in.r 1
cycle
assert c.in.a 1
# Remove input
set-bd-channel-neutral "c.in" 14
cycle
assert c.in.a 0
# Should first get loopback
assert-bd-channel-valid "c.out" 14 8192
set c.out.a 1
2022-04-04 20:23:56 +02:00
cycle
2022-04-05 18:21:36 +02:00
assert-bd-channel-neutral "c.out" 14
set c.out.a 0
cycle
# Expect register read packet to arrive
assert-bd-channel-valid "c.out" 14 4080
set c.out.a 1
cycle
assert-bd-channel-neutral "c.out" 14
set c.out.a 0
cycle
# Disable loopback cus it's annoying
set c.loopback_en 0
cycle
# Writing 68 to address 1
set c.in.d[0] 1
set c.in.d[1] 0
set c.in.d[2] 0
set c.in.d[3] 0
set c.in.d[4] 0
set c.in.d[5] 0
set c.in.d[6] 1
set c.in.d[7] 0
set c.in.d[8] 0
set c.in.d[9] 0
set c.in.d[10] 1
set c.in.d[11] 0
set c.in.d[12] 1
set c.in.d[13] 1
cycle
set c.in.r 1
cycle
assert c.in.a 1
# Remove input
set-bd-channel-neutral "c.in" 14
cycle
assert c.in.a 0
# Reading address 1
set c.in.d[0] 1
set c.in.d[1] 0
set c.in.d[2] 0
set c.in.d[3] 0
set c.in.d[4] 0
set c.in.d[5] 0
set c.in.d[6] 0
set c.in.d[7] 0
set c.in.d[8] 0
set c.in.d[9] 0
set c.in.d[10] 0
set c.in.d[11] 0
set c.in.d[12] 0
set c.in.d[13] 1
cycle
set c.in.r 1
cycle
assert c.in.a 1
assert-bd-channel-valid "c.out" 14 1089