mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 15:26:52 -04:00
added some more examples
This commit is contained in:
parent
aa4bba7e47
commit
81fa2ec92f
@ -5,7 +5,7 @@
|
||||
<visualElement>
|
||||
<elementName>FullAdder.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="320"/>
|
||||
<pos x="340" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -16,7 +16,7 @@
|
||||
<string>S_0</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="340"/>
|
||||
<pos x="460" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -48,7 +48,7 @@
|
||||
<visualElement>
|
||||
<elementName>FullAdder.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="220"/>
|
||||
<pos x="340" y="220"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -59,7 +59,7 @@
|
||||
<string>S_1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="240"/>
|
||||
<pos x="460" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -91,7 +91,7 @@
|
||||
<visualElement>
|
||||
<elementName>FullAdder.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="120"/>
|
||||
<pos x="340" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -102,7 +102,7 @@
|
||||
<string>S_2</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="140"/>
|
||||
<pos x="460" y="140"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -130,7 +130,7 @@
|
||||
<visualElement>
|
||||
<elementName>FullAdder.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="20"/>
|
||||
<pos x="340" y="20"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -141,7 +141,7 @@
|
||||
<string>S_3</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="40"/>
|
||||
<pos x="460" y="40"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -169,25 +169,25 @@
|
||||
<visualElement>
|
||||
<elementName>XOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="60"/>
|
||||
<pos x="220" y="60"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>XOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="160"/>
|
||||
<pos x="220" y="160"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>XOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="260"/>
|
||||
<pos x="220" y="260"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>XOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="360"/>
|
||||
<pos x="220" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
@ -205,207 +205,207 @@
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="180" y="320"/>
|
||||
<p2 x="400" y="320"/>
|
||||
<p2 x="340" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="320"/>
|
||||
<p2 x="500" y="320"/>
|
||||
<p1 x="420" y="320"/>
|
||||
<p2 x="440" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="160"/>
|
||||
<p2 x="400" y="160"/>
|
||||
<p1 x="320" y="160"/>
|
||||
<p2 x="340" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="160"/>
|
||||
<p2 x="260" y="160"/>
|
||||
<p2 x="220" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="260"/>
|
||||
<p2 x="400" y="260"/>
|
||||
<p1 x="320" y="260"/>
|
||||
<p2 x="340" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="260"/>
|
||||
<p2 x="260" y="260"/>
|
||||
<p2 x="220" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="100"/>
|
||||
<p2 x="500" y="100"/>
|
||||
<p1 x="320" y="100"/>
|
||||
<p2 x="440" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="100"/>
|
||||
<p2 x="260" y="100"/>
|
||||
<p1 x="200" y="100"/>
|
||||
<p2 x="220" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="360"/>
|
||||
<p2 x="260" y="360"/>
|
||||
<p2 x="220" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="360"/>
|
||||
<p2 x="400" y="360"/>
|
||||
<p1 x="320" y="360"/>
|
||||
<p2 x="340" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="200"/>
|
||||
<p2 x="500" y="200"/>
|
||||
<p1 x="320" y="200"/>
|
||||
<p2 x="440" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="200"/>
|
||||
<p2 x="260" y="200"/>
|
||||
<p1 x="200" y="200"/>
|
||||
<p2 x="220" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="40"/>
|
||||
<p2 x="540" y="40"/>
|
||||
<p1 x="420" y="40"/>
|
||||
<p2 x="460" y="40"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="40"/>
|
||||
<p2 x="400" y="40"/>
|
||||
<p1 x="300" y="40"/>
|
||||
<p2 x="340" y="40"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="300"/>
|
||||
<p2 x="500" y="300"/>
|
||||
<p1 x="320" y="300"/>
|
||||
<p2 x="440" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="300"/>
|
||||
<p2 x="260" y="300"/>
|
||||
<p1 x="200" y="300"/>
|
||||
<p2 x="220" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="140"/>
|
||||
<p2 x="540" y="140"/>
|
||||
<p1 x="420" y="140"/>
|
||||
<p2 x="460" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="140"/>
|
||||
<p2 x="400" y="140"/>
|
||||
<p1 x="300" y="140"/>
|
||||
<p2 x="340" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="240"/>
|
||||
<p2 x="540" y="240"/>
|
||||
<p1 x="420" y="240"/>
|
||||
<p2 x="460" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="240"/>
|
||||
<p2 x="400" y="240"/>
|
||||
<p1 x="300" y="240"/>
|
||||
<p2 x="340" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="80"/>
|
||||
<p2 x="340" y="80"/>
|
||||
<p1 x="280" y="80"/>
|
||||
<p2 x="300" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="400"/>
|
||||
<p2 x="260" y="400"/>
|
||||
<p1 x="200" y="400"/>
|
||||
<p2 x="220" y="400"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="340"/>
|
||||
<p2 x="540" y="340"/>
|
||||
<p1 x="420" y="340"/>
|
||||
<p2 x="460" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="340"/>
|
||||
<p2 x="400" y="340"/>
|
||||
<p1 x="300" y="340"/>
|
||||
<p2 x="340" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="20"/>
|
||||
<p2 x="400" y="20"/>
|
||||
<p2 x="340" y="20"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="180"/>
|
||||
<p2 x="340" y="180"/>
|
||||
<p1 x="280" y="180"/>
|
||||
<p2 x="300" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="120"/>
|
||||
<p2 x="400" y="120"/>
|
||||
<p2 x="340" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="120"/>
|
||||
<p2 x="500" y="120"/>
|
||||
<p1 x="420" y="120"/>
|
||||
<p2 x="440" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="280"/>
|
||||
<p2 x="340" y="280"/>
|
||||
<p1 x="280" y="280"/>
|
||||
<p2 x="300" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="440"/>
|
||||
<p2 x="240" y="440"/>
|
||||
<p2 x="200" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="440"/>
|
||||
<p2 x="380" y="440"/>
|
||||
<p1 x="200" y="440"/>
|
||||
<p2 x="320" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="220"/>
|
||||
<p2 x="400" y="220"/>
|
||||
<p2 x="340" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="220"/>
|
||||
<p2 x="500" y="220"/>
|
||||
<p1 x="420" y="220"/>
|
||||
<p2 x="440" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="60"/>
|
||||
<p2 x="400" y="60"/>
|
||||
<p1 x="320" y="60"/>
|
||||
<p2 x="340" y="60"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="60"/>
|
||||
<p2 x="260" y="60"/>
|
||||
<p2 x="220" y="60"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="380"/>
|
||||
<p2 x="340" y="380"/>
|
||||
<p1 x="280" y="380"/>
|
||||
<p2 x="300" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="100"/>
|
||||
<p2 x="240" y="200"/>
|
||||
<p1 x="320" y="260"/>
|
||||
<p2 x="320" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="400"/>
|
||||
<p2 x="240" y="440"/>
|
||||
<p1 x="320" y="160"/>
|
||||
<p2 x="320" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="300"/>
|
||||
<p2 x="240" y="400"/>
|
||||
<p1 x="320" y="60"/>
|
||||
<p2 x="320" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="200"/>
|
||||
<p2 x="240" y="300"/>
|
||||
<p1 x="320" y="360"/>
|
||||
<p2 x="320" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="340"/>
|
||||
<p2 x="340" y="380"/>
|
||||
<p1 x="200" y="100"/>
|
||||
<p2 x="200" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="40"/>
|
||||
<p2 x="340" y="80"/>
|
||||
<p1 x="200" y="200"/>
|
||||
<p2 x="200" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="140"/>
|
||||
<p2 x="340" y="180"/>
|
||||
<p1 x="200" y="400"/>
|
||||
<p2 x="200" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="240"/>
|
||||
<p2 x="340" y="280"/>
|
||||
<p1 x="200" y="300"/>
|
||||
<p2 x="200" y="400"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="300"/>
|
||||
<p2 x="500" y="320"/>
|
||||
<p1 x="440" y="300"/>
|
||||
<p2 x="440" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="200"/>
|
||||
<p2 x="500" y="220"/>
|
||||
<p1 x="440" y="200"/>
|
||||
<p2 x="440" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="100"/>
|
||||
<p2 x="500" y="120"/>
|
||||
<p1 x="440" y="100"/>
|
||||
<p2 x="440" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="260"/>
|
||||
<p2 x="380" y="300"/>
|
||||
<p1 x="300" y="340"/>
|
||||
<p2 x="300" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="160"/>
|
||||
<p2 x="380" y="200"/>
|
||||
<p1 x="300" y="40"/>
|
||||
<p2 x="300" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="60"/>
|
||||
<p2 x="380" y="100"/>
|
||||
<p1 x="300" y="140"/>
|
||||
<p2 x="300" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="360"/>
|
||||
<p2 x="380" y="440"/>
|
||||
<p1 x="300" y="240"/>
|
||||
<p2 x="300" y="280"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
482
src/main/dig/combinatorial/FullAdderNaive.dig
Normal file
482
src/main/dig/combinatorial/FullAdderNaive.dig
Normal file
@ -0,0 +1,482 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<attributes>
|
||||
<entry>
|
||||
<string>Width</string>
|
||||
<int>4</int>
|
||||
</entry>
|
||||
</attributes>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C_i-1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="920" y="400"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="920" y="680"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>rotation</string>
|
||||
<rotation rotation="3"/>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="600" y="200"/>
|
||||
<rotate>3</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="260"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>rotation</string>
|
||||
<rotation reference="../../../../visualElement[6]/elementAttributes/entry/rotation"/>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="640" y="200"/>
|
||||
<rotate>3</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>rotation</string>
|
||||
<rotation reference="../../../../visualElement[6]/elementAttributes/entry/rotation"/>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="680" y="200"/>
|
||||
<rotate>3</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="420"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="500"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Or</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>4</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="820" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="700" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="700" y="660"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="700" y="740"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Or</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="820" y="660"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="600" y="260"/>
|
||||
<p2 x="700" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="420"/>
|
||||
<p2 x="700" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="420"/>
|
||||
<p2 x="820" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="580"/>
|
||||
<p2 x="700" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="740"/>
|
||||
<p2 x="700" y="740"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="540" y="360"/>
|
||||
<p2 x="620" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="360"/>
|
||||
<p2 x="780" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="800" y="360"/>
|
||||
<p2 x="820" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="360"/>
|
||||
<p2 x="700" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="520"/>
|
||||
<p2 x="700" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="520"/>
|
||||
<p2 x="800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="680"/>
|
||||
<p2 x="820" y="680"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="880" y="680"/>
|
||||
<p2 x="920" y="680"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="540" y="460"/>
|
||||
<p2 x="660" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="460"/>
|
||||
<p2 x="700" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="300"/>
|
||||
<p2 x="700" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="620"/>
|
||||
<p2 x="700" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="780"/>
|
||||
<p2 x="700" y="780"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="540" y="240"/>
|
||||
<p2 x="580" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="880" y="400"/>
|
||||
<p2 x="920" y="400"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="180"/>
|
||||
<p2 x="600" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="180"/>
|
||||
<p2 x="640" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="180"/>
|
||||
<p2 x="680" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="340"/>
|
||||
<p2 x="700" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="500"/>
|
||||
<p2 x="700" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="660"/>
|
||||
<p2 x="700" y="660"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="660"/>
|
||||
<p2 x="820" y="660"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="280"/>
|
||||
<p2 x="700" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="280"/>
|
||||
<p2 x="800" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="440"/>
|
||||
<p2 x="700" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="440"/>
|
||||
<p2 x="780" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="800" y="440"/>
|
||||
<p2 x="820" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="600"/>
|
||||
<p2 x="780" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="760"/>
|
||||
<p2 x="780" y="760"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="380"/>
|
||||
<p2 x="700" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="380"/>
|
||||
<p2 x="820" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="540"/>
|
||||
<p2 x="700" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="700"/>
|
||||
<p2 x="700" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="700"/>
|
||||
<p2 x="820" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="180"/>
|
||||
<p2 x="640" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="240"/>
|
||||
<p2 x="640" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="280"/>
|
||||
<p2 x="640" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="440"/>
|
||||
<p2 x="640" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="800" y="280"/>
|
||||
<p2 x="800" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="800" y="440"/>
|
||||
<p2 x="800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="180"/>
|
||||
<p2 x="580" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="740"/>
|
||||
<p2 x="580" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="240"/>
|
||||
<p2 x="580" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="500"/>
|
||||
<p2 x="580" y="660"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="660"/>
|
||||
<p2 x="580" y="740"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="420"/>
|
||||
<p2 x="580" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="180"/>
|
||||
<p2 x="660" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="540"/>
|
||||
<p2 x="660" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="300"/>
|
||||
<p2 x="660" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="700"/>
|
||||
<p2 x="660" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="460"/>
|
||||
<p2 x="660" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="620"/>
|
||||
<p2 x="660" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="180"/>
|
||||
<p2 x="600" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="240"/>
|
||||
<p2 x="600" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="260"/>
|
||||
<p2 x="600" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="340"/>
|
||||
<p2 x="600" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="180"/>
|
||||
<p2 x="680" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="240"/>
|
||||
<p2 x="680" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="460"/>
|
||||
<p2 x="680" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="380"/>
|
||||
<p2 x="680" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="180"/>
|
||||
<p2 x="620" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="520"/>
|
||||
<p2 x="620" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="780"/>
|
||||
<p2 x="620" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="580"/>
|
||||
<p2 x="620" y="780"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="360"/>
|
||||
<p2 x="620" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="360"/>
|
||||
<p2 x="780" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="420"/>
|
||||
<p2 x="780" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="600"/>
|
||||
<p2 x="780" y="660"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="700"/>
|
||||
<p2 x="780" y="760"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
@ -1,266 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="80"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="140"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO0</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="200"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>HalfSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="360" y="80"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>HalfAdder.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="140"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="80"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Or</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="460" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="140"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO0</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="420"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>HalfSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>HalfSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="380" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Or</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="460" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="220" y="80"/>
|
||||
<p2 x="360" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="420" y="80"/>
|
||||
<p2 x="540" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="160"/>
|
||||
<p2 x="460" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="160"/>
|
||||
<p2 x="260" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="320"/>
|
||||
<p2 x="260" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="320"/>
|
||||
<p2 x="380" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="320"/>
|
||||
<p2 x="460" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="320"/>
|
||||
<p2 x="340" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="340"/>
|
||||
<p2 x="540" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="100"/>
|
||||
<p2 x="360" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="420" y="100"/>
|
||||
<p2 x="440" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="420"/>
|
||||
<p2 x="360" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="200"/>
|
||||
<p2 x="240" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="120"/>
|
||||
<p2 x="460" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="360"/>
|
||||
<p2 x="240" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="360"/>
|
||||
<p2 x="460" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="140"/>
|
||||
<p2 x="260" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="140"/>
|
||||
<p2 x="340" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="140"/>
|
||||
<p2 x="540" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="300"/>
|
||||
<p2 x="260" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="300"/>
|
||||
<p2 x="380" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="300"/>
|
||||
<p2 x="540" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="160"/>
|
||||
<p2 x="240" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="320"/>
|
||||
<p2 x="240" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="100"/>
|
||||
<p2 x="340" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="320"/>
|
||||
<p2 x="340" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="100"/>
|
||||
<p2 x="440" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="320"/>
|
||||
<p2 x="360" y="420"/>
|
||||
</wire>
|
||||
</wires>
|
||||
<version>1</version>
|
||||
<attributes>
|
||||
<entry>
|
||||
<string>Description</string>
|
||||
<string>FullSub</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>Width</string>
|
||||
<int>4</int>
|
||||
</entry>
|
||||
</attributes>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="80"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="140"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO_i-1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="200"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>HalfSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="360" y="80"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>HalfAdder.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="140"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="140"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Or</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="460" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="80"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="220" y="80"/>
|
||||
<p2 x="360" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="420" y="80"/>
|
||||
<p2 x="540" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="160"/>
|
||||
<p2 x="460" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="160"/>
|
||||
<p2 x="260" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="100"/>
|
||||
<p2 x="360" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="420" y="100"/>
|
||||
<p2 x="440" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="200"/>
|
||||
<p2 x="240" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="120"/>
|
||||
<p2 x="460" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="140"/>
|
||||
<p2 x="260" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="140"/>
|
||||
<p2 x="340" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="140"/>
|
||||
<p2 x="540" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="160"/>
|
||||
<p2 x="240" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="100"/>
|
||||
<p2 x="340" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="100"/>
|
||||
<p2 x="440" y="120"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
137
src/main/dig/combinatorial/FullSub2.dig
Normal file
137
src/main/dig/combinatorial/FullSub2.dig
Normal file
@ -0,0 +1,137 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$A$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$B$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO_0</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="220" y="420"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$S$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO_1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>HalfSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>HalfSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="380" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Or</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="460" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="240" y="320"/>
|
||||
<p2 x="260" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="320"/>
|
||||
<p2 x="380" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="320"/>
|
||||
<p2 x="460" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="320"/>
|
||||
<p2 x="340" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="340"/>
|
||||
<p2 x="540" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="420"/>
|
||||
<p2 x="360" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="360"/>
|
||||
<p2 x="240" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="360"/>
|
||||
<p2 x="460" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="300"/>
|
||||
<p2 x="260" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="300"/>
|
||||
<p2 x="380" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="300"/>
|
||||
<p2 x="540" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="320"/>
|
||||
<p2 x="240" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="320"/>
|
||||
<p2 x="340" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="320"/>
|
||||
<p2 x="360" y="420"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
486
src/main/dig/combinatorial/FullSubNaive.dig
Normal file
486
src/main/dig/combinatorial/FullSubNaive.dig
Normal file
@ -0,0 +1,486 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<attributes>
|
||||
<entry>
|
||||
<string>Width</string>
|
||||
<int>4</int>
|
||||
</entry>
|
||||
</attributes>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$A$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$B$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO_i-1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$S$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="920" y="400"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO_i</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="920" y="680"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>rotation</string>
|
||||
<rotation rotation="3"/>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="600" y="200"/>
|
||||
<rotate>3</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="260"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>rotation</string>
|
||||
<rotation reference="../../../../visualElement[6]/elementAttributes/entry/rotation"/>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="640" y="200"/>
|
||||
<rotate>3</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>rotation</string>
|
||||
<rotation reference="../../../../visualElement[6]/elementAttributes/entry/rotation"/>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="680" y="200"/>
|
||||
<rotate>3</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="420"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="500"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Or</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>4</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="820" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="700" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="700" y="660"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="700" y="740"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Or</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="820" y="660"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="600" y="260"/>
|
||||
<p2 x="700" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="420"/>
|
||||
<p2 x="700" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="420"/>
|
||||
<p2 x="820" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="580"/>
|
||||
<p2 x="700" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="740"/>
|
||||
<p2 x="700" y="740"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="540" y="360"/>
|
||||
<p2 x="620" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="360"/>
|
||||
<p2 x="780" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="800" y="360"/>
|
||||
<p2 x="820" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="360"/>
|
||||
<p2 x="700" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="520"/>
|
||||
<p2 x="700" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="520"/>
|
||||
<p2 x="800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="680"/>
|
||||
<p2 x="820" y="680"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="880" y="680"/>
|
||||
<p2 x="920" y="680"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="540" y="460"/>
|
||||
<p2 x="660" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="460"/>
|
||||
<p2 x="700" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="300"/>
|
||||
<p2 x="700" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="620"/>
|
||||
<p2 x="700" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="780"/>
|
||||
<p2 x="700" y="780"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="540" y="240"/>
|
||||
<p2 x="580" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="880" y="400"/>
|
||||
<p2 x="920" y="400"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="180"/>
|
||||
<p2 x="600" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="180"/>
|
||||
<p2 x="640" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="180"/>
|
||||
<p2 x="680" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="340"/>
|
||||
<p2 x="700" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="500"/>
|
||||
<p2 x="700" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="660"/>
|
||||
<p2 x="820" y="660"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="660"/>
|
||||
<p2 x="700" y="660"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="280"/>
|
||||
<p2 x="700" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="280"/>
|
||||
<p2 x="800" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="440"/>
|
||||
<p2 x="700" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="440"/>
|
||||
<p2 x="780" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="800" y="440"/>
|
||||
<p2 x="820" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="600"/>
|
||||
<p2 x="780" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="760"/>
|
||||
<p2 x="780" y="760"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="380"/>
|
||||
<p2 x="700" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="380"/>
|
||||
<p2 x="820" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="540"/>
|
||||
<p2 x="700" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="700"/>
|
||||
<p2 x="820" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="700"/>
|
||||
<p2 x="700" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="180"/>
|
||||
<p2 x="640" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="240"/>
|
||||
<p2 x="640" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="280"/>
|
||||
<p2 x="640" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="640" y="440"/>
|
||||
<p2 x="640" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="800" y="280"/>
|
||||
<p2 x="800" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="800" y="440"/>
|
||||
<p2 x="800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="180"/>
|
||||
<p2 x="580" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="240"/>
|
||||
<p2 x="580" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="500"/>
|
||||
<p2 x="580" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="420"/>
|
||||
<p2 x="580" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="180"/>
|
||||
<p2 x="660" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="540"/>
|
||||
<p2 x="660" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="300"/>
|
||||
<p2 x="660" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="460"/>
|
||||
<p2 x="660" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="620"/>
|
||||
<p2 x="660" y="780"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="780"/>
|
||||
<p2 x="660" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="180"/>
|
||||
<p2 x="600" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="240"/>
|
||||
<p2 x="600" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="260"/>
|
||||
<p2 x="600" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="660"/>
|
||||
<p2 x="600" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="580"/>
|
||||
<p2 x="600" y="660"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="340"/>
|
||||
<p2 x="600" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="180"/>
|
||||
<p2 x="680" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="240"/>
|
||||
<p2 x="680" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="460"/>
|
||||
<p2 x="680" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="380"/>
|
||||
<p2 x="680" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="180"/>
|
||||
<p2 x="620" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="520"/>
|
||||
<p2 x="620" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="700"/>
|
||||
<p2 x="620" y="740"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="580"/>
|
||||
<p2 x="620" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="740"/>
|
||||
<p2 x="620" y="800"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="620" y="360"/>
|
||||
<p2 x="620" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="360"/>
|
||||
<p2 x="780" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="420"/>
|
||||
<p2 x="780" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="600"/>
|
||||
<p2 x="780" y="660"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="700"/>
|
||||
<p2 x="780" y="760"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
350
src/main/dig/combinatorial/FullSubRC.dig
Normal file
350
src/main/dig/combinatorial/FullSubRC.dig
Normal file
@ -0,0 +1,350 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S_0</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A_0</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B_0</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S_1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A_1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="220"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B_1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="260"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S_2</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="140"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A_2</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B_2</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="160"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S_3</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="40"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A_3</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="20"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B_3</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="60"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C_3</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="-20"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C_-1</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="300" y="420"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>FullSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>FullSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="220"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>FullSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>FullSub.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="20"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="300" y="320"/>
|
||||
<p2 x="400" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="320"/>
|
||||
<p2 x="500" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="300" y="160"/>
|
||||
<p2 x="340" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="160"/>
|
||||
<p2 x="400" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="300" y="260"/>
|
||||
<p2 x="340" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="260"/>
|
||||
<p2 x="400" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="100"/>
|
||||
<p2 x="500" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="300" y="420"/>
|
||||
<p2 x="380" y="420"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="300" y="360"/>
|
||||
<p2 x="340" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="360"/>
|
||||
<p2 x="400" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="200"/>
|
||||
<p2 x="500" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="40"/>
|
||||
<p2 x="540" y="40"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="40"/>
|
||||
<p2 x="400" y="40"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="300"/>
|
||||
<p2 x="500" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="140"/>
|
||||
<p2 x="540" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="140"/>
|
||||
<p2 x="400" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="240"/>
|
||||
<p2 x="540" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="240"/>
|
||||
<p2 x="400" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="-20"/>
|
||||
<p2 x="540" y="-20"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="340"/>
|
||||
<p2 x="540" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="340"/>
|
||||
<p2 x="400" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="300" y="20"/>
|
||||
<p2 x="400" y="20"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="20"/>
|
||||
<p2 x="500" y="20"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="300" y="120"/>
|
||||
<p2 x="400" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="120"/>
|
||||
<p2 x="500" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="300" y="220"/>
|
||||
<p2 x="400" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="220"/>
|
||||
<p2 x="500" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="300" y="60"/>
|
||||
<p2 x="340" y="60"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="60"/>
|
||||
<p2 x="400" y="60"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="340"/>
|
||||
<p2 x="340" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="240"/>
|
||||
<p2 x="340" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="140"/>
|
||||
<p2 x="340" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="40"/>
|
||||
<p2 x="340" y="60"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="300"/>
|
||||
<p2 x="500" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="200"/>
|
||||
<p2 x="500" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="100"/>
|
||||
<p2 x="500" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="-20"/>
|
||||
<p2 x="500" y="20"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="260"/>
|
||||
<p2 x="380" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="160"/>
|
||||
<p2 x="380" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="60"/>
|
||||
<p2 x="380" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="360"/>
|
||||
<p2 x="380" y="420"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
@ -19,7 +19,7 @@
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A</string>
|
||||
<string>$A$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="240"/>
|
||||
@ -30,7 +30,7 @@
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B</string>
|
||||
<string>$B$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="540" y="360"/>
|
||||
@ -41,7 +41,7 @@
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S</string>
|
||||
<string>$S$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="720" y="260"/>
|
||||
@ -52,7 +52,7 @@
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
<string>$C$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="720" y="340"/>
|
||||
|
@ -1,114 +1,114 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>XOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="620" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="620" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>A</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="500" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>B</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="500" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="720" y="260"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>BO</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="720" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="540" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="500" y="240"/>
|
||||
<p2 x="520" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="240"/>
|
||||
<p2 x="620" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="320"/>
|
||||
<p2 x="620" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="320"/>
|
||||
<p2 x="540" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="260"/>
|
||||
<p2 x="720" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="340"/>
|
||||
<p2 x="720" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="280"/>
|
||||
<p2 x="620" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="360"/>
|
||||
<p2 x="600" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="360"/>
|
||||
<p2 x="620" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="280"/>
|
||||
<p2 x="600" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="240"/>
|
||||
<p2 x="520" y="320"/>
|
||||
</wire>
|
||||
</wires>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>XOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="620" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="620" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$A$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="500" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$B$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="500" y="360"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$S$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="720" y="260"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>$BO$</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="720" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="540" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="500" y="240"/>
|
||||
<p2 x="520" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="240"/>
|
||||
<p2 x="620" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="320"/>
|
||||
<p2 x="620" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="320"/>
|
||||
<p2 x="540" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="260"/>
|
||||
<p2 x="720" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="340"/>
|
||||
<p2 x="720" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="280"/>
|
||||
<p2 x="620" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="500" y="360"/>
|
||||
<p2 x="600" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="360"/>
|
||||
<p2 x="620" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="280"/>
|
||||
<p2 x="600" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="240"/>
|
||||
<p2 x="520" y="320"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
@ -126,7 +126,7 @@ elem_RAMSinglePort_pin_d=Der bidirektionale Datenanschlu\u00DF.
|
||||
|
||||
elem_Counter=Z\u00E4hler
|
||||
elem_Add=Addierer
|
||||
elem_Sub=Subtraktor
|
||||
elem_Sub=Subtrahierer
|
||||
elem_Mul=Multiplikator
|
||||
elem_Comparator=Komparator
|
||||
|
||||
|
@ -18,7 +18,7 @@ public class TestExamples extends TestCase {
|
||||
private static final File examples=new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig");
|
||||
|
||||
public void testCombinatorial() throws Exception {
|
||||
assertEquals(19, scan(new File(examples, "combinatorial")));
|
||||
assertEquals(23, scan(new File(examples, "combinatorial")));
|
||||
}
|
||||
|
||||
public void testSequential() throws Exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user