dol: initial dol commit
[jump.git] / dol / examples / examplewindowedfifo / examplewindowedfifo.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="examplewindowedfifo"> 
7
8   <!-- processes -->
9   <process name="generator"> 
10     <port type="output" name="1"/>
11     <source type="c" location="generator.c"/>
12     <configuration name="triggerPeriod" value="100000"/>
13   </process>
14
15   <process name="consumer"> 
16     <port type="input" name="1"/> 
17     <source type="c" location="consumer.c"/>
18   </process>
19
20   <process name="square"> 
21     <port type="input" name="100"/>
22     <port type="output" name="200"/>
23     <source type="c" location="square.c"/>
24   </process>
25
26   <!-- sw_channels -->
27   <sw_channel type="wfifo" size="12" name="C1">
28     <port type="input" name="0"/>
29     <port type="output" name="1"/>
30   </sw_channel>
31
32   <sw_channel type="wfifo" size="12" name="C2">
33     <port type="input" name="0"/>
34     <port type="output" name="1"/>
35   </sw_channel>
36
37   <!-- connections -->
38   <connection name="g-c">
39     <origin name="generator">
40       <port name="1"/>
41     </origin>
42     <target name="C1">
43       <port name="0"/>
44     </target>
45   </connection>
46
47   <connection name="c-c">
48     <origin name="C2">
49       <port name="1"/>
50     </origin>
51     <target name="consumer">
52       <port name="1"/>
53     </target>
54   </connection>
55
56   <connection name="s-c">
57     <origin name="square">
58       <port name="200"/>
59     </origin>
60     <target name="C2">
61       <port name="0"/>
62     </target>
63   </connection>
64
65   <connection name="c-s">
66     <origin name="C1">
67       <port name="1"/>
68     </origin>
69     <target name="square">
70       <port name="100"/>
71     </target>
72   </connection>
73
74 </processnetwork>