dol: initial dol commit
[jump.git] / dol / examples / example1 / example1.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <processnetwork 
3 xmlns="http://www.tik.ee.ethz.ch/~shapes/schema/PROCESSNETWORK" 
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
5 xsi:schemaLocation="http://www.tik.ee.ethz.ch/~shapes/schema/PROCESSNETWORK
6     http://www.tik.ee.ethz.ch/~shapes/schema/processnetwork.xsd" name="example1"> 
7
8   <!-- processes -->
9   <process name="generator"> 
10     <port type="output" name="1"/>
11     <source type="c" location="generator.c"/>
12   </process>
13
14   <process name="consumer"> 
15     <port type="input" name="1"/> 
16     <source type="c" location="consumer.c"/>
17   </process>
18
19   <process name="square"> 
20     <port type="input" name="1"/>
21     <port type="output" name="2"/>
22     <source type="c" location="square.c"/>
23   </process>
24
25   <!-- sw_channels -->
26   <sw_channel type="fifo" size="10" name="C1">
27     <port type="input" name="0"/>
28     <port type="output" name="1"/>
29   </sw_channel>
30
31   <sw_channel type="fifo" size="10" name="C2">
32     <port type="input" name="0"/>
33     <port type="output" name="1"/>
34   </sw_channel>
35
36   <!-- connections -->
37   <connection name="g-c">
38     <origin name="generator">
39       <port name="1"/>
40     </origin>
41     <target name="C1">
42       <port name="0"/>
43     </target>
44   </connection>
45
46   <connection name="c-c">
47     <origin name="C2">
48       <port name="1"/>
49     </origin>
50     <target name="consumer">
51       <port name="1"/>
52     </target>
53   </connection>
54
55   <connection name="s-c">
56     <origin name="square">
57       <port name="2"/>
58     </origin>
59     <target name="C2">
60       <port name="0"/>
61     </target>
62   </connection>
63
64   <connection name="c-s">
65     <origin name="C1">
66       <port name="1"/>
67     </origin>
68     <target name="square">
69       <port name="1"/>
70     </target>
71   </connection>
72
73 </processnetwork>