test of spike from sram workin
This commit is contained in:
parent
9ee41dc390
commit
016f634ac6
@ -7867,4 +7867,454 @@ cycle
|
||||
assert-qdi-channel-neutral "c.out_sram_spk" 8
|
||||
set c.out_sram_spk.a 0
|
||||
set c.out_sram_spk.v 0
|
||||
cycle
|
||||
|
||||
|
||||
## Check that spikes in from the SRAM go to synapses
|
||||
|
||||
# disable sram output of events for now cus it's annoying
|
||||
set c.mapper_en 0
|
||||
cycle
|
||||
|
||||
|
||||
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [10,254]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 4074
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [10,4]'"
|
||||
assert-bd-channel-valid "c.out" 32 74
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [12,103]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 1660
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [12,1]'"
|
||||
assert-bd-channel-valid "c.out" 32 28
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [8,168]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 2696
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [8,2]'"
|
||||
assert-bd-channel-valid "c.out" 32 40
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 1 synapse [6,157]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 10710
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [6,2]'"
|
||||
assert-bd-channel-valid "c.out" 32 2147483686
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 1 synapse [14,62]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 9198
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [14,1]'"
|
||||
assert-bd-channel-valid "c.out" 32 2147483678
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [7,108]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 1735
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [7,1]'"
|
||||
assert-bd-channel-valid "c.out" 32 23
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [3,153]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 2451
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [3,2]'"
|
||||
assert-bd-channel-valid "c.out" 32 35
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [12,90]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 1452
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [12,1]'"
|
||||
assert-bd-channel-valid "c.out" 32 28
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 1 synapse [1,30]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 8673
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [1,0]'"
|
||||
assert-bd-channel-valid "c.out" 32 2147483649
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [2,333]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 5330
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [2,5]'"
|
||||
assert-bd-channel-valid "c.out" 32 82
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [11,249]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 3995
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [11,4]'"
|
||||
assert-bd-channel-valid "c.out" 32 75
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [13,195]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 3133
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [13,3]'"
|
||||
assert-bd-channel-valid "c.out" 32 61
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [2,172]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 2754
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [2,2]'"
|
||||
assert-bd-channel-valid "c.out" 32 34
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 1 synapse [2,207]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 11506
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [2,3]'"
|
||||
assert-bd-channel-valid "c.out" 32 2147483698
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 1 synapse [2,120]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 10114
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [2,2]'"
|
||||
assert-bd-channel-valid "c.out" 32 2147483682
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [7,47]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 759
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [7,0]'"
|
||||
assert-bd-channel-valid "c.out" 32 7
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [8,253]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 4056
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [8,4]'"
|
||||
assert-bd-channel-valid "c.out" 32 72
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 0 synapse [11,212]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 3403
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [11,3]'"
|
||||
assert-bd-channel-valid "c.out" 32 59
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 1 synapse [14,219]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 11710
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [14,3]'"
|
||||
assert-bd-channel-valid "c.out" 32 2147483710
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
||||
|
||||
system "echo '[] SRAM sending spike to core 1 synapse [12,105]'"
|
||||
set-qdi-channel-valid "c.in_sram_spk" 14 9884
|
||||
cycle
|
||||
assert c.in_sram_spk.a 1
|
||||
set-qdi-channel-neutral "c.in_sram_spk" 14
|
||||
cycle
|
||||
assert c.in_sram_spk.a 0
|
||||
|
||||
system "echo '[] Removing input'"
|
||||
set-bd-channel-neutral "c.in" 32
|
||||
cycle
|
||||
assert c.in.a 0
|
||||
|
||||
|
||||
system "echo '[] Receiving output spike [12,1]'"
|
||||
assert-bd-channel-valid "c.out" 32 2147483676
|
||||
set c.out.a 1
|
||||
cycle
|
||||
assert-bd-channel-neutral "c.out" 32
|
||||
set c.out.a 0
|
||||
cycle
|
Loading…
Reference in New Issue
Block a user