logisim-stuff/digital/SAP-1/Control.dig
2019-06-23 10:38:11 -05:00

890 lines
19 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<circuit>
<version>1</version>
<attributes/>
<visualElements>
<visualElement>
<elementName>ROM</elementName>
<elementAttributes>
<entry>
<string>Bits</string>
<int>12</int>
</entry>
<entry>
<string>Data</string>
<data size="4">600,800,180</data>
</entry>
</elementAttributes>
<pos x="400" y="100"/>
</visualElement>
<visualElement>
<elementName>ROM</elementName>
<elementAttributes>
<entry>
<string>Bits</string>
<int>12</int>
</entry>
<entry>
<string>Data</string>
<data size="4">240,120</data>
</entry>
</elementAttributes>
<pos x="400" y="180"/>
</visualElement>
<visualElement>
<elementName>ROM</elementName>
<elementAttributes>
<entry>
<string>Bits</string>
<int>12</int>
</entry>
<entry>
<string>Data</string>
<data size="4">240,102,24</data>
</entry>
</elementAttributes>
<pos x="400" y="260"/>
</visualElement>
<visualElement>
<elementName>ROM</elementName>
<elementAttributes>
<entry>
<string>Bits</string>
<int>12</int>
</entry>
<entry>
<string>Data</string>
<data size="4">240,102,2c</data>
</entry>
</elementAttributes>
<pos x="400" y="340"/>
</visualElement>
<visualElement>
<elementName>ROM</elementName>
<elementAttributes>
<entry>
<string>Bits</string>
<int>12</int>
</entry>
<entry>
<string>Data</string>
<data size="4">11</data>
</entry>
</elementAttributes>
<pos x="400" y="420"/>
</visualElement>
<visualElement>
<elementName>Counter</elementName>
<elementAttributes>
<entry>
<string>Bits</string>
<int>2</int>
</entry>
</elementAttributes>
<pos x="240" y="100"/>
</visualElement>
<visualElement>
<elementName>Comparator</elementName>
<elementAttributes>
<entry>
<string>Bits</string>
<int>2</int>
</entry>
</elementAttributes>
<pos x="160" y="220"/>
</visualElement>
<visualElement>
<elementName>Const</elementName>
<elementAttributes>
<entry>
<string>Value</string>
<int>3</int>
</entry>
<entry>
<string>Bits</string>
<int>2</int>
</entry>
</elementAttributes>
<pos x="140" y="240"/>
</visualElement>
<visualElement>
<elementName>Or</elementName>
<elementAttributes/>
<pos x="160" y="100"/>
</visualElement>
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>clr</string>
</entry>
</elementAttributes>
<pos x="140" y="100"/>
</visualElement>
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>C</string>
</entry>
</elementAttributes>
<pos x="140" y="60"/>
</visualElement>
<visualElement>
<elementName>In</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>op</string>
</entry>
<entry>
<string>Bits</string>
<int>4</int>
</entry>
</elementAttributes>
<pos x="60" y="280"/>
</visualElement>
<visualElement>
<elementName>T_FF</elementName>
<elementAttributes/>
<pos x="-20" y="500"/>
</visualElement>
<visualElement>
<elementName>Decoder</elementName>
<elementAttributes/>
<pos x="40" y="440"/>
</visualElement>
<visualElement>
<elementName>Splitter</elementName>
<elementAttributes>
<entry>
<string>Input Splitting</string>
<string>12</string>
</entry>
<entry>
<string>Output Splitting</string>
<string>1*12</string>
</entry>
</elementAttributes>
<pos x="560" y="160"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>LO</string>
</entry>
</elementAttributes>
<pos x="800" y="160"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>PA</string>
</entry>
</elementAttributes>
<pos x="800" y="240"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>AO</string>
</entry>
</elementAttributes>
<pos x="800" y="280"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>LB</string>
</entry>
</elementAttributes>
<pos x="800" y="200"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>PAR</string>
</entry>
</elementAttributes>
<pos x="800" y="320"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>LAR</string>
</entry>
</elementAttributes>
<pos x="800" y="360"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>PIRA</string>
</entry>
</elementAttributes>
<pos x="800" y="400"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>LIR</string>
</entry>
</elementAttributes>
<pos x="800" y="440"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>PM</string>
</entry>
</elementAttributes>
<pos x="800" y="480"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>LMAR</string>
</entry>
</elementAttributes>
<pos x="800" y="520"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>PPCA</string>
</entry>
</elementAttributes>
<pos x="800" y="560"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>PCC</string>
</entry>
</elementAttributes>
<pos x="800" y="600"/>
</visualElement>
<visualElement>
<elementName>PullDown</elementName>
<elementAttributes>
<entry>
<string>Bits</string>
<int>12</int>
</entry>
</elementAttributes>
<pos x="520" y="180"/>
</visualElement>
<visualElement>
<elementName>Decoder</elementName>
<elementAttributes>
<entry>
<string>Selector Bits</string>
<int>3</int>
</entry>
</elementAttributes>
<pos x="160" y="440"/>
</visualElement>
<visualElement>
<elementName>Driver</elementName>
<elementAttributes>
<entry>
<string>flipSelPos</string>
<boolean>true</boolean>
</entry>
</elementAttributes>
<pos x="360" y="220"/>
</visualElement>
<visualElement>
<elementName>Driver</elementName>
<elementAttributes/>
<pos x="360" y="300"/>
</visualElement>
<visualElement>
<elementName>Driver</elementName>
<elementAttributes/>
<pos x="360" y="380"/>
</visualElement>
<visualElement>
<elementName>Driver</elementName>
<elementAttributes/>
<pos x="360" y="460"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
<elementAttributes>
<entry>
<string>Label</string>
<string>HALT</string>
</entry>
</elementAttributes>
<pos x="800" y="640"/>
</visualElement>
<visualElement>
<elementName>Splitter</elementName>
<elementAttributes>
<entry>
<string>Input Splitting</string>
<string>4</string>
</entry>
<entry>
<string>Output Splitting</string>
<string>3</string>
</entry>
</elementAttributes>
<pos x="160" y="600"/>
</visualElement>
</visualElements>
<wires>
<wire>
<p1 x="160" y="320"/>
<p2 x="280" y="320"/>
</wire>
<wire>
<p1 x="720" y="320"/>
<p2 x="800" y="320"/>
</wire>
<wire>
<p1 x="580" y="320"/>
<p2 x="640" y="320"/>
</wire>
<wire>
<p1 x="720" y="640"/>
<p2 x="800" y="640"/>
</wire>
<wire>
<p1 x="320" y="260"/>
<p2 x="400" y="260"/>
</wire>
<wire>
<p1 x="580" y="260"/>
<p2 x="700" y="260"/>
</wire>
<wire>
<p1 x="780" y="520"/>
<p2 x="800" y="520"/>
</wire>
<wire>
<p1 x="600" y="520"/>
<p2 x="760" y="520"/>
</wire>
<wire>
<p1 x="200" y="520"/>
<p2 x="560" y="520"/>
</wire>
<wire>
<p1 x="460" y="200"/>
<p2 x="480" y="200"/>
</wire>
<wire>
<p1 x="780" y="200"/>
<p2 x="800" y="200"/>
</wire>
<wire>
<p1 x="580" y="200"/>
<p2 x="760" y="200"/>
</wire>
<wire>
<p1 x="140" y="140"/>
<p2 x="160" y="140"/>
</wire>
<wire>
<p1 x="220" y="140"/>
<p2 x="260" y="140"/>
</wire>
<wire>
<p1 x="340" y="140"/>
<p2 x="400" y="140"/>
</wire>
<wire>
<p1 x="200" y="460"/>
<p2 x="220" y="460"/>
</wire>
<wire>
<p1 x="280" y="460"/>
<p2 x="340" y="460"/>
</wire>
<wire>
<p1 x="380" y="460"/>
<p2 x="400" y="460"/>
</wire>
<wire>
<p1 x="-40" y="400"/>
<p2 x="140" y="400"/>
</wire>
<wire>
<p1 x="680" y="400"/>
<p2 x="800" y="400"/>
</wire>
<wire>
<p1 x="180" y="400"/>
<p2 x="360" y="400"/>
</wire>
<wire>
<p1 x="580" y="340"/>
<p2 x="620" y="340"/>
</wire>
<wire>
<p1 x="200" y="340"/>
<p2 x="300" y="340"/>
</wire>
<wire>
<p1 x="320" y="340"/>
<p2 x="400" y="340"/>
</wire>
<wire>
<p1 x="460" y="280"/>
<p2 x="480" y="280"/>
</wire>
<wire>
<p1 x="740" y="280"/>
<p2 x="800" y="280"/>
</wire>
<wire>
<p1 x="580" y="280"/>
<p2 x="680" y="280"/>
</wire>
<wire>
<p1 x="60" y="280"/>
<p2 x="100" y="280"/>
</wire>
<wire>
<p1 x="360" y="280"/>
<p2 x="420" y="280"/>
</wire>
<wire>
<p1 x="740" y="600"/>
<p2 x="800" y="600"/>
</wire>
<wire>
<p1 x="100" y="600"/>
<p2 x="160" y="600"/>
</wire>
<wire>
<p1 x="140" y="220"/>
<p2 x="160" y="220"/>
</wire>
<wire>
<p1 x="580" y="220"/>
<p2 x="740" y="220"/>
</wire>
<wire>
<p1 x="380" y="220"/>
<p2 x="400" y="220"/>
</wire>
<wire>
<p1 x="300" y="220"/>
<p2 x="340" y="220"/>
</wire>
<wire>
<p1 x="580" y="540"/>
<p2 x="740" y="540"/>
</wire>
<wire>
<p1 x="140" y="160"/>
<p2 x="240" y="160"/>
</wire>
<wire>
<p1 x="280" y="160"/>
<p2 x="340" y="160"/>
</wire>
<wire>
<p1 x="480" y="160"/>
<p2 x="520" y="160"/>
</wire>
<wire>
<p1 x="580" y="160"/>
<p2 x="800" y="160"/>
</wire>
<wire>
<p1 x="520" y="160"/>
<p2 x="560" y="160"/>
</wire>
<wire>
<p1 x="640" y="480"/>
<p2 x="800" y="480"/>
</wire>
<wire>
<p1 x="200" y="480"/>
<p2 x="240" y="480"/>
</wire>
<wire>
<p1 x="80" y="480"/>
<p2 x="120" y="480"/>
</wire>
<wire>
<p1 x="300" y="100"/>
<p2 x="320" y="100"/>
</wire>
<wire>
<p1 x="140" y="100"/>
<p2 x="160" y="100"/>
</wire>
<wire>
<p1 x="220" y="100"/>
<p2 x="240" y="100"/>
</wire>
<wire>
<p1 x="320" y="100"/>
<p2 x="400" y="100"/>
</wire>
<wire>
<p1 x="320" y="420"/>
<p2 x="400" y="420"/>
</wire>
<wire>
<p1 x="460" y="360"/>
<p2 x="480" y="360"/>
</wire>
<wire>
<p1 x="220" y="360"/>
<p2 x="340" y="360"/>
</wire>
<wire>
<p1 x="700" y="360"/>
<p2 x="800" y="360"/>
</wire>
<wire>
<p1 x="580" y="360"/>
<p2 x="600" y="360"/>
</wire>
<wire>
<p1 x="360" y="360"/>
<p2 x="420" y="360"/>
</wire>
<wire>
<p1 x="140" y="300"/>
<p2 x="260" y="300"/>
</wire>
<wire>
<p1 x="580" y="300"/>
<p2 x="660" y="300"/>
</wire>
<wire>
<p1 x="380" y="300"/>
<p2 x="400" y="300"/>
</wire>
<wire>
<p1 x="140" y="240"/>
<p2 x="160" y="240"/>
</wire>
<wire>
<p1 x="220" y="240"/>
<p2 x="240" y="240"/>
</wire>
<wire>
<p1 x="760" y="240"/>
<p2 x="800" y="240"/>
</wire>
<wire>
<p1 x="580" y="240"/>
<p2 x="720" y="240"/>
</wire>
<wire>
<p1 x="760" y="560"/>
<p2 x="800" y="560"/>
</wire>
<wire>
<p1 x="560" y="560"/>
<p2 x="720" y="560"/>
</wire>
<wire>
<p1 x="-40" y="500"/>
<p2 x="-20" y="500"/>
</wire>
<wire>
<p1 x="40" y="500"/>
<p2 x="60" y="500"/>
</wire>
<wire>
<p1 x="620" y="500"/>
<p2 x="780" y="500"/>
</wire>
<wire>
<p1 x="200" y="500"/>
<p2 x="280" y="500"/>
</wire>
<wire>
<p1 x="140" y="180"/>
<p2 x="320" y="180"/>
</wire>
<wire>
<p1 x="580" y="180"/>
<p2 x="780" y="180"/>
</wire>
<wire>
<p1 x="320" y="180"/>
<p2 x="400" y="180"/>
</wire>
<wire>
<p1 x="460" y="440"/>
<p2 x="480" y="440"/>
</wire>
<wire>
<p1 x="80" y="440"/>
<p2 x="160" y="440"/>
</wire>
<wire>
<p1 x="660" y="440"/>
<p2 x="800" y="440"/>
</wire>
<wire>
<p1 x="460" y="120"/>
<p2 x="480" y="120"/>
</wire>
<wire>
<p1 x="220" y="120"/>
<p2 x="240" y="120"/>
</wire>
<wire>
<p1 x="140" y="60"/>
<p2 x="220" y="60"/>
</wire>
<wire>
<p1 x="240" y="380"/>
<p2 x="340" y="380"/>
</wire>
<wire>
<p1 x="120" y="380"/>
<p2 x="180" y="380"/>
</wire>
<wire>
<p1 x="380" y="380"/>
<p2 x="400" y="380"/>
</wire>
<wire>
<p1 x="320" y="100"/>
<p2 x="320" y="180"/>
</wire>
<wire>
<p1 x="320" y="340"/>
<p2 x="320" y="420"/>
</wire>
<wire>
<p1 x="320" y="180"/>
<p2 x="320" y="260"/>
</wire>
<wire>
<p1 x="320" y="260"/>
<p2 x="320" y="340"/>
</wire>
<wire>
<p1 x="640" y="320"/>
<p2 x="640" y="480"/>
</wire>
<wire>
<p1 x="260" y="140"/>
<p2 x="260" y="300"/>
</wire>
<wire>
<p1 x="580" y="380"/>
<p2 x="580" y="540"/>
</wire>
<wire>
<p1 x="520" y="160"/>
<p2 x="520" y="180"/>
</wire>
<wire>
<p1 x="200" y="340"/>
<p2 x="200" y="440"/>
</wire>
<wire>
<p1 x="140" y="180"/>
<p2 x="140" y="220"/>
</wire>
<wire>
<p1 x="140" y="140"/>
<p2 x="140" y="160"/>
</wire>
<wire>
<p1 x="140" y="300"/>
<p2 x="140" y="400"/>
</wire>
<wire>
<p1 x="780" y="180"/>
<p2 x="780" y="200"/>
</wire>
<wire>
<p1 x="780" y="500"/>
<p2 x="780" y="520"/>
</wire>
<wire>
<p1 x="720" y="240"/>
<p2 x="720" y="320"/>
</wire>
<wire>
<p1 x="720" y="560"/>
<p2 x="720" y="640"/>
</wire>
<wire>
<p1 x="340" y="140"/>
<p2 x="340" y="160"/>
</wire>
<wire>
<p1 x="340" y="300"/>
<p2 x="340" y="360"/>
</wire>
<wire>
<p1 x="660" y="300"/>
<p2 x="660" y="440"/>
</wire>
<wire>
<p1 x="280" y="160"/>
<p2 x="280" y="320"/>
</wire>
<wire>
<p1 x="280" y="460"/>
<p2 x="280" y="500"/>
</wire>
<wire>
<p1 x="600" y="360"/>
<p2 x="600" y="520"/>
</wire>
<wire>
<p1 x="220" y="60"/>
<p2 x="220" y="100"/>
</wire>
<wire>
<p1 x="220" y="120"/>
<p2 x="220" y="140"/>
</wire>
<wire>
<p1 x="220" y="360"/>
<p2 x="220" y="460"/>
</wire>
<wire>
<p1 x="480" y="120"/>
<p2 x="480" y="160"/>
</wire>
<wire>
<p1 x="480" y="280"/>
<p2 x="480" y="360"/>
</wire>
<wire>
<p1 x="480" y="360"/>
<p2 x="480" y="440"/>
</wire>
<wire>
<p1 x="480" y="160"/>
<p2 x="480" y="200"/>
</wire>
<wire>
<p1 x="480" y="200"/>
<p2 x="480" y="280"/>
</wire>
<wire>
<p1 x="160" y="320"/>
<p2 x="160" y="440"/>
</wire>
<wire>
<p1 x="740" y="220"/>
<p2 x="740" y="280"/>
</wire>
<wire>
<p1 x="740" y="540"/>
<p2 x="740" y="600"/>
</wire>
<wire>
<p1 x="100" y="280"/>
<p2 x="100" y="600"/>
</wire>
<wire>
<p1 x="420" y="280"/>
<p2 x="420" y="360"/>
</wire>
<wire>
<p1 x="-40" y="400"/>
<p2 x="-40" y="500"/>
</wire>
<wire>
<p1 x="680" y="280"/>
<p2 x="680" y="400"/>
</wire>
<wire>
<p1 x="360" y="360"/>
<p2 x="360" y="400"/>
</wire>
<wire>
<p1 x="360" y="240"/>
<p2 x="360" y="280"/>
</wire>
<wire>
<p1 x="360" y="400"/>
<p2 x="360" y="440"/>
</wire>
<wire>
<p1 x="300" y="220"/>
<p2 x="300" y="340"/>
</wire>
<wire>
<p1 x="620" y="340"/>
<p2 x="620" y="500"/>
</wire>
<wire>
<p1 x="240" y="160"/>
<p2 x="240" y="240"/>
</wire>
<wire>
<p1 x="240" y="380"/>
<p2 x="240" y="480"/>
</wire>
<wire>
<p1 x="560" y="520"/>
<p2 x="560" y="560"/>
</wire>
<wire>
<p1 x="180" y="380"/>
<p2 x="180" y="400"/>
</wire>
<wire>
<p1 x="180" y="580"/>
<p2 x="180" y="600"/>
</wire>
<wire>
<p1 x="760" y="200"/>
<p2 x="760" y="240"/>
</wire>
<wire>
<p1 x="760" y="520"/>
<p2 x="760" y="560"/>
</wire>
<wire>
<p1 x="120" y="380"/>
<p2 x="120" y="480"/>
</wire>
<wire>
<p1 x="60" y="480"/>
<p2 x="60" y="500"/>
</wire>
<wire>
<p1 x="700" y="260"/>
<p2 x="700" y="360"/>
</wire>
</wires>
<measurementOrdering/>
</circuit>