The .syn files contain spike time and code data stored in big-endian binary format. Each time Tosca retrieves data from Synapse, it appends a block to the .syn file in the following format:
Precision
|
Length
|
Description
|
int32
|
1
|
Nc = number of codes
|
int16
|
Nc
|
codes
|
int32
|
1
|
Nt = number of times
|
float32
|
Nt
|
times
|
Spike codes with negative values indicate the occurrence of Tosca sync pulses:
Code
|
Meaning
|
-3
|
Trial
|
-2
|
State
|
-1
|
Repetition
|
|