NEURON {
POINT_PROCESS expsyn
RANGE tau, e
NONSPECIFIC_CURRENT i
}

UNITS {
(mV) = (millivolt)
}

PARAMETER {
tau = 2.0 (ms) : the default for Neuron is 0.1
e = 0   (mV)
}

ASSIGNED {}

STATE {
g
}

INITIAL {
g=0
}

BREAKPOINT {
SOLVE state METHOD cnexp
i = g*(v - e)
}

DERIVATIVE state {
g' = -g/tau + tau
}

NET_RECEIVE(weight) {
g = g + weight
}

