2025SPR-COaA-Solution/实验二、组合逻辑部件设计/lab2.4.circ
2025-04-21 08:28:23 +00:00

617 lines
25 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.16.1.3.jar" version="1.0">
This file is intended to be loaded by Logisim http://logisim.altervista.org
<lib desc="#Wiring" name="0">
<tool name="Splitter">
<a name="appear" val="center"/>
</tool>
<tool name="Pin">
<a name="facing" val="north"/>
<a name="labelfont" val="Dialog plain 12"/>
</tool>
<tool name="Probe">
<a name="facing" val="west"/>
<a name="radix" val="10signed"/>
<a name="labelfont" val="Dialog plain 12"/>
</tool>
<tool name="Tunnel">
<a name="width" val="32"/>
<a name="labelfont" val="Dialog plain 12"/>
</tool>
<tool name="Pull Resistor">
<a name="facing" val="north"/>
</tool>
<tool name="Clock">
<a name="facing" val="north"/>
<a name="labelfont" val="Dialog plain 12"/>
</tool>
<tool name="ProgrammableGenerator">
<a name="labelfont" val="Dialog plain 12"/>
</tool>
<tool name="Constant">
<a name="value" val="0x0"/>
</tool>
</lib>
<lib desc="#Gates" name="1"/>
<lib desc="#TTL" name="2"/>
<lib desc="#Plexers" name="3">
<tool name="Multiplexer">
<a name="enable" val="false"/>
</tool>
<tool name="Demultiplexer">
<a name="enable" val="false"/>
</tool>
<tool name="Decoder">
<a name="enable" val="false"/>
</tool>
</lib>
<lib desc="#Arithmetic" name="4"/>
<lib desc="#Memory" name="5">
<tool name="ROM">
<a name="contents">addr/data: 8 8
0
</a>
</tool>
</lib>
<lib desc="#I/O" name="6"/>
<lib desc="#Base" name="7">
<tool name="Text Tool">
<a name="text" val=""/>
<a name="font" val="Dialog plain 12"/>
<a name="color" val="#000000"/>
<a name="halign" val="center"/>
<a name="valign" val="base"/>
</tool>
</lib>
<main name="main"/>
<options>
<a name="gateUndefined" val="ignore"/>
<a name="simlimit" val="1000"/>
<a name="simrand" val="0"/>
</options>
<mappings>
<tool lib="7" map="Button2" name="Poke Tool"/>
<tool lib="7" map="Button3" name="Menu Tool"/>
<tool lib="7" map="Ctrl Button1" name="Menu Tool"/>
</mappings>
<toolbar>
<tool lib="7" name="Poke Tool"/>
<tool lib="7" name="Edit Tool"/>
<sep/>
<tool lib="7" name="Text Tool">
<a name="text" val=""/>
<a name="font" val="Dialog plain 12"/>
<a name="color" val="#000000"/>
<a name="halign" val="center"/>
<a name="valign" val="base"/>
</tool>
<tool lib="0" name="Pin">
<a name="tristate" val="false"/>
</tool>
<tool lib="0" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
</tool>
<tool lib="1" name="NOT Gate"/>
<tool lib="1" name="AND Gate"/>
<tool lib="1" name="OR Gate"/>
</toolbar>
<circuit name="main">
<a name="circuit" val="main"/>
<a name="clabel" val=""/>
<a name="clabelup" val="east"/>
<a name="clabelfont" val="Dialog plain 12"/>
<a name="clabelcolor" val="#000000"/>
<appear>
<rect fill="#ffffff" height="60" rx="5" ry="5" stroke="#000000" stroke-width="2" width="50" x="50" y="50"/>
<path d="M70,50 Q74,59 78,50" fill="none" stroke="#808080" stroke-width="2"/>
<text font-family="Dialog" font-size="6" text-anchor="start" x="58" y="83">Input</text>
<text font-family="Dialog" font-size="6" text-anchor="start" x="71" y="71">NoError</text>
<text font-family="Dialog" font-size="6" text-anchor="start" x="76" y="92">Output</text>
<circ-port height="8" pin="170,30" width="8" x="46" y="76"/>
<circ-port height="10" pin="510,40" width="10" x="95" y="85"/>
<circ-port height="10" pin="680,40" width="10" x="95" y="65"/>
<circ-anchor facing="east" height="6" width="6" x="97" y="67"/>
</appear>
<wire from="(640,40)" to="(650,40)"/>
<wire from="(650,40)" to="(680,40)"/>
<wire from="(510,40)" to="(530,40)"/>
<wire from="(170,30)" to="(200,30)"/>
<wire from="(210,250)" to="(210,300)"/>
<wire from="(130,250)" to="(210,250)"/>
<wire from="(210,300)" to="(220,300)"/>
<wire from="(210,360)" to="(220,360)"/>
<wire from="(210,300)" to="(210,360)"/>
<wire from="(210,420)" to="(220,420)"/>
<wire from="(210,360)" to="(210,420)"/>
<wire from="(200,230)" to="(200,310)"/>
<wire from="(130,230)" to="(200,230)"/>
<wire from="(200,310)" to="(220,310)"/>
<wire from="(200,310)" to="(200,440)"/>
<wire from="(200,440)" to="(220,440)"/>
<wire from="(130,210)" to="(190,210)"/>
<wire from="(190,210)" to="(190,320)"/>
<wire from="(190,320)" to="(220,320)"/>
<wire from="(190,380)" to="(220,380)"/>
<wire from="(190,320)" to="(190,380)"/>
<wire from="(130,190)" to="(180,190)"/>
<wire from="(180,190)" to="(180,330)"/>
<wire from="(180,330)" to="(220,330)"/>
<wire from="(130,240)" to="(170,240)"/>
<wire from="(170,370)" to="(220,370)"/>
<wire from="(170,430)" to="(220,430)"/>
<wire from="(170,240)" to="(170,370)"/>
<wire from="(170,370)" to="(170,430)"/>
<wire from="(130,200)" to="(160,200)"/>
<wire from="(160,200)" to="(160,390)"/>
<wire from="(160,390)" to="(220,390)"/>
<wire from="(150,220)" to="(150,450)"/>
<wire from="(130,220)" to="(150,220)"/>
<wire from="(150,450)" to="(220,450)"/>
<wire from="(350,400)" to="(360,400)"/>
<wire from="(340,410)" to="(360,410)"/>
<wire from="(350,420)" to="(360,420)"/>
<wire from="(320,350)" to="(360,350)"/>
<wire from="(100,170)" to="(100,180)"/>
<wire from="(100,170)" to="(410,170)"/>
<wire from="(100,180)" to="(110,180)"/>
<wire from="(80,180)" to="(100,180)"/>
<wire from="(410,250)" to="(410,350)"/>
<wire from="(410,250)" to="(670,250)"/>
<wire from="(540,420)" to="(540,540)"/>
<wire from="(410,420)" to="(540,420)"/>
<wire from="(540,540)" to="(560,540)"/>
<wire from="(520,410)" to="(520,500)"/>
<wire from="(410,410)" to="(520,410)"/>
<wire from="(520,500)" to="(560,500)"/>
<wire from="(500,400)" to="(500,460)"/>
<wire from="(500,460)" to="(560,460)"/>
<wire from="(410,390)" to="(480,390)"/>
<wire from="(480,390)" to="(480,430)"/>
<wire from="(560,420)" to="(560,430)"/>
<wire from="(480,430)" to="(560,430)"/>
<wire from="(410,380)" to="(560,380)"/>
<wire from="(410,370)" to="(460,370)"/>
<wire from="(460,340)" to="(460,370)"/>
<wire from="(460,340)" to="(560,340)"/>
<wire from="(410,360)" to="(440,360)"/>
<wire from="(440,300)" to="(440,360)"/>
<wire from="(440,300)" to="(560,300)"/>
<wire from="(450,180)" to="(450,280)"/>
<wire from="(430,180)" to="(450,180)"/>
<wire from="(450,280)" to="(560,280)"/>
<wire from="(430,190)" to="(460,190)"/>
<wire from="(460,190)" to="(460,320)"/>
<wire from="(460,320)" to="(560,320)"/>
<wire from="(470,200)" to="(470,360)"/>
<wire from="(430,200)" to="(470,200)"/>
<wire from="(470,360)" to="(560,360)"/>
<wire from="(410,400)" to="(500,400)"/>
<wire from="(430,210)" to="(490,210)"/>
<wire from="(490,210)" to="(490,390)"/>
<wire from="(560,390)" to="(560,400)"/>
<wire from="(490,390)" to="(560,390)"/>
<wire from="(430,220)" to="(510,220)"/>
<wire from="(510,220)" to="(510,440)"/>
<wire from="(510,440)" to="(560,440)"/>
<wire from="(530,230)" to="(530,480)"/>
<wire from="(430,230)" to="(530,230)"/>
<wire from="(530,480)" to="(560,480)"/>
<wire from="(550,240)" to="(550,520)"/>
<wire from="(430,240)" to="(550,240)"/>
<wire from="(550,520)" to="(560,520)"/>
<wire from="(660,290)" to="(660,340)"/>
<wire from="(600,290)" to="(660,290)"/>
<wire from="(600,330)" to="(650,330)"/>
<wire from="(650,330)" to="(650,350)"/>
<wire from="(650,350)" to="(660,350)"/>
<wire from="(600,370)" to="(610,370)"/>
<wire from="(610,360)" to="(610,370)"/>
<wire from="(610,360)" to="(660,360)"/>
<wire from="(620,370)" to="(620,410)"/>
<wire from="(600,410)" to="(620,410)"/>
<wire from="(620,370)" to="(660,370)"/>
<wire from="(600,450)" to="(630,450)"/>
<wire from="(630,380)" to="(630,450)"/>
<wire from="(630,380)" to="(660,380)"/>
<wire from="(600,490)" to="(640,490)"/>
<wire from="(640,390)" to="(640,490)"/>
<wire from="(640,390)" to="(660,390)"/>
<wire from="(600,530)" to="(650,530)"/>
<wire from="(650,400)" to="(650,530)"/>
<wire from="(650,400)" to="(660,400)"/>
<wire from="(680,370)" to="(770,370)"/>
<wire from="(260,310)" to="(350,310)"/>
<wire from="(350,310)" to="(350,400)"/>
<wire from="(260,370)" to="(340,370)"/>
<wire from="(340,370)" to="(340,410)"/>
<wire from="(260,430)" to="(350,430)"/>
<wire from="(380,10)" to="(380,30)"/>
<wire from="(380,10)" to="(780,10)"/>
<wire from="(780,80)" to="(780,110)"/>
<wire from="(380,80)" to="(780,80)"/>
<wire from="(20,10)" to="(20,80)"/>
<wire from="(380,30)" to="(380,80)"/>
<wire from="(20,10)" to="(380,10)"/>
<wire from="(20,110)" to="(780,110)"/>
<wire from="(20,80)" to="(380,80)"/>
<wire from="(780,10)" to="(780,80)"/>
<wire from="(20,80)" to="(20,110)"/>
<wire from="(350,420)" to="(350,430)"/>
<wire from="(380,10)" to="(380,30)"/>
<wire from="(780,80)" to="(780,110)"/>
<wire from="(380,80)" to="(780,80)"/>
<wire from="(380,10)" to="(780,10)"/>
<wire from="(20,10)" to="(20,80)"/>
<wire from="(380,30)" to="(380,80)"/>
<wire from="(20,110)" to="(780,110)"/>
<wire from="(20,80)" to="(380,80)"/>
<wire from="(20,10)" to="(380,10)"/>
<wire from="(780,10)" to="(780,80)"/>
<wire from="(20,80)" to="(20,110)"/>
<comp lib="0" loc="(510,40)" name="Pin">
<a name="output" val="true"/>
<a name="width" val="7"/>
<a name="label" val="Output"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="7" loc="(406,137)" name="Text">
<a name="text" val="提示使用异或门、4位奇偶校验电路和74x138子电路实现7位汉明码纠错电路。"/>
<a name="font" val="Dialog plain 12"/>
</comp>
<comp lib="1" loc="(600,370)" name="XOR Gate"/>
<comp lib="0" loc="(730,220)" name="Tunnel">
<a name="width" val="4"/>
<a name="label" val="错误位"/>
</comp>
<comp lib="1" loc="(600,290)" name="XOR Gate"/>
<comp lib="7" loc="(553,70)" name="Text">
<a name="text" val="输出引脚"/>
<a name="font" val="Dialog plain 12"/>
</comp>
<comp lib="6" loc="(740,190)" name="Hex Digit Display"/>
<comp lib="0" loc="(680,40)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="NoError"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(530,40)" name="Tunnel">
<a name="facing" val="west"/>
<a name="width" val="7"/>
<a name="label" val="Output"/>
</comp>
<comp loc="(260,430)" name="4位奇偶校验器">
<a name="label" val=" "/>
</comp>
<comp lib="0" loc="(430,500)" name="Tunnel">
<a name="facing" val="west"/>
<a name="width" val="4"/>
<a name="label" val="错误位"/>
</comp>
<comp lib="1" loc="(600,490)" name="XOR Gate"/>
<comp lib="0" loc="(170,30)" name="Pin">
<a name="width" val="7"/>
<a name="tristate" val="false"/>
<a name="label" val="Input"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="0" loc="(670,250)" name="Tunnel">
<a name="facing" val="west"/>
<a name="label" val="NoError"/>
</comp>
<comp lib="0" loc="(110,180)" name="Splitter">
<a name="fanout" val="7"/>
<a name="incoming" val="7"/>
<a name="appear" val="right"/>
</comp>
<comp loc="(260,370)" name="4位奇偶校验器"/>
<comp lib="0" loc="(410,170)" name="Splitter">
<a name="fanout" val="7"/>
<a name="incoming" val="7"/>
<a name="appear" val="right"/>
</comp>
<comp lib="1" loc="(600,410)" name="XOR Gate"/>
<comp lib="0" loc="(680,370)" name="Splitter">
<a name="facing" val="west"/>
<a name="fanout" val="7"/>
<a name="incoming" val="7"/>
<a name="appear" val="center"/>
</comp>
<comp lib="0" loc="(320,350)" name="Constant"/>
<comp lib="0" loc="(650,40)" name="Tunnel">
<a name="label" val="NoError"/>
</comp>
<comp lib="0" loc="(80,180)" name="Tunnel">
<a name="width" val="7"/>
<a name="label" val="Input"/>
</comp>
<comp loc="(260,310)" name="4位奇偶校验器"/>
<comp lib="7" loc="(169,64)" name="Text">
<a name="text" val="输入引脚"/>
<a name="font" val="Dialog plain 12"/>
</comp>
<comp lib="7" loc="(168,64)" name="Text">
<a name="text" val="输入引脚"/>
<a name="font" val="Dialog plain 12"/>
</comp>
<comp loc="(410,350)" name="3-8译码器"/>
<comp lib="7" loc="(400,102)" name="Text">
<a name="text" val="请勿修改引脚名称、电路名称及电路封装外观"/>
<a name="font" val="Dialog plain 12"/>
</comp>
<comp lib="0" loc="(200,30)" name="Tunnel">
<a name="facing" val="west"/>
<a name="width" val="7"/>
<a name="label" val="Input"/>
</comp>
<comp lib="0" loc="(770,370)" name="Tunnel">
<a name="facing" val="west"/>
<a name="width" val="7"/>
<a name="label" val="Output"/>
</comp>
<comp lib="1" loc="(600,330)" name="XOR Gate"/>
<comp lib="1" loc="(600,450)" name="XOR Gate"/>
<comp lib="1" loc="(600,530)" name="XOR Gate"/>
</circuit>
<circuit name="3-8译码器">
<a name="circuit" val="3-8译码器"/>
<a name="clabel" val=""/>
<a name="clabelup" val="east"/>
<a name="clabelfont" val="Dialog plain 12"/>
<a name="clabelcolor" val="#000000"/>
<appear>
<rect fill="#ffffff" height="95" rx="5" ry="5" stroke="#000000" stroke-width="2" width="50" x="50" y="55"/>
<text font-family="Dialog" font-size="6" text-anchor="start" x="54" y="72">G1</text>
<text font-family="Dialog" font-size="6" text-anchor="start" x="54" y="82">G2A_L</text>
<text font-family="Dialog" font-size="6" text-anchor="start" x="53" y="92">G2B_L</text>
<text font-family="Dialog" font-size="6" text-anchor="start" x="54" y="122">A</text>
<text font-family="Dialog" font-size="6" text-anchor="start" x="54" y="133">B</text>
<text font-family="Dialog" font-size="6" text-anchor="start" x="54" y="143">C</text>
<text font-family="Dialog" font-size="6" text-anchor="end" x="93" y="72">Y0_L</text>
<text font-family="Dialog" font-size="6" text-anchor="end" x="92" y="81">Y1_L</text>
<text font-family="Dialog" font-size="6" text-anchor="end" x="93" y="91">Y2_L</text>
<text font-family="Dialog" font-size="6" text-anchor="end" x="91" y="102">Y3_L</text>
<text font-family="Dialog" font-size="6" text-anchor="end" x="92" y="112">Y4_L</text>
<text font-family="Dialog" font-size="6" text-anchor="end" x="91" y="121">Y5_L</text>
<text font-family="Dialog" font-size="6" text-anchor="end" x="92" y="132">Y6_L</text>
<text font-family="Dialog" font-size="6" text-anchor="end" x="93" y="142">Y7_L</text>
<text font-family="Dialog" font-size="8" text-anchor="middle" x="73" y="50">3-8 译码器</text>
<circ-port height="8" pin="190,270" width="8" x="46" y="66"/>
<circ-port height="8" pin="190,300" width="8" x="46" y="76"/>
<circ-port height="8" pin="190,330" width="8" x="46" y="86"/>
<circ-port height="8" pin="190,450" width="8" x="46" y="116"/>
<circ-port height="8" pin="190,480" width="8" x="46" y="126"/>
<circ-port height="8" pin="190,510" width="8" x="46" y="136"/>
<circ-port height="10" pin="620,210" width="10" x="95" y="65"/>
<circ-port height="10" pin="620,270" width="10" x="95" y="75"/>
<circ-port height="10" pin="620,330" width="10" x="95" y="85"/>
<circ-port height="10" pin="620,390" width="10" x="95" y="95"/>
<circ-port height="10" pin="620,450" width="10" x="95" y="105"/>
<circ-port height="10" pin="620,510" width="10" x="95" y="115"/>
<circ-port height="10" pin="620,570" width="10" x="95" y="125"/>
<circ-port height="10" pin="620,630" width="10" x="95" y="135"/>
<circ-anchor facing="east" height="6" width="6" x="97" y="67"/>
</appear>
<wire from="(420,340)" to="(420,430)"/>
<wire from="(380,430)" to="(420,430)"/>
<wire from="(190,450)" to="(330,450)"/>
<wire from="(330,420)" to="(330,450)"/>
<wire from="(330,420)" to="(360,420)"/>
<wire from="(340,430)" to="(340,480)"/>
<wire from="(190,480)" to="(340,480)"/>
<wire from="(340,430)" to="(360,430)"/>
<wire from="(190,510)" to="(350,510)"/>
<wire from="(350,440)" to="(350,510)"/>
<wire from="(350,440)" to="(360,440)"/>
<wire from="(260,270)" to="(260,290)"/>
<wire from="(190,300)" to="(210,300)"/>
<wire from="(190,330)" to="(210,330)"/>
<wire from="(230,300)" to="(260,300)"/>
<wire from="(260,310)" to="(260,330)"/>
<wire from="(230,330)" to="(260,330)"/>
<wire from="(390,300)" to="(390,340)"/>
<wire from="(390,340)" to="(410,340)"/>
<wire from="(440,260)" to="(600,260)"/>
<wire from="(600,210)" to="(600,260)"/>
<wire from="(600,210)" to="(620,210)"/>
<wire from="(440,270)" to="(620,270)"/>
<wire from="(440,280)" to="(620,280)"/>
<wire from="(620,280)" to="(620,330)"/>
<wire from="(440,290)" to="(610,290)"/>
<wire from="(610,290)" to="(610,390)"/>
<wire from="(610,390)" to="(620,390)"/>
<wire from="(440,300)" to="(600,300)"/>
<wire from="(600,450)" to="(620,450)"/>
<wire from="(600,300)" to="(600,450)"/>
<wire from="(440,310)" to="(590,310)"/>
<wire from="(590,310)" to="(590,510)"/>
<wire from="(590,510)" to="(620,510)"/>
<wire from="(440,320)" to="(580,320)"/>
<wire from="(580,570)" to="(620,570)"/>
<wire from="(580,320)" to="(580,570)"/>
<wire from="(570,330)" to="(570,630)"/>
<wire from="(440,330)" to="(570,330)"/>
<wire from="(570,630)" to="(620,630)"/>
<wire from="(290,300)" to="(300,300)"/>
<wire from="(300,300)" to="(390,300)"/>
<wire from="(240,270)" to="(260,270)"/>
<wire from="(190,270)" to="(220,270)"/>
<comp lib="0" loc="(620,510)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="Y5_L"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(190,330)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="G2B_L"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="0" loc="(190,450)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="A"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="0" loc="(190,270)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="G1"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="0" loc="(620,450)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="Y4_L"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(620,570)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="Y6_L"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(380,430)" name="Splitter">
<a name="facing" val="west"/>
<a name="fanout" val="3"/>
<a name="incoming" val="3"/>
<a name="appear" val="center"/>
</comp>
<comp lib="0" loc="(190,300)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="G2A_L"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="0" loc="(620,330)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="Y2_L"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(190,510)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="C"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="3" loc="(420,340)" name="Decoder">
<a name="select" val="3"/>
<a name="disabled" val="0"/>
</comp>
<comp lib="1" loc="(240,270)" name="NOT Gate"/>
<comp lib="0" loc="(620,270)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="Y1_L"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(620,390)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="Y3_L"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(190,480)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="B"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="0" loc="(620,630)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="Y7_L"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="1" loc="(230,330)" name="NOT Gate"/>
<comp lib="7" loc="(239,692)" name="Text">
<a name="text" val="3-8译码器"/>
<a name="font" val="Dialog bold 24"/>
</comp>
<comp lib="1" loc="(230,300)" name="NOT Gate"/>
<comp lib="0" loc="(620,210)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="Y0_L"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="1" loc="(300,300)" name="NAND Gate">
<a name="inputs" val="3"/>
</comp>
</circuit>
<circuit name="4位奇偶校验器">
<a name="circuit" val="4位奇偶校验器"/>
<a name="clabel" val=""/>
<a name="clabelup" val="east"/>
<a name="clabelfont" val="Dialog plain 6"/>
<a name="clabelcolor" val="#000000"/>
<appear>
<rect fill="#ffffff" height="50" rx="5" ry="5" stroke="#000000" stroke-width="2" width="40" x="50" y="50"/>
<text font-family="Dialog" font-size="8" text-anchor="middle" x="58" y="92">D</text>
<text font-family="Dialog" font-size="6" text-anchor="middle" x="76" y="86">ODD</text>
<text font-family="Dialog" font-size="8" text-anchor="middle" x="57" y="63">A</text>
<text font-family="Dialog" font-size="8" text-anchor="middle" x="57" y="72">B</text>
<text font-family="Dialog" font-size="8" text-anchor="middle" x="58" y="83">C</text>
<text font-family="Dialog" font-size="8" text-anchor="middle" x="66" y="48">4位奇偶校验器</text>
<text font-family="Dialog" font-size="6" text-anchor="middle" x="78" y="76">EVEN</text>
<circ-port height="8" pin="60,50" width="8" x="46" y="56"/>
<circ-port height="8" pin="60,70" width="8" x="46" y="66"/>
<circ-port height="8" pin="60,140" width="8" x="46" y="76"/>
<circ-port height="8" pin="60,160" width="8" x="46" y="86"/>
<circ-port height="10" pin="320,110" width="10" x="85" y="65"/>
<circ-port height="10" pin="320,140" width="10" x="85" y="85"/>
<circ-anchor facing="east" height="6" width="6" x="87" y="67"/>
</appear>
<wire from="(60,50)" to="(110,50)"/>
<wire from="(60,70)" to="(110,70)"/>
<wire from="(60,140)" to="(110,140)"/>
<wire from="(60,160)" to="(110,160)"/>
<wire from="(170,120)" to="(170,150)"/>
<wire from="(150,150)" to="(170,150)"/>
<wire from="(170,120)" to="(180,120)"/>
<wire from="(170,60)" to="(170,100)"/>
<wire from="(150,60)" to="(170,60)"/>
<wire from="(170,100)" to="(180,100)"/>
<wire from="(290,140)" to="(320,140)"/>
<wire from="(250,110)" to="(250,140)"/>
<wire from="(250,140)" to="(270,140)"/>
<wire from="(220,110)" to="(250,110)"/>
<wire from="(250,110)" to="(320,110)"/>
<comp lib="0" loc="(320,110)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="EVEN"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(320,140)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="label" val="ODD"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(60,140)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="N2"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="1" loc="(290,140)" name="NOT Gate"/>
<comp lib="0" loc="(60,70)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="N1"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="0" loc="(60,50)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="N0"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="1" loc="(150,60)" name="XOR Gate"/>
<comp lib="0" loc="(60,160)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="N3"/>
<a name="labelloc" val="west"/>
</comp>
<comp lib="1" loc="(150,150)" name="XOR Gate"/>
<comp lib="7" loc="(189,208)" name="Text">
<a name="text" val="4位奇偶校验电路"/>
</comp>
<comp lib="1" loc="(220,110)" name="XOR Gate"/>
</circuit>
</project>