dol: initial dol commit
[jump.git] / dol / examples / example6 / example6.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <processnetwork xmlns="http://www.tik.ee.ethz.ch/~shapes/schema/PROCESSNETWORK" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tik.ee.ethz.ch/~shapes/schema/PROCESSNETWORK
3 http://www.tik.ee.ethz.ch/~shapes/schema/processnetwork.xsd" name="filter">
4
5   <!-- instantiate processes -->
6   <process name="producer">
7     <port type="output" name="out"/>
8     <source type="c" location="producer.c"/>
9   </process>
10
11   <process name="consumer">
12     <port type="input" name="in"/>
13     <source type="c" location="consumer.c"/>
14   </process>
15
16   <process name="filter">
17     <port type="input" name="inA"/>
18     <port type="input" name="inB"/>
19     <port type="output" name="outA"/>
20     <port type="output" name="outB"/>
21     <source type="c" location="filter.c"/>
22   </process>
23   
24   <sw_channel type="fifo" size="4" name="inputchannel">
25     <port type="input" name="in"/>
26     <port type="output" name="out"/>
27   </sw_channel>
28
29   <sw_channel type="fifo" size="4" name="outputchannel">
30     <port type="input" name="in"/>
31     <port type="output" name="out"/>
32   </sw_channel>
33
34   <sw_channel type="fifo" size="4" name="filterchannel">
35     <port type="input" name="in"/>
36     <port type="output" name="out"/>
37   </sw_channel>
38
39   <connection name="inputconnection">
40     <origin name="producer">
41       <port name="out"/>
42     </origin>
43     <target name="inputchannel">
44       <port name="in"/>
45     </target>
46   </connection>
47
48   <connection name="outputconnection">
49     <origin name="outputchannel">
50       <port name="out"/>
51     </origin>
52     <target name="consumer">
53       <port name="in"/>
54     </target>
55   </connection>
56
57   <connection name="filterconnectionin">
58     <origin name="inputchannel">
59       <port name="out"/>
60     </origin>
61     <target name="filter">
62       <port name="inA"/>
63     </target>
64   </connection>
65
66   <connection name="filterconnectionout">
67     <origin name="filter">
68       <port name="outA"/>
69     </origin>
70     <target name="outputchannel">
71       <port name="in"/>
72     </target>
73   </connection>
74
75   <!-- feedback connection -->
76   <connection name="filterconnectionfeedbackA">
77     <origin name="filter">
78       <port name="outB"/>
79     </origin>
80     <target name="filterchannel">
81       <port name="in"/>
82     </target>
83   </connection>
84
85   <connection name="filterconnectionfeedbackB">
86     <origin name="filterchannel">
87       <port name="out"/>
88     </origin>
89     <target name="filter">
90       <port name="inB"/>
91     </target>
92   </connection>
93
94 </processnetwork>