Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (44 sloc) 1.53 KB
<?xml version="1.0"?>
<!DOCTYPE SpineML>
<SpineML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.shef.ac.uk/SpineMLComponentLayer">
<ComponentClass type="neuron_body" name="LIF">
<Dynamics initial_regime="integrating">
<Regime name="integrating">
<TimeDerivative variable="v">
<MathInline>((i_offset + I_Syn) / cm) + (v_rest - v) / tau_m</MathInline>
</TimeDerivative>
<OnCondition target_regime="refractory">
<StateAssignment variable="v">
<MathInline>v_reset</MathInline>
</StateAssignment>
<StateAssignment variable="t_spike">
<MathInline>t</MathInline>
</StateAssignment>
<EventOut port="spike"/>
<Trigger>
<MathInline>v > v_thresh</MathInline>
</Trigger>
</OnCondition>
</Regime>
<Regime name="refractory">
<OnCondition target_regime="integrating">
<Trigger>
<MathInline>t > (t_spike + tau_refractory)</MathInline>
</Trigger>
</OnCondition>
</Regime>
<StateVariable dimension="?" name="v"/>
<StateVariable dimension="?" name="t_spike"/>
</Dynamics>
<AnalogReducePort dimension="?" reduce_op="+" name="I_Syn"/>
<AnalogSendPort name="v"/>
<EventSendPort name="spike"/>
<Parameter dimension="?" name="cm"/>
<Parameter dimension="?" name="i_offset"/>
<Parameter dimension="?" name="v_thresh"/>
<Parameter dimension="?" name="v_rest"/>
<Parameter dimension="?" name="v_reset"/>
<Parameter dimension="?" name="tau_m"/>
<Parameter dimension="?" name="tau_refractory"/>
</ComponentClass>
</SpineML>