Skip to main content

Table 1 Summary of code slots available in GeNN for user-defined models

From: More flexibility for code generation with GeNN v2.1

Element

Snippet

Deployment and Function

Neuron

simCode

Main time step update of the neuron dynamics

 

thresholdConditionCode

A Boolean expression defining when spikes occur, checked every time step

 

resetCode

The code that defines a change in neuron variables, employed when a spike occurs

Synapse

simCode

Code that describes the synapse update after a pre-synaptic spike

 

simCodeEvnt

Code that describes the synapse update after a pre-synaptic spike event

 

simLearnPost

Code for the synaptic update triggered by a post-synaptic spike

 

eventThreshold

A Boolean expression that defines synaptic events

 

synapseDynamics

Update code for internal synapse dynamics applied every time step independent of spiking

Post-Synapse

postSyntoCurrent

Code that describes the transformation of synaptic variables into a post-synaptic current

 

postSynDecay

Code that describes the shared dynamics of summed synaptic activation, typically decay