<circuit type="simulide_1.0" stepSize="1000000" stepsPS="1000000" NLsteps="100000" animate="0" >

<item itemtype="7-Seg BCD" CircId="7 Seg BCD-9" mainComp="false" Show_id="false" Show_Val="false" Pos="-432,-316" rotation="0" hflip="1" vflip="1" label="7 Seg BCD-102" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" />

<item itemtype="7-Seg BCD" CircId="7 Seg BCD-10" mainComp="false" Show_id="false" Show_Val="false" Pos="-224,-316" rotation="0" hflip="1" vflip="1" label="7 Seg BCD-101" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" />

<item itemtype="TextComponent" CircId="Text-11" mainComp="false" Show_id="false" Show_Val="false" Pos="-128,-328" rotation="0" hflip="1" vflip="1" label="Text-28" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Margin="5 _Pixels" Border="1 _Pixels" Opacity="1" Font="Helvetica [Cronyx]" Font_Size="10 _Pixels" Fixed_Width="true" Text="4 Bit Adder Substractor:&#xa;&#xa;Adds two 4 bit numbers: A+B.&#xa;&#xa;A0-3:&#xa;Bit of number A.&#xa;&#xa;B0-3:&#xa;Bit of number B.&#xa;&#xa;Calculate:&#xa;Take inputs in High State.&#xa;Keep Previous in Low State.&#xa;&#xa;Add/Subb:&#xa;Substraction in High State.&#xa;Aditon in Low State.&#xa;" />

<item itemtype="FullAdder" CircId="Full Adder-12" mainComp="false" Show_id="false" Show_Val="false" Pos="-236,-60" rotation="0" hflip="1" vflip="1" label="Full Adder-27" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="FullAdder" CircId="Full Adder-13" mainComp="false" Show_id="false" Show_Val="false" Pos="-236,-92" rotation="0" hflip="1" vflip="1" label="Full Adder-26" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="FullAdder" CircId="Full Adder-14" mainComp="false" Show_id="false" Show_Val="false" Pos="-236,-124" rotation="0" hflip="1" vflip="1" label="Full Adder-25" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="FullAdder" CircId="Full Adder-15" mainComp="false" Show_id="false" Show_Val="false" Pos="-236,-156" rotation="0" hflip="1" vflip="1" label="Full Adder-24" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="LatchD" CircId="Latch-16" mainComp="false" Show_id="false" Show_Val="false" Pos="-332,-212" rotation="90" hflip="1" vflip="1" label="Latch-23" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Channels="8 _Channels" Trigger="Enable" Inverted="false" Tristate="true" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="Xor Gate" CircId="Xor Gate-17" mainComp="false" Show_id="false" Show_Val="false" Pos="-276,-148" rotation="0" hflip="1" vflip="1" label="Xor Gate-22" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" rndPD="false" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="Xor Gate" CircId="Xor Gate-18" mainComp="false" Show_id="false" Show_Val="false" Pos="-276,-116" rotation="0" hflip="1" vflip="1" label="Xor Gate-21" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" rndPD="false" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="Xor Gate" CircId="Xor Gate-19" mainComp="false" Show_id="false" Show_Val="false" Pos="-276,-84" rotation="0" hflip="1" vflip="1" label="Xor Gate-20" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" rndPD="false" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="Xor Gate" CircId="Xor Gate-20" mainComp="false" Show_id="false" Show_Val="false" Pos="-276,-52" rotation="0" hflip="1" vflip="1" label="Xor Gate-19" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" rndPD="false" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-21" mainComp="false" Show_id="true" Show_Val="false" Pos="-420,-180" rotation="0" hflip="1" vflip="1" label="Add/Sub" idLabPos="-76,-7" labelrot="0" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="Xor Gate" CircId="Xor Gate-23" mainComp="false" Show_id="false" Show_Val="false" Pos="-276,-20" rotation="0" hflip="1" vflip="1" label="Xor Gate-14" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1e+14 Ω" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" rndPD="false" Tpd_ps="10000 ps" Tr_ps="3000 ps" Tf_ps="4000 ps" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-24" mainComp="false" Show_id="true" Show_Val="false" Pos="-420,-204" rotation="0" hflip="1" vflip="1" label="Calculate" idLabPos="-81,-8" labelrot="0" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="7-Seg BCD" CircId="7-25" mainComp="false" Show_id="false" Show_Val="false" Pos="-176,-220" rotation="0" hflip="1" vflip="1" label="7-11" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-26" mainComp="false" Show_id="true" Show_Val="false" Pos="-396,-300" rotation="90" hflip="1" vflip="1" label="A3" idLabPos="-47,7" labelrot="-90" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-27" mainComp="false" Show_id="true" Show_Val="false" Pos="-380,-300" rotation="90" hflip="1" vflip="1" label="A2" idLabPos="-47,7" labelrot="-90" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-28" mainComp="false" Show_id="true" Show_Val="false" Pos="-364,-300" rotation="90" hflip="1" vflip="1" label="A1" idLabPos="-47,7" labelrot="-90" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-29" mainComp="false" Show_id="true" Show_Val="false" Pos="-348,-300" rotation="90" hflip="1" vflip="1" label="A0" idLabPos="-47,7" labelrot="-90" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-30" mainComp="false" Show_id="true" Show_Val="false" Pos="-276,-300" rotation="90" hflip="1" vflip="1" label="B1" idLabPos="-47,7" labelrot="-90" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-31" mainComp="false" Show_id="true" Show_Val="false" Pos="-260,-300" rotation="90" hflip="1" vflip="1" label="B0" idLabPos="-47,7" labelrot="-90" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-32" mainComp="false" Show_id="true" Show_Val="false" Pos="-292,-300" rotation="90" hflip="1" vflip="1" label="B2" idLabPos="-47,7" labelrot="-90" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="Fixed Voltage" CircId="Fixed Volt.-33" mainComp="false" Show_id="true" Show_Val="false" Pos="-308,-300" rotation="90" hflip="1" vflip="1" label="B3" idLabPos="-47,7" labelrot="-90" valLabPos="-16,8" valLabRot="0" Out="false" Voltage="5 V" />

