1
Fork 0
mirror of https://github.com/Steffo99/fermi-ser-2016-aialu.git synced 2024-11-21 13:14:18 +00:00

Added two's complement

This commit is contained in:
Steffo 2016-02-25 16:09:23 +01:00
parent f2c10b506b
commit 59b9a8e881

View file

@ -286,7 +286,9 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<rect fill="none" height="40" stroke="#000000" stroke-width="2" width="40" x="50" y="50"/>
<polygon fill="#c9c9c9" points="67,61 67,67 61,67 61,73 67,73 67,79 73,79 73,73 79,73 79,67 73,67 73,61" stroke="none"/>
<text font-family="SansSerif" font-size="12" text-anchor="middle" x="70" y="74">8</text>
<circ-port height="8" pin="140,100" width="8" x="56" y="86"/>
<circ-port height="8" pin="140,40" width="8" x="56" y="86"/>
<circ-port height="8" pin="140,70" width="8" x="46" y="56"/>
<circ-port height="8" pin="140,100" width="8" x="46" y="76"/>
<circ-port height="10" pin="670,70" width="10" x="85" y="65"/>
<circ-port height="10" pin="670,100" width="10" x="75" y="85"/>
<circ-anchor facing="east" height="6" width="6" x="67" y="67"/>
@ -592,4 +594,93 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<a name="inputs" val="2"/>
</comp>
</circuit>
<circuit name="twoComplement">
<a name="circuit" val="twoComplement"/>
<a name="clabel" val=""/>
<a name="clabelup" val="east"/>
<a name="clabelfont" val="SansSerif plain 12"/>
<appear>
<path d="M61,56 Q65,66 69,56" fill="none" stroke="#808080" stroke-width="2"/>
<rect fill="none" height="30" stroke="#000000" stroke-width="2" width="30" x="50" y="55"/>
<polyline fill="#c9c9c9" points="55,67 75,67 75,73 55,73" stroke="none"/>
<text font-family="SansSerif" font-size="12" text-anchor="middle" x="65" y="74">Inv</text>
<circ-port height="8" pin="140,60" width="8" x="46" y="66"/>
<circ-port height="10" pin="400,70" width="10" x="75" y="65"/>
<circ-anchor facing="east" height="6" width="6" x="77" y="67"/>
</appear>
<wire from="(180,70)" to="(210,70)"/>
<wire from="(180,80)" to="(210,80)"/>
<wire from="(180,90)" to="(210,90)"/>
<wire from="(180,100)" to="(210,100)"/>
<wire from="(180,110)" to="(210,110)"/>
<wire from="(180,120)" to="(210,120)"/>
<wire from="(180,130)" to="(210,130)"/>
<wire from="(180,140)" to="(210,140)"/>
<wire from="(230,100)" to="(260,100)"/>
<wire from="(230,70)" to="(260,70)"/>
<wire from="(230,80)" to="(260,80)"/>
<wire from="(230,130)" to="(260,130)"/>
<wire from="(230,140)" to="(260,140)"/>
<wire from="(230,110)" to="(260,110)"/>
<wire from="(230,120)" to="(260,120)"/>
<wire from="(230,90)" to="(260,90)"/>
<wire from="(290,80)" to="(320,80)"/>
<wire from="(270,160)" to="(290,160)"/>
<wire from="(140,60)" to="(160,60)"/>
<wire from="(330,90)" to="(330,100)"/>
<wire from="(290,80)" to="(290,160)"/>
<wire from="(280,60)" to="(320,60)"/>
<wire from="(360,70)" to="(400,70)"/>
<comp lib="0" loc="(400,70)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="width" val="8"/>
<a name="label" val="Out"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="1" loc="(230,90)" name="NOT Gate">
<a name="size" val="20"/>
</comp>
<comp lib="0" loc="(160,60)" name="Splitter">
<a name="fanout" val="8"/>
<a name="incoming" val="8"/>
<a name="appear" val="right"/>
</comp>
<comp lib="1" loc="(230,140)" name="NOT Gate">
<a name="size" val="20"/>
</comp>
<comp lib="1" loc="(230,70)" name="NOT Gate">
<a name="size" val="20"/>
</comp>
<comp lib="0" loc="(140,60)" name="Pin">
<a name="width" val="8"/>
<a name="tristate" val="false"/>
<a name="label" val="In"/>
</comp>
<comp lib="0" loc="(270,160)" name="Constant">
<a name="width" val="8"/>
</comp>
<comp lib="1" loc="(230,100)" name="NOT Gate">
<a name="size" val="20"/>
</comp>
<comp loc="(340,70)" name="aiSum"/>
<comp lib="1" loc="(230,130)" name="NOT Gate">
<a name="size" val="20"/>
</comp>
<comp lib="0" loc="(330,100)" name="Ground"/>
<comp lib="1" loc="(230,110)" name="NOT Gate">
<a name="size" val="20"/>
</comp>
<comp lib="1" loc="(230,80)" name="NOT Gate">
<a name="size" val="20"/>
</comp>
<comp lib="1" loc="(230,120)" name="NOT Gate">
<a name="size" val="20"/>
</comp>
<comp lib="0" loc="(280,60)" name="Splitter">
<a name="facing" val="west"/>
<a name="fanout" val="8"/>
<a name="incoming" val="8"/>
</comp>
</circuit>
</project>