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

<item itemtype="Package" CircId="Package-40" mainComp="false" Show_id="true" Show_Val="false" Pos="-272,-292" rotation="0" hflip="1" vflip="1" label="74HC157_LS.pkg" idLabPos="-12,-14" labelrot="0" valLabPos="0,0" valLabRot="0" SubcType="None" Width="4 _Cells" Height="13 _Cells" Name="74HC157" Package_File="74HC157_LS.package" Logic_Symbol="true" />

<item itemtype="Package" CircId="Package-39" mainComp="false" Show_id="true" Show_Val="false" Pos="-272,-388" rotation="0" hflip="1" vflip="1" label="74HC157.pkg" idLabPos="-8,-16" labelrot="0" valLabPos="0,0" valLabRot="0" SubcType="None" Width="4 _Cells" Height="9 _Cells" Name="74HC157" Package_File="74HC157.package" Logic_Symbol="false" />

<item itemtype="Tunnel" CircId="Tunnel-37" mainComp="false" Show_id="true" Show_Val="false" Pos="-556,-200" rotation="0" hflip="1" vflip="1" label="SEL" idLabPos="-52,-4" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="SEL" Rotated="false" />

<item itemtype="Tunnel" CircId="Tunnel-36" mainComp="false" Show_id="true" Show_Val="false" Pos="-556,-216" rotation="0" hflip="1" vflip="1" label="!OE" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="!OE" Rotated="false" />

<item itemtype="And Gate" CircId="And Gate-32" mainComp="false" Show_id="false" Show_Val="false" Pos="-468,-188" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="And Gate" CircId="And Gate-31" mainComp="false" Show_id="false" Show_Val="false" Pos="-468,-212" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="And Gate" CircId="And Gate-26" mainComp="false" Show_id="false" Show_Val="false" Pos="-408,-284" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="And Gate" CircId="And Gate-25" mainComp="false" Show_id="false" Show_Val="false" Pos="-408,-256" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Tunnel" CircId="Tunnel-24" mainComp="false" Show_id="true" Show_Val="false" Pos="-524,-304" rotation="0" hflip="1" vflip="1" label="A2" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="A2" Rotated="false" />

<item itemtype="Tunnel" CircId="Tunnel-23" mainComp="false" Show_id="true" Show_Val="false" Pos="-524,-260" rotation="0" hflip="1" vflip="1" label="A3" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="A3" Rotated="false" />

<item itemtype="Or Gate" CircId="Or Gate-22" mainComp="false" Show_id="false" Show_Val="false" Pos="-372,-292" rotation="0" hflip="1" vflip="1" label="Or Gate-2" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Or Gate" CircId="Or Gate-21" mainComp="false" Show_id="false" Show_Val="false" Pos="-372,-248" rotation="0" hflip="1" vflip="1" label="Or Gate-2" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Tunnel" CircId="Tunnel-20" mainComp="false" Show_id="true" Show_Val="false" Pos="-524,-244" rotation="0" hflip="1" vflip="1" label="B3" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="B3" Rotated="false" />

<item itemtype="And Gate" CircId="And Gate-19" mainComp="false" Show_id="false" Show_Val="false" Pos="-408,-300" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Tunnel" CircId="Tunnel-18" mainComp="false" Show_id="true" Show_Val="false" Pos="-340,-292" rotation="0" hflip="1" vflip="1" label="Y2" idLabPos="22,-5" labelrot="0" valLabPos="16,0" valLabRot="45" Name="Y2" Rotated="true" />

<item itemtype="Tunnel" CircId="Tunnel-17" mainComp="false" Show_id="true" Show_Val="false" Pos="-340,-248" rotation="0" hflip="1" vflip="1" label="Y3" idLabPos="20,-5" labelrot="0" valLabPos="16,0" valLabRot="45" Name="Y3" Rotated="true" />

