square: DOL squaring example (shown in live demo)
[jump.git] / square / Square.xml
diff --git a/square/Square.xml b/square/Square.xml
new file mode 100644 (file)
index 0000000..27f50a2
--- /dev/null
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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
+    http://www.tik.ee.ethz.ch/~shapes/schema/processnetwork.xsd" name="square"> 
+
+  <!-- HOST -->
+  <process name="EpiphanyHost">
+    <port type="input" name="HP0"/>
+    <source type="c"/>
+  </process>
+
+  <!-- APPLICATION -->
+  <process name="Gen">
+    <port type="output" name="0"/>
+    <source type="c" location="Gen.c"/>
+  </process>
+
+  <process name="Square">
+    <port type="input" name="0"/>
+    <port type="output" name="1"/>
+    <source type="c" location="Square.c"/>
+  </process>
+
+  <sw_channel type="fifo" size="16" name="C1">
+    <port type="input" name="0"/>
+    <port type="output" name="1"/>
+  </sw_channel>
+
+  <sw_channel type="fifo" size="16" name="HC1">
+    <port type="input" name="1"/>
+    <port type="output" name="HP0"/>
+  </sw_channel>
+
+  <!-- CONNECTIONS -->
+  <connection name="Gen-C1">
+    <origin name="Gen">
+      <port name="0"/>
+    </origin>
+    <target name="C1">
+      <port name="0"/>
+    </target>
+  </connection>
+
+  <connection name="C1-Square">
+    <origin name="C1">
+      <port name="1"/>
+    </origin>
+    <target name="Square">
+      <port name="0"/>
+    </target>
+  </connection>
+
+  <connection name="Square-HC1">
+    <origin name="Square">
+      <port name="1"/>
+    </origin>
+    <target name="HC1">
+      <port name="1"/>
+    </target>
+  </connection>
+
+  <connection name="HC1-Host">
+    <origin name="HC1">
+      <port name="HP0"/>
+    </origin>
+    <target name="EpiphanyHost">
+      <port name="HP0"/>
+    </target>
+  </connection>
+</processnetwork>