summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-25 20:34:15 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-25 20:34:15 +0930
commitea9570a43b954399b1a22694502ad26c2597f0fd (patch)
tree7350e656cc4a90877ae3af533451831c57a2a0ae /examples
parenta07c85b04f8bccd924dc020dcb9c6a32d2907e27 (diff)
downloadfoxlogicgates-ea9570a43b954399b1a22694502ad26c2597f0fd.tar.gz
foxlogicgates-ea9570a43b954399b1a22694502ad26c2597f0fd.zip
added full adder XML example
Diffstat (limited to 'examples')
-rw-r--r--examples/full_adder.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/full_adder.xml b/examples/full_adder.xml
new file mode 100644
index 0000000..d462c3c
--- /dev/null
+++ b/examples/full_adder.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
+<Meta>
+ <Info next_id="10" />
+</Meta>
+<Gates>
+ <Gate id="0" x="90" y="176" w="70" h="50" type="1" output_state="true">
+ <output_gate_id id="6" />
+ <output_gate_id id="3" />
+ </Gate>
+ <Gate id="1" x="89" y="264" w="70" h="50" type="1" output_state="true">
+ <output_gate_id id="3" />
+ <output_gate_id id="6" />
+ </Gate>
+ <Gate id="2" x="76" y="393" w="70" h="50" type="1" output_state="true">
+ <output_gate_id id="4" />
+ <output_gate_id id="7" />
+ </Gate>
+ <Gate id="3" x="249" y="163" w="70" h="50" type="8" input1_id="0" input2_id="1" output_state="false">
+ <output_gate_id id="4" />
+ <output_gate_id id="7" />
+ </Gate>
+ <Gate id="4" x="444" y="186" w="70" h="50" type="8" input1_id="3" input2_id="2" output_state="true">
+ <output_gate_id id="5" />
+ </Gate>
+ <Gate id="5" x="755" y="179" w="70" h="50" type="2" input1_id="4" output_state="true" />
+ <Gate id="6" x="233" y="426" w="70" h="50" type="3" input1_id="0" input2_id="1" output_state="true">
+ <output_gate_id id="8" />
+ </Gate>
+ <Gate id="7" x="406" y="346" w="70" h="50" type="3" input1_id="2" input2_id="3" output_state="false">
+ <output_gate_id id="8" />
+ </Gate>
+ <Gate id="8" x="603" y="406" w="70" h="50" type="4" input1_id="7" input2_id="6" output_state="true">
+ <output_gate_id id="9" />
+ </Gate>
+ <Gate id="9" x="749" y="403" w="70" h="50" type="2" input1_id="8" output_state="true" />
+</Gates>