<item itemtype="And Gate" CircId="And Gate-16" mainComp="false" Show_id="false" Show_Val="false" Pos="-408,-240" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Tunnel" CircId="Tunnel-15" mainComp="false" Show_id="true" Show_Val="false" Pos="-524,-288" rotation="0" hflip="1" vflip="1" label="B2" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="B2" Rotated="false" />

<item itemtype="And Gate" CircId="And Gate-14" mainComp="false" Show_id="false" Show_Val="false" Pos="-408,-324" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Tunnel" CircId="Tunnel-13" mainComp="false" Show_id="true" Show_Val="false" Pos="-524,-344" rotation="0" hflip="1" vflip="1" label="A1" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="A1" Rotated="false" />

<item itemtype="Or Gate" CircId="Or Gate-12" mainComp="false" Show_id="false" Show_Val="false" Pos="-372,-332" rotation="0" hflip="1" vflip="1" label="Or Gate-2" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="And Gate" CircId="And Gate-11" mainComp="false" Show_id="false" Show_Val="false" Pos="-408,-340" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Tunnel" CircId="Tunnel-10" mainComp="false" Show_id="true" Show_Val="false" Pos="-340,-332" rotation="0" hflip="1" vflip="1" label="Y1" idLabPos="22,-5" labelrot="0" valLabPos="16,0" valLabRot="45" Name="Y1" Rotated="true" />

<item itemtype="Tunnel" CircId="Tunnel-9" mainComp="false" Show_id="true" Show_Val="false" Pos="-524,-328" rotation="0" hflip="1" vflip="1" label="B1" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="B1" Rotated="false" />

<item itemtype="Tunnel" CircId="Tunnel-8" mainComp="false" Show_id="true" Show_Val="false" Pos="-524,-372" rotation="0" hflip="1" vflip="1" label="B0" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="B0" Rotated="false" />

<item itemtype="Tunnel" CircId="Tunnel-7" mainComp="false" Show_id="true" Show_Val="false" Pos="-524,-388" rotation="0" hflip="1" vflip="1" label="A0" idLabPos="-48,-5" labelrot="0" valLabPos="-16,8" valLabRot="0" Name="A0" Rotated="false" />

<item itemtype="Tunnel" CircId="Tunnel-6" mainComp="false" Show_id="true" Show_Val="false" Pos="-340,-376" rotation="0" hflip="1" vflip="1" label="Y0" idLabPos="24,-7" labelrot="0" valLabPos="16,0" valLabRot="45" Name="Y0" Rotated="true" />

<item itemtype="And Gate" CircId="And Gate-5" mainComp="false" Show_id="false" Show_Val="false" Pos="-408,-368" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Buffer" CircId="Buffer-4" mainComp="false" Show_id="false" Show_Val="false" Pos="-516,-200" rotation="0" hflip="1" vflip="1" label="Buffer-3" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Tristate="false" Inverted="true" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Buffer" CircId="Buffer-3" mainComp="false" Show_id="false" Show_Val="false" Pos="-516,-216" rotation="0" hflip="1" vflip="1" label="Buffer-3" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Tristate="false" Inverted="true" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Or Gate" CircId="Or Gate-2" mainComp="false" Show_id="false" Show_Val="false" Pos="-372,-376" rotation="0" hflip="1" vflip="1" label="Or Gate-2" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="And Gate" CircId="And Gate-1" mainComp="false" Show_id="false" Show_Val="false" Pos="-408,-384" rotation="0" hflip="1" vflip="1" label="And Gate-1" idLabPos="-16,-24" labelrot="0" valLabPos="0,0" valLabRot="0" Num_Inputs="2 _Inputs" Inverted="false" Open_Collector="false" Input_High_V="2.5 V" Input_Low_V="1 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="Node" CircId="Node-38" mainComp="false" Pos="-532,-200" />

<item itemtype="Node" CircId="Node-35" mainComp="false" Pos="-492,-216" />

<item itemtype="Node" CircId="Node-34" mainComp="false" Pos="-436,-252" />

