Based on input current, calculation is made using it and previous membrane potential. If current membrane potential is above pre-set threshold then spike!
After reset, input some current and see what happens. Should see an increase on output and possibly a spike eventually.
A current input of 100 after 20 cycles should produce a spike.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | clk_i is the clock | nu_o is the next membrane potential | msb bit of uio_oe is connected to spike_o |
1 | current_i is the current input to the LFI neuron | spike_o is the single bit to show when the neuron is firing | |
2 | rst_n is for reset | ||
3 | |||
4 | |||
5 | |||
6 | |||
7 |