<item itemtype="7-Seg BCD" CircId="7-34" mainComp="false" Show_id="false" Show_Val="false" Pos="-208,-220" rotation="0" hflip="1" vflip="1" label="7-2" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" />

<item itemtype="Node" CircId="Node-1" mainComp="false" Pos="-308,-276" />

<item itemtype="Node" CircId="Node-2" mainComp="false" Pos="-292,-268" />

<item itemtype="Node" CircId="Node-3" mainComp="false" Pos="-276,-260" />

<item itemtype="Node" CircId="Node-4" mainComp="false" Pos="-260,-252" />

<item itemtype="Node" CircId="Node-5" mainComp="false" Pos="-396,-252" />

<item itemtype="Node" CircId="Node-6" mainComp="false" Pos="-380,-260" />

<item itemtype="Node" CircId="Node-7" mainComp="false" Pos="-364,-268" />

<item itemtype="Node" CircId="Node-8" mainComp="false" Pos="-348,-276" />

<item itemtype="Node" CircId="Node-22" mainComp="false" Pos="-372,-180" />

<item itemtype="Node" CircId="Node-35" mainComp="false" Pos="-372,-48" />

<item itemtype="Node" CircId="Node-36" mainComp="false" Pos="-372,-80" />

<item itemtype="Node" CircId="Node-37" mainComp="false" Pos="-372,-112" />

<item itemtype="Node" CircId="Node-38" mainComp="false" Pos="-372,-144" />

<item itemtype="Connector" uid="Connector-39" startpinid="Latch-16-out4" endpinid="Full Adder-15-in0" pointList="-332,-188,-332,-164,-252,-164" />

<item itemtype="Connector" uid="Connector-41" startpinid="Latch-16-out5" endpinid="Full Adder-14-in0" pointList="-340,-188,-340,-132,-252,-132" />

<item itemtype="Connector" uid="Connector-43" startpinid="Latch-16-out6" endpinid="Full Adder-13-in0" pointList="-348,-188,-348,-100,-252,-100" />

<item itemtype="Connector" uid="Connector-45" startpinid="Xor Gate-17-out" endpinid="Full Adder-15-in1" pointList="-260,-148,-252,-148" />

<item itemtype="Connector" uid="Connector-47" startpinid="Xor Gate-18-out" endpinid="Full Adder-14-in1" pointList="-260,-116,-252,-116" />

<item itemtype="Connector" uid="Connector-49" startpinid="Xor Gate-18-in0" endpinid="Latch-16-out1" pointList="-292,-120,-308,-120,-308,-188" />

<item itemtype="Connector" uid="Connector-51" startpinid="Xor Gate-19-out" endpinid="Full Adder-13-in1" pointList="-260,-84,-252,-84" />

