I’m working on a analog circuit implementation of lif neuruons. Meanwhile, I’m considering using brian to simulate it. The analog neuron, which is essentially a leaky integrator, can be modeled simply by an ode. However, the spike cannot be an ideal impulse, it’s more like a rectangle waveform. in brian2, the spike is more like a event, which triggers other state variables. Is there any way to implement spike with shapes?
Instead of using a single reset value, I introduced a second reset with a self-synapse.
When Vth is crossed, the voltage goes to 30 mV and after a delay of 0.5 ms it goes
to the “normal” reset at -50 mV. I don’t know if this is the best way to achieve more realistic
spikes, but for me, it works well. Also by adjusting the delay you can calibrate the “half amplitude”
of your spikes.