dol: initial dol commit
[jump.git] / dol / examples / exampleproducerconsumer / exampleproducerconsumer.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="example8"> 
4
5   <!-- processes -->
6   <process name="producer"> 
7     <port type="output" name="A"/>
8     <port type="output" name="B"/>
9      <source type="c" location="producer.c"/>
10   </process>
11
12   <process name="consumer"> 
13     <port type="input" name="A"/> 
14        <port type="input" name="B"/>
15     <source type="c" location="consumer.c"/>
16   </process>
17
18
19   <!-- sw_channels -->
20   <sw_channel type="fifo" size="10" name="C1">
21     <port type="input" name="in"/>
22     <port type="output" name="out"/>
23   </sw_channel>
24
25   <sw_channel type="fifo" size="10" name="C2">
26     <port type="input" name="in"/>
27     <port type="output" name="out"/>
28   </sw_channel>
29
30   <!-- connections -->
31   <connection name="p-c1-a">
32     <origin name="producer">
33       <port name="A"/>
34     </origin>
35     <target name="C1">
36       <port name="in"/>
37     </target>
38   </connection>
39
40   <connection name="p-c1-b">
41     <origin name="producer">
42       <port name="B"/>
43     </origin>
44     <target name="C2">
45       <port name="in"/>
46     </target>
47   </connection>
48
49   <connection name="c-c1-a">
50     <origin name="C1">
51       <port name="out"/>
52     </origin>
53     <target name="consumer">
54       <port name="A"/>
55     </target>
56   </connection>
57
58   <connection name="c-c2-b">
59     <origin name="C2">
60      <port name="out"/>
61     </origin>
62     <target name="consumer">
63       <port name="B"/>
64     </target>
65   </connection>
66
67 </processnetwork>