<item itemtype="Connector" uid="Connector-53" startpinid="Xor Gate-19-in0" endpinid="Latch-16-out2" pointList="-292,-88,-316,-88,-316,-188" />

<item itemtype="Connector" uid="Connector-55" startpinid="Latch-16-out7" endpinid="Full Adder-12-in0" pointList="-356,-188,-356,-68,-252,-68" />

<item itemtype="Connector" uid="Connector-57" startpinid="Xor Gate-20-out" endpinid="Full Adder-12-in1" pointList="-260,-52,-252,-52" />

<item itemtype="Connector" uid="Connector-59" startpinid="Xor Gate-20-in0" endpinid="Latch-16-out3" pointList="-292,-56,-324,-56,-324,-188" />

<item itemtype="Connector" uid="Connector-61" startpinid="Node-22-2" endpinid="Node-38-0" pointList="-372,-180,-372,-144" />

<item itemtype="Connector" uid="Connector-63" startpinid="Full Adder-14-out1" endpinid="Full Adder-13-in2" pointList="-212,-116,-212,-100" />

<item itemtype="Connector" uid="Connector-65" startpinid="Fixed Volt.-24-outnod" endpinid="Latch-16-Pin_clock" pointList="-404,-204,-380,-204,-380,-244,-364,-244,-364,-236" />

<item itemtype="Connector" uid="Connector-67" startpinid="Full Adder-15-out0" endpinid="7-25-in0" pointList="-212,-156,-164,-156,-164,-188" />

<item itemtype="Connector" uid="Connector-69" startpinid="Full Adder-14-out0" endpinid="7-25-in1" pointList="-212,-124,-172,-124,-172,-188" />

<item itemtype="Connector" uid="Connector-71" startpinid="Full Adder-13-out0" endpinid="7-25-in2" pointList="-212,-92,-180,-92,-180,-188" />

<item itemtype="Connector" uid="Connector-73" startpinid="Full Adder-12-out0" endpinid="7-25-in3" pointList="-212,-60,-188,-60,-188,-188" />

<item itemtype="Connector" uid="Connector-75" startpinid="Fixed Volt.-29-outnod" endpinid="Node-8-0" pointList="-348,-284,-348,-276" />

<item itemtype="Connector" uid="Connector-77" startpinid="Fixed Volt.-28-outnod" endpinid="Node-7-0" pointList="-364,-284,-364,-268" />

<item itemtype="Connector" uid="Connector-79" startpinid="Fixed Volt.-27-outnod" endpinid="Node-6-0" pointList="-380,-284,-380,-260" />

<item itemtype="Connector" uid="Connector-81" startpinid="Fixed Volt.-26-outnod" endpinid="Node-5-0" pointList="-396,-284,-396,-252" />

<item itemtype="Connector" uid="Connector-83" startpinid="Full Adder-12-out1" endpinid="Xor Gate-23-in0" pointList="-212,-52,-212,-36,-304,-36,-304,-24,-292,-24" />

<item itemtype="Connector" uid="Connector-85" startpinid="Xor Gate-23-out" endpinid="7-34-in0" pointList="-260,-20,-196,-20,-196,-188" />

<item itemtype="Connector" uid="Connector-87" startpinid="7 Seg BCD-9-in0" endpinid="Node-8-1" pointList="-420,-284,-420,-276,-348,-276" />

<item itemtype="Connector" uid="Connector-88" startpinid="Node-8-2" endpinid="Latch-16-in4" pointList="-348,-276,-332,-276,-332,-236" />

<item itemtype="Connector" uid="Connector-89" startpinid="Node-7-2" endpinid="Latch-16-in5" pointList="-364,-268,-340,-268,-340,-236" />

<item itemtype="Connector" uid="Connector-90" startpinid="Node-7-1" endpinid="7 Seg BCD-9-in1" pointList="-364,-268,-428,-268,-428,-284" />

<item itemtype="Connector" uid="Connector-91" startpinid="Node-6-2" endpinid="Latch-16-in6" pointList="-380,-260,-348,-260,-348,-236" />

<item itemtype="Connector" uid="Connector-92" startpinid="Node-6-1" endpinid="7 Seg BCD-9-in2" pointList="-380,-260,-436,-260,-436,-284" />

<item itemtype="Connector" uid="Connector-93" startpinid="Node-5-2" endpinid="Latch-16-in7" pointList="-396,-252,-356,-252,-356,-236" />

<item itemtype="Connector" uid="Connector-94" startpinid="Node-5-1" endpinid="7 Seg BCD-9-in3" pointList="-396,-252,-444,-252,-444,-284" />

