mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-13 14:56:29 -04:00
added some examples
This commit is contained in:
parent
5e3890b09c
commit
dd7e5f893f
178
src/main/dig/sequential/D.dig
Normal file
178
src/main/dig/sequential/D.dig
Normal file
@ -0,0 +1,178 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>D</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1240" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1240" y="540"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1580" y="480"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1580" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1280" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="480"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1340" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1580" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1260" y="640"/>
|
||||
<p2 x="1340" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1440" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="580"/>
|
||||
<p2 x="1440" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="600"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="600"/>
|
||||
<p2 x="1340" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="600"/>
|
||||
<p2 x="1580" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="440"/>
|
||||
<p2 x="1340" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1240" y="440"/>
|
||||
<p2 x="1260" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1260" y="440"/>
|
||||
<p2 x="1280" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="620"/>
|
||||
<p2 x="1440" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="460"/>
|
||||
<p2 x="1440" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1240" y="540"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="540"/>
|
||||
<p2 x="1320" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1420" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1260" y="440"/>
|
||||
<p2 x="1260" y="640"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
301
src/main/dig/sequential/D_MS.dig
Normal file
301
src/main/dig/sequential/D_MS.dig
Normal file
@ -0,0 +1,301 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>D</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1240" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1240" y="700"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>rotation</string>
|
||||
<rotation rotation="3"/>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1280" y="520"/>
|
||||
<rotate>3</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1840" y="480"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1700" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1700" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1600" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1600" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1420" y="700"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1840" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="560"/>
|
||||
<p2 x="1800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="560"/>
|
||||
<p2 x="1680" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="480"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1340" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1780" y="480"/>
|
||||
<p2 x="1800" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1580" y="480"/>
|
||||
<p2 x="1600" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="480"/>
|
||||
<p2 x="1840" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="640"/>
|
||||
<p2 x="1600" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1280" y="640"/>
|
||||
<p2 x="1340" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1440" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="500"/>
|
||||
<p2 x="1700" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="580"/>
|
||||
<p2 x="1440" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="580"/>
|
||||
<p2 x="1700" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="600"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="600"/>
|
||||
<p2 x="1340" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1780" y="600"/>
|
||||
<p2 x="1800" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1580" y="600"/>
|
||||
<p2 x="1600" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="600"/>
|
||||
<p2 x="1840" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1240" y="440"/>
|
||||
<p2 x="1280" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="440"/>
|
||||
<p2 x="1600" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1280" y="440"/>
|
||||
<p2 x="1340" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="620"/>
|
||||
<p2 x="1440" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1660" y="620"/>
|
||||
<p2 x="1700" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="460"/>
|
||||
<p2 x="1440" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1660" y="460"/>
|
||||
<p2 x="1700" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1240" y="700"/>
|
||||
<p2 x="1320" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1460" y="700"/>
|
||||
<p2 x="1580" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="700"/>
|
||||
<p2 x="1420" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1280" y="440"/>
|
||||
<p2 x="1280" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1280" y="560"/>
|
||||
<p2 x="1280" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="560"/>
|
||||
<p2 x="1680" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="500"/>
|
||||
<p2 x="1680" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="440"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="600"/>
|
||||
<p2 x="1540" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="560"/>
|
||||
<p2 x="1800" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="480"/>
|
||||
<p2 x="1800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1320" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="600"/>
|
||||
<p2 x="1320" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1580" y="480"/>
|
||||
<p2 x="1580" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1580" y="600"/>
|
||||
<p2 x="1580" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1420" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
224
src/main/dig/sequential/D_T.dig
Normal file
224
src/main/dig/sequential/D_T.dig
Normal file
@ -0,0 +1,224 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>D</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1060" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1060" y="540"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1580" y="480"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1580" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1200" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1240" y="520"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Delay</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1180" y="520"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1120" y="520"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="480"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1340" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1580" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1080" y="640"/>
|
||||
<p2 x="1340" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1100" y="560"/>
|
||||
<p2 x="1240" y="560"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1440" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="580"/>
|
||||
<p2 x="1440" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="600"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="600"/>
|
||||
<p2 x="1340" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="600"/>
|
||||
<p2 x="1580" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1240" y="440"/>
|
||||
<p2 x="1340" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1060" y="440"/>
|
||||
<p2 x="1080" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1080" y="440"/>
|
||||
<p2 x="1200" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1100" y="520"/>
|
||||
<p2 x="1120" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1220" y="520"/>
|
||||
<p2 x="1240" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1160" y="520"/>
|
||||
<p2 x="1180" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="620"/>
|
||||
<p2 x="1440" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="460"/>
|
||||
<p2 x="1440" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="540"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1060" y="540"/>
|
||||
<p2 x="1100" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="540"/>
|
||||
<p2 x="1320" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1080" y="440"/>
|
||||
<p2 x="1080" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1420" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1100" y="520"/>
|
||||
<p2 x="1100" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1100" y="540"/>
|
||||
<p2 x="1100" y="560"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
275
src/main/dig/sequential/JK-T.dig
Normal file
275
src/main/dig/sequential/JK-T.dig
Normal file
@ -0,0 +1,275 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="600" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="480" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="160"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="800" y="180"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="800" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>J</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>Default</string>
|
||||
<int>1</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="440" y="340"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="940" y="200"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="940" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Delay</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="540" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="440" y="260"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>K</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>Default</string>
|
||||
<int>1</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="440" y="180"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="780" y="240"/>
|
||||
<p2 x="900" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="280"/>
|
||||
<p2 x="900" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="880" y="320"/>
|
||||
<p2 x="900" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="320"/>
|
||||
<p2 x="700" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="900" y="320"/>
|
||||
<p2 x="940" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="160"/>
|
||||
<p2 x="700" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="260"/>
|
||||
<p2 x="460" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="660" y="260"/>
|
||||
<p2 x="680" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="880" y="200"/>
|
||||
<p2 x="900" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="200"/>
|
||||
<p2 x="700" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="900" y="200"/>
|
||||
<p2 x="940" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="360"/>
|
||||
<p2 x="700" y="360"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="140"/>
|
||||
<p2 x="900" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="300"/>
|
||||
<p2 x="800" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="240"/>
|
||||
<p2 x="480" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="520" y="240"/>
|
||||
<p2 x="540" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="240"/>
|
||||
<p2 x="600" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="340"/>
|
||||
<p2 x="800" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="340"/>
|
||||
<p2 x="700" y="340"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="760" y="180"/>
|
||||
<p2 x="800" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="440" y="180"/>
|
||||
<p2 x="700" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="280"/>
|
||||
<p2 x="600" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="220"/>
|
||||
<p2 x="800" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="380"/>
|
||||
<p2 x="900" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="900" y="280"/>
|
||||
<p2 x="900" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="900" y="140"/>
|
||||
<p2 x="900" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="900" y="200"/>
|
||||
<p2 x="900" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="900" y="320"/>
|
||||
<p2 x="900" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="200"/>
|
||||
<p2 x="680" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="140"/>
|
||||
<p2 x="680" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="360"/>
|
||||
<p2 x="680" y="380"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="680" y="260"/>
|
||||
<p2 x="680" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="240"/>
|
||||
<p2 x="460" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="260"/>
|
||||
<p2 x="460" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="280"/>
|
||||
<p2 x="780" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="220"/>
|
||||
<p2 x="780" y="240"/>
|
||||
</wire>
|
||||
</wires>
|
||||
<measurementOrdering>
|
||||
<string>C</string>
|
||||
<string>J</string>
|
||||
<string>K</string>
|
||||
<string>Dif</string>
|
||||
<string>Q</string>
|
||||
<string>~Q</string>
|
||||
</measurementOrdering>
|
||||
</circuit>
|
346
src/main/dig/sequential/JK_MS.dig
Normal file
346
src/main/dig/sequential/JK_MS.dig
Normal file
@ -0,0 +1,346 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="160" y="80"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Inputs</string>
|
||||
<int>3</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="160" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="180" y="180"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>J</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>Default</string>
|
||||
<int>1</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="100" y="100"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="100" y="180"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="100"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="260" y="220"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="80"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="400" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="500" y="100"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="500" y="220"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="620" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="620" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>K</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>Default</string>
|
||||
<int>1</int>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="100" y="260"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="240" y="200"/>
|
||||
<p2 x="360" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="160"/>
|
||||
<p2 x="360" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="160"/>
|
||||
<p2 x="600" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="200"/>
|
||||
<p2 x="600" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="320"/>
|
||||
<p2 x="480" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="240"/>
|
||||
<p2 x="400" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="240"/>
|
||||
<p2 x="360" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="240"/>
|
||||
<p2 x="160" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="240"/>
|
||||
<p2 x="600" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="240"/>
|
||||
<p2 x="620" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="80"/>
|
||||
<p2 x="400" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="80"/>
|
||||
<p2 x="160" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="260"/>
|
||||
<p2 x="260" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="260"/>
|
||||
<p2 x="500" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="100" y="260"/>
|
||||
<p2 x="160" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="100" y="100"/>
|
||||
<p2 x="160" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="100"/>
|
||||
<p2 x="260" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="100"/>
|
||||
<p2 x="500" y="100"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="100" y="180"/>
|
||||
<p2 x="140" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="220" y="180"/>
|
||||
<p2 x="380" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="180"/>
|
||||
<p2 x="180" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="40"/>
|
||||
<p2 x="480" y="40"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="120"/>
|
||||
<p2 x="160" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="340" y="120"/>
|
||||
<p2 x="360" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="120"/>
|
||||
<p2 x="400" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="580" y="120"/>
|
||||
<p2 x="600" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="120"/>
|
||||
<p2 x="620" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="280"/>
|
||||
<p2 x="400" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="280"/>
|
||||
<p2 x="160" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="140"/>
|
||||
<p2 x="260" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="140"/>
|
||||
<p2 x="500" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="220"/>
|
||||
<p2 x="260" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="220"/>
|
||||
<p2 x="500" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="40"/>
|
||||
<p2 x="480" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="200"/>
|
||||
<p2 x="480" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="140"/>
|
||||
<p2 x="480" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="480" y="220"/>
|
||||
<p2 x="480" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="200"/>
|
||||
<p2 x="240" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="240" y="140"/>
|
||||
<p2 x="240" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="80"/>
|
||||
<p2 x="360" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="200"/>
|
||||
<p2 x="360" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="240"/>
|
||||
<p2 x="360" y="280"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="360" y="120"/>
|
||||
<p2 x="360" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="200"/>
|
||||
<p2 x="600" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="600" y="120"/>
|
||||
<p2 x="600" y="160"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="120"/>
|
||||
<p2 x="140" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="40"/>
|
||||
<p2 x="140" y="80"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="280"/>
|
||||
<p2 x="140" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="180"/>
|
||||
<p2 x="140" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="120"/>
|
||||
<p2 x="380" y="180"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="380" y="180"/>
|
||||
<p2 x="380" y="240"/>
|
||||
</wire>
|
||||
</wires>
|
||||
<measurementOrdering>
|
||||
<string>C</string>
|
||||
<string>J</string>
|
||||
<string>K</string>
|
||||
<string>Q</string>
|
||||
<string>~Q</string>
|
||||
</measurementOrdering>
|
||||
</circuit>
|
119
src/main/dig/sequential/RS.dig
Normal file
119
src/main/dig/sequential/RS.dig
Normal file
@ -0,0 +1,119 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="740" y="230"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="740" y="300"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>R</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="230"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="700" y="320"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="820" y="240"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="820" y="310"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="730" y="290"/>
|
||||
<p2 x="790" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="790" y="290"/>
|
||||
<p2 x="730" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="700" y="320"/>
|
||||
<p2 x="740" y="320"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="240"/>
|
||||
<p2 x="790" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="790" y="240"/>
|
||||
<p2 x="820" y="240"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="780" y="310"/>
|
||||
<p2 x="790" y="310"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="790" y="310"/>
|
||||
<p2 x="820" y="310"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="700" y="230"/>
|
||||
<p2 x="740" y="230"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="730" y="250"/>
|
||||
<p2 x="740" y="250"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="730" y="300"/>
|
||||
<p2 x="740" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="790" y="240"/>
|
||||
<p2 x="790" y="260"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="790" y="290"/>
|
||||
<p2 x="790" y="310"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="730" y="290"/>
|
||||
<p2 x="730" y="300"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="730" y="250"/>
|
||||
<p2 x="730" y="260"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
171
src/main/dig/sequential/RS_C.dig
Normal file
171
src/main/dig/sequential/RS_C.dig
Normal file
@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="640"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="540"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1560" y="480"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1560" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>R</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="640"/>
|
||||
<p2 x="1340" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="480"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1340" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1560" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1440" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="580"/>
|
||||
<p2 x="1440" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="440"/>
|
||||
<p2 x="1340" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="600"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="600"/>
|
||||
<p2 x="1340" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="600"/>
|
||||
<p2 x="1560" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="620"/>
|
||||
<p2 x="1440" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="460"/>
|
||||
<p2 x="1440" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="540"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="540"/>
|
||||
<p2 x="1320" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1420" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
289
src/main/dig/sequential/RS_MS.dig
Normal file
289
src/main/dig/sequential/RS_MS.dig
Normal file
@ -0,0 +1,289 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="540"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1820" y="480"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1820" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>R</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="640"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1700" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1700" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1600" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1600" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1360" y="540"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="560"/>
|
||||
<p2 x="1800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="560"/>
|
||||
<p2 x="1680" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="640"/>
|
||||
<p2 x="1340" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="640"/>
|
||||
<p2 x="1600" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="480"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1340" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1780" y="480"/>
|
||||
<p2 x="1800" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1580" y="480"/>
|
||||
<p2 x="1600" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="480"/>
|
||||
<p2 x="1820" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1440" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="500"/>
|
||||
<p2 x="1700" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="580"/>
|
||||
<p2 x="1440" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="580"/>
|
||||
<p2 x="1700" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="440"/>
|
||||
<p2 x="1340" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="440"/>
|
||||
<p2 x="1600" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="600"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="600"/>
|
||||
<p2 x="1340" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1780" y="600"/>
|
||||
<p2 x="1800" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1580" y="600"/>
|
||||
<p2 x="1600" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="600"/>
|
||||
<p2 x="1820" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="620"/>
|
||||
<p2 x="1440" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1660" y="620"/>
|
||||
<p2 x="1700" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="460"/>
|
||||
<p2 x="1440" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1660" y="460"/>
|
||||
<p2 x="1700" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="540"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="540"/>
|
||||
<p2 x="1580" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="540"/>
|
||||
<p2 x="1360" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="560"/>
|
||||
<p2 x="1680" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1680" y="500"/>
|
||||
<p2 x="1680" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="440"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="600"/>
|
||||
<p2 x="1540" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="540"/>
|
||||
<p2 x="1320" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="480"/>
|
||||
<p2 x="1800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="560"/>
|
||||
<p2 x="1800" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1420" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1580" y="480"/>
|
||||
<p2 x="1580" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1580" y="540"/>
|
||||
<p2 x="1580" y="600"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
149
src/main/dig/sequential/RS_MS_Simp.dig
Normal file
149
src/main/dig/sequential/RS_MS_Simp.dig
Normal file
@ -0,0 +1,149 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>R</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="480"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="540"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1560" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>~Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1560" y="480"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>S</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1300" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>RS_C.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>RS_C.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1460" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1360" y="540"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="1300" y="480"/>
|
||||
<p2 x="1340" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="480"/>
|
||||
<p2 x="1460" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1560" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="440"/>
|
||||
<p2 x="1340" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="440"/>
|
||||
<p2 x="1460" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="440"/>
|
||||
<p2 x="1560" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1300" y="540"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="540"/>
|
||||
<p2 x="1440" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="540"/>
|
||||
<p2 x="1360" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="460"/>
|
||||
<p2 x="1340" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="460"/>
|
||||
<p2 x="1420" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1440" y="460"/>
|
||||
<p2 x="1460" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="460"/>
|
||||
<p2 x="1540" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1440" y="460"/>
|
||||
<p2 x="1440" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="460"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="460"/>
|
||||
<p2 x="1320" y="540"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="460"/>
|
||||
<p2 x="1420" y="480"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
411
src/main/dig/sequential/multip_D_notWorking.dig
Normal file
411
src/main/dig/sequential/multip_D_notWorking.dig
Normal file
@ -0,0 +1,411 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1440" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>D</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1240" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>C</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="1240" y="700"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1340" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1280" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1820" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1820" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes>
|
||||
<entry>
|
||||
<string>Label</string>
|
||||
<string>Q</string>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="2340" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1720" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1720" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="1660" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="2200" y="460"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>NOr</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="2200" y="580"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="2100" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>And</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="2100" y="600"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Not</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="2040" y="440"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="560"/>
|
||||
<p2 x="1920" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1920" y="560"/>
|
||||
<p2 x="1800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2180" y="560"/>
|
||||
<p2 x="2300" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2300" y="560"/>
|
||||
<p2 x="2180" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="480"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1340" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1900" y="480"/>
|
||||
<p2 x="1920" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1700" y="480"/>
|
||||
<p2 x="1720" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2280" y="480"/>
|
||||
<p2 x="2300" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2080" y="480"/>
|
||||
<p2 x="2100" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1260" y="640"/>
|
||||
<p2 x="1340" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1640" y="640"/>
|
||||
<p2 x="1720" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2020" y="640"/>
|
||||
<p2 x="2100" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1440" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="500"/>
|
||||
<p2 x="1820" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2180" y="500"/>
|
||||
<p2 x="2200" y="500"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="580"/>
|
||||
<p2 x="1440" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="580"/>
|
||||
<p2 x="1820" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2180" y="580"/>
|
||||
<p2 x="2200" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1520" y="600"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="600"/>
|
||||
<p2 x="1340" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1900" y="600"/>
|
||||
<p2 x="1920" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1700" y="600"/>
|
||||
<p2 x="1720" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2280" y="600"/>
|
||||
<p2 x="2300" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2080" y="600"/>
|
||||
<p2 x="2100" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="440"/>
|
||||
<p2 x="1340" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1240" y="440"/>
|
||||
<p2 x="1260" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1700" y="440"/>
|
||||
<p2 x="1720" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="440"/>
|
||||
<p2 x="1640" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2080" y="440"/>
|
||||
<p2 x="2100" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1920" y="440"/>
|
||||
<p2 x="2020" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2300" y="440"/>
|
||||
<p2 x="2340" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1260" y="440"/>
|
||||
<p2 x="1280" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1640" y="440"/>
|
||||
<p2 x="1660" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2020" y="440"/>
|
||||
<p2 x="2040" y="440"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="620"/>
|
||||
<p2 x="1440" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1780" y="620"/>
|
||||
<p2 x="1820" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2160" y="620"/>
|
||||
<p2 x="2200" y="620"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1400" y="460"/>
|
||||
<p2 x="1440" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1780" y="460"/>
|
||||
<p2 x="1820" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2160" y="460"/>
|
||||
<p2 x="2200" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1240" y="700"/>
|
||||
<p2 x="1320" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="700"/>
|
||||
<p2 x="1700" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1700" y="700"/>
|
||||
<p2 x="2080" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2080" y="480"/>
|
||||
<p2 x="2080" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2080" y="600"/>
|
||||
<p2 x="2080" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1920" y="440"/>
|
||||
<p2 x="1920" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1920" y="560"/>
|
||||
<p2 x="1920" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1920" y="480"/>
|
||||
<p2 x="1920" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1700" y="480"/>
|
||||
<p2 x="1700" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1700" y="600"/>
|
||||
<p2 x="1700" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="440"/>
|
||||
<p2 x="1540" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="560"/>
|
||||
<p2 x="1540" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1540" y="480"/>
|
||||
<p2 x="1540" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2180" y="560"/>
|
||||
<p2 x="2180" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2180" y="500"/>
|
||||
<p2 x="2180" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2020" y="440"/>
|
||||
<p2 x="2020" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="560"/>
|
||||
<p2 x="1800" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1800" y="500"/>
|
||||
<p2 x="1800" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1640" y="440"/>
|
||||
<p2 x="1640" y="640"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="480"/>
|
||||
<p2 x="1320" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1320" y="600"/>
|
||||
<p2 x="1320" y="700"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2300" y="440"/>
|
||||
<p2 x="2300" y="480"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2300" y="560"/>
|
||||
<p2 x="2300" y="600"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="2300" y="480"/>
|
||||
<p2 x="2300" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="560"/>
|
||||
<p2 x="1420" y="580"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1420" y="500"/>
|
||||
<p2 x="1420" y="520"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1260" y="440"/>
|
||||
<p2 x="1260" y="640"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
96
src/main/dig/sequential/multip_D_working.dig
Normal file
96
src/main/dig/sequential/multip_D_working.dig
Normal file
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>D_MS.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="200" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>D_MS.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="340" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>D_MS.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="480" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="140" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="600" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="140" y="200"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="260" y="120"/>
|
||||
<p2 x="340" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="400" y="120"/>
|
||||
<p2 x="480" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="540" y="120"/>
|
||||
<p2 x="600" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="120"/>
|
||||
<p2 x="200" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="200"/>
|
||||
<p2 x="180" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="200"/>
|
||||
<p2 x="460" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="200"/>
|
||||
<p2 x="320" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="140"/>
|
||||
<p2 x="200" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="140"/>
|
||||
<p2 x="340" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="140"/>
|
||||
<p2 x="480" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="140"/>
|
||||
<p2 x="320" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="140"/>
|
||||
<p2 x="180" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="140"/>
|
||||
<p2 x="460" y="200"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
96
src/main/dig/sequential/multip_D_working_T.dig
Normal file
96
src/main/dig/sequential/multip_D_working_T.dig
Normal file
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<circuit>
|
||||
<version>1</version>
|
||||
<visualElements>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="140" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>Out</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="600" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>In</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="140" y="200"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>D_T.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="200" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>D_T.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="340" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
<visualElement>
|
||||
<elementName>D_T.dig</elementName>
|
||||
<elementAttributes/>
|
||||
<pos x="480" y="120"/>
|
||||
<rotate>0</rotate>
|
||||
</visualElement>
|
||||
</visualElements>
|
||||
<wires>
|
||||
<wire>
|
||||
<p1 x="260" y="120"/>
|
||||
<p2 x="340" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="400" y="120"/>
|
||||
<p2 x="480" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="540" y="120"/>
|
||||
<p2 x="600" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="120"/>
|
||||
<p2 x="200" y="120"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="140" y="200"/>
|
||||
<p2 x="180" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="200"/>
|
||||
<p2 x="460" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="200"/>
|
||||
<p2 x="320" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="140"/>
|
||||
<p2 x="200" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="140"/>
|
||||
<p2 x="340" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="140"/>
|
||||
<p2 x="480" y="140"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="320" y="140"/>
|
||||
<p2 x="320" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="180" y="140"/>
|
||||
<p2 x="180" y="200"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="460" y="140"/>
|
||||
<p2 x="460" y="200"/>
|
||||
</wire>
|
||||
</wires>
|
||||
</circuit>
|
@ -11,7 +11,6 @@ import de.neemann.digital.draw.elements.Wire;
|
||||
import de.neemann.digital.draw.graphics.*;
|
||||
import de.neemann.digital.draw.library.ElementLibrary;
|
||||
import de.neemann.digital.draw.shapes.Drawable;
|
||||
import de.neemann.digital.draw.shapes.GenericShape;
|
||||
import de.neemann.digital.draw.shapes.ShapeFactory;
|
||||
import de.neemann.digital.gui.LibrarySelector;
|
||||
import de.neemann.digital.gui.Main;
|
||||
@ -35,6 +34,8 @@ import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
|
||||
import static de.neemann.digital.draw.shapes.GenericShape.SIZE;
|
||||
|
||||
/**
|
||||
* @author hneemann
|
||||
*/
|
||||
@ -227,8 +228,8 @@ public class CircuitComponent extends JComponent {
|
||||
}
|
||||
|
||||
private Vector raster(Vector pos) {
|
||||
return new Vector((int) Math.round((double) pos.x / GenericShape.SIZE) * GenericShape.SIZE,
|
||||
(int) Math.round((double) pos.y / GenericShape.SIZE) * GenericShape.SIZE);
|
||||
return new Vector((int) Math.round((double) pos.x / SIZE) * SIZE,
|
||||
(int) Math.round((double) pos.y / SIZE) * SIZE);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -250,8 +251,8 @@ public class CircuitComponent extends JComponent {
|
||||
if (gr.getMin() != null) {
|
||||
|
||||
Vector delta = gr.getMax().sub(gr.getMin());
|
||||
double sx = ((double) getWidth()) / delta.x * 0.75;
|
||||
double sy = ((double) getHeight()) / delta.y * 0.95;
|
||||
double sx = ((double) getWidth()) / (delta.x + SIZE * 8);
|
||||
double sy = ((double) getHeight()) / (delta.y + SIZE);
|
||||
double s = Math.min(sx, sy);
|
||||
|
||||
transform.setToScale(s, s); // set Scaling
|
||||
@ -482,6 +483,7 @@ public class CircuitComponent extends JComponent {
|
||||
void moved(MouseEvent e) {
|
||||
Vector pos = getPosVector(e);
|
||||
visualElement.setPos(raster(pos.add(delta)));
|
||||
circuit.modified();
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user