Open chongxi opened 4 years ago
All of the above-fantasized APIs require shared memory
between the binner
and decoder
. Remember they will be running on different processors. To be specific, the decoder will be triggered dec.predict(X)
each time when a new bin is filled X=binner.output()
To make it consistent to the decoder input structure, the input matrix shape is changed to (B_bins, N_units)
https://github.com/chongxi/spiketag/commit/7ddcc9a3cf01c15c126736edd131c24db3180932
To simply high-level programming. I decided to build this class in a way it can be used in any stage of the processing.
0. To configure FPGA with sorting:
Then check
bmi.fpga
Two parameters are critical in the pathway to convert spiking activities into behaviour
bin_size T
andbin_number B
1. To start and stop the BMI:
2. To check the memory interface:
as simple as that,
3. then we connect
decoder
to thebinner
which is part of thebmi
Because
bmi
already has its ownbin_size
andbin_number
it is easier to wrap all above procedure into one line of code