source: project/release/4/9ML-toolkit/trunk/examples/Brunel00/AlphaPSR.xml @ 30895

Last change on this file since 30895 was 30895, checked in by Ivan Raikov, 6 years ago

9ML-toolkit: updates to network code generation template

File size: 2.0 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<NineML xmlns="http://nineml.incf.org/9ML/0.3"
3    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4    xsi:schemaLocation="http://nineml.incf.org/9ML/0.3 ../NineML_v0.3.xsd">
5
6  <ComponentClass name="AlphaPSR">
7
8    <Parameter name="tau_syn" dimension='time'/> <!-- synapse time constant -->
9
10    <EventPort name="spike"/>
11
12    <AnalogPort name="Ispike" mode='reduce' dimension='current'/>
13
14    <AnalogPort name="tspike" mode='recv' dimension='time'/>
15
16    <AnalogPort name="A" mode="send" dimension='current'/>
17    <AnalogPort name="B" mode="send" dimension='current'/>
18    <AnalogPort name="Isyn" mode="send" dimension='current'/>
19
20    <Dynamics>
21
22        <StateVariable name="A" dimension="current"/>
23        <StateVariable name="B" dimension="current"/>
24        <StateVariable name="Isyn" dimension="current"/>
25
26        <Regime name="default">
27         
28          <TimeDerivative variable="A">
29            <MathInline> (B - A) / tau_syn </MathInline>
30          </TimeDerivative>
31
32          <TimeDerivative variable="B">
33            <MathInline> (- B) / tau_syn </MathInline>
34          </TimeDerivative>
35
36          <StateAssignment variable="Isyn" >
37            <MathInline> A </MathInline>
38          </StateAssignment>
39
40          <OnEvent src_port="spike">
41           
42            <StateAssignment variable="A" >
43              <MathInline> A * exp (- h / tau_syn) + ((B * h * exp (- h / tau_syn)) / tau_syn)  </MathInline>
44            </StateAssignment>
45
46            <StateAssignment variable="B" >
47              <MathInline> B * exp (- h / tau_syn) + Ispike * h </MathInline>
48            </StateAssignment>
49
50            <StateAssignment variable="Isyn" >
51              <MathInline> A </MathInline>
52            </StateAssignment>
53
54            <StateAssignment variable="t" >
55              <MathInline> t + h </MathInline>
56            </StateAssignment>
57           
58          </OnEvent>
59
60        </Regime>
61
62    </Dynamics>
63
64
65  </ComponentClass>
66</NineML>
Note: See TracBrowser for help on using the repository browser.