<item itemtype="Node" CircId="Node-33" mainComp="false" Pos="-432,-236" />

<item itemtype="Node" CircId="Node-30" mainComp="false" Pos="-432,-280" />

<item itemtype="Node" CircId="Node-29" mainComp="false" Pos="-432,-320" />

<item itemtype="Node" CircId="Node-28" mainComp="false" Pos="-436,-296" />

<item itemtype="Node" CircId="Node-27" mainComp="false" Pos="-436,-336" />

<item itemtype="Connector" uid="Connector-41" startpinid="And Gate-1-out" endpinid="Or Gate-2-in0" pointList="-392,-384,-392,-380,-388,-380" />

<item itemtype="Connector" uid="Connector-43" startpinid="And Gate-5-out" endpinid="Or Gate-2-in1" pointList="-392,-368,-392,-372,-388,-372" />

<item itemtype="Connector" uid="Connector-45" startpinid="Tunnel-6-pin" endpinid="Or Gate-2-out" pointList="-340,-376,-356,-376" />

<item itemtype="Connector" uid="Connector-47" startpinid="Tunnel-8-pin" endpinid="And Gate-5-in0" pointList="-524,-372,-424,-372" />

<item itemtype="Connector" uid="Connector-49" startpinid="Tunnel-7-pin" endpinid="And Gate-1-in0" pointList="-524,-388,-424,-388" />

<item itemtype="Connector" uid="Connector-51" startpinid="Tunnel-10-pin" endpinid="Or Gate-12-out" pointList="-340,-332,-356,-332" />

<item itemtype="Connector" uid="Connector-53" startpinid="And Gate-14-out" endpinid="Or Gate-12-in1" pointList="-392,-324,-392,-328,-388,-328" />

<item itemtype="Connector" uid="Connector-55" startpinid="Tunnel-13-pin" endpinid="And Gate-11-in0" pointList="-524,-344,-424,-344" />

<item itemtype="Connector" uid="Connector-57" startpinid="And Gate-11-out" endpinid="Or Gate-12-in0" pointList="-392,-340,-392,-336,-388,-336" />

<item itemtype="Connector" uid="Connector-59" startpinid="Tunnel-9-pin" endpinid="And Gate-14-in0" pointList="-524,-328,-424,-328" />

<item itemtype="Connector" uid="Connector-61" startpinid="And Gate-16-out" endpinid="Or Gate-21-in1" pointList="-392,-240,-392,-244,-388,-244" />

<item itemtype="Connector" uid="Connector-63" startpinid="Tunnel-23-pin" endpinid="And Gate-25-in0" pointList="-524,-260,-424,-260" />

<item itemtype="Connector" uid="Connector-65" startpinid="Tunnel-18-pin" endpinid="Or Gate-22-out" pointList="-340,-292,-356,-292" />

<item itemtype="Connector" uid="Connector-67" startpinid="And Gate-25-out" endpinid="Or Gate-21-in0" pointList="-392,-256,-392,-252,-388,-252" />

<item itemtype="Connector" uid="Connector-69" startpinid="And Gate-26-out" endpinid="Or Gate-22-in1" pointList="-392,-284,-392,-288,-388,-288" />

<item itemtype="Connector" uid="Connector-71" startpinid="Tunnel-24-pin" endpinid="And Gate-19-in0" pointList="-524,-304,-424,-304" />

<item itemtype="Connector" uid="Connector-73" startpinid="Tunnel-17-pin" endpinid="Or Gate-21-out" pointList="-340,-248,-356,-248" />

<item itemtype="Connector" uid="Connector-75" startpinid="Tunnel-20-pin" endpinid="And Gate-16-in0" pointList="-524,-244,-424,-244" />

<item itemtype="Connector" uid="Connector-77" startpinid="And Gate-19-out" endpinid="Or Gate-22-in0" pointList="-392,-300,-392,-296,-388,-296" />

