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">
5 <!-- instantiate processes -->
6 <process name="producer">
7 <port type="output" name="out"/>
8 <source type="c" location="producer.c"/>
11 <process name="consumer">
12 <port type="input" name="in"/>
13 <source type="c" location="consumer.c"/>
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"/>
24 <sw_channel type="fifo" size="4" name="inputchannel">
25 <port type="input" name="in"/>
26 <port type="output" name="out"/>
29 <sw_channel type="fifo" size="4" name="outputchannel">
30 <port type="input" name="in"/>
31 <port type="output" name="out"/>
34 <sw_channel type="fifo" size="4" name="filterchannel">
35 <port type="input" name="in"/>
36 <port type="output" name="out"/>
39 <connection name="inputconnection">
40 <origin name="producer">
43 <target name="inputchannel">
48 <connection name="outputconnection">
49 <origin name="outputchannel">
52 <target name="consumer">
57 <connection name="filterconnectionin">
58 <origin name="inputchannel">
61 <target name="filter">
66 <connection name="filterconnectionout">
67 <origin name="filter">
70 <target name="outputchannel">
75 <!-- feedback connection -->
76 <connection name="filterconnectionfeedbackA">
77 <origin name="filter">
80 <target name="filterchannel">
85 <connection name="filterconnectionfeedbackB">
86 <origin name="filterchannel">
89 <target name="filter">