NEURON {
POINT_PROCESS syn_ampa
RANGE tau_o : parameter
RANGE tau_c : parameter
RANGE erev : parameter
RANGE syn_step
RANGE i : exposure
NONSPECIFIC_CURRENT i
}
UNITS {
(nA) = (nanoamp)
(uA) = (microamp)
(mA) = (milliamp)
(A) = (amp)
(mV) = (millivolt)
(mS) = (millisiemens)
(uS) = (microsiemens)
(molar) = (1/liter)
(kHz) = (kilohertz)
(mM) = (millimolar)
(um) = (micrometer)
(S) = (siemens)
}
PARAMETER {
tau_o = 0.2 (ms)
tau_c = 3.0 (ms)
erev = 0.0 (mV)
syn_step = 1.25
}
ASSIGNED {
v (mV)
i (nA)
}
STATE {
o
c
}
INITIAL {
o = 0
c = 0
}
BREAKPOINT {
SOLVE states METHOD cnexp
i = (c - o) * (v-erev)
}
NET_RECEIVE(weight (uS)) {
o = o + syn_step*weight
c = c + syn_step*weight
}
DERIVATIVE states {
o' = -o/tau_o
c' = -c/tau_c
}