<item itemtype="Connector" uid="Connector-79" startpinid="Tunnel-15-pin" endpinid="And Gate-26-in0" pointList="-524,-288,-424,-288" />

<item itemtype="Connector" uid="Connector-81" startpinid="And Gate-1-in1" endpinid="Node-27-0" pointList="-424,-380,-436,-380,-436,-336" />

<item itemtype="Connector" uid="Connector-83" startpinid="Node-27-2" endpinid="And Gate-11-in1" pointList="-436,-336,-424,-336" />

<item itemtype="Connector" uid="Connector-84" startpinid="Node-27-1" endpinid="Node-28-0" pointList="-436,-336,-436,-296" />

<item itemtype="Connector" uid="Connector-85" startpinid="Node-28-2" endpinid="And Gate-19-in1" pointList="-436,-296,-424,-296" />

<item itemtype="Connector" uid="Connector-86" startpinid="Node-28-1" endpinid="Node-34-0" pointList="-436,-296,-436,-252" />

<item itemtype="Connector" uid="Connector-87" startpinid="And Gate-5-in1" endpinid="Node-29-0" pointList="-424,-364,-432,-364,-432,-320" />

<item itemtype="Connector" uid="Connector-89" startpinid="Node-29-2" endpinid="And Gate-14-in1" pointList="-432,-320,-424,-320" />

<item itemtype="Connector" uid="Connector-90" startpinid="Node-29-1" endpinid="Node-30-0" pointList="-432,-320,-432,-280" />

<item itemtype="Connector" uid="Connector-91" startpinid="Node-30-2" endpinid="And Gate-26-in1" pointList="-432,-280,-424,-280" />

<item itemtype="Connector" uid="Connector-92" startpinid="Node-30-1" endpinid="Node-33-0" pointList="-432,-280,-432,-236" />

<item itemtype="Connector" uid="Connector-93" startpinid="And Gate-32-out" endpinid="Node-33-1" pointList="-452,-188,-432,-188,-432,-236" />

<item itemtype="Connector" uid="Connector-94" startpinid="Node-33-2" endpinid="And Gate-16-in1" pointList="-432,-236,-424,-236" />

<item itemtype="Connector" uid="Connector-95" startpinid="And Gate-31-out" endpinid="Node-34-1" pointList="-452,-212,-436,-212,-436,-252" />

<item itemtype="Connector" uid="Connector-96" startpinid="Node-34-2" endpinid="And Gate-25-in1" pointList="-436,-252,-424,-252" />

<item itemtype="Connector" uid="Connector-97" startpinid="And Gate-32-in0" endpinid="Node-35-0" pointList="-484,-192,-492,-192,-492,-216" />

<item itemtype="Connector" uid="Connector-99" startpinid="Buffer-3-out" endpinid="Node-35-1" pointList="-500,-216,-492,-216" />

<item itemtype="Connector" uid="Connector-100" startpinid="Node-35-2" endpinid="And Gate-31-in0" pointList="-492,-216,-484,-216" />

<item itemtype="Connector" uid="Connector-101" startpinid="Tunnel-36-pin" endpinid="Buffer-3-in0" pointList="-556,-216,-532,-216" />

<item itemtype="Connector" uid="Connector-103" startpinid="Buffer-4-out" endpinid="And Gate-31-in1" pointList="-500,-200,-500,-208,-484,-208" />

<item itemtype="Connector" uid="Connector-105" startpinid="Buffer-4-in0" endpinid="Node-38-0" pointList="-532,-200,-532,-200" />

<item itemtype="Connector" uid="Connector-107" startpinid="Tunnel-37-pin" endpinid="Node-38-1" pointList="-556,-200,-532,-200" />

<item itemtype="Connector" uid="Connector-108" startpinid="Node-38-2" endpinid="And Gate-32-in1" pointList="-532,-200,-532,-184,-484,-184" />

</circuit>