<item itemtype="Connector" uid="Connector-95" startpinid="Fixed Volt.-32-outnod" endpinid="Node-2-0" pointList="-292,-284,-292,-268" />

<item itemtype="Connector" uid="Connector-97" startpinid="Fixed Volt.-33-outnod" endpinid="Node-1-0" pointList="-308,-284,-308,-276" />

<item itemtype="Connector" uid="Connector-99" startpinid="Fixed Volt.-30-outnod" endpinid="Node-3-0" pointList="-276,-284,-276,-260" />

<item itemtype="Connector" uid="Connector-101" startpinid="Fixed Volt.-31-outnod" endpinid="Node-4-0" pointList="-260,-284,-260,-252" />

<item itemtype="Connector" uid="Connector-103" startpinid="Node-4-2" endpinid="Latch-16-in0" pointList="-260,-252,-300,-252,-300,-236" />

<item itemtype="Connector" uid="Connector-104" startpinid="Node-4-1" endpinid="7 Seg BCD-10-in0" pointList="-260,-252,-212,-252,-212,-284" />

<item itemtype="Connector" uid="Connector-105" startpinid="Node-3-2" endpinid="Latch-16-in1" pointList="-276,-260,-308,-260,-308,-236" />

<item itemtype="Connector" uid="Connector-106" startpinid="Node-3-1" endpinid="7 Seg BCD-10-in1" pointList="-276,-260,-220,-260,-220,-284" />

<item itemtype="Connector" uid="Connector-107" startpinid="Node-2-2" endpinid="Latch-16-in2" pointList="-292,-268,-316,-268,-316,-236" />

<item itemtype="Connector" uid="Connector-108" startpinid="Node-2-1" endpinid="7 Seg BCD-10-in2" pointList="-292,-268,-228,-268,-228,-284" />

<item itemtype="Connector" uid="Connector-109" startpinid="Node-1-2" endpinid="Latch-16-in3" pointList="-308,-276,-324,-276,-324,-236" />

<item itemtype="Connector" uid="Connector-110" startpinid="Node-1-1" endpinid="7 Seg BCD-10-in3" pointList="-308,-276,-236,-276,-236,-284" />

<item itemtype="Connector" uid="Connector-111" startpinid="Full Adder-14-in2" endpinid="Full Adder-15-out1" pointList="-212,-132,-212,-148" />

<item itemtype="Connector" uid="Connector-113" startpinid="Latch-16-out0" endpinid="Xor Gate-17-in0" pointList="-300,-188,-300,-152,-292,-152" />

<item itemtype="Connector" uid="Connector-115" startpinid="Full Adder-13-out1" endpinid="Full Adder-12-in2" pointList="-212,-84,-212,-68" />

<item itemtype="Connector" uid="Connector-117" startpinid="Fixed Volt.-21-outnod" endpinid="Node-22-0" pointList="-404,-180,-372,-180" />

<item itemtype="Connector" uid="Connector-118" startpinid="Node-35-2" endpinid="Xor Gate-20-in1" pointList="-372,-48,-292,-48" />

<item itemtype="Connector" uid="Connector-119" startpinid="Node-35-1" endpinid="Xor Gate-23-in1" pointList="-372,-48,-372,-16,-292,-16" />

<item itemtype="Connector" uid="Connector-120" startpinid="Xor Gate-19-in1" endpinid="Node-36-1" pointList="-292,-80,-372,-80" />

<item itemtype="Connector" uid="Connector-121" startpinid="Node-36-2" endpinid="Node-35-0" pointList="-372,-80,-372,-48" />

<item itemtype="Connector" uid="Connector-122" startpinid="Xor Gate-18-in1" endpinid="Node-37-1" pointList="-292,-112,-372,-112" />

<item itemtype="Connector" uid="Connector-123" startpinid="Node-37-2" endpinid="Node-36-0" pointList="-372,-112,-372,-80" />

<item itemtype="Connector" uid="Connector-124" startpinid="Xor Gate-17-in1" endpinid="Node-38-1" pointList="-292,-144,-372,-144" />

<item itemtype="Connector" uid="Connector-125" startpinid="Node-38-2" endpinid="Node-37-0" pointList="-372,-144,-372,-112" />

<item itemtype="Connector" uid="Connector-126" startpinid="Node-22-1" endpinid="Full Adder-15-in2" pointList="-372,-180,-212,-180,-212,-164" />

</circuit>